* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #fff;
    color: #1a202c;
    min-height: 100vh;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }

/* ========== SITE HEADER ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo img {
    height: 75px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    gap: 36px;
    flex: 1;
    justify-content: center;
}

.site-nav a {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1a202c;
    transition: color 0.15s;
}

.site-nav a:hover { color: #e53e3e; }

.btn-commencer {
    display: inline-block;
    padding: 10px 28px;
    border: 1.5px solid #1a202c;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1a202c;
    transition: all 0.2s;
}

.btn-commencer:hover {
    background: #1a202c;
    color: #fff;
}

/* ========== HERO ========== */
@keyframes blob-drift-1 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(60px, -40px) scale(1.08); }
    66%  { transform: translate(-40px, 50px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes blob-drift-2 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(-70px, 30px) scale(1.05); }
    66%  { transform: translate(50px, -50px) scale(0.97); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes blob-drift-3 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(30px, 60px) scale(1.06); }
    100% { transform: translate(0, 0) scale(1); }
}

.hero {
    background: linear-gradient(180deg, #fff5f5 0%, #ffffff 60%, #f8fafc 100%);
    padding: 60px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(229,62,62,0.09) 0%, rgba(255,245,245,0.04) 70%);
    top: -120px;
    left: -100px;
    animation: blob-drift-1 18s ease-in-out infinite;
}

.hero::after {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(229,62,62,0.07) 0%, rgba(248,250,252,0.03) 70%);
    bottom: -80px;
    right: -60px;
    animation: blob-drift-2 22s ease-in-out infinite;
}

.hero-blob-3 {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252,165,165,0.10) 0%, transparent 70%);
    filter: blur(60px);
    top: 40%;
    left: 55%;
    pointer-events: none;
    z-index: 0;
    animation: blob-drift-3 26s ease-in-out infinite;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a202c;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

@keyframes accent-shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-accent {
    background: linear-gradient(90deg, #e53e3e 0%, #ff6b6b 40%, #c0392b 70%, #e53e3e 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: accent-shimmer 4s ease-in-out infinite;
}

@keyframes bar-pulse {
    0%   { transform: scaleY(0.3); fill: #e53e3e; }
    30%  { transform: scaleY(1);   fill: #ff6b6b; }
    60%  { transform: scaleY(0.5); fill: #c0392b; }
    80%  { transform: scaleY(1.1); fill: #ff6b6b; }
    100% { transform: scaleY(0.3); fill: #e53e3e; }
}

.hero-waveform {
    display: inline-block;
    height: 28px;
    width: auto;
    vertical-align: middle;
    margin-left: 8px;
}

.hero-waveform rect {
    transform-origin: center;
    transform-box: fill-box;
    animation: bar-pulse 1.6s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.clara-presenter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.clara-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.clara-intro {
    font-size: 0.95rem;
    color: #475569;
}

.example-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #fff;
    border-radius: 999px;
    padding: 16px 28px;
    max-width: 560px;
    margin: 0 auto 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}

.example-bubble em {
    font-style: italic;
    color: #64748b;
    font-size: 0.92rem;
    text-align: center;
}

.example-wave {
    height: 18px;
    width: 44px;
    flex-shrink: 0;
}

.example-wave rect {
    transform-origin: center;
    transform-box: fill-box;
    animation: bar-pulse 1.6s ease-in-out infinite;
}

/* big-waveform : vague qui se propage en répétant par groupes de 8 */
.big-waveform rect {
    transform-origin: bottom;
    transform-box: fill-box;
    animation: bar-pulse 2s ease-in-out infinite;
}
.big-waveform rect:nth-child(8n+1) { animation-delay: 0s; }
.big-waveform rect:nth-child(8n+2) { animation-delay: 0.12s; }
.big-waveform rect:nth-child(8n+3) { animation-delay: 0.24s; }
.big-waveform rect:nth-child(8n+4) { animation-delay: 0.36s; }
.big-waveform rect:nth-child(8n+5) { animation-delay: 0.48s; }
.big-waveform rect:nth-child(8n+6) { animation-delay: 0.36s; }
.big-waveform rect:nth-child(8n+7) { animation-delay: 0.24s; }
.big-waveform rect:nth-child(8n+8) { animation-delay: 0.12s; }

/* small-waveform : même logique sur groupes de 6 */
.small-waveform rect {
    transform-origin: center;
    transform-box: fill-box;
    animation: bar-pulse 1.8s ease-in-out infinite;
}
.small-waveform rect:nth-child(6n+1) { animation-delay: 0s; }
.small-waveform rect:nth-child(6n+2) { animation-delay: 0.1s; }
.small-waveform rect:nth-child(6n+3) { animation-delay: 0.2s; }
.small-waveform rect:nth-child(6n+4) { animation-delay: 0.3s; }
.small-waveform rect:nth-child(6n+5) { animation-delay: 0.2s; }
.small-waveform rect:nth-child(6n+6) { animation-delay: 0.1s; }

@media (max-width: 900px) {
    .site-header-inner { padding: 14px 20px; gap: 16px; }
    .site-nav { gap: 20px; }
    .site-nav a { font-size: 0.75rem; }
    .hero-title { font-size: 1.6rem; }
}

@media (max-width: 600px) {
    .site-nav { display: none; }
    .btn-commencer { padding: 8px 18px; font-size: 0.72rem; }
    .hero { padding: 32px 16px 48px; }
    .hero-title { font-size: 1.4rem; }
    .hero-subtitle { font-size: 0.88rem; }
    .example-bubble { padding: 12px 16px; gap: 8px; }
    .example-bubble em { font-size: 0.8rem; }
    .example-wave { width: 30px; height: 14px; }
    #btn-record { width: 80px; height: 80px; }
    #btn-record .mic-icon { width: 28px; height: 28px; }
    .record-section { gap: 5px; }
    #record-status { font-size: 0.88rem; text-align: center; }
}

/* ========== SECTIONS ========== */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    color: #1a202c;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-title .underlined {
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 3px solid #e53e3e;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #475569;
    text-align: center;
    margin-bottom: 56px;
    line-height: 1.6;
}

/* ========== chiffres clés ========== */
.stats-section {
    background: linear-gradient(180deg, #fff 0%, #fef6f6 100%);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
}

.stat-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
    .stat-number { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .stats-section { padding: 48px 0; }
    .section-title { font-size: 1.6rem; }
}

/* ========== AVANTAGES ========== */
.advantages-section {
    background: #f8fafc;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.advantages-section::before,
.advantages-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 5% 10%, rgba(229,62,62,0.04) 2px, transparent 3px),
        radial-gradient(circle at 15% 30%, rgba(229,62,62,0.04) 3px, transparent 4px),
        radial-gradient(circle at 90% 15%, rgba(229,62,62,0.04) 2px, transparent 3px),
        radial-gradient(circle at 85% 40%, rgba(229,62,62,0.04) 3px, transparent 4px),
        radial-gradient(circle at 10% 70%, rgba(229,62,62,0.04) 3px, transparent 4px),
        radial-gradient(circle at 92% 80%, rgba(229,62,62,0.04) 2px, transparent 3px);
    pointer-events: none;
    opacity: 0.6;
}

.big-waveform {
    display: block;
    width: 100%;
    max-width: 720px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.small-waveform {
    display: block;
    width: 100%;
    max-width: 520px;
    height: 40px;
    margin: 48px auto 0;
    position: relative;
    z-index: 1;
    opacity: 0.6;
}

.advantages-title {
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    color: #1a202c;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.advantage-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #fee2e2;
    border-radius: 16px;
    padding: 24px 28px;
    transition: all 0.2s;
}

.advantage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229,62,62,0.08);
}

.advantage-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #fee2e2;
    color: #e53e3e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.advantage-icon svg {
    width: 26px;
    height: 26px;
}

.advantage-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
}

.advantage-content p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .advantages-grid { grid-template-columns: 1fr; }
    .advantages-title { font-size: 1.6rem; }
    .advantages-section { padding: 48px 0; }
}

/* ========== SITE FOOTER ========== */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 0 24px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-top {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #1e293b;
    flex-wrap: wrap;
}

.footer-logo svg {
    height: 32px;
    width: auto;
}

.footer-nav {
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.footer-nav a {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #cbd5e1;
    transition: color 0.15s;
}

.footer-nav a:hover { color: #fff; }

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.82rem;
    color: #94a3b8;
    transition: color 0.15s;
}

.footer-legal a:hover { color: #fff; }

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .footer-top { flex-direction: column; gap: 20px; }
    .footer-nav { order: 1; }
    .footer-legal { order: 2; flex-wrap: wrap; justify-content: center; }
}


/* ========== DOSSIER INFO BANNER ========== */
.dossier-info {
    margin: 16px auto 0;
    padding: 16px 20px;
    background: #fefce8;
    border: 1px solid #facc15;
    border-radius: 12px;
    max-width: 600px;
    text-align: left;
}

.dossier-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #854d0e;
    margin-bottom: 10px;
}

.dossier-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.dossier-info-item {
    font-size: 0.88rem;
    color: #475569;
}

.dossier-info-item span {
    font-weight: 600;
    color: #1e293b;
}

@media (max-width: 600px) {
    .dossier-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== BOUTON ENREGISTREMENT ========== */
.record-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0 24px;
    margin-top: 8px;
}

#btn-record {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(229, 62, 62, 0.3);
}

#btn-record .mic-icon {
    width: 36px;
    height: 36px;
}

#btn-record:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(229, 62, 62, 0.4);
}

#btn-record.recording {
    background: linear-gradient(135deg, #c53030, #9b2c2c);
    animation: pulse 1.2s infinite;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(229, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

#record-status {
    font-size: 1rem;
    color: #2d3748;
    min-height: 20px;
    font-weight: 600;
}

#record-timer {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #e53e3e;
    display: none;
}

/* ========== AUDIO PLAYER ========== */
#audio-playback {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 16px;
    display: none;
    border-radius: 10px;
}

/* ========== BOUTON TRANSCRIRE ========== */
#btn-transcribe {
    display: none;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 16px;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(229, 62, 62, 0.3);
}

#btn-transcribe:hover {
    background: linear-gradient(135deg, #c53030, #9b2c2c);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

#btn-transcribe:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

/* ========== SECTIONS RÉSULTATS ========== */
.result-section {
    margin: 16px auto 0;
    max-width: 900px;
    display: none;
    text-align: left;
}

.result-section h2 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: #2d3748;
    font-weight: 700;
}

#transcription-text {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    min-height: 60px;
    color: #4a5568;
}

/* ========== LOADER ========== */
.loader {
    display: none;
    text-align: center;
    padding: 20px;
    color: #718096;
}

.loader .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #e53e3e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader p {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========== CARTES ADRESSES ========== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.info-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}

.info-card h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #a0aec0;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.info-card p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #4a5568;
}

/* ========== TOTAUX ========== */
.totals {
    display: flex;
    gap: 16px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.totals strong {
    font-size: 1.05rem;
}

/* ========== TABLEAU OBJETS ========== */
.obj-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.obj-table thead {
    background: #f7fafc;
}

.obj-table th,
.obj-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

.obj-table th {
    font-weight: 600;
    color: #718096;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Responsive tableau objets */
@media (max-width: 600px) {
    .obj-table, .obj-table thead, .obj-table tbody, .obj-table th, .obj-table td, .obj-table tr {
        display: block;
    }

    .obj-table thead {
        display: none;
    }

    .obj-table tr {
        background: #f7fafc;
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 14px;
        border: 1px solid #e2e8f0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        align-items: center;
        position: relative;
    }

    .obj-table td {
        padding: 0;
        border: none;
        font-size: 0.85rem;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .obj-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #718096;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    /* Objet : pleine largeur */
    .obj-table td[data-label="Objet"] {
        grid-column: 1 / -1;
    }
    .obj-table td[data-label="Objet"] .obj-nom {
        min-width: 0;
        width: 100%;
    }

    /* Catégorie : pleine largeur */
    .obj-table td[data-label="Catégorie"] {
        grid-column: 1 / -1;
    }

    /* Inputs ajustés */
    .obj-table .obj-input {
        width: 100%;
        max-width: 100%;
        font-size: 14px;
        padding: 8px 10px;
    }
    .obj-table .obj-qte,
    .obj-table .obj-vol,
    .obj-table .obj-poids {
        max-width: 100%;
    }

    /* Vol total / Poids total : lecture seule */
    .obj-table td.obj-vol-total,
    .obj-table td.obj-poids-total {
        background: #fff;
        border-radius: 6px;
        padding: 6px 8px;
        font-weight: 600;
        font-size: 0.85rem;
    }

    /* Bouton supprimer : coin haut-droit */
    .obj-table td:last-child {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
    }
    .obj-table td:last-child::before { display: none; }

    .btn-add-object {
        width: 100%;
        text-align: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .totals {
        flex-direction: column;
        gap: 8px;
    }
}

/* ========== BADGES CATÉGORIES ========== */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge-meuble { background: #fff5f5; color: #e53e3e; }
.badge-electromenager { background: #fefcbf; color: #975a16; }
.badge-carton { background: #edf2f7; color: #4a5568; }
.badge-objet_fragile { background: #fed7d7; color: #c53030; }
.badge-autre { background: #e9d8fd; color: #6b46c1; }

/* ========== DEVIS ========== */
.devis-total {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
}

.devis-total-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
    margin-bottom: 4px;
    font-weight: 600;
}

.devis-total-price {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
}

.devis-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.devis-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #edf2f7;
}

.devis-table .price {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.devis-table .subtotal td {
    border-top: 2px solid #e2e8f0;
    font-weight: 600;
}

.devis-table .grand-total td {
    background: #f7fafc;
    font-weight: 700;
    font-size: 1rem;
    border-top: 2px solid #e53e3e;
}

/* Responsive devis */
@media (max-width: 600px) {
    .devis-table td {
        padding: 8px 4px;
        font-size: 0.8rem;
    }

    .devis-total-price {
        font-size: 1.8rem;
    }
}

/* ========== RECOMMANDATIONS ========== */
.recommandations {
    background: #fffff0;
    border: 1px solid #fefcbf;
    border-radius: 12px;
    padding: 14px 16px;
}

.recommandations h3 {
    font-size: 0.85rem;
    color: #975a16;
    margin-bottom: 8px;
    font-weight: 700;
}

.recommandations ul {
    margin: 0;
    padding-left: 18px;
}

.recommandations li {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #744210;
}

/* ========== RÉSUMÉ CLIENT ========== */
.summary-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    font-size: 0.85rem;
    line-height: 1.7;
}

.summary-content h3 {
    color: #2d3748;
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.summary-content h3:first-child {
    margin-top: 0;
}

.summary-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 0.8rem;
}

.summary-content th,
.summary-content td {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.summary-content th {
    background: #f7fafc;
    font-weight: 600;
}

.summary-content ul {
    padding-left: 18px;
    margin: 8px 0;
}

.summary-content li {
    margin-bottom: 4px;
}

/* Responsive résumé */
@media (max-width: 600px) {
    .summary-content {
        padding: 14px;
        overflow-x: auto;
    }

    .summary-content table {
        font-size: 0.75rem;
        min-width: 100%;
    }

    .summary-content th,
    .summary-content td {
        padding: 6px;
    }
}

/* ========== BOUTON IMPRIMER ========== */
.btn-print {
    display: none;
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    border: 2px solid #e53e3e;
    border-radius: 12px;
    background: #fff;
    color: #e53e3e;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-print:hover {
    background: #e53e3e;
    color: #fff;
}

/* ========== QUESTIONS MANQUANTES ========== */
.questions-intro {
    color: #718096;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.question-group {
    margin-bottom: 14px;
}

.question-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.question-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.question-input:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

select.question-input {
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.btn-submit-answers {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: none;
    font-family: inherit;
}

.btn-submit-answers:hover {
    background: linear-gradient(135deg, #c53030, #9b2c2c);
}

/* ========== FORMULAIRE CLIENT ========== */
#client-info-section {
    margin-top: 20px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 12px;
    border-left: 4px solid #e53e3e;
}

#client-info-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

#client-info-section p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 14px;
}

.client-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.form-group input {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

@media (max-width: 600px) {
    .client-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #client-info-section {
        margin-top: 16px;
        padding: 12px;
    }
}

/* ========== MESSAGE DE CONFIRMATION ========== */
.confirmation-message {
    text-align: center;
    padding: 40px 20px;
    background: #f0f9ff;
    border-radius: 16px;
    border: 2px solid #3b82f6;
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.confirmation-message h2 {
    color: #1e40af;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.confirmation-text {
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.confirmation-actions {
    margin-top: 30px;
}

.btn-restart {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-restart:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

@media (max-width: 600px) {
    .confirmation-message {
        padding: 30px 16px;
    }

    .confirmation-message h2 {
        font-size: 1.5rem;
    }

    .confirmation-text {
        font-size: 1rem;
    }
}

/* ========== FORMULAIRE CLIENT (EMAIL, NOM, PRÉNOM) ========== */
#client-info-section {
    max-width: 600px;
    margin: 0 auto;
}

#client-info-section h2 {
    color: #2d3748;
    margin-bottom: 12px;
}

.info-text {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1rem;
}

#client-info-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#client-info-form input {
    padding: 12px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

#client-info-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#client-info-form input::placeholder {
    color: #a0aec0;
}

#btn-save-inventory {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

#btn-save-inventory:hover:not(:disabled) {
    background: linear-gradient(135deg, #c53030, #9b2c2c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

#btn-save-inventory:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    #client-info-section {
        padding: 0;
    }

    #client-info-form input {
        padding: 12px 14px;
        font-size: 16px;
    }
}

/* ========== INVENTORY CARDS (nouveau design) ========== */
#extraction-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    max-width: 720px;
    margin: 20px auto 0;
    text-align: left;
}

#extraction-section > h2 {
    display: none;
}

.inventory-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.inventory-badge {
    display: inline-flex;
    align-items: center;
    background: #fee2e2;
    color: #c53030;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
}

.inventory-restart {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.15s;
}

.inventory-restart:hover {
    color: #e53e3e;
}

.inventory-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.inventory-title-row h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
}

.inventory-count {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.obj-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.obj-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.15s;
}

.obj-card:hover {
    border-color: #fca5a5;
    box-shadow: 0 2px 8px rgba(229,62,62,0.06);
}

.obj-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fee2e2;
    color: #e53e3e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.obj-card-icon svg {
    width: 20px;
    height: 20px;
}

.obj-card-name {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
}

.obj-card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.obj-card-qty {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.obj-card-cat {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fee2e2;
    color: #c53030;
}

.obj-card-cat-meuble       { background: #fee2e2; color: #c53030; }
.obj-card-cat-electromenager { background: #dbeafe; color: #1d4ed8; }
.obj-card-cat-carton       { background: #ffedd5; color: #c2410c; }
.obj-card-cat-objet_fragile { background: #fef3c7; color: #b45309; }
.obj-card-cat-autre        { background: #f1f5f9; color: #475569; }

.inventory-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-modify-inventory {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #1a202c;
    border: 1.5px solid #e2e8f0;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-modify-inventory:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.btn-validate-inventory {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    border: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(229,62,62,0.25);
}

.btn-validate-inventory:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(229,62,62,0.35);
}

/* ========== FORMULAIRE FINALISER (redesign) ========== */
#client-info-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px 28px;
    border-left: 4px solid #e53e3e;
    max-width: 720px;
    margin: 24px auto 0;
    text-align: left;
}

#client-info-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
}

#client-info-section .info-text {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 18px;
}

#client-info-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#client-info-form input {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    outline: none;
    transition: all 0.15s;
}

#client-info-form input:focus {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229,62,62,0.1);
}

#client-info-form #btn-save-inventory,
#client-info-form .btn-submit {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(229,62,62,0.25);
    margin-top: 6px;
    width: auto;
}

#client-info-form #btn-save-inventory::before,
#client-info-form .btn-submit::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: -2px;
}

#client-info-form #btn-save-inventory:hover,
#client-info-form .btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(229,62,62,0.35);
}

/* ========== RESPONSIVE GLOBAL ========== */
@media (max-width: 600px) {
    #extraction-section,
    #client-info-section {
        padding: 16px 18px;
        margin-left: 0;
        margin-right: 0;
    }
    .inventory-top { flex-wrap: wrap; gap: 8px; }
    .obj-card { padding: 10px 12px; gap: 10px; }
    .obj-card-name { font-size: 0.92rem; }
    .obj-card-meta { gap: 6px; }
    .inventory-actions { flex-direction: column-reverse; align-items: stretch; }
    .btn-modify-inventory,
    .btn-validate-inventory { justify-content: center; }

    .result-section {
        margin: 12px 0 0;
    }

    #btn-transcribe {
        width: 100%;
    }

    #audio-playback {
        width: 100%;
    }

    .record-section {
        padding: 16px 0 20px;
    }
}

/* Autocomplétion d'adresse */
.autocomplete-wrapper { position: relative; }
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    font-size: 14px;
}
.autocomplete-list li {
    padding: 10px 14px;
    cursor: pointer;
    color: #2d3748;
    border-bottom: 1px solid #f1f5f9;
}
.autocomplete-list li:last-child { border-bottom: none; }
.autocomplete-list li:hover { background: #fff5f5; color: #e53e3e; }

/* Édition d'adresse dans les cartes */
.address-display {
    display: flex; align-items: center; gap: 8px; justify-content: space-between;
}
.address-text { flex: 1; min-width: 0; word-break: break-word; }
.btn-edit-address {
    background: #fff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-size: 13px;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
    color: #e53e3e;
}
.btn-edit-address:hover {
    background: #e53e3e; color: #fff; border-color: #e53e3e;
    transform: scale(1.05);
}

.address-edit {
    margin: 10px 0 6px;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.address-edit .autocomplete-wrapper { width: 100%; }
.address-edit .address-autocomplete {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #2d3748;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: all 0.15s ease;
}
.address-edit .address-autocomplete:focus {
    background: #fff;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}
.address-edit .address-autocomplete::placeholder { color: #a0aec0; }

.address-edit-actions {
    display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end;
}
.btn-save-address, .btn-cancel-address {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.15s ease;
}
.btn-save-address {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #fff;
}
.btn-save-address:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.25);
}
.btn-cancel-address {
    background: #fff; color: #718096; border-color: #e2e8f0;
}
.btn-cancel-address:hover {
    background: #f7fafc; color: #2d3748; border-color: #cbd5e0;
}

/* Message d'erreur adresse */
.address-error {
    background: #fff8f1;
    border: 1.5px solid #fbd38d;
    border-radius: 12px;
    padding: 20px 22px;
    text-align: center;
    color: #744210;
}
.address-error-icon { font-size: 32px; margin-bottom: 6px; }
.address-error h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #7b341e;
}
.address-error p {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #744210;
}
.address-error-hint {
    margin-top: 12px !important;
    padding-top: 12px;
    border-top: 1px dashed #fbd38d;
    font-size: 13px !important;
    color: #975a16 !important;
    font-style: italic;
}

/* Tableau objets éditable */
.obj-table .obj-input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    font-size: 13px;
    font-family: inherit;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    color: #2d3748;
    outline: none;
    transition: all 0.15s ease;
}
.obj-table .obj-input:focus {
    background: #fff;
    border-color: #e53e3e;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.12);
}
.obj-table .obj-qte, .obj-table .obj-vol, .obj-table .obj-poids {
    max-width: 80px;
}
.obj-table .obj-nom { min-width: 140px; }
.obj-table select.obj-input { cursor: pointer; }

.btn-del-obj {
    background: #fff;
    border: 1px solid #fed7d7;
    color: #c53030;
    width: 30px; height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.15s ease;
}
.btn-del-obj:hover {
    background: #c53030; color: #fff; border-color: #c53030;
    transform: scale(1.05);
}

.btn-add-object {
    margin-top: 14px;
    padding: 10px 20px;
    background: #fff;
    color: #e53e3e;
    border: 1.5px dashed #e53e3e;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-add-object:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #fff;
    border-style: solid;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.2);
}

.extraction-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 14px;
    margin-bottom: 30px;
}
.extraction-actions .btn-add-object { margin-top: 0; }

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #fff;
    border: 1.5px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-download-pdf:hover {
    background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.25);
}

.btn-edit-inventory {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-edit-inventory:hover {
    background: #1e293b;
    color: #fff;
    border-color: #1e293b;
    transform: translateY(-1px);
}

.btn-done-edit {
    padding: 10px 20px;
    background: #1e293b;
    color: #fff;
    border: 1.5px solid #1e293b;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-done-edit:hover {
    background: #334155;
    border-color: #334155;
}

/* Ligne question : étage + ascenseur côte à côte */
.question-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.question-row .question-input { flex: 1; min-width: 0; }
.question-row input[type="number"] { flex: 0 0 35%; }
@media (max-width: 600px) {
    .question-row { flex-direction: column; }
    .question-row input[type="number"] { flex: 1; }
}

/* Instructions sous le sous-titre */
.instructions {
    margin: 14px auto 0;
    max-width: 560px;
    font-size: 14px;
    color: #4a5568;
    background: linear-gradient(135deg, #fff5f5 0%, #ebf8ff 100%);
    border-left: 3px solid #e53e3e;
    padding: 12px 16px;
    border-radius: 8px;
    line-height: 1.55;
    text-align: center;
}
.instructions strong { color: #e53e3e; font-weight: 700; }

.record-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #a0aec0;
    text-align: center;
}

/* ── Live waveform bar ── */
#live-waveform-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 999px;
    padding: 14px 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    margin-top: 4px;
}

#live-visualizer {
    width: 180px;
    height: 40px;
    display: block;
}

#record-timer {
    font-size: 1.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #e53e3e;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

#btn-stop-analyze {
    margin-top: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(229,62,62,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

#btn-stop-analyze:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(229,62,62,0.45);
}
