body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 40px 20px;
    background-color: #eef2f7;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}
.container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}
h1 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 2em;
}
.status-message {
    margin-top: 25px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #ffffff;
    background-color: #aeb6bf; /* Gris par défaut */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.status-message.connected {
    background-color: #28a745; /* Vert pour connecté */
}
.status-message.error {
    background-color: #dc3545; /* Rouge pour erreur */
}
button {
    padding: 12px 25px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
button#connectBtn {
    background-color: #007bff;
    color: white;
}
button#connectBtn:hover:not(:disabled) {
    background-color: #0056b3;
}
button#connectBtn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}
button.audio-toggle {
    background-color: #ffc107;
    color: #333;
}
button.audio-toggle:hover:not(:disabled) {
    background-color: #e0a800;
}
button.audio-toggle.muted {
    background-color: #6c757d; /* Gris pour coupé */
    color: white;
}
button.audio-toggle.muted:hover:not(:disabled) {
    background-color: #5a6268;
}

/* Styles spécifiques pour le bouton de reprise iOS */
.ios-fix-button {
    background-color: #dc3545; /* Rouge d'attention */
    color: white;
    animation: pulse 1s infinite alternate; /* Animation de pulsation */
}
.ios-fix-button:hover {
    background-color: #c82333;
}
@keyframes pulse {
    from { opacity: 1; }
    to { opacity: 0.7; }
}

#audioContainer {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    background-color: #fcfcfc;
    border-radius: 8px;
    min-height: 80px;
    text-align: center;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#audioContainer audio {
    width: 100%;
    max-width: 300px;
    margin-top: 15px;
    display: block; /* S'assure que l'élément prend sa propre ligne */
}
.audio-stream-info {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}