/* Experts Conseils - Styles globaux */

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

/* Styles pour les experts */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.expert-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}

.expert-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.expert-avatar {
    font-size: 3em;
    text-align: center;
    margin-bottom: 15px;
}

.expert-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
}

.expert-first-name {
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
    text-align: center;
}

.expert-description {
    color: #555;
    line-height: 1.4;
    margin-bottom: 15px;
    text-align: center;
}

.expert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-bottom: 15px;
}

.expert-tag {
    background: #f0f8ff;
    color: #007cba;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    border: 1px solid #007cba;
}

.expert-personality {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
    text-align: center;
    margin-bottom: 15px;
}

/* Styles pour les projets */
.projets-dashboard {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

/* Formulaires */
.form-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #ddd;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

/* Liste des projets */
.projets-list {
    margin-top: 20px;
}

.projet-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.projet-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.projet-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.projet-actions {
    display: flex;
    gap: 10px;
}

.projet-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* Chat interface */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chat-header {
    background: #007cba;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-expert-avatar {
    font-size: 2em;
}

.chat-expert-info h3 {
    margin: 0;
    font-size: 1.1em;
}

.chat-expert-info p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.9em;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.message {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

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

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

.message.expert .message-avatar {
    background: #f0f8ff;
}

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

.message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
}

.message.expert .message-content {
    background: #f0f8ff;
    color: #333;
}

.message.user .message-content {
    background: #007cba;
    color: white;
}

.message-time {
    font-size: 0.7em;
    opacity: 0.7;
    margin-top: 5px;
}

.chat-input {
    padding: 20px;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.chat-input button {
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.chat-input button:hover {
    background: #005a87;
}

/* Expert selection */
.expert-selection {
    margin-top: 20px;
}

.expert-selection h3 {
    margin-bottom: 15px;
    color: #333;
}

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

.recommended-expert {
    border: 2px solid #007cba;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.recommended-expert:hover {
    background: #f0f8ff;
    transform: translateY(-2px);
}

.recommended-expert.selected {
    background: #007cba;
    color: white;
}

/* Messages d'état */
.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .experts-grid,
    .recommended-experts {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .projet-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .projet-actions {
        justify-content: center;
    }
    
    .chat-input {
        flex-direction: column;
    }
    
    .message-content {
        max-width: 85%;
    }
}


/* // admin */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 2em;
    margin: 0;
    color: #0073aa;
}

.stat-card p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 14px;
}

.tab-content {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
}

.form-container {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 20px 0;
}
