*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:#f4f7fb;color:#172033}header{height:64px;background:#123b6d;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px}header a{color:#fff}.wrap{max-width:1100px;margin:36px auto;padding:0 20px}.card{background:#fff;border-radius:14px;box-shadow:0 8px 30px #17203312;padding:24px}.login{min-height:100vh;display:grid;place-items:center}.login-card{width:min(430px,92vw)}h1{margin-top:0;color:#123b6d}.muted{color:#68758a}label{display:block;margin:18px 0 8px;font-weight:700}input{width:100%;padding:13px;border:1px solid #ccd5e1;border-radius:8px;margin-top:7px;font-size:16px}button{width:100%;padding:13px;margin-top:18px;border:0;border-radius:8px;background:#1c8b58;color:#fff;font-size:16px;font-weight:700}.alert{background:#fff0f0;color:#9b2525;padding:12px;border-radius:8px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stats b{font-size:34px;display:block;color:#123b6d}.stats span{color:#68758a}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:28px}.module{background:#fff;padding:28px;border-radius:14px;text-decoration:none;color:#123b6d;font-weight:700;box-shadow:0 8px 30px #17203312}@media(max-width:700px){.stats,.grid{grid-template-columns:1fr}header{padding:0 14px}}


/* =========================================================
   SMART2LIFE — THEME OFFICIEL
   Palette :
   #2FAE32 vert principal
   #78D600 vert clair
   #086B28 vert foncé
   #101B21 anthracite / noir bleuté
   #AEB6B8 gris argent
   #FFFFFF blanc
   ========================================================= */

:root{
    --stl-green:#2FAE32;
    --stl-green-light:#78D600;
    --stl-green-dark:#086B28;
    --stl-dark:#101B21;
    --stl-silver:#AEB6B8;
    --stl-white:#FFFFFF;

    --stl-bg:#F7F9F8;
    --stl-border:#D9E0DC;
    --stl-shadow:0 10px 28px rgba(16,27,33,.10);
}

/* Base */
html,body{
    background:
        linear-gradient(180deg, rgba(120,214,0,.05), transparent 240px),
        var(--stl-bg);
    color:var(--stl-dark);
}

body{
    font-family:Arial, Helvetica, sans-serif;
}

a{
    color:var(--stl-green-dark);
}

a:hover{
    color:var(--stl-green);
}

/* Bandeau supérieur */
header{
    background:linear-gradient(90deg,var(--stl-dark) 0%, #17272f 60%, var(--stl-green-dark) 100%) !important;
    color:var(--stl-white) !important;
    border-bottom:4px solid var(--stl-green) !important;
    box-shadow:0 4px 14px rgba(16,27,33,.18);
}

header strong{
    color:var(--stl-white) !important;
    letter-spacing:.2px;
}

header a{
    color:var(--stl-white) !important;
}

header a:hover{
    color:var(--stl-green-light) !important;
}

/* Titres */
h1,h2,h3{
    color:var(--stl-dark);
}

h1{
    border-left:6px solid var(--stl-green);
    padding-left:12px;
}

h2{
    position:relative;
}

h2::after{
    content:"";
    display:block;
    width:48px;
    height:3px;
    margin-top:7px;
    border-radius:999px;
    background:linear-gradient(90deg,var(--stl-green),var(--stl-green-light));
}

/* Cartes */
.card,
.stat,
.info,
.panel,
.box{
    background:var(--stl-white) !important;
    border:1px solid var(--stl-border) !important;
    border-radius:12px !important;
    box-shadow:var(--stl-shadow);
}

.card{
    border-top:4px solid var(--stl-green) !important;
}

/* Boutons */
button,
input[type="submit"],
.btn,
.btn-link{
    background:linear-gradient(135deg,var(--stl-green-dark),var(--stl-green)) !important;
    color:var(--stl-white) !important;
    border:0 !important;
    border-radius:8px !important;
    font-weight:700 !important;
    transition:.15s ease-in-out;
    box-shadow:0 3px 8px rgba(8,107,40,.22);
}

button:hover,
input[type="submit"]:hover,
.btn:hover,
.btn-link:hover{
    background:linear-gradient(135deg,var(--stl-green),var(--stl-green-light)) !important;
    color:var(--stl-dark) !important;
    transform:translateY(-1px);
}

/* Boutons secondaires */
.secondary,
.btn-secondary{
    background:var(--stl-silver) !important;
    color:var(--stl-dark) !important;
    box-shadow:none !important;
}

.secondary:hover,
.btn-secondary:hover{
    background:var(--stl-white) !important;
    color:var(--stl-green-dark) !important;
    outline:2px solid var(--stl-green);
}

/* Bouton danger reste rouge pour la sécurité */
.btn-danger,
button.btn-danger{
    background:#B42318 !important;
    color:var(--stl-white) !important;
}

/* Formulaires */
input,
select,
textarea{
    background:var(--stl-white) !important;
    color:var(--stl-dark) !important;
    border:1px solid var(--stl-silver) !important;
    border-radius:8px !important;
}

input:focus,
select:focus,
textarea:focus{
    outline:none !important;
    border-color:var(--stl-green) !important;
    box-shadow:0 0 0 3px rgba(47,174,50,.15) !important;
}

/* Labels */
label{
    color:var(--stl-dark);
    font-weight:600;
}

/* Tableaux */
table{
    background:var(--stl-white);
}

thead th{
    background:var(--stl-dark) !important;
    color:var(--stl-white) !important;
    border-bottom:3px solid var(--stl-green-light) !important;
}

tbody tr:nth-child(even){
    background:rgba(174,182,184,.10);
}

tbody tr:hover{
    background:rgba(120,214,0,.10);
}

td{
    border-bottom:1px solid rgba(174,182,184,.45) !important;
}

/* Badges et statuts */
.badge,
.status,
.tag{
    background:rgba(47,174,50,.12) !important;
    color:var(--stl-green-dark) !important;
    border:1px solid rgba(47,174,50,.28);
}

/* Messages */
.success,
.ok{
    background:rgba(120,214,0,.12) !important;
    color:var(--stl-green-dark) !important;
    border-left:4px solid var(--stl-green-light) !important;
}

.alert{
    border-radius:8px;
}

/* Statistiques / dashboard */
.stat strong,
.money{
    color:var(--stl-green-dark) !important;
}

.stat{
    position:relative;
    overflow:hidden;
}

.stat::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:5px;
    height:100%;
    background:linear-gradient(var(--stl-green-light),var(--stl-green-dark));
}

/* Barre / actions */
.actions{
    gap:10px;
}

/* Scrollbars navigateurs compatibles */
*{
    scrollbar-color:var(--stl-green) var(--stl-dark);
}

::-webkit-scrollbar{
    width:10px;
    height:10px;
}

::-webkit-scrollbar-track{
    background:var(--stl-dark);
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(var(--stl-green-light),var(--stl-green));
    border-radius:10px;
    border:2px solid var(--stl-dark);
}

/* Sélection texte */
::selection{
    background:var(--stl-green-light);
    color:var(--stl-dark);
}

/* Responsive */
@media(max-width:700px){
    h1{
        font-size:1.55rem;
    }

    header{
        border-bottom-width:3px !important;
    }

    .card{
        border-top-width:3px !important;
    }
}


/* SMART2LIFE LOGO INTEGRATION */
header{
    min-height:74px;
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    padding:10px 22px !important;
}

header strong{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:0 !important;
}

header strong::before{
    content:"";
    display:block;
    width:180px;
    height:52px;
    background-image:url("../img/logo-smart2life.png");
    background-size:contain;
    background-repeat:no-repeat;
    background-position:left center;
}

@media(max-width:700px){
    header{
        min-height:64px;
        padding:8px 14px !important;
    }

    header strong::before{
        width:145px;
        height:44px;
    }
}

