:root {
    --primary-color: #6c5ce7;
    --primary-hover: #5b4bc4;
    --secondary-color: #00cec9;
    --bg-color: #f0f2f5;
    --text-color: #2d3436;
    --card-bg: #ffffff;
    --border-color: #dfe6e9;
    --success-color: #00b894;
    --error-color: #d63031;
    --accent-color: #fd79a8;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background-color: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 80vh;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    color: #636e72;
}

.flash {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.flash-success { background: #d1f7e0; color: #00875a; }
.flash-error { background: #ffe5e5; color: #bf2600; }
.flash-info { background: #d1edff; color: #0052cc; }

.conteneur {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stock-faible {
    color: var(--error-color);
    font-weight: bold;
}

.tableGerer {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tableGerer th, .tableGerer td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.tableGerer th {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.formGerer {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.formGerer input, .formGerer textarea, .formGerer select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background: #00b8b4;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-error {
    background: var(--error-color);
    color: #fff;
}

.btn-error:hover {
    background: #c0392b;
}

.formGerer button {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.formGerer button:hover {
    background: var(--primary-hover);
}
