/* Style global */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f9fafc;
}

/* Titre principal */
h1 {
    margin-bottom: 20px;
    font-size: 2em;
}

/* Conteneur des boutons */
.button-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Boutons modernisés */
.button-container button {
    background: linear-gradient(135deg, #4caf50, #76bc21);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.button-container button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Styles spécifiques au script */

.content {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 70vh;
}

/* Sections du script */
.content section {
    margin-bottom: 20px;
}

.content h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #4caf50;
}

/* Barre de question dynamique */
.question-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f0f0;
    border-radius: 25px;
    padding: 10px 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.question-bar input {
    border: none;
    outline: none;
    padding: 8px;
    border-radius: 15px;
    flex-grow: 1;
}

.question-bar button {
    background: #76bc21;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 8px 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.question-bar button:hover {
    transform: translateY(-2px);
}

/* Zone de réponse AI */
#answerBox {
    margin: 20px auto;
    padding: 15px;
    width: 80%;
    background: #e8f5e9;
    border-radius: 8px;
    font-style: italic;
    color: #2e7d32;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Styles spécifiques à script2 */
body.script2 {
    background-color: #f4f8fb;
}

.content h2 {
    color: #2c7be5;
}

.question-bar button {
    background: #2c7be5;
}

/* Effet de surbrillance pour la section ciblée */
.section-highlight {
    animation: flashHighlight 1.5s ease-in-out 2;
}

@keyframes flashHighlight {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: #ffeb3b;
    }
}

/* Bouton de saut */
.content button {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    background-color: #4caf50;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.content button:hover {
    transform: scale(1.05);
}

/* Styles pour les dialogues client et réponses suggérées */
.content ul li {
    margin-bottom: 10px;
}

/* Style pour "Client :" */
.content ul li strong:first-of-type {
    color: #9CCC65; /* Vert pomme pâle */
    font-weight: bold;
}

/* Widget Cal.com */
.cal-widget {
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cal-widget iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
}

/* Section Enregistrement */
#transcriptionContainer {
    margin-top: 20px;
    padding: 10px;
    background: #f9fafc;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
}

#transcriptionContainer h3 {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #4caf50;
}

#transcriptionText {
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    font-size: 0.9em;
    color: #444;
}