/* style.css (Version avec police Butler Medium) */

/* Déclaration de la police personnalisée (Light) */
@font-face {
    font-family: 'Butler';
    src: url('./fonts/Butler_Light.otf') format('opentype');
    font-weight: 300; /* Light */
    font-style: normal;
}

/* NOUVEAU : Déclaration pour le poids Medium */
@font-face {
    font-family: 'Butler';
    src: url('./fonts/Butler_Medium.otf') format('opentype');
    font-weight: 500; /* Medium */
    font-style: normal;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Butler', sans-serif;
    background-color: #0d1222;
    color: white;
}

#ciel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(to bottom, #020111 0%, #1921 50%, #362933 100%);
}

#ciel-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

header {
    text-align: center;
    max-width: 800px;
    pointer-events: auto;
}

header h1 {
    font-size: 3rem;
    font-weight: 500; /* <-- MODIFIÉ pour utiliser le poids Medium */
    margin-bottom: 1.5rem;
    color: #efefef;
    letter-spacing: 1px;
}

.intro-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #c3c3c3;
    margin: 0.5rem 0;
    font-weight: 500; /* <-- MODIFIÉ pour utiliser le poids Medium */
}

.toolbar-container {
    width: 100%;
    margin-top: 2rem;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    max-width: 95%;
    width: fit-content;
    margin: 0 auto;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    pointer-events: auto;
}

.toolbar input, .toolbar button {
    font-family: system-ui, sans-serif;
}

.toolbar input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1rem;
    padding: 8px;
    min-width: 200px; display: inline-block; margin: 8px 0;
}

.toolbar .filters button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    margin: 8px 5px 8px 5px;
}
.toolbar .filters button:hover, .toolbar .filters button.active:hover {
   background: rgba(255, 255, 255, 0.75);
}

.toolbar .filters button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.toolbar .filters button.active {
    background: white;
    color: #333;
}

#reset-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 16px;
    cursor: pointer; display: inline-block; margin: 8px 0;
}
#reset-btn:hover {
   background: rgba(255, 255, 255, 0.35);
}

.info-card {
    position: absolute;
    transform: translate(-50%, -120%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 15px;
    min-width: 200px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 99;
}

.info-card h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
}

.info-card p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.accessible-list-container {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 800px;
    width: 90%;
    padding: 1rem;
    background-color: rgba(26, 30, 44, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    pointer-events: auto;
}

.accessible-list-container summary {
    cursor: pointer;
    font-weight: bold;
}

#accessible-list {
    margin-top: 1rem;
    padding-left: 20px;
    max-height: 150px;
    overflow-y: auto;
}
/* style.css (Ajoutez ces règles à la fin de votre fichier) */

/* On ajoute une transition douce sur l'opacité des éléments de l'interface */
header, .accessible-list-container {
    transition: opacity 0.5s ease-in-out;
}

/* Nouvelle classe qui sera ajoutée par JavaScript lors de l'interaction */
.ui-overlay.is-interactive header,
.ui-overlay.is-interactive .accessible-list-container {
    opacity: 0.1;
    pointer-events: none; /* Empêche le texte de bloquer le survol des étoiles en-dessous */
}