/* =================================================================== */
/* STYLESHEET FINAL - PROMPTISSIME / BrIAn                 */
/* Version corrigée, nettoyée et non conflictuelle         */
/* =================================================================== */

/* ========== VARIABLES GLOBALES ========== */
:root {
    --primary-color: #083b70;
    --secondary-color: #fcdd3d;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --container-bg: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #059669;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ========== STYLES DE BASE ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== NAVIGATION PRINCIPALE ========== */
.main-nav {
    position: sticky;
    top: 0;
    background: var(--container-bg);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 100px;
    width: auto;
}

/* ========== MENU BURGER & OVERLAY ========== */
.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    z-index: 1003;
    -webkit-tap-highlight-color: transparent;
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Overlay supprimé - plus besoin avec le gestionnaire de clic JavaScript */

.close-menu-btn {
    display: none;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1003; /* Au-dessus du menu (z-index: 1002) */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.close-menu-btn:hover {
    transform: scale(1.1);
    background: #f3f4f6;
}

.close-menu-btn.show {
    display: block;
}

/* ========== NAVIGATION DESKTOP ========== */
@media (min-width: 769px) {
    .nav-links {
        display: flex;
        gap: 20px;
        align-items: center;
        list-style: none;
    }
    
    .nav-item {
        position: relative;
    }
    
    .nav-link {
        color: var(--text-color);
        text-decoration: none;
        font-weight: 400;
        font-size: 14px;
        padding: 10px 20px;
        border-radius: 25px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .nav-link:hover {
        background: rgba(30, 58, 138, 0.1);
        color: var(--primary-color);
    }
    
    .dropdown-arrow {
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .nav-item:hover .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        min-width: 220px;
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        border: 1px solid var(--border-color);
        padding: 5px;
    }

    .nav-item:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-link {
        display: block;
        padding: 12px 20px;
        color: var(--text-color);
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-size: 14px;
    }

    .dropdown-link:hover {
        background: var(--primary-color);
        color: white;
    }
}

/* ========== NAVIGATION MOBILE - VERSION CORRIGÉE ========== */
@media (max-width: 768px) {
    .burger-menu {
        display: flex !important;
    }
    
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 80% !important;
        max-width: 350px !important;
        height: 100vh !important;
        background: white !important;
        flex-direction: column !important;
        padding: 90px 0 30px 0 !important;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2) !important;
        overflow-y: auto !important;
        list-style: none !important;
        z-index: 1002 !important;
        display: flex !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links.active {
        right: 0 !important;
    }
    
    .nav-item {
        width: 100% !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
    
    .nav-link {
        font-size: 18px !important;
        font-weight: 500 !important;
        padding: 22px 30px !important;
        width: 100% !important;
        border-radius: 0 !important;
        color: var(--text-color) !important;
        text-decoration: none !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .nav-link:hover,
    .nav-link:focus,
    .nav-link:active {
        background: linear-gradient(135deg, var(--primary-color), #065baa) !important;
        color: white !important;
        transform: translateX(5px) !important;
    }

    .dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        background: #f8fafc !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.4s ease !important;
        display: block !important;
    }

    .nav-item.mobile-open .dropdown {
        max-height: 350px !important;
    }

    .nav-item.mobile-open .dropdown-arrow {
        transform: rotate(180deg) !important;
        color: var(--primary-color) !important;
    }

    .dropdown-link {
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 18px 50px !important;
        border-bottom: 1px solid #e2e8f0 !important;
        font-size: 16px !important;
        color: #64748b !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
    }

    .dropdown-link:hover,
    .dropdown-link:active {
        background: var(--primary-color) !important;
        color: white !important;
        transform: translateX(8px) !important;
    }

    .dropdown-link:last-child {
        border-bottom: none !important;
    }
}

/* ========== HEADER & CONTENU PRINCIPAL ========== */
.header {
    background: linear-gradient(360deg, #083b70 0, #065baa 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    padding: 60px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.header h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.header .subtitle {
    color: rgba(255,255,255,0.95);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255,255,255,0.15);
    padding: 20px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    color: white;
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.services-section {
    padding: 0px 20px 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.section-title p {
    font-size: 1.2rem;
    color: #333333;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--container-bg);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    display: inline-block;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background-color: #FCDD3D !important;
}

.service-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: #333333;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.service-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    color: #083b70;
}

.service-icon img {
    width: 150px;
}

.service-icon-emoji {
    font-size: 5rem;
    line-height: 1;
}

.service-features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.2rem;
}

.cta-button {
    background: linear-gradient(360deg, #083b70 0, #065baa 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.5);
}

.cta-button:active {
    transform: translateY(0);
}

.benefits-section {
    background-color: #083B70 !important;
    padding: 80px 20px;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
}

.benefit-icon {
    width: 100px;
    height: 100px;
    background: var(--container-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 25px;
    box-shadow: var(--shadow);
}

.benefit-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.benefit-item h4 {
    font-size: 1.5rem;
    color: #FCDD3D!important;
    margin-bottom: 15px;
    font-weight: 700;
}

.benefit-item p {
    color: #fff;
    line-height: 1.6;
}

.footer {
    background: #fff;
    color: white;
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    max-width: 300px;
    margin-bottom: 0px;
}

.footer p {
    margin-bottom: 10px;
    color:#333333 !important;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color:#004960 !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(153, 153, 153, 0.15);
    padding-top: 20px;
    color:#333333 !important;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: scale(1.1);
    background: #3b82f6;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== PAGES APPLICATIONS (AUTH, APP, etc.) ========== */
.auth-page-section {
    padding: 80px 20px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-content {
    background: var(--container-bg);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-width: 600px;
    width: 100%;
}

.auth-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.auth-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.auth-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.auth-form h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.auth-form p {
    color: #64748b;
    margin-bottom: 30px;
}

.google-btn {
    background: white;
    border: 2px solid var(--border-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.app-section {
    padding: 40px 20px 80px;
    min-height: 100vh;
}

.app-header {
    background: linear-gradient(135deg, var(--primary-color), #065baa);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    border-radius: 24px 24px 0 0;
    margin-bottom: 0;
}

.app-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.app-header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.app-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0;
}

.user-info {
    background: rgba(255,255,255,0.2);
    padding: 10px 15px;
    border-radius: 25px;
    color: white;
    font-size: 14px;
    position: absolute;
    top: 20px;
    left: 20px;
    backdrop-filter: blur(10px);
}

.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

.app-content {
    background: var(--container-bg);
    padding: 40px;
    border-radius: 0 0 24px 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    border-top: none;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    background: var(--container-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(8, 59, 112, 0.1);
}

.form-hint {
    font-size: 13px;
    color: #64748b;
    margin-top: 5px;
}

.required {
    color: var(--error-color);
}

.btn {
    padding: 15px 30px;
    margin: 10px 0;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #065baa);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    box-shadow: var(--shadow);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.status-card {
    padding: 30px;
    border-radius: 16px;
    margin: 25px 0;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.status-card h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.status-card.recording {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: var(--error-color);
    animation: pulse 2s infinite;
}

.status-card.paused {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: var(--warning-color);
}

.status-card.processing {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: var(--primary-color);
}

.status-card.success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: var(--success-color);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* ========== INDICATEUR D'ÉTAT RÉSEAU ========== */
.network-status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #94a3b8; /* Gris par défaut */
    margin-left: 10px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.4);
}

/* État : Envoi en cours */
.network-status-indicator.sending {
    background-color: #3b82f6; /* Bleu */
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

/* État : Retry */
.network-status-indicator.retrying {
    background-color: #f59e0b; /* Orange */
    animation: pulse-orange 1.5s infinite;
}

@keyframes pulse-orange {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

/* État : Succès */
.network-status-indicator.success {
    background-color: #10b981; /* Vert */
    animation: pulse-success 0.5s ease-out;
}

@keyframes pulse-success {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* État : Échec */
.network-status-indicator.failed {
    background-color: #ef4444; /* Rouge */
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.phase-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.phase-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-color);
    z-index: 1;
    transform: translateY(-50%);
    border-radius: 2px;
}

.phase-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 2;
    transition: width 0.5s ease;
    transform: translateY(-50%);
    border-radius: 2px;
    width: 0%;
}

.phase {
    background: var(--container-bg);
    border: 3px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #64748b;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.phase.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(8, 59, 112, 0.2);
}

.phase.completed {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.phase-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.timer {
    font-size: 48px;
    font-weight: 700;
    margin: 20px 0;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recording-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.chunk-status {
    background: rgba(8, 59, 112, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(8, 59, 112, 0.2);
}

.chunk-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.chunk-info h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 18px;
}

.chunk-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.chunk-badge {
    background: var(--border-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chunk-badge.sent {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.chunk-badge.sending {
    background: rgba(8, 59, 112, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    animation: pulse 1s infinite;
}

.chunk-badge.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.chunk-timer {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 10px;
}

.suggestions-panel {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.suggestions-panel h4 {
    color: #1e293b;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.suggestion-item {
    background: white;
    padding: 16px 20px 16px 50px;
    border-radius: 12px;
    margin: 12px 0;
    border-left: 4px solid #3b82f6;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.suggestion-item::before {
    content: '💡';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    transition: transform 0.3s ease;
}

.suggestion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.12);
    border-left-width: 5px;
}

.suggestion-item:hover::before {
    transform: translateY(-50%) scale(1.2);
}

.suggestion-item[data-priority="high"] {
    border-left-color: #ef4444;
}

.suggestion-item[data-priority="high"]::before {
    content: '🔥';
}

.suggestion-item[data-priority="medium"] {
    border-left-color: #f59e0b;
}

.suggestion-item[data-priority="medium"]::before {
    content: '⚡';
}

.suggestion-item[data-priority="low"] {
    border-left-color: #10b981;
}

.suggestion-item[data-priority="low"]::before {
    content: '✨';
}

.suggestion-time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meeting-info,
.contract-info,
.audio-info {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 25px;
    border-radius: 16px;
    margin: 25px 0;
    border: 1px solid var(--border-color);
}

.meeting-info h4,
.contract-info h4,
.audio-info h4 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
}

.meeting-info p,
.contract-info p,
.audio-info p {
    margin: 8px 0;
    color: #475569;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.processing-steps {
    text-align: left;
    margin: 25px 0;
}

.processing-step {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.processing-step.active {
    background: rgba(8, 59, 112, 0.1);
}

.processing-step.completed {
    background: rgba(16, 185, 129, 0.1);
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.step-icon.pending { 
    background: #9ca3af; 
}

.step-icon.active { 
    background: var(--primary-color); 
    animation: spin 1s linear infinite; 
}

.step-icon.completed { 
    background: var(--success-color); 
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.audio-preview {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 25px;
    border-radius: 16px;
    margin: 25px 0;
    border: 1px solid var(--border-color);
}

.audio-preview h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

audio {
    width: 100%;
    margin: 15px 0;
    border-radius: 12px;
}

.download-link {
    display: inline-block;
    margin: 15px 10px 15px 0;
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.download-link.secondary {
    background: var(--secondary-color);
    color: var(--text-color);
}

.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin: 25px 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(8, 59, 112, 0.02);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(8, 59, 112, 0.05);
}

.upload-area input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-area h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
    box-shadow: var(--shadow);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.error { 
    background: var(--error-color); 
}

.notification.success { 
    background: var(--success-color); 
}

.notification.info { 
    background: var(--primary-color); 
}

.notification.warning { 
    background: var(--warning-color); 
}

.rgpd-notice {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fca5a5;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    font-size: 14px;
    color: #7f1d1d;
}

.rgpd-notice h5 {
    margin: 0 0 10px 0;
    color: #991b1b;
    font-weight: 600;
}

.email-notification-card {
    background: #f0fdf4;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.email-notification-card h3 {
    color: #059669;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

.email-notification-card .main-text {
    color: #065f46;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.email-notification-card .sub-text {
    color: #065f46;
    font-size: 14px;
    opacity: 0.8;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.analysis-results {
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: var(--shadow);
}

.analysis-results h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.chunks-info {
    margin-top: 10px;
    font-size: 14px;
    color: #64748b;
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), #065baa);
    color: white;
    padding: 20px;
    text-align: center;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
}

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-end;
}

.message.user {
    justify-content: flex-end;
}

.message.ai {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.message.user .message-bubble {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 6px;
}

.message.ai .message-bubble {
    background: white;
    color: var(--text-color);
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.message-photo {
    max-width: 200px;
    border-radius: 12px;
    margin-top: 8px;
}

.chat-input {
    padding: 20px;
    background: white;
    border-top: 1px solid var(--border-color);
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.text-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.text-input:focus {
    border-color: var(--primary-color);
}

.input-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    transform: scale(1.1);
    background: #065baa;
}

.btn-icon.recording {
    background: #ef4444;
    animation: pulse 1.5s infinite;
}

.post-preview {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 12px;
    padding: 16px;
    margin: 10px 0;
}

.post-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-action {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #fbbf24;
    color: white;
}

.btn-publish {
    background: #10b981;
    color: white;
}

.btn-regenerate {
    background: #6b7280;
    color: white;
}

/* ========== CHATBOT BRIAN - STYLES CORRIGÉS ========== */
.n8n-chat {
    width: 350px !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    border-radius: 16px !important;
    z-index: 9998 !important;
    box-shadow: 0 10px 25px rgba(8, 59, 112, 0.4) !important;
    max-height: 600px !important;
}

.n8n-chat-header {
    background: linear-gradient(135deg, #083b70, #065baa) !important;
    color: white !important;
    padding: 15px 20px !important;
    border-radius: 16px 16px 0 0 !important;
}

.n8n-chat-messages {
    font-size: 14px !important;
    padding: 15px !important;
    background: #f8fafc !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

.chat-window-toggle,
.n8n-chat-toggle {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
    z-index: 9999 !important;
    background-image: url('https://www.promptissime.fr/wp-content/uploads/2025/06/hello-brian.png') !important;
    background-size: 70% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: #fff !important;
    border-radius: 50% !important;
    border: 3px solid var(--primary-color) !important;
    box-shadow: 0 6px 20px rgba(8, 59, 112, 0.4) !important;
    transition: transform 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
}

.chat-window-toggle svg,
.n8n-chat-toggle svg {
    display: none !important;
}

.chat-window-toggle:hover,
.n8n-chat-toggle:hover {
    transform: scale(1.1) !important;
}

/* ========== RESPONSIVE MOBILE - VERSION FINALE ========== */
@media (max-width: 768px) {
    /* Services grid mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat {
        padding: 15px 20px;
    }
    
    /* Scroll to top mobile */
    .scroll-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
    }

    /* Chatbot mobile - masquage intelligent */
    .n8n-chat {
        width: 95vw !important;
        max-width: 380px !important;
        height: 70vh !important;
        bottom: 10px !important;
        right: 50% !important;
        transform: translateX(50%) !important;
        left: auto !important;
    }

    .chat-window-toggle,
    .n8n-chat-toggle {
        width: 55px !important;
        height: 55px !important;
        bottom: 15px !important;
        right: 15px !important;
    }

    /* Applications mobile */
    .app-section {
        padding: 20px 10px 40px;
    }

    .app-header {
        padding: 20px;
        border-radius: 16px 16px 0 0;
    }

    .app-logo {
        max-width: 150px;
    }

    .app-header h1 {
        font-size: 1.5rem;
    }

    .app-header p {
        font-size: 1rem;
    }

    .app-content {
        padding: 20px;
        border-radius: 0 0 16px 16px;
    }
    
    .auth-content {
        padding: 40px 20px;
        margin: 0 10px;
    }
    
    .chunk-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .recording-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .phase-labels {
        font-size: 12px;
    }
    
    .user-info,
    .logout-btn {
        position: static !important;
        margin: 8px auto !important;
        display: block !important;
        text-align: center !important;
        max-width: 200px !important;
        padding: 8px 15px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
    }
    
    .chat-container {
        height: auto !important;
        min-height: 70vh !important;
        max-height: 85vh !important;
        margin: 10px !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    }

    .chat-header {
        padding: 15px 20px !important;
    }

    .chat-header h2 {
        font-size: 1.3rem !important;
        margin: 0 !important;
    }

    .chat-messages {
        padding: 15px !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .message-bubble {
        max-width: 85% !important;
        font-size: 13px !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .post-preview {
        padding: 15px !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .post-actions {
        gap: 8px !important;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .btn-action {
        padding: 8px 12px !important;
        font-size: 12px !important;
        flex: 1;
        min-width: 80px;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 40px;
    }

    .chat-input {
        padding: 15px !important;
    }

    .input-group {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    .input-buttons {
        gap: 10px !important;
        justify-content: space-around !important;
        order: 1 !important;
        padding-bottom: 8px;
        border-bottom: 1px solid #f1f5f9;
    }

    .btn-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 16px !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .text-input {
        width: 100% !important;
        padding: 15px 18px !important;
        font-size: 16px !important;
        order: 2 !important;
        resize: none;
        min-height: 50px;
    }

    .text-input:focus {
        box-shadow: 0 0 0 3px rgba(8, 59, 112, 0.1) !important;
    }

    .notification {
        max-width: 90% !important;
        margin: 0 5% 10px 5% !important;
        right: 0 !important;
        left: 0 !important;
        transform: translateY(-100%) !important;
        top: 20px !important;
    }

    .notification.show {
        transform: translateY(0) !important;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important;
        padding: 18px 20px !important;
    }
}

/* ========== TRÈS PETITS ÉCRANS ========== */
@media (max-width: 480px) {
    .nav-links {
        width: 90% !important;
    }

    .chat-window-toggle,
    .n8n-chat-toggle {
        width: 50px !important;
        height: 50px !important;
    }

    .n8n-chat {
        width: 95vw !important;
        max-width: 95vw !important;
        left: 2.5vw !important;
        right: 2.5vw !important;
        transform: none !important;
    }
}

/* ========== OPTIMISATIONS TACTILES ========== */
@media (hover: none) {
    .btn:hover,
    .nav-link:hover {
        transform: none !important;
    }

    .btn:active,
    .nav-link:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }
}

/* ========== MASQUAGE MOBILE - HEADER ET CHATBOT ========== */

@media (max-width: 768px) {
    /* Menu burger actif sur mobile */
    .burger-menu {
        display: flex !important;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 280px;
        background: white;
        flex-direction: column;
        padding: 4rem 2rem 2rem;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1002 !important; /* Au-dessus de l'overlay (z-index: 1001) */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-item {
        margin: 0.5rem 0;
        width: 100%;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        border-left: 3px solid var(--primary);
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

    /* Chatbot - masqué complètement sur mobile */
    .n8n-chat,
    .chat-window-toggle,
    .n8n-chat-toggle,
    [class*="n8n-chat"],
    [id*="chat"]:not(.chat-container):not(.chat-messages):not(.chat-input) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
    
    /* Ajustements pour compenser l'absence du header */
    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Header principal (hero) - ajuster l'espacement */
    .header {
        margin-top: 0 !important;
        padding-top: 80px !important;
    }
    
    /* Applications - ajuster l'espacement */
    .app-section {
        padding-top: 60px !important;
    }
    
    /* Page d'auth - ajuster l'espacement */
    .auth-page-section {
        padding-top: 60px !important;
        min-height: 100vh !important;
    }
    
    /* Footer - ajuster pour compenser l'absence du chatbot */
    .footer {
        padding-bottom: 40px !important;
    }
}

/* ========== MODES DE SUGGESTION ========== */
.suggestion-container {
    text-align: center;
    margin: 20px 0;
}

.mode-selector {
    margin-top: 15px;
    text-align: center;
}

.mode-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.mode-toggles {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-toggle {
    padding: 8px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    background: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    color: var(--text-color);
}

.mode-toggle:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mode-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(8, 59, 112, 0.3);
}

.mode-toggle.active:hover {
    background: #065baa;
    border-color: #065baa;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .mode-toggles {
        gap: 6px;
    }
    
    .mode-toggle {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* ===== VISUALISEUR AUDIO BRIAN - STYLE DISCRET ===== */
.audio-visualizer {
    width: 100%;
    max-width: 320px;
    height: 40px;
    background: linear-gradient(90deg, #10b981 0%, #10b981 var(--audio-level, 0%), #f3f4f6 var(--audio-level, 0%), #f3f4f6 100%);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 10px auto;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.audio-visualizer.recording {
    opacity: 1;
    transform: translateY(0);
    border-color: #10b981;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.1);
}

.visualizer-canvas {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: transparent;
}

.audio-info {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    z-index: 10;
}

.status-indicator {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s ease;
}

.status-indicator.recording {
    background: #10b981;
    animation: subtle-pulse 2s infinite;
}

@keyframes subtle-pulse {
    0%, 100% { 
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: translateY(-50%) scale(1.1);
    }
}

/* Zone du canvas ajustée pour laisser place aux indicateurs */
.visualizer-canvas {
    margin-left: 20px;
    margin-right: 12px;
    width: calc(100% - 32px);
}

/* Style responsive pour mobile */
@media (max-width: 768px) {
    .audio-visualizer {
        max-width: 280px;
        height: 32px;
        padding: 6px 10px;
        margin: 8px auto;
    }
    
    .audio-info {
        font-size: 9px;
        right: 6px;
        top: 1px;
    }
    
    .status-indicator {
        width: 6px;
        height: 6px;
        left: 6px;
    }
    
    .visualizer-canvas {
        margin-left: 16px;
        margin-right: 24px;
        width: calc(100% - 40px);
    }
}

/* Animation d'apparition très douce */
.audio-visualizer.fade-in {
    animation: gentle-fade-in 0.5s ease-out;
}

@keyframes gentle-fade-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quand pas d'audio détecté */
.audio-visualizer.no-audio {
    border-color: #fecaca;
    background: #fef2f2;
}

.audio-visualizer.no-audio .status-indicator {
    background: #ef4444;
    animation: none;
}