body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    margin: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    margin-top: 20px;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 5px;
    background: #0078ff;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #005fcc;
}

.hidden {
    display: none;
}

/* POPUP RGPD */
.popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
}
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.2));
}
.input-voice {
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-btn {
    background: #0078ff;
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
}

.voice-btn:hover {
    background: #005fcc;
}
.gravite-wrapper {
    width: 100%;
    margin-bottom: 10px;
}

.gravite-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}
/* Conteneur input + micro */
.input-voice {
    display: flex;
    align-items: center;
    gap: 10px; /* espace entre input et micro */
    margin-bottom: 12px;
}

/* Champ texte large */
.input-voice input,
.input-voice textarea {
    flex: 1; /* prend toute la largeur */
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #bbb;
    border-radius: 6px;
}

/* Bouton micro rond */
.voice-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #d9d9d9;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
}

/* Effet premium au survol */
.voice-btn:hover {
    background: #c4c4c4;
    transform: scale(1.05);
}

/* Effet quand la dictée est active */
.voice-btn.recording {
    background: #ff5252 !important;
    color: white;
}
/* POPUP INSTALLATION PWA */
.install-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.install-popup.hidden {
    display: none;
}

.install-box {
    background: #111;
    color: #fff;
    padding: 25px 30px;
    border-radius: 18px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    animation: fadeIn 0.3s ease-out;
}

.install-box h2 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.install-box p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.install-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.install-buttons button {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
}

#install-yes {
    background: #b58b5a;
    color: white;
}

#install-no {
    background: #333;
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
