:root {
    /* Couleurs */
    --background-color: white;
    --heart-color: #ff4d6d; /* Rose Vif (pour les cœurs et accents) */
    --pop-color: #ffc107; /* Jaune/Or (pour le bouton de la modale) */
    --neon-light-pink: #FFB6C1; /* Rose clair pour la lueur principale du cadre */
    --shadow-dark: rgba(0, 0, 0, 0.4);
}

body {
    background-color: var(--background-color);
    /* TEXTURE DE CŒURS : SUBTILE SUR FOND BLANC */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff4d6d" opacity="0.08"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
    background-size: 80px 80px;
    background-repeat: repeat;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100vh;
    max-width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Position relative pour ancrer le compteur */
    position: relative;
}

.main-title, .subtitle {
    display: none;
}

/* --- Zone Cliquable (Image) --- */
.clickable-area {
    position: relative;
    width: 80vw;
    height: 80vw;
    max-width: 70vh;
    max-height: 70vh;
    margin: auto;
    cursor: pointer;

    background: rgba(0, 0, 0, 0.1);
    border: 5px solid var(--neon-light-pink);
    border-radius: 10px;

    /* Lueur pulsée Rose CLAIR -> ROSE VIF */
    box-shadow:
        0 0 10px var(--neon-light-pink),
        0 0 20px var(--neon-light-pink),
        0 0 40px var(--heart-color),
        0 0 60px var(--heart-color);

    transition: transform 0.1s ease-out, box-shadow 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;

    animation: pulseGlow 1.5s infinite alternate;
}

.clickable-area:active {
    transform: scale(0.95);
    /* Éclat intense au clic */
    box-shadow:
        0 0 20px var(--neon-light-pink),
        0 0 40px var(--neon-light-pink),
        0 0 80px var(--heart-color),
        0 0 100px var(--heart-color);
}

/* Animation Néon */
@keyframes pulseGlow {
    from {
        box-shadow: 0 0 10px var(--neon-light-pink), 0 0 20px var(--heart-color);
    }
    to {
        box-shadow: 0 0 15px var(--neon-light-pink), 0 0 30px var(--heart-color);
    }
}


/* Style pour l'image à l'intérieur de la zone cliquable */
.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    background-color: var(--background-color);
}

/* --- Animation des Cœurs --- */
.heart-splash {
    position: absolute;
    color: var(--heart-color);
    font-size: 20px;
    pointer-events: none;
    animation: heartFly 1.5s ease-out forwards;
    z-index: 110; /* CORRECTION : Maintenant au-dessus de la modale (100) */
}

@keyframes heartFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scale(0.5);
    }
}

/* --- Compteur de Clics --- */
.click-counter {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--heart-color);

    /* MODIFICATION ICI : Utilisation du positionnement absolu et ajustement de 'top' */
    position: absolute;
    top: calc(50% + 37vh); /* Augmenté pour ajouter de l'espace */
    left: 50%;
    transform: translateX(-50%); /* Centrage horizontal */

    /* Retailles minimales pour l'esthétique */
    padding: 5px 10px;
    margin: 0;

    border-radius: 0px;
    background: rgba(0, 0, 0, 0.1);

    z-index: 20;

    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.click-counter.visible {
    visibility: visible;
    opacity: 1;
}

.modal {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInModal 0.3s ease-in-out;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
    color: #333;
    max-width: 300px;
    animation: popUp 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.modal-content h2 {
    color: var(--heart-color);
    margin-top: 0;
    font-size: 1.8rem;
}

.modal-content p {
    margin-bottom: 25px;
}

.play-button {
    background-color: var(--pop-color);
    color: #333;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    background-color: #ffdb85;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popUp {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Media Queries (Adaptation Mobile) --- */
@media (max-width: 600px) {
    .clickable-area {
        width: 85vw;
        height: 85vw;
    }
    .main-image {
        width: 100%;
        height: 100%;
    }
    .modal-content {
        max-width: 90%;
        margin: 10% auto;
        padding: 20px;
    }

    /* MODIFICATION ICI : Ajustement de la position absolue sur mobile */
    .click-counter {
        top: calc(50% + 45vw); /* Augmenté pour ajouter de l'espace */
    }
}

.hidden {
    display: none;
}
