    * {
                box-sizing: border-box;
            }

            html, body {
                margin: 0;
                padding: 0;
                font-family: Arial, Helvetica, sans-serif;
                background: #f5f7fb;
                color: #1f2937;
            }

            .app-layout {
                min-height: 100vh;
                display: flex;
                flex-direction: column;
            }

            .sidebar {
                background: #111827;
                color: #ffffff;
                padding: 20px;
            }

            .sidebar__brand {
                margin-bottom: 20px;
                font-size: 1.1rem;
            }

            .sidebar__menu {
                list-style: none;
                padding: 0;
                margin: 0;
                position: sticky;
    top: 0;
            }

            .sidebar__menu li {
                margin-bottom: 10px;
            }

            .sidebar__menu a {
                color: #ffffff;
                text-decoration: none;
                display: block;
                padding: 10px 12px;
                border-radius: 8px;
            }

            .sidebar__menu a:hover {
                background: rgba(255, 255, 255, 0.08);
            }

            .main-content {
                padding: 16px;
                width: 100%;
            }

            .card {
                background: #ffffff;
                border-radius: 12px;
                padding: 20px;
                box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
            }

            .table-responsive {
                width: 100%;
                overflow-x: auto;
            }

            .dashboard-table {
                width: 100%;
                min-width: 900px;
                border-collapse: collapse;
                background: #ffffff;
            }

            .dashboard-table th,
            .dashboard-table td {
                padding: 12px 14px;
                border-bottom: 1px solid #e5e7eb;
                text-align: left;
                vertical-align: top;
                font-size: 0.95rem;
            }

            .dashboard-table th {
                background: #f9fafb;
                font-weight: 600;
                white-space: nowrap;
            }

            .dashboard-table tr:hover {
                background: #f9fbff;
            }
            .btn {
        display: inline-block;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 0.85rem;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .btn-primary {
        background: #2563eb;
        color: #ffffff;
    }

    .btn-primary:hover {
        background: #1d4ed8;
    }

    .stbl th {
    background-color: #045cb4;
    color: #fff;
    text-align: center;
}
.stbl.stbl-first-td td:first-child {
    font-weight: bold;
    background-color: #daedff;
    text-align: center;
}
.stbl {
    width: 100%;
    text-align: center;
}
.stbl td{
   padding: 5px;
}

    .btn-secondary {
        background: #e5e7eb;
        color: #111827;
    }

    .btn-secondary:hover {
        background: #d1d5db;
    }
    .article-detail-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }

    .detail-block {
        margin-top: 20px;
        padding-top: 12px;
        border-top: 1px solid #e5e7eb;
    }

    .detail-block h3 {
        margin-top: 0;
        margin-bottom: 12px;
    }

    .detail-block pre {
        white-space: pre-wrap;
        word-break: break-word;
        line-height: 1.5;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 12px;
        overflow-x: auto;
    }
    pre {
        text-wrap: auto;
    }
    .code-style-view {
        white-space: pre-wrap;
        word-wrap: break-word;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        padding: 14px;
        border-radius: 12px;
        font-size: 14px;
            max-height: 350px;
    overflow: auto;
    }

    .html-preview {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 12px;
        overflow-x: auto;
    }
    .article-header {
        margin-bottom: 20px;
    }

    .article-header h2 {
        margin-bottom: 8px;
    }


    .accordion-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .accordion-item {
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #ffffff;
        overflow: hidden;
    }

    .accordion-item summary {
        cursor: pointer;
        padding: 16px 18px;
        font-weight: 600;
        background: #f9fafb;
        list-style: none;
        position: relative;
        padding-right: 44px;
        display: flex;
        justify-content: space-between;
    }

    .accordion-item summary::-webkit-details-marker {
        display: none;
    }

    .accordion-item summary::after {
        content: "+";
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 26px;
        color: #6b7280;
        transition: transform 0.2s ease;
    }

    .accordion-item[open] summary::after {
        content: "−";
        transform: translateY(-50%);
    }
    .accordion-content {
        padding: 16px 18px;
        border-top: 1px solid #e5e7eb; 
        position: relative;
    }
    .accordion-content h3{
        font-size: 16px;
        font-weight: bold;
    }
    .cluster-tree-wrapper {
        margin-bottom: 24px;
    }

    .cluster-tree {
        font-size: 15px;
    }

    .cluster-item {
        padding: 10px 12px;
        border-radius: 12px;
        /* margin-bottom: 8px; */
            border: none !important;
    }

    .cluster-level-0 {
        background: #f8f9fc;
        border: 1px solid #e9ecef;
    }

    .cluster-level-1 {
        margin-left: 18px;
        background: #fcfcfd;
        border-left: 3px solid #dbe4ff;
    }

    .cluster-level-2 {
        margin-left: 36px;
        background: #fff;
        padding-right: 0;
    }

    .cluster-prefix {
        color: #6c757d;
        margin-right: 8px;
        font-family: monospace;
    }

    .cluster-link {
        color: #212529;
        text-decoration: none;
        font-weight: 600;
    }

    .cluster-link:hover {
        color: #0d6efd;
    }

    .current-link {
        font-weight: 700;
    }

    .cluster-type-label {
        color: #6b7280;
        font-size: 12px;
        margin-left: 8px;
    }

    .current-article {
        background: #eef4ff;
        border: 1px solid #cfe0ff;
    }

    .current-label {
        display: inline-block;
        margin-left: 8px;
        padding: 2px 8px;
        border-radius: 999px;
        background: #dbeafe;
        color: #1d4ed8;
        font-size: 12px;
        font-weight: 600;
        text-transform: lowercase;
    }

    .article-line-cluster {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .article-line-cluster__left {
        min-width: 0;
        flex: 1;
    }

    .article-line-cluster__right {
        flex-shrink: 0;
    }

    .article-title-cluster {
        display: inline-flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 2px;
    }

    .cluster-children {
        margin-top: 10px;
    }


    .cluster-level-2 .article-title-cluster .cluster-link {
        font-weight: normal;
            max-width: 380px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    }
    .status-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 4px 8px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        white-space: nowrap;
        min-width: 60px;
        color: #414141;
    }
    .accordion-content .ajax-action-btn {
        position: absolute;
        top: 10px;
        right: 20px;
        font-size: 15px;
    }

    /* couleurs */

    .status-badge.success {
        background: #dcfce7;
        color: #166534;
    }

    .status-badge.primary {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .status-badge.warning {
        background: #fef3c7;
        color: #b45309;
    }

    .status-badge.secondary {
        background: #e5e7eb;
        color: #374151;
    }

    .status-badge.danger {
        background: #fee2e2;
        color: #b91c1c;
    }

    .status-badge.info {
        background: #e0e7ff;
        color: #3730a3;
    }
    .cluster-step-labels {
        display: flex;
        gap: 6px;
        flex-wrap: nowrap;   /* important */
        align-items: center;
    }
    .cluster-item.cluster-level-2{
        padding-right: 0;
    }
    .article-meta-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.card_title {
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 600;
    background: #f9fafb;
    list-style: none;
    position: relative;
    padding-right: 44px;
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    text-transform: uppercase;
        letter-spacing: 5px;
    border-bottom: 2px dashed #111827;
    margin-bottom: 15px;
}

/* colonnes */
.meta-col {
    width: 100%;
}

/* liste infos */

/* couleurs (déjà compatibles avec ton cluster) */
.status-text {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}


.status-text.success {
    color: #15803d;
}

.status-text.primary {
    color: #1d4ed8;
}

.status-text.warning {
    color: #b45309;
}

.status-text.secondary {
    color: #6b7280;
}

.status-text.danger {
    color: #b91c1c;
}

.status-text.done {
    color: #15803d;
}

.status-text.processing {
    color: #1d4ed8;
}
.status-badge.processing::before {
  content: "⚙";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;

  animation: spinGear 1s linear infinite;
  transform-origin: 50% 50%;
  font-size: 14px;
line-height: 1;
margin: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 9px 0px 8px 0px !important;
}
@keyframes spinGear {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.status-text.queued {
    color: #9db6ff;
}

.status-badge.saved {
    background: #e0f2fe;
    color: #0369a1;
}

.status-badge.sent {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-text.not_started {
    color: #6b7280;
}

.status-text.error {
    color: #b91c1c;
}

.status-text.strong {
    color: #15803d;
}

.status-text.needs_light_revision {
    color: #b45309;
}

.status-text.needs_major_revision {
    color: #b91c1c;
}

.status-text.brief_ready {
    color: #1e40af;
}
.status-badge.success {
    background-color: #15803d;
}

.status-badge.primary {
    background-color: #1d4ed8;
}

.status-badge.warning {
    background-color: #b45309;
}

.status-badge.secondary {
    background-color: #6b7280;
}

.status-badge.danger {
    background-color: #b91c1c;
}

.status-badge.done {
    background-color: #15803d;
    color: #fff;
}

.status-badge.processing {
    background-color: #c6d5ff;
}

.status-badge.queued {
    background-color: #b45309;
}

.status-badge.not_started {
    background-color: #e5e7eb;
}

.status-badge.error {
    background-color: #ff0000;
    color: #fff;
}

.status-badge.strong {
    background-color: #15803d;
}

.status-badge.needs_light_revision {
    background-color: #b45309;
}

.status-badge.needs_major_revision {
    background-color: #b91c1c;
}

.status-badge.brief_ready {
    background-color: #1e40af;
}
.ajax-message {
        position: fixed;
    z-index: 99999;
    width: 80%;
    top: 5px;
        padding: 12px 40px 12px 14px;
    border-radius: 10px;

    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);

    display: none; /* caché par défaut */

}
/* bouton fermer */
.ajax-message__close {
    position: absolute;
    top: 8px;
    right: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: inherit;
    opacity: 0.7;
}

.ajax-message__close:hover {
    opacity: 1;
}


.ajax-message.is-processing {
    padding: 12px 14px;
    border-radius: 8px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

.ajax-message.is-success {
    padding: 12px 14px;
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}

.ajax-message.is-error {
    padding: 12px 14px;
    border-radius: 8px;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 600;
}
.auto-copy {
  position: relative;
}

.auto-copy-btn {
  position: absolute;
    top: 10px;
    right: 10px;
  z-index: 50;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}
.auto-copy-wrapper,.auto-paste-wrapper{
    position: relative;
}
/**
 * Masque le bouton Coller quand le textarea associé est disabled.
 */
.auto-paste-wrapper:has(textarea:disabled) .auto-copy-btn,
.auto-paste-wrapper:has(input:disabled) .auto-copy-btn {
    display: none !important;
}
.field-title-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.prompt-copy-btn {
    position: relative;
}
.beast-mode-box {
    margin-bottom: 16px;
}

.beast-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}

.beast-mode-switch input {
    display: none;
}

.beast-mode-slider {
    width: 46px;
    height: 24px;
    background: #d1d5db;
    border-radius: 999px;
    position: relative;
    transition: 0.2s ease;
}

.beast-mode-slider::before {
    content: "";
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: 0.2s ease;
}

.beast-mode-switch input:checked + .beast-mode-slider {
    background: #1d4ed8;
}

.beast-mode-switch input:checked + .beast-mode-slider::before {
    transform: translateX(22px);
}

.word-counter {
        margin-top: 6px;
    font-size: 14px;
    color: #6b7280;
    text-align: left;
    margin-bottom: 25px;
}
.html-preview table, .html-preview th, .html-preview td {
  border: 1px solid black; /* Ajoute un trait noir de 1px */
}
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	text-align: center;
	display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    gap: 5px; 
} 
#finalHTML p {
    margin-bottom: 0;
}

#finalHTML h2 {
        color: #000ec1;
}
.sPrompts,.prmt {
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    background-color: #2a2a2a;
    color: #ccc313;
    padding: 10px 15px;
    border-radius: 6px;
    white-space: break-spaces;
    line-height: 1.5;
}
#wordPressBloc {
    text-align: center;
        margin-top: 15px;
}
#wordPressBloc button{
    font-size: 25px;
    padding: 25px 325px;
    width: 100%;
    font-weight: bold;
}

