/*
 * Style "Terminal" pour Vibrance Code Verifier
 * Fond: #1E1E1E (Anthracite)
 * Texte: #E0E0E0 (Blanc Cassé)
 * Accent: #3DCC91 (Vert)
 * Avertissement: #FFBF00 (Ambre)
 * Erreur: #D9534F (Rouge)
 */

/* Importation de la police (si elle n'est pas déjà chargée) */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap');

/* Conteneur principal du formulaire */
.vibrance-code-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #1E1E1E; /* Fond */
    border-radius: 8px; /* Bords légèrement arrondis (style terminal) */
    border: 1px solid #3DCC91; /* Bordure accentuée */
    position: relative;
    overflow: hidden;
    font-family: 'IBM Plex Mono', monospace;
    box-shadow: 0 0 15px rgba(61, 204, 145, 0.15); /* Légère lueur externe */
}

/* Labels (étiquettes) */
.vibrance-code-form label {
    font-size: 0.8rem;
    color: #3DCC91; /* Accent */
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

/* Champs de saisie (input) */
.vibrance-input {
    width: 100%;
    padding: 0.6em; /* Cohérent avec les styles de functions.php */
    margin-bottom: 15px;
    border: 1px solid #3DCC91; /* Accent */
    border-radius: 8px; /* Cohérent */
    background: transparent; /* Fond */
    color: #3DCC91; /* Texte vert */
    font-size: 1rem;
    box-sizing: border-box;
    font-family: 'IBM Plex Mono', monospace;
    outline: none;
    transition: box-shadow 0.3s ease;
}
.vibrance-input::placeholder {
    color: rgba(61, 204, 145, 0.5);
    opacity: 1;
}
.vibrance-input:focus {
    box-shadow: 0 0 0 2px rgba(61, 204, 145, 0.4);
}

/* Info Propriétaire et question */
.vibrance-code-form p.owner-info,
.vibrance-code-form .radio-group label {
    font-size: 0.85rem;
    color: #E0E0E0; /* Texte Principal */
    margin-bottom: 10px;
}
.vibrance-code-form .radio-group label {
    font-size: 0.8rem;
    color: #E0E0E0;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

/* Groupe de boutons radio (Oui/Non) */
.radio-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.radio-button {
    flex: 1;
    padding: 0.6em 1em;
    background-color: transparent;
    border: 1px solid #3DCC91; /* Accent */
    border-radius: 5px; /* Arrondi 5px */
    color: #3DCC91; /* Accent */
    font-size: 12px;
    font-weight: bold;
    font-family: 'IBM Plex Mono', monospace;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.radio-button.active,
.radio-button:hover {
    background-color: #3DCC91; /* Accent */
    color: #1E1E1E; /* Fond (pour contraste) */
}

/* Champs pour l'utilisateur (si "Non") */
#user-info {
    border-top: 1px dashed rgba(61, 204, 145, 0.3);
    padding-top: 15px;
    margin-top: 15px;
}
#user-info p.info-message {
    font-size: 0.75rem;
    color: #FFBF00; /* Avertissement */
    margin-bottom: 15px;
    text-align: left;
    line-height: 1.4;
}
#user-info label {
    color: #3DCC91; /* Accent */
    font-weight: normal;
    text-transform: none;
}

/* Bouton Soumettre */
.vibrance-submit-button {
    width: 100%;
    padding: 0.8em 1.5em;
    background-color: transparent; /* Fond */
    border: 1px solid #3DCC91; /* Accent */
    border-radius: 5px; /* Arrondi 5px */
    color: #3DCC91; /* Accent */
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.vibrance-submit-button:hover {
    background-color: rgba(61, 204, 145, 0.1); /* Surlignage Accent */
}
.vibrance-submit-button:active {
    background-color: #3DCC91;
    color: #1E1E1E;
}

/* Messages (Erreur, Succès) */
.vibrance-message {
    margin-top: 15px;
    font-size: 0.85rem;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    display: none; /* Caché par défaut, affiché par JS */
    line-height: 1.5;
}
/* Style spécifique Erreur */
.vibrance-message.error {
    color: #D9534F; /* Erreur */
    background-color: rgba(217, 83, 79, 0.05);
    border: 1px solid rgba(217, 83, 79, 0.3);
}
/* Style spécifique Succès/Info */
.vibrance-message.success,
.vibrance-message.info {
    color: #E0E0E0; /* Texte Principal */
    background-color: rgba(224, 224, 224, 0.05);
    border: 1px solid rgba(224, 224, 224, 0.3);
}


/* Effet lumineux (adapté) */
.light-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 10%, rgba(61, 204, 145, 0.7) 70%, transparent 100%); /* Accent Vert */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

.light-effect.active {
    animation: lightBurst 1s ease-out forwards;
}

@keyframes lightBurst {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200vw;
        height: 200vw;
        opacity: 0;
    }
}