
:root {
    --primary-color: #0a2540;
    --secondary-color: #2f6bff;
    --accent-color: #38bdf8;
    --accent-dark: #1d4ed8;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-light: #f1f5f9;
    --bg-ink: #0b1220;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-brand span {
    color: var(--secondary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-dark));
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.btn-outline-primary-custom {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s;
}

.btn-outline-primary-custom:hover {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(47, 107, 255, 0.25);
    transform: translateY(-2px);
}

.btn-outline-on-hero {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    padding: 0.85rem 2rem;
    line-height: 1.2;
}

.btn-outline-on-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* Hero */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

.btn-hero {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-hero:focus-visible {
    outline: 3px solid rgba(47, 107, 255, 0.4);
    outline-offset: 3px;
}

/* Companies Section */
.features-section {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.12), transparent 55%),
                radial-gradient(circle at 90% 80%, rgba(47, 107, 255, 0.12), transparent 45%);
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
    border: none;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(47, 107, 255, 0.25);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
    margin-bottom: 0;
}

.company-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(47, 107, 255, 0.08);
    color: var(--secondary-color);
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.company-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.company-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.company-list li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-bottom: 0.65rem;
}

.company-list i {
    color: var(--secondary-color);
    margin-top: 0.2rem;
}

/* Focus Section */
.focus-section {
    padding: 80px 0;
    background: white;
}

.focus-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2.2rem;
    height: 100%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.focus-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.focus-card p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    aspect-ratio: 4 / 3;
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.8rem;
    color: var(--text-light);
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(47, 107, 255, 0.08), rgba(56, 189, 248, 0.08));
}

.gallery-placeholder i {
    font-size: 2.4rem;
    color: var(--secondary-color);
}

.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0), rgba(11, 18, 32, 0.75));
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* Commitment Section */
.commit-section {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
}

.commit-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    height: 100%;
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Contact Form Section */
.contact-section {
    padding: 80px 0;
    background: white;
    position: relative;
}

.contact-section .section-title {
    margin-bottom: 0.5rem;
}

.contact-form-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    max-width: 640px;
    margin: 0 auto;
}

.contact-form-card .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 0.65rem 1rem;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}

.contact-form-card textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.btn-contact-submit {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-dark));
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(47, 107, 255, 0.35);
    color: white;
}

.contact-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #166534;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-success i {
    font-size: 1.5rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-ink) 0%, #14213d 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 70% 20%, rgba(56, 189, 248, 0.18), transparent 45%),
                radial-gradient(circle at 30% 80%, rgba(47, 107, 255, 0.18), transparent 50%);
    pointer-events: none;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
}

/* Responsive - section titles */
.section-title {
    font-size: 2rem;
}

/* Header - base */
.header {
    background-color: rgba(3, 52, 126, 0.9);
    background-image: url("/static/img/header_3.png");
    color: white;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.header-inner {
    max-width: 1200px;
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Wrapper : flex pour centrer le bloc titre */
.hero-title-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Titre centré : largeur 100% + text-align center (sans nowrap pour que le centrage fonctionne) */
.header .hero-title {
    width: 100%;
    max-width: 100%;
    text-align: center;
    display: block;
}

.header .hero-title .hero-title-line1,
.header .hero-title .capa {
    display: block;
}

@media (min-width: 768px) {
    .header-inner {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Header responsive: tablet and up */
@media (min-width: 576px) {
    .header {
        padding: 80px 0 100px;
    }
    .header .hero-title {
        font-size: 3rem;
    }
    .header .hero-subtitle {
        font-size: 1.2rem;
    }
    .header .btn-hero {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .header {
        padding: 100px 0;
    }
    .header .hero-title {
        font-size: 4rem;
    }
    .header .hero-subtitle {
        font-size: 1.35rem;
    }
    .header .btn-hero {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .header .hero-title {
        font-size: 4.5rem;
    }
    .header .hero-subtitle {
        font-size: 1.5rem;
    }
    .header .btn-hero {
        font-size: 1.15rem;
    }
}

/* Header responsive: mobile first (default = small screens) */
@media (max-width: 575.98px) {
    .header {
        padding: 40px 0 60px;
        min-height: 100vh;
        min-height: 100svh;
    }
    .header-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .header .hero-badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.85rem;
        display: inline-block;
        max-width: 100%;
    }
    .header .hero-title {
        font-size: 1.65rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    .header .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    .header .btn-hero,
    .header .btn-outline-on-hero {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    .header-actions {
        width: 100%;
    }
}

.capa {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-dark));
    padding: 3px 5px;
    border-radius: 5px;
    color: white;
}

.header .hero-title,
.header .hero-subtitle,
.header .btn-hero {
    animation: fadeUp 0.9s ease forwards;
    opacity: 0;
    transform: translateY(16px);
}

.header .hero-subtitle {
    animation-delay: 0.15s;
}

.header .btn-hero {
    animation-delay: 0.3s;
}

.features-section .col-md-4:nth-child(1) .feature-card,
.focus-section .col-md-4:nth-child(1) .focus-card,
.gallery-section .gallery-card:nth-child(1),
.commit-section .col-md-4:nth-child(1) .commit-card { animation-delay: 0.05s; }
.features-section .col-md-4:nth-child(2) .feature-card,
.focus-section .col-md-4:nth-child(2) .focus-card,
.gallery-section .gallery-card:nth-child(2),
.commit-section .col-md-4:nth-child(2) .commit-card { animation-delay: 0.15s; }
.features-section .col-md-4:nth-child(3) .feature-card,
.focus-section .col-md-4:nth-child(3) .focus-card,
.gallery-section .gallery-card:nth-child(3),
.commit-section .col-md-4:nth-child(3) .commit-card { animation-delay: 0.25s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.capa{
    color: yellow;
}

/* ================================================ Chat section ================================================ */

.chat-section {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
}

.chat-section .section-title {
    margin-bottom: 0.5rem;
}

.chat-wrapper {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1rem;
}

.chat-container {
    background: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    height: 75vh;
    min-height: 420px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(47, 107, 255, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d3a6e 100%);
    color: white;
    padding: 0;
    border-radius: 0;
    flex-shrink: 0;
}

.chat-header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
}

.chat-header-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.chat-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.chat-header-text strong {
    font-size: 1rem;
    font-weight: 600;
}

.chat-header-status {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 400;
}

.chat-select {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 140px;
}

.chat-select option {
    color: var(--text-dark);
    background: white;
}

.chat-box {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Message bubbles */
.chat-turn {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-turn-in {
    animation: chatMessageIn 0.4s ease forwards;
}

@keyframes chatMessageIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-turn .message {
    max-width: 85%;
    padding: 0.85rem 1.1rem;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chat-turn .message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-dark));
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-turn .message.assistant {
    align-self: flex-start;
    background: white;
    color: var(--text-dark);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom-left-radius: 4px;
}

.chat-turn .message.assistant p:last-child {
    margin-bottom: 0;
}

/* Typing indicator */
.chat-typing {
    flex-shrink: 0;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, max-height 0.25s ease;
    background: transparent;
}

.chat-typing.chat-typing-visible {
    opacity: 1;
    max-height: 80px;
}

.chat-typing-bubble {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chat-typing-dot {
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    animation: chatTypingBounce 1.2s ease-in-out infinite;
}

.chat-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatTypingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.chat-typing-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Chat form */
.chat-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: white;
    flex-shrink: 0;
}

.chat-form input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-form input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}

.chat-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-dark));
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.chat-send-btn:active {
    transform: scale(0.98);
}

.loading {
    font-size: 12px;
    color: gray;
    margin-bottom: 10px;
}

.whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
}

/* ==================== Chat style WhatsApp ==================== */
.chat-whatsapp {
    --wa-header: #075E54;
    --wa-header-secondary: #128C7E;
    --wa-bg: #ECE5DD;
    --wa-bg-pattern: #E5DDD5;
    --wa-bubble-user: #D9FDD3;
    --wa-bubble-assistant: #FFFFFF;
    --wa-send: #25D366;
    --wa-text: #303030;
    --wa-text-muted: #667781;
    --wa-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.chat-header-whatsapp {
    background: var(--wa-header) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.chat-header-whatsapp .chat-header-avatar,
.chat-header-whatsapp .chat-header-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.chat-header-whatsapp .chat-header-status {
    font-size: 0.8rem;
    opacity: 0.85;
}

.chat-select-whatsapp {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
}

.chat-box-whatsapp {
    background: var(--wa-bg) !important;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4cdc5' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding: 0.6rem 1rem 1rem !important;
    gap: 0.25rem !important;
}

.chat-turn-whatsapp {
    flex-direction: column;
    gap: 0.15rem;
}

.chat-turn-whatsapp .message-whatsapp {
    max-width: 75%;
    padding: 0.5rem 0.6rem 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: var(--wa-shadow);
    position: relative;
    border: none;
}

.chat-turn-whatsapp .message-whatsapp-user {
    align-self: flex-end;
    background: var(--wa-bubble-user) !important;
    color: var(--wa-text);
    border-bottom-right-radius: 2px;
}

.chat-turn-whatsapp .message-whatsapp-user::after {
    content: '';
    position: absolute;
    right: -6px;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 8px solid var(--wa-bubble-user);
    border-bottom: 8px solid transparent;
}

.chat-turn-whatsapp .message-whatsapp-assistant {
    align-self: flex-start;
    background: var(--wa-bubble-assistant) !important;
    color: var(--wa-text);
    border-bottom-left-radius: 2px;
}

.chat-turn-whatsapp .message-whatsapp-assistant::before {
    content: '';
    position: absolute;
    left: -6px;
    bottom: 0;
    width: 0;
    height: 0;
    border-right: 8px solid var(--wa-bubble-assistant);
    border-bottom: 8px solid transparent;
}

.chat-turn-whatsapp .message-text {
    display: block;
}

.chat-turn-whatsapp .message-text p:last-child {
    margin-bottom: 0;
}

.chat-form-whatsapp {
    background: #F0F2F5 !important;
    padding: 0.5rem 0.75rem 0.75rem !important;
    border-top: none !important;
    gap: 8px !important;
}

.chat-input-whatsapp {
    background: #FFFFFF !important;
    border-radius: 24px !important;
    padding: 0.6rem 1rem 0.6rem 1.25rem !important;
    border: none !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
}

.chat-input-whatsapp:focus {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
}

.chat-send-whatsapp {
    background: var(--wa-send) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    color: #fff !important;
    box-shadow: none !important;
}

.chat-send-whatsapp:hover {
    background: #20BD5A !important;
    transform: scale(1.05);
}

.chat-typing-whatsapp {
    background: transparent !important;
}

.chat-typing-bubble-whatsapp {
    background: var(--wa-bubble-assistant) !important;
    border: none !important;
    border-radius: 8px !important;
    border-bottom-left-radius: 2px !important;
    box-shadow: var(--wa-shadow) !important;
}

