/* =================================================================== */
/* STYLES POUR L'ASSISTANT VOCAL JOBKORA                   */
/* =================================================================== */

/* --- Variables pour la cohérence du design --- */
:root {
    --vocal-primary-color: #0d6efd;      /* Bleu principal (similaire à Bootstrap) */
    --vocal-primary-hover: #0b5ed7;    /* Bleu plus foncé pour le survol */
    --vocal-secondary-color: #6c757d;    /* Gris secondaire */
    --vocal-secondary-hover: #5c636a;  /* Gris secondaire plus foncé */
    --vocal-success-color: #198754;      /* Vert pour le succès */
    --vocal-danger-color: #dc3545;       /* Rouge pour les erreurs */
    --vocal-light-bg: #f8f9fa;          /* Fond clair */
    --vocal-border-color: #dee2e6;     /* Couleur de bordure */
    --vocal-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Bouton flottant (FAB) --- */
#vocal-assistant-fab {
    position: fixed;
    bottom: 35px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--vocal-primary-color);
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--vocal-shadow);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1050; /* Au-dessus de la plupart des éléments */
      /* On applique les animations ici */
  animation: pulse-animation 2s infinite, 
             shake-animation 15s infinite 10s; /* La secousse commence après 10s et se répète toutes les 15s */
}

#vocal-assistant-fab:hover {
    background-color: var(--vocal-primary-hover);
    transform: scale(1.1);
}

/* --- Modale --- */
.vocal-modal {
    display: flex; /* Utilisé par JS pour afficher/cacher */
    position: fixed;
    z-index: 1055;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.vocal-modal-hidden {
    display: none;
}

.vocal-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
}

.vocal-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.vocal-modal-close:hover {
    color: #333;
}

/* --- Contenu des étapes --- */
.vocal-modal-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}
.vocal-modal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #444;
}

.vocal-modal-content p {
    color: #666;
    margin-bottom: 20px;
}

/* --- Styles des boutons --- */
.vocal-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin: 5px;
}

.vocal-btn-primary {
    background-color: var(--vocal-primary-color);
    color: white;
}
.vocal-btn-primary:hover:not(:disabled) {
    background-color: var(--vocal-primary-hover);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.4);
}
.vocal-btn-primary:disabled {
    background-color: #a0c3ff;
    cursor: not-allowed;
}

.vocal-btn-secondary {
    background-color: transparent;
    color: var(--vocal-secondary-color);
    border: 1px solid var(--vocal-border-color);
}
.vocal-btn-secondary:hover:not(:disabled) {
    background-color: var(--vocal-light-bg);
    border-color: var(--vocal-secondary-color);
}

/* --- Bouton d'enregistrement spécifique --- */
#record-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    font-size: 28px; /* Taille de l'icône micro */
}
#record-btn-text {
    font-size: 12px;
    margin-top: 5px;
    font-weight: normal;
}

/* --- Animation d'enregistrement --- */
#record-btn.is-recording {
    background-color: var(--vocal-danger-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.vocal-recording-indicator {
    font-size: 14px;
    color: var(--vocal-danger-color);
    margin-bottom: 10px;
}

/* --- Lecteur audio et actions (Étape 2) --- */
.vocal-audio-player {
    margin: 20px 0;
}
#audio-playback {
    width: 100%;
    margin-bottom: 15px;
}
.vocal-audio-actions {
    display: flex;
    justify-content: center;
}

/* --- Formulaire de contact (Étape 2) --- */
.vocal-form-group {
    margin-bottom: 15px;
    text-align: left;
}
.vocal-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}
.vocal-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--vocal-border-color);
    border-radius: 8px;
    font-size: 16px;
}

/* --- Messages de succès et d'erreur --- */
.vocal-success-message {
    color: var(--vocal-success-color);
    font-size: 1.1rem;
    font-weight: 500;
}
.vocal-error-message {
    color: var(--vocal-danger-color);
    margin-top: 15px;
    font-weight: 500;
}
.hidden {
    display: none !important;
}

/* --- Animation d'apparition de la modale --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}






/* ✅ ================================================================== */
/* ✅ NOUVEAU : Animations pour attirer l'attention (Version Expert) */
/* ✅ ================================================================== */



/* Animation de pulsation subtile */
@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 122, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 122, 0, 0);
  }
}

/* Animation de secousse pour attirer l'attention */
@keyframes shake-animation {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
  95% { transform: translateX(0); }
}

