:root {
    /* Couleurs principales MMPB */
    --mmpb-primary: #0a4d8f;
    --mmpb-primary-dark: #063566;
    --mmpb-secondary: #00d4ff;
    --mmpb-accent: #00c853;
    --mmpb-danger: #dc3545;
    --mmpb-warning: #ffc107;
    
    --mmpb-dark: #1a1d3f;
    --mmpb-light: #f8f9fa;
    --mmpb-white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0a4d8f 0%, #00d4ff 100%);
    --gradient-success: linear-gradient(135deg, #00c853 0%, #00d4ff 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--mmpb-light);
    padding-top: 76px; /* Hauteur navbar fixe */
    color: #333;
}

/* ========== NAVBAR FIXE ========== */
.navbar-custom {
    background: var(--mmpb-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 0.75rem 0;
}

.navbar-brand-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 0.75rem;
}

/* Boutons personnalisés */
.btn-primary-mmpb {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary-mmpb:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(10, 77, 143, 0.25);
    color: white;
}

.btn-outline-primary-mmpb {
    border: 2px solid var(--mmpb-primary);
    color: var(--mmpb-primary);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s;
    background: transparent;
}

.btn-outline-primary-mmpb:hover {
    background: var(--mmpb-primary);
    color: white;
    border-color: var(--mmpb-primary);
}

/* Cards modernes */
.card-modern {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    background: white;
    height: 100%;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Footer */
footer {
    background: var(--mmpb-dark);
    color: rgba(255,255,255,0.85);
    margin-top: 4rem;
}

footer a {
    color: var(--mmpb-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

footer a:hover {
    color: var(--mmpb-accent);
}

/* Texte gradient */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Styles Spécifiques App Vocal/PDF --- */

.lang-option {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.lang-option:hover {
    border-color: var(--mmpb-secondary);
    transform: translateY(-2px);
}

.lang-option.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--mmpb-primary);
}

.lang-flag {
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

.text-box, .translation-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    min-height: 180px;
    max-height: 350px;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    resize: vertical;
    outline: none;
    width: 100%;
}

.text-box:focus, .translation-box:focus {
    border-color: var(--mmpb-secondary);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.status {
    padding: 12px 20px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.status.waiting { background: #e3f2fd; color: #0a4d8f; }
.status.listening { background: #e8f5e9; color: #00c853; animation: pulse 1.5s infinite; }
.status.error { background: #ffebee; color: #dc3545; }
.status.processing { background: #f3e5f5; color: #7b1fa2; animation: pulse 1.5s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Upload Zone PDF */
.upload-zone {
    border: 3px dashed var(--mmpb-secondary);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    background: #e9ecef;
    border-color: var(--mmpb-primary);
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Délai pour les éléments en cascade */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Hover effects footer */
.hover-white:hover {
    color: white !important;
    text-decoration: underline !important;
}

/* Image de profil */
.profile-img {
    transition: transform 0.3s ease;
}
.profile-img:hover {
    transform: scale(1.05);
}