:root {
    --primary: #FF6B6B;
    --secondary: #FF9100;
    --dark: #333;
    --light: #F7FFF7;
    --gray: #F5F5F5;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--gray);
    color: var(--dark);
    line-height: 1.6;
}

.services-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.services-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.services-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.service-icon {
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-content p {
    margin-bottom: 20px;
    color: #666;
    flex-grow: 1;
}

.service-btn {
    display: inline-block;
    padding: 12px 20px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    align-self: flex-start;
}

.service-btn:hover {
    background: #e07d1a;
    transform: translateY(-2px);
}

.service-btn i {
    margin-left: 5px;
}

.quick-links {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.quick-links h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
    text-align: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quick-link {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.quick-link:hover {
    transform: translateY(-5px);
}

.quick-link a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.quick-link a:hover {
    color: var(--secondary);
}

@media (max-width: 768px) {
    .services-hero {
        padding: 40px 20px;
    }
    
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
:root {
    --primary-color: #4361ee;
    --primary-light: #eef2ff;
    --secondary-color: #4f46e5;
    --accent-color: #818cf8;
    --light-color: #f9fafb;
    --dark-color: #111827;
    --gray-light: #f3f4f6;
    --gray-medium: #e5e7eb;
    --gray-dark: #6b7280;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
}

/* Container principal du chat */
#live-chat {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 400px;
    height: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transition: all 0.3s ease;
    background-color: white;
}

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

/* En-tête */
.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.chat-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.chat-avatar i {
    color: var(--primary-color);
    font-size: 16px;
}

.chat-header-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.chat-status {
    display: flex;
    align-items: center;
    font-size: 12px;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: #34d399;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.3);
}

.chat-header-actions {
    display: flex;
    gap: 8px;
}

.chat-header button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

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

/* Zone des messages */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: white;
    background-image: 
        radial-gradient(var(--gray-medium) 1px, transparent 1px);
    background-size: 15px 15px;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--gray-dark);
    border-radius: var(--radius-full);
}

.message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    max-width: 80%;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

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

.message-user {
    align-items: flex-end;
    margin-left: auto;
}

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

.message-content {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    line-height: 1.5;
    font-size: 14px;
    position: relative;
    box-shadow: var(--shadow-sm);
    word-wrap: break-word;
    transition: all 0.2s;
}

.message-user .message-content {
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: var(--radius-sm);
}

.message-bot .message-content {
    background-color: white;
    color: var(--dark-color);
    border: 1px solid var(--gray-medium);
    border-bottom-left-radius: var(--radius-sm);
}

.message-time {
    font-size: 11px;
    color: var(--gray-dark);
    margin-top: 6px;
    font-weight: 500;
}

.message-user .message-time {
    text-align: right;
    padding-right: 4px;
}

.message-bot .message-time {
    text-align: left;
    padding-left: 4px;
}

/* Animation de saisie */
.typing-indicator {
    display: flex;
    padding: 12px 16px;
    background-color: white;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    width: fit-content;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-medium);
    align-items: center;
    gap: 8px;
}

.typing-text {
    font-size: 13px;
    color: var(--gray-dark);
    font-weight: 500;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    height: 8px;
    width: 8px;
    background-color: var(--gray-dark);
    border-radius: var(--radius-full);
    display: inline-block;
    animation: bounce 1.5s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0.1s;
}

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

.typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

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

/* Animation de bienvenue */
.welcome-message {
    text-align: center;
    margin-bottom: 24px;
    animation: fadeIn 0.6s ease-out;
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-medium);
    margin-top: 8px;
}

.welcome-message h2 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.welcome-message p {
    font-size: 14px;
    color: var(--gray-dark);
    line-height: 1.5;
    margin-bottom: 4px;
}

.welcome-icon {
    background-color: var(--primary-light);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--primary-color);
    font-size: 18px;
}

/* Formulaire de saisie */
.chat-form {
    display: flex;
    padding: 16px;
    background-color: white;
    border-top: 1px solid var(--gray-medium);
    gap: 12px;
    align-items: center;
    position: relative;
}

.chat-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray-medium), transparent);
}

.chat-input-container {
    flex: 1;
    position: relative;
}

.chat-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-full);
    outline: none;
    font-size: 14px;
    transition: all 0.3s;
    background-color: var(--light-color);
    padding-right: 40px;
}

.chat-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    background-color: white;
}

.chat-input::placeholder {
    color: var(--gray-dark);
}

.chat-form-actions {
    display: flex;
    gap: 8px;
}

.chat-form button {
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background-color: transparent;
    color: var(--gray-dark);
}

.chat-form button:hover {
    background-color: var(--gray-light);
    color: var(--dark-color);
}

.chat-form button:active {
    transform: scale(0.95);
}

.send-button {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.send-button:hover {
    background-color: var(--secondary-color) !important;
    transform: translateY(-2px) !important;
}

.chat-form button i {
    font-size: 18px;
}

/* Animation de l'icône d'envoi */
@keyframes sendAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.send-animation {
    animation: sendAnimation 0.3s ease-out;
}

/* Suggestions rapides */
.quick-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 16px;
}

.quick-suggestion {
    background-color: white;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 13px;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.quick-suggestion:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Résponsive */
@media screen and (max-width: 480px) {
    #live-chat {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }
}

/* Animation d'écriture */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.5px;
    animation: typing 1.8s steps(30, end), blink-caret 0.75s step-end infinite;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 16px;
    height: 1.2em;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* Badge de notification */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--danger-color);
    color: white;
    border-radius: var(--radius-full);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#live-chat {
display: none; /* Caché par défaut */
opacity: 0;
transform: translateY(20px);
/* Vos autres styles restent les mêmes */
}