/* ===============================================
   Thème global Dashboard Merch
   =============================================== */

/* RESET MINIMAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    transition: background 0.4s ease, color 0.4s ease;
    min-height: 100vh;
}

/* ===============================================
   THEME SOMBRE
   =============================================== */

.dark-theme {
    background: linear-gradient(135deg, #0d1117, #1a2233);
    color: #e6e6e6;
}

.dark-theme .card {
    background: #111a28;
    color: #e6e6e6;
    border-radius: 14px;
    padding: 20px;
}

.dark-theme .app-header {
    background: rgba(20, 32, 48, 0.8);
    border-bottom: 1px solid #1f2c40;
}

.dark-theme input,
.dark-theme select,
.dark-theme textarea {
    background: #202b3c;
    color: #fff;
    border: 1px solid #31415c;
}

.dark-theme .btn {
    background: #29509a;
    color: #fff;
}

/* ===============================================
   THEME CLAIR
   =============================================== */

.light-theme {
    background: linear-gradient(135deg, #ffffff, #f2f2f2);
    color: #222;
}

.light-theme .card {
    background: #ffffff;
    color: #222;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.light-theme .app-header {
    background: #ffffffee;
    border-bottom: 1px solid #ddd;
}

.light-theme input,
.light-theme select,
.light-theme textarea {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
}

.light-theme .btn {
    background: #FF7900;
    color: #fff;
}

/* ===============================================
   HEADER GLOBAL
   =============================================== */

.app-header {
    width: 100%;
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 38px;
}

.theme-toggle-btn {
    padding: 8px 14px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.12);
}

/* ===============================================
   FOOTER
   =============================================== */

.app-footer {
    text-align: center;
    padding: 20px;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ===============================================
   LAYOUT GLOBAL
   =============================================== */

.app-main {
    padding: 20px;
}

/* ===============================================
   FORMULAIRES
   =============================================== */

input, select, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 12px;
    outline: none;
    transition: 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #FF7900;
    box-shadow: 0 0 6px rgba(255, 121, 0, 0.4);
}

/* ===============================================
   BOUTONS
   =============================================== */

.btn {
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.2s ease;
}

.btn-primary {
    background: #FF7900;
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

/* ===============================================
   CARTES ET ENCARTS
   =============================================== */

.card {
    background: #111a28;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
}
