.product-guide-note,
.product-guide-tip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.product-guide-note {
    border-left: 3px solid #7c9bd3;
}

.product-guide-note h2 {
    font-size: 1rem;
}

.product-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    text-decoration: none;
    vertical-align: middle;
}

.product-help:hover,
.product-help:focus-visible {
    background: #e9f1ff;
    color: #1d4ed8;
}

.driver-popover.wv-product-tour {
    --driver-popover-font-family: inherit;
    background: #fff;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
    max-width: min(360px, calc(100vw - 32px));
}

.wv-product-tour .driver-popover-title {
    color: #172554;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.wv-product-tour .driver-popover-description {
    color: #475569;
    line-height: 1.55;
}
.wv-product-tour .driver-popover-progress-text {
    color: #64748b;
}

.wv-product-tour .driver-popover-footer-btn {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    background: #fff;
    color: #1e3a8a;
    box-shadow: none;
    text-shadow: none;
}

.wv-product-tour .driver-popover-footer-btn:hover,
.wv-product-tour .driver-popover-footer-btn:focus-visible {
    background: #eaf2ff;
    color: #1d4ed8;
}

.wv-product-tour .driver-popover-next-btn,
.wv-product-tour .driver-popover-done-btn {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.wv-product-tour .driver-popover-next-btn:hover,
.wv-product-tour .driver-popover-next-btn:focus-visible,
.wv-product-tour .driver-popover-done-btn:hover,
.wv-product-tour .driver-popover-done-btn:focus-visible {
    background: #1d4ed8;
    color: #fff;
}

.wv-product-tour .driver-popover-arrow-side-top {
    border-top-color: #fff;
}
.wv-product-tour .driver-popover-arrow-side-right {
    border-right-color: #fff;
}
.wv-product-tour .driver-popover-arrow-side-bottom {
    border-bottom-color: #fff;
}
.wv-product-tour .driver-popover-arrow-side-left {
    border-left-color: #fff;
}

/* Formulaires catalogue : même hiérarchie visuelle pour les produits et catégories. */
.catalogue-form {
    --catalogue-ink: #1e293b;
    --catalogue-muted: #64748b;
    --catalogue-line: #e2e8f0;
}

.catalogue-form-back {
    color: var(--catalogue-muted);
}

.catalogue-form-back:hover,
.catalogue-form-back:focus-visible {
    color: var(--bs-primary);
}

.catalogue-form-header {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #dfe9f7;
    border-radius: 1.25rem;
    background: linear-gradient(110deg, #f5f9ff 0%, #fff 75%);
}

.catalogue-form-header h1,
.catalogue-form-section h2 {
    color: var(--catalogue-ink);
}

.catalogue-form-eyebrow {
    color: var(--bs-primary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.catalogue-form-subtitle,
.catalogue-form-section-caption {
    color: var(--catalogue-muted);
    line-height: 1.5;
}

.catalogue-form-subtitle {
    font-size: 0.9rem;
}
.catalogue-form-section-caption {
    font-size: 0.84rem;
}

.catalogue-form-tour {
    background: #fff;
    font-weight: 600;
    white-space: normal;
}

.catalogue-form-card {
    border: 1px solid var(--catalogue-line);
    background: #fff;
    box-shadow: 0 16px 40px rgba(30, 41, 59, 0.06);
}

.catalogue-form-section + .catalogue-form-section {
    margin-top: 2.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--catalogue-line);
}

.catalogue-form-section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.catalogue-form-number {
    display: inline-flex;
    flex: 0 0 2.15rem;
    align-items: center;
    justify-content: center;
    height: 2.15rem;
    border-radius: 0.7rem;
    background: #eaf2ff;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 750;
}

.catalogue-form-card .form-label {
    color: #334155 !important;
    font-size: 0.85rem;
    font-weight: 650;
    margin-bottom: 0.5rem;
}

.catalogue-form-label-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.catalogue-form-label-row .form-label {
    margin-bottom: 0;
}
.catalogue-form-label-row .product-help {
    flex: 0 0 1.5rem;
}

.catalogue-form-card .form-control,
.catalogue-form-card .form-select {
    min-height: 2.8rem;
    border-color: #cbd5e1;
    border-radius: 0.7rem;
    background-color: #fff;
}

.catalogue-form-card textarea.form-control {
    min-height: 7.5rem;
}
.catalogue-form-card .form-control-color {
    width: 100%;
    padding: 0.3rem;
    cursor: pointer;
}

/* Le bouton natif et le nom du fichier partagent la même hauteur et la même ligne de base. */
.catalogue-form-card input[type="file"].form-control {
    min-height: 2.8rem;
    padding: 0.5rem 0.75rem;
    line-height: 1.5;
}
.catalogue-form-card input[type="file"].form-control::file-selector-button {
    margin: -0.5rem 0.75rem -0.5rem -0.75rem;
    padding: 0.5rem 0.75rem;
    line-height: 1.5;
}

.catalogue-form-card .form-control:focus,
.catalogue-form-card .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.12);
}

.catalogue-form-card .input-group > :first-child {
    border-radius: 0.7rem 0 0 0.7rem;
}
.catalogue-form-card .input-group > :last-child {
    border-radius: 0 0.7rem 0.7rem 0;
}
.catalogue-form-card .input-group-text {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.catalogue-form-card .form-text {
    color: var(--catalogue-muted);
    line-height: 1.5;
}

.catalogue-form-status {
    min-height: 3.5rem;
    border: 1px solid #dbe7f5;
    background: #f8fbff;
}

.catalogue-form-status .form-check-label {
    color: var(--catalogue-ink);
    font-weight: 650;
    cursor: pointer;
}

.catalogue-form-status .form-switch {
    display: flex;
    align-items: center;
    padding-left: 0 !important;
}
.catalogue-form-status .form-check-input {
    flex-shrink: 0;
    float: none;
    margin: 0 !important;
}
.catalogue-form-status .form-check-label {
    margin-left: 0.75rem !important;
    line-height: 1.35;
}

.catalogue-form-actions {
    border-top: 1px solid var(--catalogue-line);
    background: #f8fafc;
}

.catalogue-form-actions .btn {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.catalogue-form-outro {
    border: 1px solid var(--catalogue-line);
    background: #f8fafc;
    color: #475569;
}

/* Liste des catégories, pour les catalogues produits et articles. */
.catalogue-index-card {
    max-width: 1320px;
    margin: 0 auto 2rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 16px 40px rgba(30, 41, 59, 0.06);
}

.catalogue-index-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.4rem 1.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.catalogue-index-card-header h2 {
    color: #1e293b;
}
.catalogue-index-count {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.catalogue-index-table {
    min-width: 680px;
    margin-bottom: 0;
}
.catalogue-index-table thead th {
    padding: 0.9rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.catalogue-index-table tbody td,
.catalogue-index-table tbody th {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
}
.catalogue-index-table tbody tr:last-child > * {
    border-bottom: 0;
}
.catalogue-index-table tbody tr:hover > * {
    background: #f8fbff;
}
.catalogue-index-name {
    color: #1e293b;
    font-weight: 700;
}
.catalogue-index-color {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: middle;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #cbd5e1;
}
.catalogue-index-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.35rem;
    border-radius: 0.6rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 700;
}
.catalogue-index-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s,
        border-color 0.2s;
}
.catalogue-index-status.is-active {
    background: #ecfdf5;
    color: #047857;
}
.catalogue-index-status.is-inactive {
    background: #f1f5f9;
    color: #475569;
}
.catalogue-index-status:hover,
.catalogue-index-status:focus-visible {
    border-color: currentColor;
}
.catalogue-index-status.is-active:hover {
    background: #d1fae5;
}
.catalogue-index-status.is-inactive:hover {
    background: #e2e8f0;
}
.catalogue-index-status-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
}
.catalogue-index-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    background: #fff;
    color: #475569;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
}
.catalogue-index-action:hover,
.catalogue-index-action:focus-visible {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}
.catalogue-index-action-danger:hover,
.catalogue-index-action-danger:focus-visible {
    background: #fff1f2;
    border-color: #fda4af;
    color: #be123c;
}
.catalogue-index-empty {
    padding: 3rem 1rem !important;
    color: #64748b;
}
.catalogue-index-empty i {
    color: #94a3b8;
    font-size: 1.75rem;
}

.catalogue-articles-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.75rem 1.25rem 3rem;
    text-align: center;
}
.catalogue-articles-empty p {
    max-width: 34rem;
}
.catalogue-articles-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 0.9rem;
    background: #eff6ff;
    color: #3159db;
    font-size: 1.35rem;
}

/* Barre de filtres du catalogue. */
.catalogue-filter-grid {
    display: grid;
    grid-template-columns: minmax(230px, 1.8fr) minmax(190px, 1.3fr) minmax(160px, 1fr) auto;
    align-items: end;
    gap: 0.75rem;
    min-width: 0;
}
.catalogue-filter-actions {
    white-space: nowrap;
}
.catalogue-filter-grid .form-control,
.catalogue-filter-grid .form-select {
    height: 2.6rem;
    border-color: #cbd5e1;
    background-color: #fff;
}
.catalogue-filter-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
}

/* Catalogue produits : le parcours de départ et la liste ont chacun leur état. */
.catalogue-products-page {
    max-width: 1360px;
}
.catalogue-products-header {
    padding: 0 0.25rem;
}
.catalogue-products-action {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.45rem 0.75rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.catalogue-products-action:hover,
.catalogue-products-action:focus-visible {
    background: #eaf2ff;
    color: #1d4ed8;
}

.catalogue-products-empty {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(30, 41, 59, 0.05);
}
.catalogue-products-empty-main {
    padding: clamp(1.75rem, 4vw, 3.25rem);
}
.catalogue-products-empty-icon,
.catalogue-products-next-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    border-radius: 0.9rem;
    background: #eaf2ff;
    color: #2563eb;
    font-size: 1.3rem;
}
.catalogue-products-eyebrow {
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.catalogue-products-empty h2,
.catalogue-products-empty h3 {
    color: #1e293b;
}
.catalogue-products-empty-copy {
    max-width: 38rem;
    color: #475569;
    line-height: 1.6;
}
.catalogue-products-empty-next {
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-left: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    line-height: 1.55;
}
.catalogue-products-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #fff;
    font-size: 1rem;
}
.catalogue-products-text-link {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}
.catalogue-products-text-link:hover,
.catalogue-products-text-link:focus-visible {
    color: #1e40af;
    text-decoration: underline;
}

.catalogue-products-publish {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.25rem;
    color: #64748b;
    font-size: 0.85rem;
}
.catalogue-products-filters {
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
}
.catalogue-products-filters .catalogue-filter-grid {
    width: 100%;
    max-width: 1000px;
}
.catalogue-products-list {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: none;
}
.catalogue-products-list-head {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}
.catalogue-products-list-head h2 {
    color: #1e293b;
}
.catalogue-products-list .table thead th {
    background: #f8fafc;
    color: #64748b;
}
.catalogue-products-list .table tbody tr:hover > * {
    background: #f8fbff;
}
.catalogue-products-list .table td,
.catalogue-products-list .table tbody th {
    padding-block: 1rem;
}
.catalogue-product-position .btn {
    min-width: 1.5rem;
    border-radius: 0.4rem;
}
.catalogue-products-no-results {
    padding: 3rem 1rem !important;
    color: #64748b;
}
.catalogue-products-no-results i {
    color: #94a3b8;
    font-size: 1.5rem;
}

@media (max-width: 991.98px) {
    .catalogue-products-empty {
        grid-template-columns: minmax(0, 1fr);
    }
    .catalogue-products-empty-next {
        border-top: 1px solid #e2e8f0;
        border-left: 0;
    }
    .catalogue-filter-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .catalogue-filter-grid > :first-child {
        grid-column: 1 / -1;
    }
    .catalogue-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 575.98px) {
    .catalogue-products-actions {
        gap: 0.25rem !important;
    }
    .catalogue-products-actions .btn-primary {
        width: 100%;
    }
    .catalogue-products-empty-main,
    .catalogue-products-empty-next {
        padding: 1.5rem;
    }
    .catalogue-products-publish {
        align-items: flex-start;
    }
    .catalogue-products-filters {
        padding: 1rem;
    }
    .catalogue-form-actions .btn {
        width: 100%;
    }
    .catalogue-index-card-header {
        padding: 1.25rem;
    }
    .catalogue-filter-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .catalogue-filter-grid > :first-child {
        grid-column: auto;
    }
}
