/* === FICHIER assets/css/chat.css === */
/* Styles pour l'interface de chat */
/* Design minimaliste inspiré de Perplexity */

/* Container principal du chat */
.chat-container {
    display: flex;
    height: calc(100vh - 60px); /* Hauteur totale moins le header */
    background: var(--bg-primary);
    position: relative;
    margin-top: 60px; /* Espace pour le header fixe */
}

/* === SIDEBAR === */
.chat-sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

/* Header de la sidebar */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

/* Bouton nouvelle conversation */
.btn-new-chat {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-new-chat:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Liste des conversations */
.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* Item de conversation */
.conversation-item {
    padding: 12px 16px;
    margin-bottom: 5px;
    background: var(--bg-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.conversation-item:hover {
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.conversation-item.active {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.conversation-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.message-count i {
    margin-right: 4px;
}

/* Messages spéciaux dans la sidebar */
.no-conversations,
.login-prompt {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-conversations i,
.login-prompt i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.btn-login-small {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-login-small:hover {
    background: var(--primary-hover);
}

/* Toggle sidebar mobile */
.sidebar-toggle {
    display: none;
    position: absolute;
    top: 15px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* === ZONE PRINCIPALE === */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Important pour le responsive */
}

/* Header du chat */
.chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-info h1 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--text-primary);
}

/* Badges et compteurs */
.user-limits {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.limit-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.limit-badge.visitor {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.limit-badge.free {
    background: #e3f2fd;
    color: #1976d2;
}

.limit-badge.pro {
    background: #fff3cd;
    color: #856404;
}

.questions-counter {
    color: var(--text-secondary);
}

.limit-reached {
    color: var(--error-color);
    font-weight: 500;
}

/* Prompt de mise à niveau */
.upgrade-prompt {
    margin-top: 10px;
    padding: 10px 15px;
    background: var(--warning-bg);
    color: var(--warning-color);
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upgrade-prompt a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.upgrade-prompt a:hover {
    text-decoration: underline;
}

/* === ZONE DES MESSAGES === */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
}

/* Message de bienvenue */
.welcome-message {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.logo-large {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.welcome-message h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.welcome-message p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Questions exemples */
.example-questions {
    margin-top: 40px;
}

.example-questions p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.example-btn {
    margin: 5px;
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.example-btn:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.example-btn i {
    margin-right: 8px;
}

/* Messages du chat */
.message {
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease;
}

.message.user {
    text-align: right;
}

.message-content {
    display: inline-block;
    max-width: 70%;
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.6;
    word-wrap: break-word;
    position: relative;
}

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

.message.assistant .message-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

/* Formatage du contenu des messages */
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.message-content h1 { font-size: 1.5rem; }
.message-content h2 { font-size: 1.3rem; }
.message-content h3 { font-size: 1.1rem; }
.message-content h4 { font-size: 1rem; }

.message-content p {
    margin-bottom: 12px;
}

.message-content ul,
.message-content ol {
    margin-bottom: 12px;
    padding-left: 25px;
}

.message-content li {
    margin-bottom: 6px;
}

.message-content code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.message.assistant .message-content code {
    background: rgba(0, 0, 0, 0.05);
}

.message-content pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 12px;
}

.message-content pre code {
    background: transparent;
    padding: 0;
}

/* === LIENS DE SOURCES === */
.source-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(var(--primary-rgb), 0.1);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.source-link:hover {
    background: rgba(var(--primary-rgb), 0.2);
    text-decoration: underline;
}

.source-link i {
    font-size: 0.8em;
    margin-right: 3px;
}

/* Section des sources */
.sources-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.sources-section h4 {
    font-size: 0.95rem;
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-weight: 600;
}

.sources-section h4 i {
    margin-right: 6px;
}

.sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sources-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.sources-list li:last-child {
    border-bottom: none;
}

.source-number {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
}

.source-title {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.source-title:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

.source-domain {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 8px;
}

/* Message en cours de génération */
.message.generating .message-content {
    position: relative;
}

.typing-indicator {
    display: inline-flex;
    gap: 4px;
    padding: 0 5px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

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

/* === CURSEUR CLIGNOTANT POUR LE STREAMING === */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--primary-color);
    animation: blink 1s infinite;
    margin-left: 2px;
    vertical-align: text-bottom;
}

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

/* Animation quand le message est complété */
.message-complete {
    animation: messageComplete 0.3s ease;
}

@keyframes messageComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Style pour les messages de statut */
.text-muted {
    color: var(--text-secondary);
    font-style: italic;
}

/* Messages d'alerte dans le chat */
.alert-message {
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-message i {
    font-size: 1.2rem;
}

/* === ZONE DE SAISIE === */
.input-container {
    padding: 20px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.chat-form {
    max-width: 800px;
    margin: 0 auto;
}

.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.message-input {
    flex: 1;
    min-height: 24px;
    max-height: 120px;
    padding: 0 10px;
    background: transparent;
    border: none;
    resize: none;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.message-input:focus {
    outline: none;
}

.message-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-send {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-send:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Infos sous le champ */
.input-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* === PUBLICITÉ === */
.ads-container {
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.ad-placeholder {
    height: 90px;
    background: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === MODALS === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal-icon.warning {
    color: var(--warning-color);
}

.upgrade-benefits {
    margin: 20px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-align: left;
}

.upgrade-benefits h4 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.upgrade-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upgrade-benefits li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.upgrade-benefits li i {
    color: var(--success-color);
    margin-right: 10px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* === NOTIFICATIONS === */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(420px);
    transition: transform 0.3s ease;
    z-index: 2000;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 1.2rem;
}

.notification.error {
    border-color: var(--error-color);
    color: var(--error-color);
}

.notification.error i {
    color: var(--error-color);
}

.notification.success {
    border-color: var(--success-color);
    color: var(--success-color);
}

.notification.success i {
    color: var(--success-color);
}

.notification.info {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    /* Sidebar mobile */
    .chat-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .chat-sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    /* Ajustements messages */
    .message-content {
        max-width: 85%;
    }
    
    /* Header responsive */
    .header-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-limits {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    /* Petits écrans */
    .chat-container {
        height: calc(100vh - 50px);
        margin-top: 50px;
    }
    
    .welcome-message {
        margin: 30px auto;
    }
    
    .logo-large {
        font-size: 3rem;
    }
    
    .example-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* === AJUSTEMENTS SPÉCIFIQUES POUR LA PAGE CHAT === */

/* Masquer le footer sur la page de chat */
.footer {
    display: none !important;
}

/* Ajuster le header pour le chat */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--bg-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Masquer les liens de navigation inutiles sur la page de chat */
.header .nav {
    display: none;
}

/* Réduire la taille du header sur la page de chat */
.header .header-container {
    padding: 10px 20px;
}

/* S'assurer que le main-content ne rajoute pas de padding */
.main-content {
    padding: 0 !important;
    max-width: none !important;
}

/* Masquer les éléments parasites tout en gardant le header */
[class*="nova"]:not(.header):not(.nav-actions),
[class*="Nova"]:not(.header):not(.nav-actions),
[id*="nova"]:not(.header):not(.nav-actions),
[id*="Nova"]:not(.header):not(.nav-actions),
iframe:not(.chat-iframe),
div[style*="fixed"]:not(.modal):not(.notification):not(.header) {
    display: none !important;
}

/* S'assurer que le menu utilisateur reste visible */
.header .user-menu,
.header .user-menu-toggle,
.header .user-dropdown,
.header .theme-toggle {
    display: flex !important;
}

/* Style pour le menu utilisateur sur la page de chat */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-toggle:hover {
    background: var(--bg-secondary);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 200px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
    display: block;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-link:hover {
    background: var(--bg-secondary);
}

.dropdown-divider {
    margin: 8px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* === VARIABLES CSS POUR LES COULEURS === */
:root {
    --primary-rgb: 59, 130, 246; /* Pour les effets de transparence */
}

/* === STYLES POUR LES PUBLICITÉS === */
.ad-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ad-test-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.ad-test-content:hover {
    transform: scale(1.02);
}

.ad-test-inner {
    text-align: center;
    z-index: 2;
    padding: 20px;
}

.ad-test-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
}

.ad-test-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.ad-test-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0 0 15px 0;
}

.ad-test-cta {
    background: white;
    color: #333;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ad-test-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Animation de fond */
.ad-test-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.ad-test-animation span {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    animation: float 15s infinite;
    bottom: -150px;
}

.ad-test-animation span:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.ad-test-animation span:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.ad-test-animation span:nth-child(3) {
    left: 70%;
    width: 50px;
    height: 50px;
    animation-delay: 4s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

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

/* Adaptation pour la sidebar */
.ad-sidebar .ad-test-title {
    font-size: 28px;
}

.ad-sidebar .ad-test-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Mode responsive */
@media (max-width: 768px) {
    .ad-test-title {
        font-size: 20px;
    }
    
    .ad-test-subtitle {
        font-size: 12px;
    }
    
    .ad-sidebar {
        display: none;
    }
}

/* Effet de brillance */
.ad-test-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translate(-100%, -100%);
    }
    100% {
        transform: rotate(45deg) translate(100%, 100%);
    }
}

/* Clic sur la pub */
.ad-test-content:active {
    transform: scale(0.98);
}

/* Publicité en haut */
.ad-chat-top {
    margin-bottom: 20px;
}

/* Publicité en bas */
.ad-chat-bottom {
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Publicité sidebar */
.ad-sidebar {
    margin: 15px 10px;
}

/* Notice des publicités */
.ads-notice {
    color: var(--text-secondary);
    font-size: 12px;
}

.pro-notice {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Mode sombre */
[data-theme="dark"] .ad-container {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}