@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

body {
    background: linear-gradient(50deg, #ff6f00, #ffae02);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    overflow: hidden;
    transition: background 0.5s ease;
}
#message{
	color:rgba(255, 255, 255, 0.7);
}

/* Barre météo et thème */
.top-bar {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 15px;
}

#weather, #themeToggle {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

#themeToggle:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Bulles interactives */
.bubbles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.bubble {
    text-decoration: none;
    font-size: 2em;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 50%;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    position: relative;
    cursor: pointer;
}

/* Animation au survol */
.bubble:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Animation de texte flottant */
.bubble::after {
    content: attr(data-title);
    position: absolute;
    bottom: -30px;
    font-size: 14px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.bubble:hover::after {
    opacity: 1;
}

/* Mode Nuit */
body.night {
    background: linear-gradient(120deg, #444, #222);
}

body.night .bubble {
    background: rgba(255, 255, 255, 0.1);
}

body.night .bubble:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Fond animé */
canvas#particules {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
