
/* ── Bibliothèque de prompts IA ──────────────────────────────────────────── */
.admin-page-subtitle { color: #666; margin: -.5rem 0 1.5rem; font-size: .95rem; }

.prompts-list { display: flex; flex-direction: column; gap: 1.2rem; }

.prompt-card {
    background: #fff;
    border: 1px solid #e0ddd0;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.prompt-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.prompt-card-nom {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d2b1a;
    margin: 0 0 .25rem;
}

.prompt-card-desc {
    color: #666;
    font-size: .9rem;
    margin: 0 0 .25rem;
}

.prompt-card-date {
    font-size: .8rem;
    color: #999;
}

.prompt-card-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
}

/* Bouton copier — le bouton star de la page */
.btn-copier {
    background: #767442;
    color: #e8ead8;
    border: none;
    border-radius: 6px;
    padding: .55rem 1.2rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}
.btn-copier:hover { background: #5a5730; }
.btn-copier:active { transform: scale(.97); }
.btn-copier-ok {
    background: #2e7d32 !important;
    color: #fff !important;
}

.btn-sm { padding: .45rem .9rem; font-size: .85rem; }

.btn-supprimer-prompt {
    background: transparent;
    border: 1px solid #e0ddd0;
    border-radius: 6px;
    padding: .45rem .7rem;
    cursor: pointer;
    color: #999;
    transition: all .15s;
}
.btn-supprimer-prompt:hover { border-color: #c0392b; color: #c0392b; background: #fff5f5; }

/* Aperçu du prompt — zone collapsible */
.prompt-apercu {
    margin-top: .8rem;
    max-height: 80px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: max-height .3s ease;
}
.prompt-apercu::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
}
.prompt-apercu-expanded {
    max-height: 600px;
}
.prompt-apercu-expanded::after { display: none; }

.prompt-contenu-pre {
    font-family: 'Courier New', monospace;
    font-size: .8rem;
    color: #444;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    background: #f9f8f4;
    border-radius: 6px;
    padding: .8rem 1rem;
    border: 1px solid #eee;
}

.btn-toggle-apercu {
    background: none;
    border: none;
    color: #767442;
    font-size: .82rem;
    cursor: pointer;
    padding: .3rem 0;
    margin-top: .2rem;
    font-weight: 600;
}
.btn-toggle-apercu:hover { text-decoration: underline; }

/* Textarea grand format pour le contenu du prompt */
.prompt-textarea {
    font-family: 'Courier New', monospace;
    font-size: .85rem;
    line-height: 1.5;
    resize: vertical;
}

/* Modale confirmation suppression (prompt) */
.confirm-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9000;
    display: flex; align-items: center; justify-content: center;
}
.confirm-box {
    background: #fff;
    border-radius: 10px;
    padding: 1.8rem 2rem;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    text-align: center;
}
.confirm-box p { font-size: 1rem; margin-bottom: 1.4rem; color: #333; }
.confirm-actions { display: flex; gap: .8rem; justify-content: center; }
.btn-danger {
    background: #c0392b; color: #fff;
    border: none; border-radius: 6px;
    padding: .55rem 1.4rem;
    font-size: .9rem; font-weight: 600;
    cursor: pointer;
}
.btn-danger:hover { background: #a93226; }
