@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    overflow-x: hidden;
}

/* Background subtil */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: 
        linear-gradient(90deg, rgba(41, 128, 185, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(41, 128, 185, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.circle-bg {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41, 128, 185, 0.08) 0%, transparent 70%);
    filter: blur(40px);
}

.circle-1 {
    width: 600px;
    height: 600px;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(41, 128, 185, 0.06) 0%, transparent 70%);
}

.circle-2 {
    width: 500px;
    height: 500px;
    bottom: -15%;
    right: -5%;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.05) 0%, transparent 70%);
}

.logo-text {
    width: 180px;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo-text:hover {
    transform: scale(1.08);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.connection-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #2980b9, transparent);
    position: relative;
}

.navbar-menu {
    display: flex;
    gap: 0;
    background: white;
    padding: 15px 30px;
    border-radius: 50px 0 0 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    list-style: none;
}

.navbar-menu li {
    padding: 0 20px;
    border-right: 1px solid #ecf0f1;
}

.navbar-menu li:last-child {
    border-right: none;
}

.navbar-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.navbar-menu a:hover {
    color: #2980b9;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #f39c12;
    padding-left: 10px;
}

/* Hero Section */
.hero-contact {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 150px;
    position: relative;
    z-index: 1;
}

.hero-contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-contact-title {
    font-size: 56px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-contact-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    animation: fadeInUp 1s ease;
}

/* Section principale */
.contact-section {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 50px 100px;
    position: relative;
    z-index: 1;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

/* Formulaire */
.form-container {
    animation: slideFromLeft 1s ease;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 40px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input:focus {
    outline: none;
    border-color: #2980b9;
    background: white;
    box-shadow: 0 0 0 4px rgba(41, 128, 185, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 18px;
    background: #2980b9;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.submit-button:hover {
    background: #1e5a8e;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(41, 128, 185, 0.3);
}

.submit-button:active {
    transform: scale(0.98);
}

/* Info et Map */
.info-map-container {
    animation: slideFromRight 1s ease;
}

/* Cartes d'info */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.info-card:hover {
    background: white;
    border-color: #2980b9;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(41, 128, 185, 0.15);
}

.info-icon-box {
    width: 60px;
    height: 60px;
    background: #2980b9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.info-card:hover .info-icon-box {
    background: #f39c12;
    transform: rotate(360deg);
}

.info-icon-box i {
    font-size: 24px;
    color: white;
}

.info-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.info-card-text {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Map */
.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: slideFromBottom 1.2s ease;
    margin-bottom: 30px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2c3e50;
    z-index: 10;
}

.map-badge i {
    color: #f39c12;
}

/* Réseaux sociaux */
.social-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    animation: slideFromBottom 1.4s ease;
}

.social-box-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: #2980b9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #f39c12;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablettes et écrans moyens (1024px et moins) */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-contact {
        padding-top: 120px;
        min-height: 40vh;
    }

    .hero-contact-title {
        font-size: 48px;
    }

    .contact-section {
        padding: 0 30px 80px;
        margin: 60px auto;
    }

    .navbar-menu {
        padding: 12px 20px;
    }

    .navbar-menu li {
        padding: 0 15px;
    }

    .logo-text {
        width: 160px;
    }

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

    .info-card {
        padding: 25px;
    }

    .circle-1 {
        width: 400px;
        height: 400px;
    }

    .circle-2 {
        width: 350px;
        height: 350px;
    }
}

/* Tablettes en mode portrait (768px et moins) */
@media (max-width: 768px) {
    .navbar-container {
        padding: 15px 20px;
    }

    .navbar-menu {
        display: none;
    }

    .connection-line {
        display: none;
    }

    .contact-btn {
        border-radius: 50px;
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-contact {
        padding-top: 100px;
        min-height: 35vh;
    }

    .hero-contact-title {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .hero-contact-subtitle {
        font-size: 16px;
    }

    .contact-section {
        padding: 0 20px 60px;
        margin: 40px auto;
    }

    .contact-layout {
        gap: 40px;
        margin-top: 30px;
    }

    .form-title {
        font-size: 28px;
    }

    .form-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

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

    .form-input {
        padding: 14px 16px;
        font-size: 14px;
    }

    .form-textarea {
        min-height: 120px;
    }

    .submit-button {
        padding: 16px;
        font-size: 15px;
    }

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

    .info-card {
        padding: 25px 20px;
    }

    .info-icon-box {
        width: 55px;
        height: 55px;
    }

    .info-icon-box i {
        font-size: 22px;
    }

    .info-card-title {
        font-size: 15px;
    }

    .info-card-text {
        font-size: 13px;
    }

    .map-wrapper {
        height: 300px;
        border-radius: 16px;
    }

    .map-badge {
        padding: 12px 20px;
        font-size: 14px;
    }

    .social-box {
        padding: 25px 20px;
    }

    .social-box-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .social-icons {
        gap: 12px;
    }

    .logo-text {
        width: 150px;
    }
}

/* Smartphones (480px et moins) */
@media (max-width: 480px) {
    .hero-contact {
        padding-top: 80px;
        min-height: 30vh;
    }

    .hero-contact-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-contact-subtitle {
        font-size: 15px;
        line-height: 1.5;
    }

    .contact-section {
        padding: 0 15px 50px;
        margin: 30px auto;
    }

    .contact-layout {
        gap: 35px;
        margin-top: 25px;
    }

    .form-title {
        font-size: 24px;
    }

    .form-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    .form-textarea {
        min-height: 100px;
    }

    .submit-button {
        padding: 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    .info-card {
        padding: 20px 15px;
        border-radius: 16px;
    }

    .info-icon-box {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .info-icon-box i {
        font-size: 20px;
    }

    .info-card-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .info-card-text {
        font-size: 12px;
    }

    .map-wrapper {
        height: 250px;
        border-radius: 14px;
    }

    .map-badge {
        padding: 10px 16px;
        font-size: 13px;
        top: 15px;
        left: 15px;
    }

    .map-badge i {
        font-size: 14px;
    }

    .social-box {
        padding: 20px 15px;
        border-radius: 16px;
    }

    .social-box-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .social-icons {
        gap: 10px;
    }

    .logo-text {
        width: 130px;
    }

    .navbar-container {
        padding: 12px 15px;
    }

    .contact-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Ajustement des cercles de fond */
    .circle-1 {
        width: 300px;
        height: 300px;
    }

    .circle-2 {
        width: 250px;
        height: 250px;
    }

    .bg-animation {
        background-size: 30px 30px;
    }
}

/* Très petits écrans (380px et moins) */
@media (max-width: 380px) {
    .hero-contact-title {
        font-size: 28px;
    }

    .form-title {
        font-size: 22px;
    }

    .logo-text {
        width: 120px;
    }

    .info-card {
        padding: 18px 12px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .map-wrapper {
        height: 220px;
    }

    .contact-section {
        padding: 0 12px 40px;
    }
}





/* ============================================
   CENTRER LA SECTION INFO/MAP SUR MOBILE
   ============================================ */

@media (max-width: 768px) {
    .info-map-container {
        text-align: center;
    }

    .info-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-card-text {
        text-align: center;
    }

    .map-wrapper {
        margin: 0 auto;
    }

    .social-box {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}



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

    /* === BOUTON PRINCIPAL FLOTTANT === */
    .assistant-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
    }

    .main-button {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: #2980b9;
        border: none;
        cursor: pointer;
        box-shadow: 0 6px 20px rgba(41, 128, 185, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .main-button:hover {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 10px 30px rgba(41, 128, 185, 0.5);
    }

    .main-button.active {
        transform: rotate(135deg);
        background: #e74c3c;
    }

    .main-button svg {
        width: 28px;
        height: 28px;
        fill: white;
        transition: all 0.3s ease;
    }

    .main-button.active svg {
        transform: rotate(-135deg);
    }

    .notification-badge {
        position: absolute;
        top: -3px;
        right: -3px;
        width: 20px;
        height: 20px;
        background: #f39c12;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 700;
        color: white;
        animation: badgePulse 2s infinite;
        border: 2px solid white;
    }

    @keyframes badgePulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.15); }
    }

    .ripple {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 2px solid #2980b9;
        opacity: 0;
        animation: rippleEffect 2s infinite;
    }

    .ripple:nth-child(2) {
        animation-delay: 0.5s;
    }

    .ripple:nth-child(3) {
        animation-delay: 1s;
    }

    @keyframes rippleEffect {
        0% {
            transform: scale(1);
            opacity: 0.6;
        }
        100% {
            transform: scale(2);
            opacity: 0;
        }
    }

    /* === MESSAGE INCITATIF === */
    .tooltip-message {
        position: absolute;
        bottom: 50%;
        right: 70px;
        background: white;
        padding: 10px 16px;
        border-radius: 18px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transform: translateY(50%) translateX(20px);
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        pointer-events: none;
        font-size: 12px;
    }

    .tooltip-message.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(50%) translateX(0);
    }

    .tooltip-message::after {
        content: '';
        position: absolute;
        right: -6px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 8px solid white;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
    }

    .tooltip-text {
        font-size: 12px;
        font-weight: 600;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .tooltip-text svg {
        width: 14px;
        height: 14px;
        fill: #f39c12;
    }

    .rotating-text {
        display: inline-block;
        color: #2980b9;
        font-weight: 700;
        animation: fadeInOut 4s infinite;
    }

    @keyframes fadeInOut {
        0%, 100% { opacity: 1; }
        45%, 55% { opacity: 0; }
    }

    /* === MENU OPTIONS === */
    .options-menu {
        position: absolute;
        bottom: 75px;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        opacity: 0;
        visibility: hidden;
        transform: scale(0.8);
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .options-menu.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .option-card {
        background: white;
        padding: 15px 20px;
        border-radius: 18px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid transparent;
        min-width: 240px;
        text-decoration: none;
        transform-origin: right center;
        position: relative;
    }

    .option-card:hover {
        transform: translateX(-8px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    }

    .option-card.whatsapp:hover {
        border-color: #25d366;
    }

    .option-card.chatbot:hover {
        border-color: #2980b9;
    }

    .option-icon {
        width: 45px;
        height: 45px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .option-icon svg {
        width: 22px;
        height: 22px;
        fill: white;
    }

    .whatsapp .option-icon {
        background: #25d366;
    }

    .chatbot .option-icon {
        background: #2980b9;
    }

    .option-content {
        flex: 1;
    }

    .option-title {
        font-size: 14px;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 3px;
    }

    .option-description {
        font-size: 11px;
        color: #7f8c8d;
        line-height: 1.3;
    }

    .option-arrow svg {
        width: 18px;
        height: 18px;
        fill: #bdc3c7;
        transition: all 0.3s ease;
    }

    .option-card:hover .option-arrow svg {
        transform: translateX(4px);
        fill: #2c3e50;
    }

    .online-badge {
        position: absolute;
        top: 6px;
        right: 6px;
        background: #27ae60;
        color: white;
        font-size: 8px;
        font-weight: 700;
        padding: 3px 6px;
        border-radius: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* === INTERFACE DE CHAT === */
    .chat-interface {
        position: fixed;
        bottom: 100px;
        right: 20px;
        width: 350px;
        height: 500px;
        background: white;
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
        display: none;
        flex-direction: column;
        overflow: hidden;
        z-index: 9998;
        transform: scale(0.8) translateY(20px);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .chat-interface.active {
        display: flex;
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    /* En-tête du chat */
    .chat-header {
        background: #2980b9;
        padding: 15px;
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
    }

    .chat-avatar {
        width: 45px;
        height: 45px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .chat-avatar svg {
        width: 24px;
        height: 24px;
        fill: #2980b9;
    }

    .chat-header-info {
        flex: 1;
    }

    .chat-header-title {
        font-size: 16px;
        font-weight: 700;
        color: white;
        margin-bottom: 3px;
    }

    .chat-header-status {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.8);
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .status-dot {
        width: 6px;
        height: 6px;
        background: #27ae60;
        border-radius: 50%;
        animation: statusPulse 2s infinite;
    }

    @keyframes statusPulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }

    .chat-close {
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .chat-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

    .chat-close svg {
        width: 16px;
        height: 16px;
        fill: white;
    }

    /* Corps du chat */
    .chat-body {
        flex: 1;
        padding: 15px;
        overflow-y: auto;
        background: #f8f9fa;
    }

    .chat-message {
        margin-bottom: 12px;
        display: flex;
        gap: 8px;
        animation: messageSlideIn 0.4s ease;
    }

    @keyframes messageSlideIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .message-bot {
        align-items: flex-start;
    }

    .message-user {
        flex-direction: row-reverse;
    }

    .message-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .message-bot .message-avatar {
        background: #2980b9;
    }

    .message-user .message-avatar {
        background: #f39c12;
    }

    .message-avatar svg {
        width: 16px;
        height: 16px;
        fill: white;
    }

    .message-content {
        max-width: 75%;
    }

    .message-bubble {
        padding: 10px 14px;
        border-radius: 16px;
        font-size: 13px;
        line-height: 1.4;
        word-wrap: break-word;
    }

    .message-bot .message-bubble {
        background: white;
        color: #2c3e50;
        border-bottom-left-radius: 4px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    .message-user .message-bubble {
        background: #2980b9;
        color: white;
        border-bottom-right-radius: 4px;
    }

    .message-time {
        font-size: 10px;
        color: #95a5a6;
        margin-top: 3px;
        padding: 0 6px;
    }

    .typing-indicator {
        display: flex;
        gap: 4px;
        padding: 10px 14px;
        background: white;
        border-radius: 16px;
        width: fit-content;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    .typing-dot {
        width: 6px;
        height: 6px;
        background: #95a5a6;
        border-radius: 50%;
        animation: typingBounce 1.4s infinite;
    }

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

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

    /* Suggestions rapides */
    .quick-replies {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        margin-top: 8px;
    }

    .quick-reply-btn {
        background: white;
        border: 2px solid #2980b9;
        color: #2980b9;
        padding: 6px 12px;
        border-radius: 16px;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .quick-reply-btn:hover {
        background: #2980b9;
        color: white;
        transform: translateY(-1px);
    }

    /* Zone de saisie */
    .chat-input-container {
        padding: 12px 15px;
        background: white;
        border-top: 1px solid #ecf0f1;
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .chat-input {
        flex: 1;
        padding: 10px 15px;
        border: 2px solid #ecf0f1;
        border-radius: 20px;
        font-size: 13px;
        font-family: 'Poppins', sans-serif;
        outline: none;
        transition: all 0.3s ease;
    }

    .chat-input:focus {
        border-color: #2980b9;
    }

    .send-btn {
        width: 40px;
        height: 40px;
        background: #2980b9;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .send-btn:hover {
        background: #1f6391;
        transform: scale(1.1);
    }

    .send-btn svg {
        width: 18px;
        height: 18px;
        fill: white;
    }

    /* === RESPONSIVE MOBILE === */
    @media (max-width: 768px) {
        .assistant-button {
            bottom: 15px;
            right: 15px;
        }

        .main-button {
            width: 55px;
            height: 55px;
        }

        .main-button svg {
            width: 24px;
            height: 24px;
        }

        .notification-badge {
            width: 18px;
            height: 18px;
            font-size: 9px;
        }

        .tooltip-message {
            right: 65px;
            padding: 8px 12px;
            font-size: 11px;
        }

        .options-menu {
            bottom: 70px;
            gap: 10px;
        }

        .option-card {
            min-width: 220px;
            padding: 12px 16px;
            gap: 10px;
        }

        .option-icon {
            width: 40px;
            height: 40px;
        }

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

        .option-title {
            font-size: 13px;
        }

        .option-description {
            font-size: 10px;
        }

        .chat-interface {
            width: calc(100vw - 30px);
            height: calc(100vh - 120px);
            right: 15px;
            bottom: 90px;
            border-radius: 15px;
        }

        .chat-header {
            padding: 12px;
        }

        .chat-avatar {
            width: 40px;
            height: 40px;
        }

        .chat-avatar svg {
            width: 20px;
            height: 20px;
        }

        .chat-header-title {
            font-size: 15px;
        }

        .chat-header-status {
            font-size: 10px;
        }

        .chat-body {
            padding: 12px;
        }

        .message-avatar {
            width: 30px;
            height: 30px;
        }

        .message-avatar svg {
            width: 14px;
            height: 14px;
        }

        .message-bubble {
            padding: 8px 12px;
            font-size: 12px;
        }

        .quick-reply-btn {
            padding: 5px 10px;
            font-size: 10px;
        }

        .chat-input-container {
            padding: 10px 12px;
        }

        .chat-input {
            padding: 8px 12px;
            font-size: 12px;
        }

        .send-btn {
            width: 36px;
            height: 36px;
        }

        .send-btn svg {
            width: 16px;
            height: 16px;
        }
    }

    @media (max-width: 480px) {
        .assistant-button {
            bottom: 10px;
            right: 10px;
        }

        .main-button {
            width: 50px;
            height: 50px;
        }

        .chat-interface {
            width: calc(100vw - 20px);
            right: 10px;
            bottom: 80px;
        }

        .option-card {
            min-width: 200px;
        }
    }

/* Styles pour la modale */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

#modalTitle {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.5em;
}

#modalMessage {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

#modalBtn {
    background: linear-gradient(135deg, #2980b9, #2980b9);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

#modalBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}