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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #333;
}

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

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

/* Header */
.header {
    background: #2c3e50;
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
}

.search-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 8px 40px 8px 16px;
    border: none;
    border-radius: 6px;
    background: #34495e;
    color: white;
    font-size: 14px;
}

.search-input::placeholder {
    color: #bdc3c7;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #bdc3c7;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Boutons de connexion pour visiteurs */
.btn-login-header:hover {
    background: #2980b9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.btn-register-header:hover {
    background: #229954 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.btn-demo-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.upgrade-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 200px;
    height: calc(100vh - 60px);
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    overflow-y: auto;
    z-index: 100;
}

.user-section {
    padding: 0 20px 20px;
    border-bottom: 1px solid #34495e;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.new-btn {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: #34495e;
    color: white;
}

/* Main Content */
.main-content {
    margin-left: 200px;
    margin-top: 60px;
    padding: 30px;
    min-height: calc(100vh - 60px);
    position: relative;
    z-index: 1;
}

/* Alert Banner */
.alert-banner {
    background: #e8f4fd;
    border: 1px solid #3498db;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-banner .icon {
    color: #3498db;
}

.alert-text {
    flex: 1;
    font-size: 14px;
    color: #2c3e50;
}

.alert-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

/* Category Icons */
.categories {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.categories::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="0,0 100,0 100,100" fill="%23ffffff" opacity="0.1"/></svg>');
    background-size: cover;
}

.category-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
    position: relative;
    padding: 10px;
    border-radius: 8px;
}

.category-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
}

.category-item.active {
    background: rgba(255, 255, 255, 0.2);
}

.category-item.active .category-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #667eea;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    animation: pulse 2s infinite;
}

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

.category-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.category-item:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.category-label {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.category-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    margin-top: 4px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.category-item:hover .category-description {
    opacity: 1;
    transform: translateY(0);
}

/* Promotion Section */
.promotion-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.promotion-content {
    max-width: 60%;
}

.promotion-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.promotion-text {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.promotion-buttons {
    display: flex;
    gap: 15px;
}

.btn-outline {
    padding: 10px 20px;
    border: 2px solid #3498db;
    background: transparent;
    color: #3498db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.promotion-illustration {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    opacity: 0.15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(10px); }
}

/* Recent Documents */
.recent-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: between;
    margin-bottom: 25px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    transition: all 0.3s;
}

.view-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    overflow: visible;
}

.project-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.project-card.menu-open {
    z-index: 100000;
}

.project-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.project-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.project-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.project-type {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-preview {
    width: 100%;
    height: 150px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdc3c7;
    font-size: 48px;
    overflow: hidden;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    overflow: visible;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.draft { background: #f39c12; }
.status-dot.published { background: #27ae60; }
.status-dot.archived { background: #95a5a6; }

.project-menu {
    position: relative;
    z-index: 200;
}

.menu-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #2c3e50;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
    z-index: 10;
    font-size: 18px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
}

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

/* Responsive */
@media (max-width: 768px) {
    .header {
        z-index: 9999;
        padding: 12px 10px;
    }
    
    .header-left {
        gap: 10px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    /* Cacher la barre de recherche sur mobile */
    .search-container {
        display: none;
    }
    
    /* Header pour visiteurs non connectés - cacher les textes */
    .visitor-badge span {
        display: none;
    }
    
    .visitor-badge {
        padding: 8px 12px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
    
    .btn-login-header,
    .btn-register-header {
        padding: 8px 12px !important;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
    
    .btn-login-header span,
    .btn-register-header span {
        display: none;
    }
    
    .btn-login-header i,
    .btn-register-header i {
        margin: 0;
        font-size: 16px;
    }
    
    /* Header pour utilisateurs connectés - optimiser sur mobile */
    .user-profile span:not(.user-dropdown-name):not(.user-dropdown-email) {
        display: none;
    }
    
    .user-profile .fa-chevron-down {
        display: none;
    }
    
    .upgrade-btn {
        font-size: 0;
        padding: 8px 12px !important;
    }
    
    .upgrade-btn i {
        font-size: 14px;
        margin: 0 !important;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 100;
    }

    .main-content {
        margin-left: 0;
        z-index: 1;
    }

    .categories {
        flex-wrap: wrap;
        gap: 20px;
    }

    .promotion-content {
        max-width: 100%;
    }

    .promotion-illustration {
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Menu projet sur mobile - plus grand et plus visible */
    .menu-btn {
        min-width: 44px;
        min-height: 44px;
        font-size: 20px;
        padding: 12px;
    }
    
    .dropdown-menu {
        min-width: 180px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 100px) !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }
    
    .dropdown-item {
        padding: 16px 18px;
        font-size: 15px;
        white-space: nowrap;
    }
}




/* Styles pour les modals */
.modal {
    position: fixed;
    z-index: 8000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-cancel {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #f8f9fa;
}

.btn-create {
    padding: 10px 20px;
    border: none;
    background: #3498db;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-create:hover {
    background: #2980b9;
}

/* Menu contextuel */
.context-menu {

    position: fixed;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1500;
    min-width: 180px;
    border: 1px solid #eee;

}

.context-menu ul {
    list-style: none;
    margin: 8px 0;
}

.context-menu li {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s;
}

.context-menu li:hover {
    background: #f8f9fa;
}

.context-menu li.separator {
    height: 1px;
    background: #eee;
    margin: 4px 0;
    padding: 0;
}

.context-menu li[data-action="delete"]:hover {
    background: #fee;
    color: #e74c3c;
}

/* Menu utilisateur */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1500;
    min-width: 200px;
    border: 1px solid #eee;
    margin-top: 5px;
}

.user-dropdown ul {
    list-style: none;
    margin: 8px 0;
}

.user-dropdown li {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s;
}

.user-dropdown li:hover {
    background: #f8f9fa;
}

.user-dropdown li.separator {
    height: 1px;
    background: #eee;
    margin: 4px 0;
    padding: 0;
}

/* Notifications */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 16px;
    z-index: 1500;
    border-left: 4px solid #3498db;
    min-width: 300px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

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

.notification.success {
    border-left-color: #27ae60;
}

.notification.error {
    border-left-color: #e74c3c;
}

.notification.warning {
    border-left-color: #f39c12;
}

/* Tooltips */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 5px;
}

.tooltip:hover::before {
    opacity: 1;
}

/* Styles pour les statuts de projets */
.status-published { background: #27ae60; }
.status-draft { background: #f39c12; }
.status-archived { background: #95a5a6; }
.status-rejected { background: #e74c3c; }


/* ---------------------------------------------
SUITE DES STYLES 
---------------------------------------------- */


/* Assistant IA - Style WordPress */
:root {
    --wp-blue: #2271b1;
    --wp-blue-dark: #135e96;
    --wp-green: #00a32a;
    --wp-gray-light: #f0f0f1;
    --wp-border: #c3c4c7;
    --wp-gray-dark: #50575e;
    --wp-text: #1d2327;
}

.ai-assistant-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--wp-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.ai-assistant-fab:hover {
    background: var(--wp-blue-dark);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.ai-assistant-fab i {
    color: white;
    font-size: 20px;
}

.ai-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.ai-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.ai-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wp-text);
}

.ai-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--wp-gray-dark);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: all 0.1s ease;
}

.ai-modal-close:hover {
    background: var(--wp-gray-light);
    color: var(--wp-text);
}

.ai-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(85vh - 60px);
}

.ai-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.ai-progress::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--wp-border);
    z-index: 0;
}

.ai-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.ai-progress-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--wp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--wp-gray-dark);
    transition: all 0.2s ease;
}

.ai-progress-step.active .ai-progress-circle {
    background: var(--wp-blue);
    border-color: var(--wp-blue);
    color: #ffffff;
}

.ai-progress-label {
    font-size: 12px;
    color: var(--wp-gray-dark);
    font-weight: 500;
}

.ai-step {
    display: none;
}

.ai-step.active {
    display: block;
}

.ai-step h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--wp-text);
}

.ai-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.ai-option-card {
    background: #ffffff;
    border: 1px solid var(--wp-border);
    border-radius: 2px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.1s ease;
}

.ai-option-card:hover {
    border-color: var(--wp-blue);
    box-shadow: 0 0 0 1px var(--wp-blue);
}

.ai-option-card.selected {
    background: #f0f6fc;
    border-color: var(--wp-blue);
    box-shadow: 0 0 0 1px var(--wp-blue);
}

.ai-option-card i {
    font-size: 24px;
    color: var(--wp-blue);
    margin-bottom: 8px;
}

.ai-option-card h4 {
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--wp-text);
}

.ai-option-card p {
    margin: 0;
    font-size: 11px;
    color: var(--wp-gray-dark);
}

.ai-color-picker {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ai-color-option {
    width: 48px;
    height: 48px;
    border-radius: 2px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.1s ease;
}

.ai-color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ai-color-option.selected {
    border-color: var(--wp-text);
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-blue);
}

.ai-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.ai-btn {
    padding: 8px 16px;
    border: 1px solid var(--wp-border);
    border-radius: 2px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.1s ease;
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-btn-secondary {
    background: #ffffff;
    color: var(--wp-text);
}

.ai-btn-secondary:hover {
    background: var(--wp-gray-light);
}

.ai-btn-primary {
    background: var(--wp-blue);
    border-color: var(--wp-blue-dark);
    color: #ffffff;
}

.ai-btn-primary:hover:not(:disabled) {
    background: var(--wp-blue-dark);
    border-color: #0a4b78;
}

.ai-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ai-generating {
    text-align: center;
    padding: 40px 20px;
}

.ai-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--wp-gray-light);
    border-top-color: var(--wp-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

.dropdown-menu {
    position: fixed !important;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    min-width: 200px;
    min-height: 80px;
    max-height: calc(100vh - 40px);
    top:-5px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999999;
    padding: 8px 0;
    display: none;
    animation: fadeInDown 0.2s ease-out;
}

/* Personnaliser la scrollbar du menu */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Indicateur de scroll sur mobile */
@media (max-width: 768px) {
    .dropdown-menu {
        -webkit-overflow-scrolling: touch;
        top: auto;
        left: -10px;
    }
    
    /* Ombre pour indiquer qu'il y a du contenu scrollable */
    .dropdown-menu::before,
    .dropdown-menu::after {
        content: '';
        position: sticky;
        display: block;
        height: 8px;
        left: 0;
        right: 0;
        z-index: 1;
        pointer-events: none;
    }
    
    .dropdown-menu::before {
        top: 0;
        background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    }
    
    .dropdown-menu::after {
        bottom: 0;
        background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    }
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #667eea;
    padding-left: 20px;
}

.dropdown-item.text-danger {
    color: #e74c3c;
}

.dropdown-item.text-danger:hover {
    background: #fee;
    color: #c0392b;
    padding-left: 20px;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

.project-menu {
    position: relative;
    z-index: 200;
}

.menu-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #2c3e50;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 18px;
    position: relative;
    z-index: 10;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
}

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

/* User Dropdown Menu Styles */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 280px;
    z-index: 10000;
    animation: slideDown 0.2s ease;
}

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

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.user-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.user-dropdown-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.user-dropdown-email {
    color: #666;
    font-size: 13px;
    margin-top: 2px;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.user-dropdown-item:hover {
    background: #f8f9fa;
}

.user-dropdown-item i {
    width: 20px;
    color: #666;
}

.user-dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0;
}

.notification-badge {
    animation: pulse 2s infinite;
}

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

.project-card {
    transition: opacity 0.3s, transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Notification de succès */
.success-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #00a32a 0%, #008a20 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 163, 42, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    animation: slideInRight 0.4s ease-out;
    max-width: 400px;
}

.success-notification i {
    font-size: 24px;
}

.success-notification .message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.success-notification .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.success-notification .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

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

.success-notification.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Badges gratuit/essai */
.pricing-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
}

.badge-free {
    background: #d4edda;
    color: #155724;
}

.badge-trial {
    background: #cce5ff;
    color: #004085;
}

.ai-option-card .pricing-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
}

.ai-option-card {
    position: relative;
}

/* Section Créer un projet */
.create-project-section {
    margin: 0 0 32px 0;
}
.create-project-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}
.create-project-section .section-header:hover {
    opacity: 0.8;
}
.create-project-section .section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--wp-text, #1d2327);
    display: flex;
    align-items: center;
    gap: 10px;
}
.create-project-section .section-title i {
    color: #6c5ce7;
}
.create-project-toggle {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    color: #7f8c8d;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.create-project-toggle:hover {
    background: #f0f0f1;
    color: #1d2327;
}
.create-project-toggle i {
    transition: transform 0.3s;
}
.create-project-section.collapsed .create-project-toggle i {
    transform: rotate(-90deg);
}
.create-project-body {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 1000px;
    opacity: 1;
}
.create-project-section.collapsed .create-project-body {
    max-height: 0;
    opacity: 0;
}
.type-badge-expired {
    background: #f8d7da;
    color: #721c24;
}
.type-badge-active {
    background: #d4edda;
    color: #155724;
}
.type-badge-trialing {
    background: #fff3cd;
    color: #856404;
}
.create-project-group {
    margin-bottom: 18px;
}
.create-project-group-label {
    font-size: 13px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.create-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}
.create-type-card {
    background: #fff;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.create-type-card:hover {
    border-color: #6c5ce7;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.15);
}
.create-type-card:active {
    transform: translateY(-1px);
}
.create-type-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
    color: #fff;
}
.create-type-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
}
.create-type-card p {
    font-size: 12px;
    color: #95a5a6;
    margin: 0;
}
.create-type-card .type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}
.type-badge-free {
    background: #d4edda;
    color: #155724;
}
.type-badge-trial {
    background: #cce5ff;
    color: #004085;
}
@media (max-width: 768px) {
    .create-project-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .create-type-card {
        padding: 14px 10px;
    }
    .create-type-card .card-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ====== Section Modèles ====== */
.templates-section .section-header { margin-bottom: 8px; }
.templates-section .section-title {
    font-size: 20px; font-weight: 700; color: var(--wp-text, #1d2327);
    display: flex; align-items: center; gap: 10px;
}
.templates-section .section-title i { color: #6c5ce7; }
.template-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.template-filter-btn {
    padding: 8px 16px; border: 1px solid #ddd; border-radius: 20px;
    background: #fff; color: #555; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
}
.template-filter-btn:hover { border-color: #6c5ce7; color: #6c5ce7; }
.template-filter-btn.active {
    background: #6c5ce7; color: #fff; border-color: #6c5ce7;
}
.templates-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.template-card {
    background: #fff; border: 2px solid #e8ecf1; border-radius: 12px;
    overflow: hidden; cursor: pointer; transition: all 0.25s ease;
}
.template-card:hover {
    border-color: #6c5ce7; transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108,92,231,0.15);
}
.template-card.hidden { display: none; }
.template-preview {
    height: 130px; display: flex; align-items: center; justify-content: center;
}
.template-info { padding: 14px 16px; }
.template-info h4 { font-size: 14px; font-weight: 600; color: #2c3e50; margin: 0 0 4px; }
.template-info p { font-size: 12px; color: #95a5a6; margin: 0 0 8px; }
.template-tag {
    display: inline-block; padding: 2px 10px; border-radius: 12px;
    font-size: 10px; font-weight: 600; background: #f0f0f1; color: #7f8c8d;
}

/* ====== Section Intégrations ====== */
.integrations-section .section-header { margin-bottom: 20px; }
.integrations-section .section-title {
    font-size: 20px; font-weight: 700; color: var(--wp-text, #1d2327);
    display: flex; align-items: center; gap: 10px;
}
.integrations-section .section-title i { color: #6c5ce7; }
.coming-soon-container {
    text-align: center; padding: 60px 30px;
    background: #fff; border: 2px dashed #dcdde1; border-radius: 16px;
}
.coming-soon-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px; font-size: 32px; color: white;
}
.coming-soon-container h3 {
    font-size: 22px; font-weight: 700; color: #2c3e50; margin: 0 0 12px;
}
.coming-soon-container > p {
    font-size: 15px; color: #7f8c8d; max-width: 500px;
    margin: 0 auto 32px; line-height: 1.6;
}
.coming-soon-features {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px; max-width: 700px; margin: 0 auto;
}
.coming-soon-feature {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px;
    background: #f8f9fa; border-radius: 10px; font-size: 14px;
    font-weight: 500; color: #2c3e50;
}
.coming-soon-feature i { font-size: 20px; }
.coming-badge {
    margin-left: auto; padding: 2px 10px; border-radius: 10px;
    font-size: 10px; font-weight: 700; background: #fff3cd; color: #856404;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .templates-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .template-preview { height: 100px; }
    .coming-soon-features { grid-template-columns: 1fr; }
}

/* Modale de connexion */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
.login-modal-content {
    background: white;
    border-radius: 16px;
    padding: 36px 32px 28px;
    max-width: 460px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}
.login-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #95a5a6;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.login-modal-close:hover { color: #2c3e50; }

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

.login-logo-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 24px;
}
.login-modal-header {
    text-align: center;
    margin-bottom: 24px;
}
.login-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 6px;
}
.login-modal-header p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

/* Social buttons */
.inline-social-login {
    margin-bottom: 16px;
}
.inline-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #e0e0e0;
    background: white;
    color: #3c4043;
}
.inline-social-btn:hover {
    border-color: #4285F4;
    background: #f8f9ff;
    box-shadow: 0 2px 12px rgba(66, 133, 244, 0.15);
}

/* Divider */
.inline-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: #bdc3c7;
    font-size: 13px;
}
.inline-divider::before, .inline-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}
.inline-divider span {
    padding: 0 14px;
    white-space: nowrap;
}

/* Form */
.inline-form-group {
    margin-bottom: 14px;
}
.inline-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}
.inline-form-group label i {
    color: #7f8c8d;
    margin-right: 4px;
    width: 14px;
}
.inline-form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}
.inline-form-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.inline-form-row {
    display: flex;
    gap: 12px;
}
.inline-form-row .inline-form-group {
    flex: 1;
}
.inline-password-wrap {
    position: relative;
}
.inline-password-wrap input {
    padding-right: 44px;
}
.inline-toggle-pwd {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    font-size: 15px;
}
.inline-toggle-pwd:hover { color: #2c3e50; }

.inline-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 13px;
}
.inline-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #50575e;
    cursor: pointer;
}
.inline-checkbox input { margin: 0; }
.inline-forgot {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}
.inline-forgot:hover { text-decoration: underline; }

.inline-submit-btn {
    width: 100%;
    padding: 13px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.inline-submit-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.inline-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.inline-signup-link {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: #7f8c8d;
}
.inline-signup-link a {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
}
.inline-signup-link a:hover { text-decoration: underline; }

.inline-visitor-link {
    margin-top: 12px;
    text-align: center;
}
.btn-login-cancel {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #95a5a6;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-login-cancel:hover {
    background: #f8f9fa;
    color: #7f8c8d;
}

/* Badge visiteur dans le header */
.visitor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}
