﻿/* =========================
   NUAGE DE MOTS
========================= */

.nuage-back-btn {
    margin-right: auto;
}

.nuage-titre-emotion {
    flex: 1;
    text-align: center;
}

.help-btn {
    margin-left: auto;
}

.intro-poeme {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: .5rem 1.2rem;
    background: rgba(0,0,0,.12);
    border: 3px solid rgba(255,255,255,.15);
    border-radius: 999px;
    text-align: center;
    line-height: 1.5;
    font-size: clamp(1rem, 2vw, 1.35rem);
    text-shadow: 0 2px 2px rgba(0,0,0,.6);
    border-color: rgb(139, 69, 19);
    backdrop-filter: blur(4px);
}

.intro-poeme-invite {
    text-align: center;
}

.accent-poeme {
    color: #fff8d8;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.02em;
    text-shadow: 0 0 8px rgba(255,240,180,.35), 0 2px 4px rgba(0,0,0,.6);
}


.nuage-titre-emotion {
    margin: 0;
    font-size: 2rem;
    color: black; /* selon ton thème */
    font-family: "Exo 2", sans-serif;
    font-size: clamp(2rem, 6vw, 3.2rem);
}

.nuage-mots {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    max-width: 900px;
    /* margin: 40px auto;*/
    padding: 1rem;
    width: 700px;
    height: 600px;
}

/* =========================
   MOT
========================= */

.etal {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid #8b4513;
    background: rgba(0, 0, 0, 0.20); /*#ffe8cc;*/
    backdrop-filter: blur(4px);
    color: var(--text);
    font-size: 2rem;
    font-weight: 600;
    cursor: pointer;
    animation: glowText 3s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

    /* Positionnement des bulles */
    .etal:nth-child(1) {
        /*actualité*/
        left: 25px;
        top: 10px;
    }

    .etal:nth-child(2) {
        /*Quelques anecdotes*/
        left: 1130px;
        top: 390px;
        width: 200px;
        height: 200px;
    }

    .etal:nth-child(3) {
        /*Voir ailleur*/
        left: 125px;
        top: 400px;
        width: 160px;
        height: 160px;
    }

    .etal:nth-child(4) {
        /*Une reflexion candide*/
        left: 800px;
        top: 60px;
    }

    .etal:nth-child(5) {
        /*Déclinaison*/
        left: 850px;
        top: 300px;
        width: 250px;
        height: 170px;
    }

    .etal:nth-child(6) {
        /*emotion*/
        left: 1100px;
        top: 100px;
    }

    .etal:nth-child(7) {
        /*humour*/
        left: 460px;
        top: 90px;
        width: 150px;
        height: 150px;
    }

    .etal:nth-child(8) {
        /*idée reçue*/
        left: 650px;
        top: 180px;
    }

    .etal:nth-child(9) {
        /*interprétation*/
        left: 50px;
        top: 210px;
        width: 280px;
        height: 180px;
    }

    .etal:nth-child(10) {
        /*poeme*/
        left: 280px;
        top: 30px;
        width: 160px;
        height: 160px;
    }

    .etal:nth-child(11) {
        /*proverbes*/
        left: 600px;
        top: 360px;
    }

    .etal:nth-child(12) {
        /*questions*/
        left: 380px;
        top: 300px;
    }


    /* =========================
   SURVOL
========================= */

    .etal:hover {
        transform: translateY(-4px) scale(1.05);
        filter: brightness(1.15);
        text-shadow: 0 0 8px rgba(255,255,255,0.9), 0 0 16px rgba(255,255,255,0.8), 0 0 24px rgba(255,255,255,0.6);
        box-shadow: 0 0 12px rgba(255,255,255,0.25), 0 8px 18px rgba(0,0,0,0.25);
    }

    /* =========================
   CLIC
========================= */

    .etal:active {
        transform: scale(0.97);
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

/* =========================
   ANIMATION LUMINEUSE
========================= */

@keyframes glowText {

    0%, 100% {
        /*text-shadow: 0 0 5px rgba(255,255,255,0.4), 0 0 10px rgba(255,255,255,0.2);*/

        text-shadow: 0 0 8px rgba(255,255,255,0.6), 0 0 15px rgba(255,255,255,0.4);
    }

    50% {
        /*text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.5);*/

        text-shadow: 0 0 15px rgba(255,255,255,1), 0 0 30px rgba(255,255,255,0.8), 0 0 45px rgba(255,255,255,0.6);
    }
}
/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .nuage-mots {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
        height: auto;
        min-height: unset;
        padding: 10px;
        gap: 10px;
        overflow: visible;
    }

    .etal {
        position: static !important;
        width: 120px !important;
        height: 120px !important;
        min-width: unset;
        max-width: unset;
        font-size: 0.95rem !important;
        margin: 0;
        flex-shrink: 0;
    }

    .nuage-titre-emotion {
        font-size: 1.5rem !important;
    }
}
