.catalogueDashboard {
    --catalogue-primary: #00275f;
    --catalogue-primary-dark: #001b43;
    --catalogue-primary-light: #e8eef6;
    --catalogue-navy: #082557;
    --catalogue-background: #f4f6f9;
    --catalogue-surface: #ffffff;
    --catalogue-border: #dfe5eb;
    --catalogue-text: #17202a;
    --catalogue-muted: #74808b;

    min-height: calc(100vh - 57px);
    color: var(--catalogue-text);
    background: var(--catalogue-background);
}

.catalogueDashboard * {
    box-sizing: border-box;
}

.catalogueDashboard__header {
    padding: 28px 8px 22px;
}

.catalogueDashboard__headerContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.catalogueDashboard__title {
    margin: 0 0 6px;
    color: var(--catalogue-navy);
    font-size: 30px;
    font-weight: 700;
}

.catalogueDashboard__subtitle {
    margin: 0;
    color: var(--catalogue-muted);
    font-size: 14px;
}

.catalogueDashboard__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.catalogueDashboard__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 17px;
    color: #ffffff;
    background: var(--catalogue-primary);
    border: 1px solid var(--catalogue-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
}

.catalogueDashboard__button:hover {
    color: #ffffff;
    background: var(--catalogue-primary-dark);
    border-color: var(--catalogue-primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

.catalogueDashboard__button--secondary {
    color: #47515b;
    background: #ffffff;
    border-color: var(--catalogue-border);
}

.catalogueDashboard__button--secondary:hover {
    color: var(--catalogue-primary);
    background: #ffffff;
    border-color: var(--catalogue-primary);
}

.catalogueDashboard__statistics {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 290px));
    gap: 15px;
    margin-bottom: 22px;
}

.catalogueStatistic {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 90px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--catalogue-border);
    border-radius: 11px;
    box-shadow: 0 4px 15px rgba(25, 35, 45, 0.04);
}

.catalogueStatistic__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: var(--catalogue-primary);
    background: var(--catalogue-primary-light);
    border-radius: 10px;
    font-size: 20px;
    flex-shrink: 0;
}

.catalogueStatistic__value {
    display: block;
    margin-bottom: 3px;
    color: var(--catalogue-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.catalogueStatistic__label {
    color: var(--catalogue-muted);
    font-size: 13px;
}

.catalogueDashboard__layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    overflow: hidden;
    min-height: 610px;
    background: #ffffff;
    border: 1px solid var(--catalogue-border);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(25, 35, 45, 0.05);
}

/* Pages */

.cataloguePages {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fafbfc;
    border-right: 1px solid var(--catalogue-border);
}

.cataloguePages__header {
    padding: 21px 19px 18px;
    border-bottom: 1px solid var(--catalogue-border);
}

.cataloguePages__title {
    margin: 0 0 4px;
    color: var(--catalogue-text);
    font-size: 18px;
    font-weight: 700;
}

.cataloguePages__description {
    margin: 0;
    color: var(--catalogue-muted);
    font-size: 12px;
}

.catalogueSearch {
    position: relative;
    margin-top: 16px;
}

.catalogueSearch__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #939da6;
    font-size: 13px;
    transform: translateY(-50%);
    pointer-events: none;
}

.catalogueSearch__input {
    width: 100%;
    height: 41px;
    padding: 8px 13px 8px 39px;
    color: var(--catalogue-text);
    background: #ffffff;
    border: 1px solid var(--catalogue-border);
    border-radius: 8px;
    outline: none;
    font-size: 13px;
    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease;
}

.catalogueSearch__input:focus {
    border-color: var(--catalogue-primary);
    box-shadow: 0 0 0 3px rgba(0, 39, 95, 0.1);
}

.cataloguePages__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

.cataloguePage {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: inherit;
    background: #ffffff;
    border: 1px solid var(--catalogue-border);
    border-radius: 9px;
    outline: none;
    text-align: left;
    cursor: pointer;
    transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
}

.cataloguePage:hover {
    border-color: rgba(0, 39, 95, 0.55);
    box-shadow: 0 5px 14px rgba(0, 39, 95, 0.07);
    transform: translateY(-1px);
}

.cataloguePage--active {
    background: var(--catalogue-primary-light);
    border-color: var(--catalogue-primary);
    box-shadow: 0 5px 15px rgba(0, 39, 95, 0.1);
}

.cataloguePage__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--catalogue-primary);
    background: var(--catalogue-primary-light);
    border-radius: 9px;
    font-size: 17px;
    flex-shrink: 0;
}

.cataloguePage--active .cataloguePage__icon {
    color: #ffffff;
    background: var(--catalogue-primary);
}

.cataloguePage__content {
    min-width: 0;
    flex: 1;
}

.cataloguePage__name {
    display: block;
    overflow: hidden;
    margin-bottom: 4px;
    color: var(--catalogue-text);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    text-transform: capitalize;
    white-space: nowrap;
}

.cataloguePage__count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--catalogue-muted);
    font-size: 11px;
}

.cataloguePage__arrow {
    color: #9aa4ad;
    font-size: 12px;
    transition:
            color 0.2s ease,
            transform 0.2s ease;
}

.cataloguePage--active .cataloguePage__arrow {
    color: var(--catalogue-primary);
    transform: translateX(3px);
}

.cataloguePages__empty {
    display: none;
    padding: 35px 15px;
    color: var(--catalogue-muted);
    text-align: center;
    font-size: 13px;
}

/* Contenu */

.catalogueContent {
    min-width: 0;
    background: #ffffff;
}

.cataloguePanel {
    display: none;
}

.cataloguePanel--active {
    display: block;
}

.catalogueContent__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 24px;
    border-bottom: 1px solid var(--catalogue-border);
}

.catalogueContent__title {
    margin: 0 0 5px;
    color: var(--catalogue-text);
    font-size: 20px;
    font-weight: 700;
}

.catalogueContent__pageName {
    color: var(--catalogue-primary);
    text-transform: capitalize;
}

.catalogueContent__description {
    margin: 0;
    color: var(--catalogue-muted);
    font-size: 13px;
}

.catalogueContent__search {
    width: 285px;
    flex-shrink: 0;
}

.catalogueContent__search .catalogueSearch {
    margin: 0;
}

/* Cartes catégories */

.catalogueCategories {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 18px;
    padding: 23px;
}

.catalogueCategory {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 225px;
    background: #ffffff;
    border: 1px solid var(--catalogue-border);
    border-radius: 11px;
    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
}

.catalogueCategory:hover {
    border-color: rgba(0, 39, 95, 0.6);
    box-shadow: 0 10px 26px rgba(0, 39, 95, 0.09);
    transform: translateY(-3px);
}

.catalogueCategory__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.catalogueCategory__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 49px;
    color: var(--catalogue-primary);
    background: var(--catalogue-primary-light);
    border-radius: 10px;
    font-size: 20px;
}

.catalogueCategory__title {
    margin: 0 0 8px;
    color: var(--catalogue-text);
    font-size: 17px;
    font-weight: 700;
    text-transform: capitalize;
}

.catalogueCategory__description {
    margin: 0 0 20px;
    color: var(--catalogue-muted);
    font-size: 13px;
    line-height: 1.55;
}

.catalogueCategory__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #edf0f2;
}

.catalogueCategory__page {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    color: var(--catalogue-primary);
    background: var(--catalogue-primary-light);
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
}

.catalogueCategory__open {
    color: var(--catalogue-primary);
    font-size: 12px;
    font-weight: 700;
}

.cataloguePanel__empty,
.cataloguePanel__noResult {
    padding: 80px 25px;
    color: var(--catalogue-muted);
    text-align: center;
}

.cataloguePanel__noResult {
    display: none;
    grid-column: 1 / -1;
}

.cataloguePanel__emptyIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 17px;
    color: var(--catalogue-primary);
    background: var(--catalogue-primary-light);
    border-radius: 50%;
    font-size: 27px;
}

.cataloguePanel__emptyTitle {
    margin: 0 0 7px;
    color: var(--catalogue-text);
    font-size: 19px;
    font-weight: 700;
}

.cataloguePanel__emptyText {
    margin: 0;
    font-size: 13px;
}

@media (max-width: 1199px) {
    .catalogueDashboard__layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .catalogueCategories {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 991px) {
    .catalogueDashboard__headerContent,
    .catalogueContent__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalogueDashboard__layout {
        display: block;
    }

    .cataloguePages {
        border-right: 0;
        border-bottom: 1px solid var(--catalogue-border);
    }

    .cataloguePages__list {
        display: grid;
        grid-template-columns: repeat(3, minmax(190px, 1fr));
    }

    .catalogueContent__search {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .catalogueDashboard__header {
        padding-top: 20px;
    }

    .catalogueDashboard__actions {
        width: 100%;
        flex-direction: column;
    }

    .catalogueDashboard__button {
        width: 100%;
    }

    .catalogueDashboard__statistics,
    .cataloguePages__list,
    .catalogueCategories {
        grid-template-columns: 1fr;
    }

    .catalogueContent__header {
        padding: 18px 15px;
    }

    .catalogueCategories {
        padding: 15px;
    }
}

.catalogueCategory__footerInfo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.catalogueCategory__productCount {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    color: #58636d;
    background: #f0f2f4;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.catalogueCategory__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.catalogueCategory__actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.catalogueCategory__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    color: #8d98a2;
    background: #f0f2f4;
    border: 1px solid transparent;
    border-radius: 50%;
    text-decoration: none;
    transition:
            color 0.2s ease,
            background-color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.catalogueCategory__action:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.catalogueCategory__action--view:hover {
    color: #ffffff;
    background: #00275f;
}

.catalogueCategory__action--edit:hover {
    color: #ffffff;
    background: #1677ff;
}

.catalogueCategory__action--delete:hover {
    color: #ffffff;
    background: #dc3545;
}

.catalogueCategory__open {
    color: #00275f;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.catalogueCategory__open:hover {
    color: #001b43;
    text-decoration: underline;
}

/*@todo suppression catégorie */

.suppressionCategorie,
.suppressionProduit {
    --primary: #00275f;
    --primary-light: #e8eef6;
    --navy: #082557;
    --background: #f4f6f9;
    --surface: #ffffff;
    --border: #dfe5eb;
    --text: #17202a;
    --muted: #74808b;
    --danger: #dc3545;
    --danger-dark: #b92534;
    --danger-light: #fff1f2;

    min-height: calc(100vh - 57px);
    background: var(--background);
}

.suppressionCategorie *,
.suppressionProduit * {
    box-sizing: border-box;
}

.suppressionCategorie__header,
.suppressionProduit__header {
    padding: 28px 8px 22px;
}

.suppressionCategorie__headerContent,
.suppressionProduit__headerContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.suppressionCategorie__title,
.suppressionProduit__title {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 30px;
    font-weight: 700;
}

.suppressionCategorie__subtitle,
.suppressionProduit__subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.suppressionCategorie__back,
.suppressionProduit__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    color: #47515b;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
            color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.suppressionCategorie__back:hover,
.suppressionProduit__back:hover {
    color: var(--primary);
    border-color: var(--primary);
    text-decoration: none;
    transform: translateY(-1px);
}

.suppressionCategorie__container {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 45px;
}

.suppressionCategorie__warning,
.suppressionProduit__warning {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 18px 20px;
    color: #842029;
    background: var(--danger-light);
    border: 1px solid #f3b8be;
    border-radius: 10px;
}

.suppressionCategorie__warningIcon,
.suppressionProduit__warningIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: var(--danger);
    border-radius: 9px;
    font-size: 18px;
    flex-shrink: 0;
}

.suppressionCategorie__warningTitle,
.suppressionProduit__warningTitle {
    margin: 0 0 5px;
    color: #842029;
    font-size: 16px;
    font-weight: 700;
}

.suppressionCategorie__warningText,
.suppressionProduit__warningText {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.suppressionCategorie__card,
.suppressionProduit__card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(25, 35, 45, 0.06);
}

.suppressionCategorie__cardHeader,
.suppressionProduit__cardHeader {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 22px;
    background: #fbfcfd;
    border-bottom: 1px solid var(--border);
}

.suppressionCategorie__cardIcon,
.suppressionProduit__cardIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--danger);
    background: var(--danger-light);
    border-radius: 9px;
    font-size: 18px;
    flex-shrink: 0;
}

.suppressionCategorie__cardTitle,
.suppressionProduit__cardTitle {
    margin: 0 0 3px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
}

.suppressionCategorie__cardDescription,
.suppressionProduit__cardDescription {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.suppressionCategorie__cardBody,
.suppressionProduit__cardBody {
    padding: 24px;
}

.suppressionCategorie__information,
.suppressionProduit__information {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 24px;
}

.suppressionCategorie__informationItem {
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.suppressionCategorie__informationLabel {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.suppressionCategorie__informationValue {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    text-transform: capitalize;
}

.suppressionCategorie__informationValue i {
    color: var(--primary);
}

.suppressionCategorie__confirmation,
.suppressionProduit__confirmation {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    padding: 14px 15px;
    background: #fff9e8;
    border: 1px solid #f2dda0;
    border-radius: 8px;
}

.suppressionCategorie__confirmation input,
.suppressionProduit__confirmation input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--danger);
    flex-shrink: 0;
}

.suppressionCategorie__confirmation label,
.suppressionProduit__confirmation label {
    margin: 0;
    color: #66551d;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.suppressionCategorie__actions,
.suppressionProduit__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.suppressionCategorie__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
}

.suppressionCategorie__button:hover,
.suppressionProduit__button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.suppressionCategorie__button--cancel,
.suppressionProduit__button--cancel {
    color: #47515b;
    background: #ffffff;
    border: 1px solid var(--border);
}

.suppressionCategorie__button--cancel:hover,
.suppressionProduit__button--cancel:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.suppressionCategorie__button--delete,
.suppressionProduit__button--delete {
    color: #ffffff;
    background: var(--danger);
    border: 1px solid var(--danger);
}

.suppressionCategorie__button--delete:hover,
.suppressionProduit__button--delete:hover {
    color: #ffffff;
    background: var(--danger-dark);
    border-color: var(--danger-dark);
}

.suppressionCategorie__button--delete:disabled,
.suppressionProduit__button--delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 767px) {
    .suppressionCategorie__headerContent {
        align-items: flex-start;
        flex-direction: column;
    }

    .suppressionCategorie__back {
        width: 100%;
    }

    .suppressionCategorie__title {
        font-size: 25px;
    }

    .suppressionCategorie__information,
    .suppressionCategorie__actions {
        grid-template-columns: 1fr;
    }

    .suppressionCategorie__cardBody {
        padding: 19px 16px;
    }
}

/*@todo modifier catégorie */

.modificationCategorie,
.modificationProduit {
    --primary: #00275f;
    --primary-dark: #001b43;
    --primary-light: #e8eef6;
    --navy: #082557;
    --background: #f4f6f9;
    --surface: #ffffff;
    --border: #dfe5eb;
    --text: #17202a;
    --muted: #74808b;
    --danger: #dc3545;

    min-height: calc(100vh - 57px);
    background: var(--background);
}

.modificationCategorie *,
.modificationProduit * {
    box-sizing: border-box;
}

.modificationCategorie__header,
.modificationProduit__header {
    padding: 28px 8px 22px;
}

.modificationCategorie__headerContent,
.modificationProduit__headerContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.modificationCategorie__title,
.modificationProduit__title {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 30px;
    font-weight: 700;
}

.modificationCategorie__subtitle,
.modificationProduit__subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.modificationCategorie__back,
.modificationProduit__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    color: #47515b;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
            color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.modificationCategorie__back:hover,
.modificationProduit__back:hover {
    color: var(--primary);
    border-color: var(--primary);
    text-decoration: none;
    transform: translateY(-1px);
}

.modificationCategorie__container {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 45px;
}

.modificationCategorie__card,
.modificationProduit__card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(25, 35, 45, 0.06);
}

.modificationCategorie__cardHeader,
.modificationProduit__cardHeader {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 22px;
    background: #fbfcfd;
    border-bottom: 1px solid var(--border);
}

.modificationCategorie__cardIcon,
.modificationProduit__cardIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 9px;
    font-size: 18px;
    flex-shrink: 0;
}

.modificationCategorie__cardTitle,
.modificationProduit__cardTitle {
    margin: 0 0 3px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
}

.modificationCategorie__cardDescription,
.modificationProduit__cardDescription {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.modificationCategorie__cardBody,
.modificationProduit__cardBody {
    padding: 24px;
}

.modificationCategorie__field {
    margin-bottom: 21px;
}

.modificationCategorie__label,
.modificationProduit__label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.modificationCategorie__page {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 13px;
    color: #4e5963;
    background: #f3f5f7;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
}

.modificationCategorie__page i {
    color: var(--primary);
}

.modificationCategorie__input,
.modificationProduit__input {
    width: 100%;
    min-height: 44px;
    padding: 9px 13px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease;
}

.modificationCategorie__input:focus,
.modificationProduit__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 39, 95, 0.1);
}

.modificationCategorie__help,
.modificationProduit__help {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
}

.modificationCategorie__error {
    display: block;
    margin-top: 7px;
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
}

.modificationCategorie__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
}

.modificationCategorie__button,
.modificationProduit__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
            color 0.2s ease,
            background-color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.modificationCategorie__button:hover,
.modificationProduit__button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.modificationCategorie__button--cancel,
.modificationProduit__button--cancel {
    color: #47515b;
    background: #ffffff;
    border: 1px solid var(--border);
}

.modificationCategorie__button--cancel:hover,
.modificationProduit__button--cancel:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.modificationCategorie__button--save,
.modificationProduit__button--save {
    color: #ffffff;
    background: var(--primary);
    border: 1px solid var(--primary);
}

.modificationCategorie__button--save:hover,
.modificationProduit__button--save:hover {
    color: #ffffff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

@media (max-width: 767px) {
    .modificationCategorie__headerContent {
        align-items: flex-start;
        flex-direction: column;
    }

    .modificationCategorie__back {
        width: 100%;
    }

    .modificationCategorie__title {
        font-size: 25px;
    }

    .modificationCategorie__actions {
        grid-template-columns: 1fr;
    }

    .modificationCategorie__cardBody {
        padding: 19px 16px;
    }
}

/*@todo ajouter produits */

.produitsCategorie {
    --primary: #00275f;
    --primary-dark: #001b43;
    --primary-light: #e8eef6;
    --navy: #082557;
    --background: #f4f6f9;
    --surface: #ffffff;
    --border: #dfe5eb;
    --text: #17202a;
    --muted: #74808b;
    --danger: #dc3545;

    min-height: calc(100vh - 57px);
    background: var(--background);
}

.produitsCategorie * {
    box-sizing: border-box;
}

.produitsCategorie__header {
    padding: 28px 8px 22px;
}

.produitsCategorie__headerContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.produitsCategorie__title {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 30px;
    font-weight: 700;
}

.produitsCategorie__subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.produitsCategorie__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 17px;
    color: #47515b;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
            color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.produitsCategorie__button:hover {
    color: var(--primary);
    border-color: var(--primary);
    text-decoration: none;
    transform: translateY(-1px);
}

.produitsCategorie__statistic {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 300px;
    min-height: 90px;
    margin-bottom: 22px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 11px;
    box-shadow: 0 4px 15px rgba(25, 35, 45, 0.04);
}

.produitsCategorie__statisticIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 10px;
    font-size: 20px;
    flex-shrink: 0;
}

.produitsCategorie__statisticValue {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.produitsCategorie__statisticLabel {
    color: var(--muted);
    font-size: 13px;
}

.produitsCategorie__panel {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(25, 35, 45, 0.05);
}

.produitsCategorie__panelHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 24px;
    border-bottom: 1px solid var(--border);
}

.produitsCategorie__panelTitle {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
}

.produitsCategorie__panelDescription {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.produitsCategorie__search {
    position: relative;
    width: 310px;
    flex-shrink: 0;
}

.produitsCategorie__searchIcon {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #939da6;
    font-size: 13px;
    transform: translateY(-50%);
    pointer-events: none;
}

.produitsCategorie__searchInput {
    width: 100%;
    height: 42px;
    padding: 8px 14px 8px 40px;
    color: var(--text);
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-size: 13px;
}

.produitsCategorie__searchInput:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 39, 95, 0.1);
}

.produitsCategorie__tableWrapper {
    overflow-x: auto;
}

.produitsTable {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.produitsTable th {
    padding: 14px 16px;
    color: #55606b;
    background: #f7f8fa;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.produitsTable td {
    padding: 16px;
    color: #414b55;
    border-bottom: 1px solid #e8ecef;
    font-size: 13px;
    vertical-align: middle;
}

.produitsTable tbody tr {
    transition: background-color 0.2s ease;
}

.produitsTable tbody tr:hover {
    background: #f8fafd;
}

.produitsTable tbody tr:last-child td {
    border-bottom: 0;
}

.produitIdentity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.produitIdentity__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 8px;
    font-size: 15px;
    flex-shrink: 0;
}

.produitIdentity__name {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.produitIdentity__id {
    color: var(--muted);
    font-size: 11px;
}

.produitBadge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #4e5963;
    background: #f0f2f4;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.produitPrice {
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.produitDate {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.produitActions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.produitActions__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    color: #ffffff;
    border-radius: 7px;
    text-decoration: none;
    transition:
            opacity 0.2s ease,
            transform 0.2s ease;
}

.produitActions__button:hover {
    color: #ffffff;
    opacity: 0.85;
    text-decoration: none;
    transform: translateY(-1px);
}

.produitActions__button--edit {
    background: var(--primary);
}

.produitActions__button--delete {
    background: var(--danger);
}

.produitsCategorie__empty,
.produitsCategorie__noResult {
    padding: 75px 25px;
    color: var(--muted);
    text-align: center;
}

.produitsCategorie__noResult {
    display: none;
}

.produitsCategorie__emptyIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 50%;
    font-size: 29px;
}

.produitsCategorie__emptyTitle {
    margin: 0 0 7px;
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
}

.produitsCategorie__emptyText {
    margin: 0;
    font-size: 13px;
}

@media (max-width: 991px) {
    .produitsCategorie__headerContent,
    .produitsCategorie__panelHeader {
        align-items: flex-start;
        flex-direction: column;
    }

    .produitsCategorie__search {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .produitsCategorie__header {
        padding-top: 20px;
    }

    .produitsCategorie__button {
        width: 100%;
    }

    .produitsCategorie__statistic {
        width: 100%;
    }

    .produitsCategorie__panelHeader {
        padding: 18px 15px;
    }

    .produitsTable {
        min-width: 850px;
    }
}

/*@todo modifier un produit */









.modificationProduit__container {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 45px;
}







.modificationProduit__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.modificationProduit__field {
    margin-bottom: 20px;
}


.modificationProduit__required {
    color: var(--danger);
}



.modificationProduit__readonly {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 9px 13px;
    color: #4e5963;
    background: #f3f5f7;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
}

.modificationProduit__readonly i {
    color: var(--primary);
}


.modificationProduit__error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
}

.modificationProduit__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 5px;
}







@media (max-width: 767px) {
    .modificationProduit__headerContent {
        align-items: flex-start;
        flex-direction: column;
    }

    .modificationProduit__back {
        width: 100%;
    }

    .modificationProduit__title {
        font-size: 25px;
    }

    .modificationProduit__row,
    .modificationProduit__actions {
        grid-template-columns: 1fr;
    }

    .modificationProduit__cardBody {
        padding: 19px 16px;
    }
}

/*@todo supprimer un produit */



/*
 * En-tête
 */







/*
 * Conteneur
 */

.suppressionProduit__container {
    max-width: 780px;
    margin: 0 auto;
    padding-bottom: 45px;
}

/*
 * Avertissement
 */





/*
 * Carte
 */







/*
 * Informations
 */


.suppressionProduit__informationItem {
    min-width: 0;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.suppressionProduit__informationItem--large {
    grid-column: 1 / -1;
}

.suppressionProduit__informationLabel {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.suppressionProduit__informationValue {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.suppressionProduit__informationValue i {
    width: 16px;
    color: var(--primary);
    text-align: center;
    flex-shrink: 0;
}

.suppressionProduit__informationValue span {
    overflow-wrap: anywhere;
}

.suppressionProduit__price {
    color: var(--primary);
    font-size: 16px;
}

/*
 * Confirmation
 */




/*
 * Boutons
 */


.suppressionProduit__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
            color 0.2s ease,
            background-color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}







/*
 * Responsive
 */

@media (max-width: 767px) {
    .suppressionProduit__headerContent {
        align-items: flex-start;
        flex-direction: column;
    }

    .suppressionProduit__back {
        width: 100%;
    }

    .suppressionProduit__title {
        font-size: 25px;
    }

    .suppressionProduit__information,
    .suppressionProduit__actions {
        grid-template-columns: 1fr;
    }

    .suppressionProduit__informationItem--large {
        grid-column: auto;
    }

    .suppressionProduit__cardBody {
        padding: 19px 16px;
    }
}

/*@todo navigation */

.catalogueSidebar {
    --sidebar-background: #313940;
    --sidebar-background-dark: #293138;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-text: #c5ccd2;
    --sidebar-muted: #8e99a2;
    --sidebar-primary: #00275f;
    --sidebar-primary-dark: #001b43;
    --sidebar-primary-light: rgba(0, 39, 95, 0.16);

    display: flex;
    min-height: 100vh;
    flex-direction: column;
    overflow: hidden;
    background: var(--sidebar-background);
    border-right: 1px solid rgba(20, 30, 40, 0.12);
    box-shadow: 5px 0 18px rgba(20, 28, 35, 0.08);
}

/*
 * Logo
 */

.catalogueSidebar__brand {
    display: flex;
    height: 74px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: var(--sidebar-background);
    border-bottom: 1px solid var(--sidebar-border) !important;
    text-decoration: none;
}

.catalogueSidebar__brand:hover {
    text-decoration: none;
}

.catalogueSidebar__logo {
    display: block;
    width: auto;
    max-width: 145px;
    max-height: 52px;
    object-fit: contain;
}

/*
 * Structure interne
 */

.catalogueSidebar__content {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    padding: 0 !important;
}

.catalogueSidebar__heading {
    padding: 22px 20px 10px;
    color: var(--sidebar-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.catalogueSidebar__navigation {
    padding: 0 12px;
}

.catalogueSidebar__navigation .nav {
    gap: 8px;
}

/*
 * Liens
 */

.catalogueSidebar__link {
    display: flex !important;
    min-height: 66px;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 11px 12px !important;
    color: var(--sidebar-text) !important;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px !important;
    box-shadow: none !important;
    transition:
            color 0.2s ease,
            background-color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.catalogueSidebar__link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.055) !important;
    border-color: var(--sidebar-border);
    transform: translateX(2px);
}

/*
 * Icône du menu
 */

.catalogueSidebar__icon {
    display: inline-flex;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    color: #9fb4d0;
    background: var(--sidebar-primary-light);
    border-radius: 9px;
    font-size: 16px;
    flex-shrink: 0;
}

/*
 * Textes
 */

.catalogueSidebar__linkContent {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.catalogueSidebar__linkTitle {
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.catalogueSidebar__linkText {
    overflow: hidden;
    color: var(--sidebar-muted);
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalogueSidebar__arrow {
    color: var(--sidebar-muted);
    font-size: 10px;
    flex-shrink: 0;
    transition:
            color 0.2s ease,
            transform 0.2s ease;
}

.catalogueSidebar__link:hover .catalogueSidebar__arrow {
    color: #ffffff;
    transform: translateX(2px);
}

/*
 * Pied de la barre latérale
 */

.catalogueSidebar__footer {
    margin-top: auto;
    padding: 15px 13px 19px;
    background: var(--sidebar-background-dark);
    border-top: 1px solid var(--sidebar-border);
}

.catalogueSidebar__logout {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--sidebar-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
            color 0.2s ease,
            background-color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.catalogueSidebar__logout:hover {
    color: #ffffff;
    background: #dc3545;
    border-color: #dc3545;
    text-decoration: none;
    transform: translateY(-1px);
}

/*
 * Réduction AdminLTE
 */

.sidebar-mini.sidebar-collapse .catalogueSidebar__heading,
.sidebar-mini.sidebar-collapse .catalogueSidebar__linkContent,
.sidebar-mini.sidebar-collapse .catalogueSidebar__arrow,
.sidebar-mini.sidebar-collapse .catalogueSidebar__logout span {
    display: none;
}

.sidebar-mini.sidebar-collapse .catalogueSidebar__link {
    justify-content: center;
    min-height: 52px;
    padding: 6px !important;
}

.sidebar-mini.sidebar-collapse .catalogueSidebar__icon {
    margin: 0;
}

.sidebar-mini.sidebar-collapse .catalogueSidebar__logout {
    justify-content: center;
}

.sidebar-mini.sidebar-collapse .catalogueSidebar__logout {
    padding: 9px;
}

@media (max-width: 767px) {
    .catalogueSidebar__linkText {
        display: none;
    }
}

/*@todo commandes */

.commandesPage {
    --primary: #00275f;
    --primary-dark: #001b43;
    --primary-light: #e8eef6;
    --navy: #082557;
    --background: #f4f6f9;
    --surface: #ffffff;
    --border: #dfe5eb;
    --text: #17202a;
    --muted: #74808b;

    min-height: calc(100vh - 57px);
    color: var(--text);
    background: var(--background);
}

.commandesPage * {
    box-sizing: border-box;
}

/*
 * En-tête
 */

.commandesPage__header {
    padding: 28px 8px 22px;
}

.commandesPage__headerContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.commandesPage__title {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 30px;
    font-weight: 700;
}

.commandesPage__subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/*
 * Filtre de période
 */

.commandesPeriod {
    margin-bottom: 18px;
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(25, 35, 45, 0.04);
}

.commandesPeriod__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.commandesPeriod__title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 5px;
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
}

.commandesPeriod__title i {
    color: var(--primary);
    font-size: 15px;
}

.commandesPeriod__description {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.commandesPeriod__summary {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 6px 11px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.commandesPeriod__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 260px)) auto;
    align-items: end;
    gap: 14px;
}

.commandesPeriod__field {
    min-width: 0;
}

.commandesPeriod__label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}

.commandesPeriod__input {
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    color: var(--text);
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font: inherit;
    font-size: 13px;
    transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease;
}

.commandesPeriod__input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 39, 95, 0.1);
}

.commandesPeriod__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.commandesPeriod__submit,
.commandesPeriod__reset {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition:
            color 0.2s ease,
            background-color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.commandesPeriod__submit {
    color: #ffffff;
    background: var(--primary);
    border: 1px solid var(--primary);
    cursor: pointer;
}

.commandesPeriod__submit:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.commandesPeriod__reset {
    color: #56616c;
    background: #ffffff;
    border: 1px solid var(--border);
}

.commandesPeriod__reset:hover {
    color: var(--primary);
    border-color: var(--primary);
    text-decoration: none;
}

.commandesPeriod__error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    color: #842029;
    background: #fff1f2;
    border: 1px solid #f3b8be;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
}

/*
 * Statistiques
 */

.commandesPage__statistics {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 310px));
    gap: 15px;
    margin-bottom: 22px;
}

.commandesStatistic {
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 11px;
    box-shadow: 0 4px 15px rgba(25, 35, 45, 0.04);
}

.commandesStatistic__icon {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 10px;
    font-size: 20px;
    flex-shrink: 0;
}

.commandesStatistic__value {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.commandesStatistic__label {
    color: var(--muted);
    font-size: 13px;
}

.commandesStatistic__value--price {
    color: var(--primary);
}

/*
 * Panneau principal
 */

.commandesPage__panel {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(25, 35, 45, 0.05);
}

.commandesPage__panelHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 24px;
    border-bottom: 1px solid var(--border);
}

.commandesPage__panelTitle {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
}

.commandesPage__panelDescription {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/*
 * Recherche
 */

.commandesPage__search {
    width: 320px;
    flex-shrink: 0;
}

.commandesPage__searchLabel {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.commandesPage__searchField {
    position: relative;
}

.commandesPage__searchIcon {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #939da6;
    font-size: 13px;
    transform: translateY(-50%);
    pointer-events: none;
}

.commandesPage__searchInput {
    width: 100%;
    height: 42px;
    padding: 8px 14px 8px 40px;
    color: var(--text);
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-size: 13px;
    transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease;
}

.commandesPage__searchInput:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 39, 95, 0.1);
}

/*
 * Tableau
 */

.commandesPage__tableWrapper {
    overflow-x: auto;
}

.commandesTable {
    width: 100%;
    margin: 0 !important;
    border-collapse: collapse;
}

.commandesTable thead th {
    padding: 14px 16px;
    color: #56616c;
    background: #f7f8fa;
    border: 0;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.commandesTable tbody td {
    padding: 15px 16px;
    color: #414b55;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #e8ecef;
    font-size: 13px;
    vertical-align: middle;
}

.commandesTable tbody tr {
    transition: background-color 0.2s ease;
}

.commandesTable tbody tr:hover td {
    background: #f8fafd;
}

.commandesTable tbody tr:last-child td {
    border-bottom: 0;
}

/*
 * Identité de la commande
 */

.commandeIdentity {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 260px;
}

.commandeIdentity__icon {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 8px;
    font-size: 15px;
    flex-shrink: 0;
}

.commandeIdentity__content {
    min-width: 0;
}

.commandeIdentity__number {
    display: block;
    overflow: hidden;
    max-width: 420px;
    margin-bottom: 3px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.commandeIdentity__id {
    color: var(--muted);
    font-size: 11px;
}

/*
 * Client
 */

.commandeClient {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #46515b;
    white-space: nowrap;
}

.commandeClient i {
    color: var(--primary);
    font-size: 12px;
}

.commandeDate {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

/*
 * Prix et service
 */

.commandePrice {
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.commandeService {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 29px;
    padding: 5px 10px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
}

.commandeServices {
    display: flex;
    min-width: 170px;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.commandeService--empty {
    color: var(--muted);
    background: #f0f2f4;
}

/*
 * Action
 */

.commandeAction {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--primary);
    border-radius: 7px;
    text-decoration: none;
    transition:
            background-color 0.2s ease,
            transform 0.2s ease;
}

.commandeAction:hover {
    color: #ffffff;
    background: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

/*
 * État vide
 */

.commandesPage__empty {
    padding: 75px 25px;
    color: var(--muted);
    text-align: center;
}

.commandesPage__emptyIcon {
    display: flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 50%;
    font-size: 28px;
}

.commandesPage__emptyTitle {
    margin: 0 0 7px;
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
}

.commandesPage__emptyText {
    margin: 0;
    font-size: 13px;
}

/*
 * DataTables
 */

.commandesPage .dataTables_filter,
.commandesPage .dataTables_length {
    display: none;
}

.commandesPage .dataTables_wrapper {
    padding: 0;
}

.commandesPage .dataTables_wrapper .row {
    margin: 0;
}

.commandesPage .dataTables_info {
    padding: 18px 20px !important;
    color: var(--muted);
    font-size: 12px;
}

.commandesPage .dataTables_paginate {
    padding: 12px 20px 17px !important;
}

.commandesPage .pagination {
    gap: 5px;
    margin: 0;
}

.commandesPage .page-item .page-link {
    display: flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    color: #56616c;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 12px;
    box-shadow: none;
}

.commandesPage .page-item .page-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.commandesPage .page-item.active .page-link {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
}

.commandesPage .page-item.disabled .page-link {
    color: #a0a7ae;
    background: #f5f6f7;
}

/*
 * Responsive
 */

@media (max-width: 991px) {
    .commandesPage__headerContent,
    .commandesPage__panelHeader {
        align-items: flex-start;
        flex-direction: column;
    }

    .commandesPage__search {
        width: 100%;
    }

    .commandesPage__statistics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .commandesPeriod__form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .commandesPeriod__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .commandesPage__header {
        padding-top: 20px;
    }

    .commandesPage__statistics {
        grid-template-columns: 1fr;
    }

    .commandesPeriod {
        padding: 17px 15px;
    }

    .commandesPeriod__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .commandesPeriod__form {
        grid-template-columns: 1fr;
    }

    .commandesPeriod__actions {
        grid-column: auto;
        flex-wrap: wrap;
    }

    .commandesPage__panelHeader {
        padding: 18px 15px;
    }

    .commandesTable {
        min-width: 1120px;
    }
}

/*@todo visualisation */

.commandeDetail {
    --primary: #00275f;
    --primary-dark: #001b43;
    --primary-light: #e8eef6;
    --navy: #082557;
    --background: #f4f6f9;
    --surface: #ffffff;
    --border: #dfe5eb;
    --text: #17202a;
    --muted: #74808b;

    min-height: calc(100vh - 57px);
    color: var(--text);
    background: var(--background);
}

.commandeDetail * {
    box-sizing: border-box;
}

/* En-tête */

.commandeDetail__header {
    padding: 28px 8px 22px;
}

.commandeDetail__headerContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.commandeDetail__title {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 30px;
    font-weight: 700;
}

.commandeDetail__subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.commandeDetail__back {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    color: #47515b;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
            color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.commandeDetail__back:hover {
    color: var(--primary);
    border-color: var(--primary);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Résumé */

.commandeDetail__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.commandeSummary {
    display: flex;
    min-height: 94px;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 11px;
    box-shadow: 0 4px 15px rgba(25, 35, 45, 0.04);
}

.commandeSummary__icon {
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 10px;
    font-size: 19px;
    flex-shrink: 0;
}

.commandeSummary__label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.commandeSummary__value {
    display: block;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.commandeSummary__value--price {
    color: var(--primary);
    font-size: 21px;
}

/* Organisation principale */

.commandeDetail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
    align-items: start;
    gap: 20px;
    padding-bottom: 40px;
}

.commandeDetail__column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 20px;
}

/* Cartes */

.commandeCard {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(25, 35, 45, 0.05);
}

.commandeCard__header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 19px 21px;
    background: #fbfcfd;
    border-bottom: 1px solid var(--border);
}

.commandeCard__icon {
    display: flex;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 9px;
    font-size: 17px;
    flex-shrink: 0;
}

.commandeCard__title {
    margin: 0 0 3px;
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
}

.commandeCard__description {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.commandeCard__body {
    padding: 21px;
}

/* Adresses */

.commandeAddresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.commandeAddress {
    min-width: 0;
    padding: 17px;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.commandeAddress__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 15px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.commandeAddress__title i {
    color: var(--primary);
}

.commandeAddress__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.commandeAddress__row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.commandeAddress__label {
    color: var(--muted);
    font-weight: 600;
}

.commandeAddress__value {
    min-width: 0;
    color: var(--text);
    overflow-wrap: anywhere;
}

/* Informations commande */

.commandeInformations {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.commandeInformations__item {
    padding: 14px 15px;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.commandeInformations__label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.commandeInformations__value {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.commandeInformations__value i {
    width: 16px;
    color: var(--primary);
    text-align: center;
    flex-shrink: 0;
}

.commandeInformations__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

/* Tableau produits */

.commandeProducts {
    overflow-x: auto;
}

.commandeProducts__table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.commandeProducts__table th {
    padding: 13px 15px;
    color: #56616c;
    background: #f7f8fa;
    border-bottom: 1px solid var(--border);
    font-size: 10px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.commandeProducts__table td {
    padding: 15px;
    color: #414b55;
    border-bottom: 1px solid #e8ecef;
    font-size: 13px;
    vertical-align: middle;
}

.commandeProducts__table tbody tr:hover td {
    background: #f8fafd;
}

.commandeProducts__table tfoot th {
    padding: 16px 15px;
    background: #fbfcfd;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

.commandeProducts__totalLabel {
    color: var(--text);
    text-align: right !important;
}

.commandeProducts__total {
    color: var(--primary);
    font-size: 17px !important;
    white-space: nowrap;
}

.commandeProduct {
    display: flex;
    align-items: center;
    gap: 11px;
}

.commandeProduct__icon {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 8px;
    font-size: 14px;
    flex-shrink: 0;
}

.commandeProduct__name {
    color: var(--text);
    font-weight: 700;
}

.commandeProduct__price {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.commandeProducts__empty {
    padding: 45px 20px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

/* Responsive */

@media (max-width: 1100px) {
    .commandeDetail__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .commandeDetail__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .commandeDetail__headerContent {
        align-items: flex-start;
        flex-direction: column;
    }

    .commandeDetail__back {
        width: 100%;
    }

    .commandeDetail__title {
        font-size: 25px;
    }

    .commandeDetail__summary,
    .commandeAddresses {
        grid-template-columns: 1fr;
    }

    .commandeAddress__row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .commandeCard__body {
        padding: 16px;
    }
    .commandeProducts__table {
        min-width: 600px;
    }
}

/*@todo client */

/*@todo page commande */

.clientDashboard {
    --primary: #00275f;
    --primary-dark: #001b43;
    --primary-light: #e8eef6;
    --navy: #082557;
    --background: #f4f6f9;
    --surface: #ffffff;
    --border: #dfe5eb;
    --text: #17202a;
    --muted: #74808b;
    --danger: #dc3545;
    --warning: #c98712;
    --warning-light: #fff7e4;
    --blue: #2474c7;
    --blue-light: #edf5ff;

    min-height: 100vh;
    padding: 35px 0 50px;
    color: var(--text);
    background: var(--background);
}

.clientDashboard * {
    box-sizing: border-box;
}

.clientDashboard__container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* En-tête */

.clientDashboard__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.clientDashboard__title {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 30px;
    font-weight: 700;
}

.clientDashboard__subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}


/* Carte principale */

.clientOrders {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(25, 35, 45, 0.05);
}

.clientOrders__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 23px;
    border-bottom: 1px solid var(--border);
}

.clientOrders__title {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
}

.clientOrders__description {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* Recherche */

.clientOrders__search {
    position: relative;
    width: 290px;
    flex-shrink: 0;
}

.clientOrders__searchIcon {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #939da6;
    font-size: 13px;
    transform: translateY(-50%);
    pointer-events: none;
}

.clientOrders__searchInput {
    width: 100%;
    height: 42px;
    padding: 8px 14px 8px 40px;
    color: var(--text);
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-size: 13px;
}

.clientOrders__searchInput:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 39, 95, 0.1);
}

/* Tableau */

.clientOrders__tableWrapper {
    overflow-x: auto;
}

.clientOrdersTable {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.clientOrdersTable th {
    padding: 14px 16px;
    color: #56616c;
    background: #f7f8fa;
    border-bottom: 1px solid var(--border);
    font-size: 10px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.clientOrdersTable td {
    padding: 16px;
    color: #414b55;
    border-bottom: 1px solid #e8ecef;
    font-size: 13px;
    vertical-align: middle;
}

.clientOrdersTable tbody tr {
    transition: background-color 0.2s ease;
}

.clientOrdersTable tbody tr:hover {
    background: #f8fafd;
}

.clientOrdersTable tbody tr:last-child td {
    border-bottom: 0;
}

/* Commande */

.clientOrderIdentity {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 245px;
}

.clientOrderIdentity__icon {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 8px;
    font-size: 15px;
    flex-shrink: 0;
}

.clientOrderIdentity__content {
    min-width: 0;
}

.clientOrderIdentity__number {
    display: block;
    overflow: hidden;
    max-width: 300px;
    margin-bottom: 3px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clientOrderIdentity__id {
    color: var(--muted);
    font-size: 11px;
}

.clientOrderDate {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.clientOrderPrice {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}


/* Action */

.clientOrderAction {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition:
            color 0.2s ease,
            background-color 0.2s ease,
            transform 0.2s ease;
}

.clientOrderAction:hover {
    color: #ffffff;
    background: var(--primary);
    text-decoration: none;
    transform: translateY(-1px);
}

/* États vides */

.clientOrders__empty,
.clientOrders__noResult {
    padding: 70px 25px;
    color: var(--muted);
    text-align: center;
}

.clientOrders__noResult {
    display: none;
}

.clientOrders__emptyIcon {
    display: flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 17px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 50%;
    font-size: 27px;
}

.clientOrders__emptyTitle {
    margin: 0 0 7px;
    color: var(--text);
    font-size: 19px;
    font-weight: 700;
}

.clientOrders__emptyText {
    margin: 0;
    font-size: 13px;
}

@media (max-width: 900px) {
    .clientDashboard__header,
    .clientOrders__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .clientOrders__search {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .clientDashboard {
        padding-top: 25px;
    }

    .clientDashboard__title {
        font-size: 25px;
    }

    .clientOrdersTable {
        min-width: 930px;
    }
}


.commandeDetail {
    --commande-primary: #00275f;
    --commande-primary-dark: #001b43;
    --commande-primary-light: #e8eef6;
    --commande-navy: #082557;
    --commande-background: #f4f6f9;
    --commande-surface: #ffffff;
    --commande-border: #dfe5eb;
    --commande-text: #17202a;
    --commande-muted: #74808b;

    min-height: 100vh;
    color: var(--commande-text);
    background: var(--commande-background);
}

.commandeDetail,
.commandeDetail * {
    box-sizing: border-box;
}


/* =========================================================
   EN-TÊTE
   ========================================================= */

.commandeDetail__header {
    padding: 22px 0 14px;
    background: var(--commande-background);
}

.commandeDetail__headerContent {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}

.commandeDetail__title {
    margin: 0 0 5px;
    color: var(--commande-navy);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
}

.commandeDetail__subtitle {
    margin: 0;
    color: var(--commande-muted);
    font-size: 13px;
    line-height: 1.5;
}

.commandeDetail__back {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    color: #4c5965;
    background: #ffffff;
    border: 1px solid var(--commande-border);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(20, 35, 50, 0.04);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition:
            color 0.2s ease,
            border-color 0.2s ease,
            background-color 0.2s ease,
            transform 0.2s ease;
}

.commandeDetail__back:hover {
    color: var(--commande-primary);
    background: var(--commande-primary-light);
    border-color: rgba(0, 39, 95, 0.4);
    text-decoration: none;
    transform: translateY(-1px);
}


/* =========================================================
   CONTENU PRINCIPAL
   ========================================================= */

.commandeDetail .content {
    padding-bottom: 45px;
}

.commandeDetail__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}


/* =========================================================
   CARTES DU RÉSUMÉ
   ========================================================= */

.commandeSummary {
    display: flex;
    min-width: 0;
    min-height: 86px;
    align-items: center;
    gap: 14px;
    padding: 17px 20px;
    background: var(--commande-surface);
    border: 1px solid var(--commande-border);
    border-radius: 11px;
    box-shadow: 0 4px 15px rgba(25, 35, 45, 0.04);
}

.commandeSummary__icon {
    display: flex;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    color: var(--commande-primary);
    background: var(--commande-primary-light);
    border-radius: 9px;
    font-size: 16px;
    flex-shrink: 0;
}

.commandeSummary__content {
    min-width: 0;
}

.commandeSummary__label {
    display: block;
    margin-bottom: 4px;
    color: var(--commande-muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.commandeSummary__value {
    display: block;
    overflow: hidden;
    color: var(--commande-text);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.commandeSummary__value--price {
    color: var(--commande-primary);
    font-size: 18px;
}


/* =========================================================
   DISPOSITION DES INFORMATIONS
   ========================================================= */

.commandeDetail__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(310px, 0.95fr);
    align-items: start;
    gap: 18px;
}


/* =========================================================
   CARTE GÉNÉRALE
   ========================================================= */

.commandeCard {
    min-width: 0;
    overflow: hidden;
    background: var(--commande-surface);
    border: 1px solid var(--commande-border);
    border-radius: 11px;
    box-shadow: 0 4px 16px rgba(25, 35, 45, 0.04);
}

.commandeCard__header {
    display: flex;
    min-height: 70px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--commande-border);
}

.commandeCard__icon {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: var(--commande-primary);
    background: var(--commande-primary-light);
    border-radius: 8px;
    font-size: 14px;
    flex-shrink: 0;
}

.commandeCard__title {
    margin: 0 0 3px;
    color: var(--commande-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.commandeCard__description {
    margin: 0;
    color: var(--commande-muted);
    font-size: 10px;
    line-height: 1.4;
}

.commandeCard__body {
    padding: 16px;
}


/* =========================================================
   ADRESSES DU CLIENT
   ========================================================= */

.commandeAddresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.commandeAddresses--single {
    grid-template-columns: minmax(0, 1fr);
}

.commandeAddresses--single .commandeAddress {
    width: 100%;
}

.commandeAddress {
    min-width: 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e1e6ea;
    border-radius: 9px;
}

.commandeAddress__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--commande-text);
    font-size: 12px;
    font-weight: 700;
}

.commandeAddress__title i {
    color: var(--commande-primary);
    font-size: 12px;
}

.commandeAddress__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.commandeAddress__row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin: 0;
    font-size: 10px;
    line-height: 1.45;
}

.commandeAddress__label {
    color: var(--commande-muted);
}

.commandeAddress__value {
    min-width: 0;
    color: #46515c;
    overflow-wrap: anywhere;
}


/* =========================================================
   INFORMATIONS DE LA COMMANDE
   ========================================================= */

.commandeInformations {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.commandeInformations__item {
    min-width: 0;
    padding: 13px 14px;
    background: #f8f9fa;
    border: 1px solid #e1e6ea;
    border-radius: 8px;
}

.commandeInformations__label {
    display: block;
    margin-bottom: 7px;
    color: var(--commande-muted);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.commandeInformations__value {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--commande-text);
    font-size: 11px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.commandeInformations__value i {
    color: var(--commande-primary);
    flex-shrink: 0;
}

.commandeInformations__badge {
    display: inline-flex;
    max-width: 100%;
    min-height: 26px;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    color: var(--commande-primary-dark);
    background: var(--commande-primary-light);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.commandeInformations__badge i {
    flex-shrink: 0;
}


/* =========================================================
   PRODUITS COMMANDÉS
   ========================================================= */

.commandeCard--products {
    margin-top: 18px;
}

.commandeProductsGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
}

.commandeProductCard {
    display: flex;
    min-width: 0;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    background: #f8f9fa;
    border: 1px solid #e1e6ea;
    border-radius: 9px;
    transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
}

.commandeProductCard:hover {
    background: #ffffff;
    border-color: rgba(0, 39, 95, 0.45);
    box-shadow: 0 7px 18px rgba(0, 39, 95, 0.07);
    transform: translateY(-2px);
}

.commandeProductCard__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.commandeProductCard__icon {
    display: flex;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    color: var(--commande-primary);
    background: var(--commande-primary-light);
    border-radius: 8px;
    font-size: 13px;
    flex-shrink: 0;
}

.commandeProductCard__content {
    min-width: 0;
}

.commandeProductCard__label {
    display: block;
    margin-bottom: 4px;
    color: var(--commande-muted);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.commandeProductCard__name {
    display: block;
    min-width: 0;
    color: var(--commande-text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.commandeProductCard__priceBlock {
    flex-shrink: 0;
    text-align: right;
}

.commandeProductCard__priceLabel {
    display: block;
    margin-bottom: 4px;
    color: var(--commande-muted);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.commandeProductCard__price {
    display: block;
    color: var(--commande-primary);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================================
   TOTAL
   ========================================================= */

.commandeProductsTotal {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    padding: 15px 20px;
    background: #f7f8fa;
    border-top: 1px solid var(--commande-border);
}

.commandeProductsTotal__label {
    color: #56616c;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.commandeProductsTotal__value {
    min-width: 130px;
    color: var(--commande-primary);
    font-size: 18px;
    font-weight: 700;
    text-align: right;
}


/* =========================================================
   AUCUN PRODUIT
   ========================================================= */

.commandeProductsEmpty {
    padding: 55px 20px;
    color: var(--commande-muted);
    text-align: center;
}

.commandeProductsEmpty__icon {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--commande-primary);
    background: var(--commande-primary-light);
    border-radius: 50%;
    font-size: 21px;
}

.commandeProductsEmpty__title {
    display: block;
    margin-bottom: 5px;
    color: var(--commande-text);
    font-size: 15px;
}

.commandeProductsEmpty__text {
    margin: 0;
    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .commandeDetail__layout {
        grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
    }

    .commandeAddresses {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .commandeDetail__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .commandeDetail__layout {
        grid-template-columns: 1fr;
    }

    .commandeProductsGrid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .commandeDetail__header {
        padding-top: 18px;
    }

    .commandeDetail__headerContent {
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
    }

    .commandeDetail__title {
        font-size: 23px;
    }

    .commandeDetail__back {
        align-self: flex-start;
    }

    .commandeDetail__summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .commandeSummary {
        min-height: 76px;
    }

    .commandeAddresses {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .commandeDetail__headerContent {
        gap: 13px;
    }

    .commandeDetail__back {
        width: 100%;
    }

    .commandeCard__header {
        padding: 13px;
    }

    .commandeCard__body {
        padding: 13px;
    }

    .commandeAddress {
        padding: 13px;
    }

    .commandeAddress__row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .commandeAddress__label {
        font-size: 9px;
        font-weight: 700;
    }

    .commandeProductsGrid {
        gap: 10px;
        padding: 13px;
    }

    .commandeProductCard {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .commandeProductCard__priceBlock {
        width: 100%;
        padding-left: 51px;
        text-align: left;
    }

    .commandeProductsTotal {
        justify-content: space-between;
        gap: 15px;
        padding: 15px;
    }

    .commandeProductsTotal__value {
        min-width: auto;
    }
}

/* =========================================================
   AJUSTEMENTS TYPOGRAPHIQUES DU DÉTAIL DE COMMANDE
   ========================================================= */

/* Titre principal */

.commandeDetail__title {
    font-size: 30px;
}

.commandeDetail__subtitle {
    font-size: 14px;
}

.commandeDetail__back {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 13px;
}


/* Résumé supérieur */

.commandeSummary {
    min-height: 96px;
    padding: 19px 21px;
}

.commandeSummary__icon {
    width: 46px;
    height: 46px;
    font-size: 17px;
}

.commandeSummary__label {
    margin-bottom: 5px;
    font-size: 10px;
}

.commandeSummary__value {
    font-size: 14px;
}

.commandeSummary__value--price {
    font-size: 20px;
}


/* En-tête des grandes cartes */

.commandeCard__header {
    min-height: 76px;
    padding: 16px 18px;
}

.commandeCard__icon {
    width: 41px;
    height: 41px;
    font-size: 15px;
}

.commandeCard__title {
    margin-bottom: 4px;
    font-size: 17px;
}

.commandeCard__description {
    font-size: 12px;
}


/* Adresses */

.commandeCard__body {
    padding: 18px;
}

.commandeAddress {
    padding: 17px;
}

.commandeAddress__title {
    margin-bottom: 16px;
    font-size: 14px;
}

.commandeAddress__title i {
    font-size: 13px;
}

.commandeAddress__list {
    gap: 10px;
}

.commandeAddress__row {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.commandeAddress__label {
    font-size: 12px;
}

.commandeAddress__value {
    font-size: 12px;
}


/* Informations de la commande */

.commandeInformations {
    gap: 12px;
}

.commandeInformations__item {
    padding: 15px 16px;
}

.commandeInformations__label {
    margin-bottom: 8px;
    font-size: 10px;
}

.commandeInformations__value {
    gap: 8px;
    font-size: 13px;
}

.commandeInformations__badge {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
}


/* Produits */

.commandeProductsGrid {
    gap: 14px;
    padding: 20px;
}

.commandeProductCard {
    min-height: 86px;
    padding: 16px 18px;
}

.commandeProductCard__icon {
    width: 42px;
    height: 42px;
    font-size: 14px;
}

.commandeProductCard__label {
    margin-bottom: 5px;
    font-size: 10px;
}

.commandeProductCard__name {
    font-size: 14px;
    line-height: 1.45;
}

.commandeProductCard__priceLabel {
    margin-bottom: 5px;
    font-size: 10px;
}

.commandeProductCard__price {
    font-size: 16px;
}


/* Total */

.commandeProductsTotal {
    min-height: 72px;
    padding: 17px 22px;
}

.commandeProductsTotal__label {
    font-size: 12px;
}

.commandeProductsTotal__value {
    font-size: 20px;
}


/* Responsive tablette */

@media (max-width: 900px) {
    .commandeDetail__title {
        font-size: 27px;
    }

    .commandeAddress__row {
        grid-template-columns: 100px minmax(0, 1fr);
    }
}


/* Responsive téléphone */

@media (max-width: 520px) {
    .commandeDetail__title {
        font-size: 24px;
    }

    .commandeDetail__subtitle {
        font-size: 13px;
    }

    .commandeSummary__label {
        font-size: 10px;
    }

    .commandeSummary__value {
        font-size: 14px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .commandeCard__title {
        font-size: 16px;
    }

    .commandeCard__description {
        font-size: 11px;
    }

    .commandeAddress__row {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .commandeAddress__label {
        font-size: 11px;
        font-weight: 700;
    }

    .commandeAddress__value {
        font-size: 13px;
    }

    .commandeProductCard__name {
        font-size: 13px;
    }

    .commandeProductCard__price {
        font-size: 16px;
    }
}


/* =========================================================
   PALETTE DES COMPOSANTS DE SUCCÈS DU DASHBOARD
   ========================================================= */

.content-wrapper {
    --bs-success-rgb: 0, 39, 95;
}

.content-wrapper .alert-success {
    --bs-alert-color: #00275f;
    --bs-alert-bg: #e8eef6;
    --bs-alert-border-color: #b9c8dc;

    color: #00275f;
    background-color: #e8eef6;
    border-color: #b9c8dc;
}

.content-wrapper .alert-success .alert-link {
    color: #001b43;
}

.content-wrapper .btn-success {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #00275f;
    --bs-btn-border-color: #00275f;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #001b43;
    --bs-btn-hover-border-color: #001b43;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #001b43;
    --bs-btn-active-border-color: #001b43;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #00275f;
    --bs-btn-disabled-border-color: #00275f;

    color: #ffffff;
    background-color: #00275f;
    border-color: #00275f;
}

.content-wrapper .btn-success:hover,
.content-wrapper .btn-success:focus,
.content-wrapper .btn-success:active {
    color: #ffffff;
    background-color: #001b43;
    border-color: #001b43;
}

.content-wrapper .btn-success:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 39, 95, 0.25);
}

.content-wrapper .bg-success {
    background-color: rgba(0, 39, 95, var(--bs-bg-opacity, 1)) !important;
}

.content-wrapper .text-success {
    color: rgba(0, 39, 95, var(--bs-text-opacity, 1)) !important;
}
