* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow: hidden;
    width: 100%;
    height: 100%;
    font-family: 'Arial', sans-serif;
}

#canevas-rendu {
    width: 100%;
    height: 100%;
    touch-action: none;
    outline: none;
    display: block;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

#interface-2d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#interface-2d * {
    pointer-events: auto;
}

#titre-site {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: transparent;
    pointer-events: none;
}

#section-titre {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
}

#section-titre h1 {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#section-titre p {
    font-size: 14px;
    margin: 5px 0 0 0;
    opacity: 0.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#panneau-controles {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

#panneau-info {
    position: absolute;
    left: -550px;
    top: 30%;
    transform: translateY(-50%);
    transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    pointer-events: auto;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    color: white;
}

#panneau-info.actif {
    left: 2%;
}

#info-nom {
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.div-info {
    margin-bottom: 15px;
    font-size: 16px;
}

.label-info {
    color: #aaa;
    font-weight: bold;
    margin-right: 10px;
}

#info-description {
    line-height: 1.6;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
}

#viseur {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    border: 2px solid #eeff00;
    border-radius: 50%;
    background: #eeff00;
    pointer-events: none;
}

#coordonnees {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #018501;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: bold;
    pointer-events: none;
    z-index: 100;
}

.card {
    width: 500px;
    min-height: 300px;
    margin: 0 auto;
    background-color: #023252;
    border-radius: 10px;
    z-index: 1;
}

.card__content {
    padding: 20px;
}

.tools {
    display: flex;
    align-items: center;
    padding: 9px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px 10px 0 0;
}


.box {
    display: inline-block;
    align-items: center;
    width: 10px;
    height: 10px;
    padding: 1px;
    border-radius: 50%;
}


.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

#ecran-chargement {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.contenu-chargement {
    text-align: center;
    color: white;
}

.contenu-chargement h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

#barre-container {
    width: 300px;
    height: 10px;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
    margin: 20px auto;
}

#barre-chargement {
    width: 0%;
    height: 100%;
    background: white;
    transition: width 0.2s;
}

#galerie-interface {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    width: 900px;
    max-width: 95vw;
    height: 600px;
    max-height: 85vh;
    background: #141414;
    border-radius: 7px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.browser-header {
    display: flex;
    width: 100%;
    height: 40px;
    background: #1a1a1a;
    align-items: center;
    border-bottom: 1px solid rgb(255 239 255 / 15%);
}

.circles,
.browser {
    height: 100%;
    display: flex;
    align-items: center;
}

.circles {
    flex: 0 0 80px;
    gap: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
}

.c {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 2px 2px 5px #ffffff25;
    cursor: pointer;
}

.c#btn-close-browser {
    background-color: #ff605c !important;
}

.browser {
    flex: 1;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.chevrons {
    display: flex;
    gap: 5px;
}

.search-bar {
    flex: 1;
    position: relative;
    border: 0.5px solid #fff;
    border-radius: 5px;
    padding: 0 10px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: rgb(204, 204, 204);
    box-shadow: inset 2px 2px 2px #ffffff25;
    font-family: sans-serif;
    min-width: 0;
}

.search-bar svg {
    position: absolute;
    left: 10px;
}

#grille-galerie {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 30px;
    overflow-y: auto;
    background: #111;
}

.carte-galerie {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carte-galerie:hover {
    background: rgba(0, 202, 78, 0.2);
    border-color: #00ca4e;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 202, 78, 0.3);
}

.carte-galerie h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 300;
}

.bouton-relief {
    position: absolute;
    top: 20px;
    right: 100px;
    z-index: 1000;
    --button_radius: 0.75em;
    --button_color: #e8e8e8;
    --button_outline_color: #000000;
    font-size: 17px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: var(--button_radius);
    background: var(--button_outline_color);
}

.button_top {
    display: block;
    box-sizing: border-box;
    border: 2px solid var(--button_outline_color);
    border-radius: var(--button_radius);
    padding: 0.75em 1.5em;
    background: var(--button_color);
    color: var(--button_outline_color);
    transform: translateY(-0.2em);
    transition: transform 0.1s ease;
}

.bouton-relief:hover .button_top {
    transform: translateY(-0.33em);
}

.card-controls {
    width: 220px;
    height: auto;
    background-color: #011522;
    border-radius: 8px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    font-family: 'Segoe UI', sans-serif;
    padding-bottom: 15px;
}

.tools {
    display: flex;
    align-items: center;
    padding: 9px;
}

.circle {
    padding: 0 4px;
}

.box {
    display: inline-block;
    align-items: center;
    width: 10px;
    height: 10px;
    padding: 1px;
    border-radius: 50%;
}

.red {
    background-color: #ff605c;
}

.card-controls .card__content {
    padding: 15px;
    color: white;
    font-size: 0.9rem;
    line-height: 1.6;
}

.card-controls strong {
    color: #4da6ff;
}

#slider-explosion {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #333, #444);
    outline: none;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

#slider-explosion:hover {
    background: linear-gradient(to right, #444, #555);
}

#slider-explosion::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #00ca4e;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 202, 78, 0.8), 0 0 20px rgba(0, 202, 78, 0.4);
    border: 2px solid white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#slider-explosion::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 202, 78, 1), 0 0 30px rgba(0, 202, 78, 0.6);
}

#slider-explosion::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #00ca4e;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 202, 78, 0.8), 0 0 20px rgba(0, 202, 78, 0.4);
    border: 2px solid white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#slider-explosion::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 202, 78, 1), 0 0 30px rgba(0, 202, 78, 0.6);
}