/* ================================================================== */
/* === Global Styles === */
/* ================================================================== */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* ================================================================== */
/* === Navbar and Mega Menu Styles === */
/* ================================================================== */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.mega-menu {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin-top: 0;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    border: none;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

.dropdown:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu .dropdown-item {
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.mega-menu .dropdown-item:hover {
    background-color: #e3f2fd;
    transform: translateX(5px);
    color: #1976d2;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #1976d2 !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #1976d2, #42a5f5);
    border-radius: 2px;
}

/* ================================================================== */
/* === Hero Section Styles (V1 - Ancien) === */
/* ================================================================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::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="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain )"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ================================================================== */
/* === Hero Section Styles (V2 - Nouveau) === */
/* ================================================================== */
.hero-section-v2 {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.hero-section-v2 img {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.1));
}

/* ================================================================== */
/* === Feature Cards Styles === */
/* ================================================================== */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-description {
    color: #6c757d;
    line-height: 1.6;
}

/* ================================================================== */
/* === Button Styles === */
/* ================================================================== */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 10px;
    padding: 10px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* ================================================================== */
/* === Stats Section === */
/* ================================================================== */
.stats-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #3498db;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* ================================================================== */
/* === Footer Enhancements === */
/* ================================================================== */
.hover-text-white:hover {
    color: white !important;
    transition: color 0.3s ease;
}

footer .btn:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

footer .bi {
    transition: transform 0.3s ease;
}

footer .bi:hover {
    transform: scale(1.2);
}

/* ================================================================== */
/* === Responsive Design === */
/* ================================================================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .mega-menu {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border: 1px solid #dee2e6;
        border-radius: 10px;
        margin-top: 10px;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
}

/* ================================================================== */
/* === Animation Classes === */
/* ================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.pulse-on-hover:hover {
    animation: pulse 1s infinite;
}

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

/* ================================================================== */
/* === Utility Classes === */
/* ================================================================== */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.border-radius-custom {
    border-radius: 15px;
}

/* ================================================================== */
/* === STYLES POUR LES PAGES D'AUTHENTIFICATION (LOGIN/SIGNUP) === */
/* ================================================================== */
.bg-gradient-primary-to-secondary {
    background: #667eea;
    background: -webkit-linear-gradient(to right, #764ba2, #667eea);
    background: linear-gradient(to right, #764ba2, #667eea);
}

.min-vh-100 {
    min-height: 100vh;
}

.form-text a {
    text-decoration: none;
}

.form-text a:hover {
    text-decoration: underline;
}

.auth-shape-1, .auth-shape-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    z-index: 1;
}

.auth-shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
}

.auth-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -100px;
}

/* ================================================================== */
/* === STYLES POUR LE WIDGET DE CHAT IA === */
/* ================================================================== */
#chat-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    z-index: 1000;
}

#chat-bubble:hover {
    transform: scale(1.1);
}

#chat-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 370px;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

#chat-window .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-window .card-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f4f7f9;
    display: flex;
    flex-direction: column;
}

.chat-message {
    margin-bottom: 1rem;
    max-width: 85%;
    display: flex;
}

.chat-message p {
    padding: 0.75rem 1rem;
    border-radius: 18px;
    margin: 0;
    line-height: 1.4;
}

.chat-message.bot {
    align-self: flex-start;
}
.chat-message.bot p {
    background-color: #e9ecef;
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    align-self: flex-end;
}
.chat-message.user p {
    background-color: #0d6efd;
    color: white;
    border-bottom-right-radius: 4px;
}

/* ================================================================== */
/* === STYLES POUR LA PAGE DE TARIFS (PRICING PAGE) === */
/* ================================================================== */
.form-switch .form-check-input {
    cursor: pointer;
    background-color: #6c757d;
    border-color: #6c757d;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e"  );
}

.form-switch .form-check-input:focus {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e"  );
}

.form-switch .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e"  );
}

.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.1);
}
.text-success {
    color: #198754 !important;
}

#discount-badge {
    transition: opacity 0.3s ease-in-out;
}

.card.position-relative .card-header {
    position: relative;
    z-index: 1;
}

/* ================================================================== */
/* === إصلاح شامل: إزالة الإطارات البيضاء من كل الصور === */
/* ================================================================== */
#features .row img {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.card-footer img.rounded-circle {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
