
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --primary:#2563eb;
    --primary-hover:#1d4ed8;

    --sidebar:#111827;
    --sidebar-hover:#1f2937;

    --bg:#f5f7fb;

    --white:#ffffff;

    --border:#e5e7eb;

    --text:#0f172a;

    --text-light:#94a3b8;

    --radius:14px;

    --shadow:0 10px 35px rgba(15,23,42,.08);

}

body{

    font-family:Inter,Arial,sans-serif;

    background:var(--bg);

    color:var(--text);

}


.wm-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px;
    margin-bottom: 25px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow-x: auto;
}

.wm-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
}

.wm-tab i {
    font-size: 16px;
}

.wm-tab:hover {
    color: #2563eb;
    background: #fff;
}

.wm-tab.active {
    color: #2563eb;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.wm-tab-content {
    display: none;
}

.wm-tab-content.active {
    display: block;
}



.wm-file-input {
    display: none;
}

.wm-file-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;

    background: #f8fafc;
    border: 1px solid #d9e0e7;
    border-radius: 8px;

    color: #334155;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}

.wm-file-upload i {
    font-size: 18px;
}

.wm-file-upload:hover {
    background: #f1f5f9;
    border-color: #2563eb;
    color: #2563eb;
}
/* =========================================
   FILTRE PRODUITS
========================================= */

.wm-filter-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .05);
}

.wm-filter-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eef0f3;
}

.wm-filter-header h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
}

.wm-filter-header h3 i {
    margin-right: 8px;
    color: #2563eb;
}

.wm-filter-header span {
    color: #94a3b8;
    font-size: 13px;
}

.wm-filter-body {
    padding: 24px;
}

.wm-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wm-filter-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.wm-input-icon {
    position: relative;
}

.wm-input-icon > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 2;
}

.wm-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    transition: all .2s ease;
}

.wm-input-icon .wm-input {
    padding-left: 42px;
}

.wm-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.wm-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.wm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}

.wm-btn-primary {
    background: #2563eb;
    color: #fff;
}

.wm-btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-1px);
}

.wm-btn-light {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.wm-btn-light:hover {
    background: #f1f5f9;
    color: #1e293b;
}


@media (max-width: 900px) {

    .wm-filter-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 576px) {

    .wm-filter-body {
        padding: 16px;
    }

    .wm-filter-actions {
        flex-direction: column;
    }

    .wm-filter-actions .wm-btn {
        width: 100%;
    }

}


.topbar-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    color: #475569;
    background: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s ease;
}

.topbar-site i {
    font-size: 16px;
}

.topbar-site:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #2563eb;
}.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}



.wm-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    padding: 20px 24px;
    border-top: 1px solid #eef0f3;
}

.wm-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.wm-page:hover {
    background: #f8fafc;
    color: #2563eb;
    border-color: #cbd5e1;
}

.wm-page.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}


.login-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:linear-gradient(135deg,#eef4ff,#f8fafc);
    font-family:Inter,Arial,sans-serif;
}

.login-box{
    width:420px;
    background:#c9c0c0;
    border-radius:22px;
    padding:45px;
    box-shadow:0 20px 60px rgba(15,23,42,.10);
}

.login-logo{
    text-align:center;
    margin-bottom:35px;
}

.login-logo img{
    max-width:180px;
}

.login-title{
    text-align:center;
    font-size:30px;
    font-weight:700;
    color:#0f172a;
    margin-bottom:8px;
}

.login-subtitle{
    text-align:center;
    color:#64748b;
    margin-bottom:35px;
}

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

.form-label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:#334155;
}

.form-control{
    width:100%;
    height:54px;
    border:1px solid #dbe4ef;
    border-radius:14px;
    padding:0 18px;
    font-size:15px;
    transition:.3s;
}

.form-control:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

.password-box{
    position:relative;
}

.show-password{
    position:absolute;
    right:18px;
    top:17px;
    cursor:pointer;
    color:#94a3b8;
    font-size:20px;
}

.login-options{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:18px 0 28px;
    font-size:14px;
}

.login-options a{
    color:#2563eb;
    text-decoration:none;
}

.login-options a:hover{
    text-decoration:underline;
}

.btn-login{
    width:100%;
    height:56px;
    border:none;
    border-radius:14px;
    background:#2563eb;
    color:#fff;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.btn-login:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}

.login-footer{
    text-align:center;
    margin-top:30px;
    color:#94a3b8;
    font-size:13px;
}

/*type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled) {
    cursor: pointer;
    outline: 0;
    border: none;
    background: transparent;
}
*/

/* Onglets */

.wm-tabs{
    border-bottom:1px solid #e5e7eb;
}

.wm-tabs .nav-link{
    border:none;
    color:#6b7280;
    font-weight:600;
    padding:12px 22px;
    border-radius:10px 10px 0 0;
}

.wm-tabs .nav-link.active{
    background:#2563eb;
    color:#fff;
}

.wm-tabs .nav-link:hover{
    color:#2563eb;
}
.right { float: right}
.clear { clear: both ; }
.wm-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    height:42px;

    padding:0 18px;

    border:none;

    border-radius:10px;

    font-size:14px;

    font-weight:600;

    text-decoration:none;

    cursor:pointer;

    transition:.25s;

}

/* Bleu */
.wm-btn-primary{

    background:#2563eb;

    color:#fff;

}

.wm-btn-primary:hover{

    background:#1d4ed8;

    color:#fff;

}

/* Gris */
.wm-btn-secondary{

    background:#f3f4f6;

    color:#374151;

}

.wm-btn-secondary:hover{

    background:#e5e7eb;

    color:#111827;

}

/* Rouge */
.wm-btn-danger{

    background:#ef4444;

    color:#fff;

}

.wm-btn-danger:hover{

    background:#dc2626;

    color:#fff;

}

/* Vert */
.wm-btn-success{

    background:#16a34a;

    color:#fff;

}

.wm-btn-success:hover{

    background:#15803d;

    color:#fff;

}

/* Orange */
.wm-btn-warning{

    background:#f59e0b;

    color:#fff;

}

.wm-btn-warning:hover{

    background:#d97706;

    color:#fff;

}

/* Petit */
.wm-btn-sm{

    height:34px;

    padding:0 14px;

    font-size:13px;

}

/* Grand */
.wm-btn-lg{

    height:50px;

    padding:0 28px;

    font-size:16px;

}
.wm-card-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:20px 25px;
    border-bottom:1px solid #ececec;
}

.wm-card-header h2{
    margin:0;
}
.wm-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

}
.wm-form-group{

    margin-bottom:20px;

}

.wm-form-group label{

    display:block;

    margin-bottom:8px;

    font-size:14px;

    font-weight:600;

    color:#374151;

}

.wm-input{

    width:100%;

    height:46px;

    padding:0 15px;

    border:1px solid #d1d5db;

    border-radius:10px;

    background:#fff;

    font-size:15px;

    transition:.25s;

}

.wm-input:focus{

    outline:none;

    border-color:#2563eb;

    box-shadow:0 0 0 4px rgba(37,99,235,.12);

}

.wm-input.error{

    border-color:#dc2626;

    box-shadow:0 0 0 4px rgba(220,38,38,.10);

}

.star{

    color:#dc2626;

}

@media(max-width:768px){

    .wm-grid{

        grid-template-columns:1fr;

    }

}

/*******************************
Layout
********************************/

.layout{

    display:flex;

    min-height:100vh;

}

/*******************************
Sidebar
********************************/

.sidebar{

    width:270px;

    background:var(--sidebar);

    color:#fff;

    position:fixed;

    left:0;

    top:0;

    bottom:0;

    overflow-y:auto;

    padding:25px;

}

.sidebar-header{

    text-align:center;

    margin-bottom:35px;

}

.logo{

    width:75px;

    margin-bottom:10px;

}

.sidebar-header h2{

    font-size:22px;

    font-weight:700;

}

.menu-title{

    color:#6b7280;

    font-size:12px;

    text-transform:uppercase;

    letter-spacing:1px;

    margin-top:25px;

    margin-bottom:12px;

}

.menu{

    list-style:none; padding-left: 0px 

}

.menu li{

    margin-bottom:6px;

}

.menu a{

    display:flex;

    align-items:center;

    gap:14px;

    text-decoration:none;

    color:#d1d5db;

    padding:13px 16px;

    border-radius:12px;

    transition:.25s;

}

.menu a:hover{

    background:var(--sidebar-hover);

    color:#fff;

}

.menu li.active a{

    background:var(--primary);

    color:#fff;

}

.icon{

    width:22px;

    text-align:center;

}

/*******************************
Content
********************************/

.content{

    flex:1;

    margin-left:270px;

    padding:25px;

}

/*******************************
Topbar
********************************/

.topbar{

    background:#fff;

    border-radius:16px;

    padding:18px 25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:var(--shadow);

    margin-bottom:25px;

}

.menu-toggle{

    display:none;

    border:none;

    background:none;

    font-size:26px;

    cursor:pointer;

}

.search{

    flex:1;

    margin:0 30px;

}

.search input{

    width:100%;

    max-width:400px;

    height:46px;

    border:1px solid var(--border);

    border-radius:12px;

    padding:0 18px;

    outline:none;

    transition:.3s;

}

.search input:focus{

    border-color:var(--primary);

}

.topbar-right{

    display:flex;

    align-items:center;

    gap:25px;

}

.notification{

    font-size:24px;

    cursor:pointer;

}

.user{

    display:flex;

    align-items:center;

    gap:12px;

}

.avatar{

    width:42px;

    height:42px;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-weight:bold;

}

.user small{

    color:var(--text-light);

}

/*******************************
Page
********************************/

.page{

    background:#fff;

    border-radius:16px;

    padding:30px;

    box-shadow:var(--shadow);

}

.page h1{

    margin-bottom:20px;

}

/*******************************
Cards
********************************/

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

    margin-top:25px;

}

.card{

    background:#fff;

    border-radius:16px;

    padding:25px;

    box-shadow:var(--shadow);

}

.card h2{

    color:var(--primary);

    font-size:36px;

    margin-top:10px;

}

/*******************************
Buttons
********************************/

.btn{

    background:var(--primary);

    color:#fff;

    border:none;

    padding:12px 22px;

    border-radius:10px;

    cursor:pointer;

    transition:.25s;

}

.btn:hover{

    background:var(--primary-hover);

}
	
	.sidebar-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.4);

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:998;

}

.sidebar-overlay.show{

    opacity:1;

    visibility:visible;

}

/*******************************
Table
********************************/

table{

    width:100%;

    border-collapse:collapse;

}

th{

    text-align:left;

    background:#f8fafc;

    padding:15px;

}

td{

    padding:15px;

    border-top:1px solid var(--border);

}

/*******************************
Responsive
********************************/

@media(max-width:992px){

.sidebar{

    left:-270px;

    transition:.3s;

}

.sidebar.open{

    left:0;

}

.content{

    margin-left:0;

}

.menu-toggle{

    display:block;

}

.search{

    margin:0 15px;

}

}

@media(max-width:768px){

.topbar{

    flex-wrap:wrap;

    gap:15px;

}

.search{

    width:100%;

    margin:0;

}

.search input{

    max-width:100%;

}

.user div:last-child{

    display:none;

}

.page{

    padding:20px;

}

}

@media (max-width: 992px) {

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 999;

        transform: translateX(-100%);
        transition: transform .3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        z-index: 998;
    }

    .menu-toggle {
        position: relative;
        z-index: 1000;
    }

}