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

:root {
    --or: #e8a000;
    --vert: #3A119F;
    --sable: #f5ead4;
    --text: #2c2c2c;
    --rouge: #c0392b;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--sable);
    color: var(--text);
    min-height: 100vh;
}

/* NAV */
nav {
    background: var(--vert);
    padding: 0.8rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
nav .brand { color: var(--or); font-size: 1.3rem; font-weight: 700; text-decoration: none; }
nav a { color: #fff; text-decoration: none; margin-left: 1rem; font-size: 0.95rem; }
nav a:hover { text-decoration: underline; }

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--vert) 0%, #2d9e50 100%);
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
}
.hero h1 { font-size: 2.2rem; color: var(--or); text-shadow: 1px 1px 3px rgba(0,0,0,.4); }
.hero p { margin: 1rem auto; max-width: 600px; font-size: 1.05rem; line-height: 1.6; }

/* CONTAINER */
.container { max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem; }
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.card h2 { color: var(--vert); margin-bottom: 1rem; border-bottom: 2px solid var(--or); padding-bottom: .4rem; }

/* FORMS */
label { display: block; margin: .7rem 0 .2rem; font-weight: 600; font-size: .9rem; }
input[type=text], input[type=email], input[type=password], input[type=datetime-local],
input[type=date], select, textarea {
    width: 100%; padding: .6rem .8rem; border: 1px solid #ccc;
    border-radius: 6px; font-size: 1rem; transition: border .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--vert); outline: none; }

/* BOUTONS */
.btn {
    display: inline-block; padding: .6rem 1.4rem; border: none;
    border-radius: 6px; cursor: pointer; font-size: .95rem; font-weight: 600;
    text-decoration: none; transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn-primary { background: var(--vert); color: #fff; }
.btn-secondary { background: var(--or); color: #fff; }
.btn-danger { background: var(--rouge); color: #fff; }
.btn-sm { padding: .3rem .8rem; font-size: .82rem; }

/* TABLES */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { background: var(--vert); color: #fff; padding: .5rem .7rem; text-align: left; }
td { padding: .5rem .7rem; border-bottom: 1px solid #eee; }
tr:hover td { background: #f9f5ec; }

/* ALERTS */
.alert { padding: .8rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: .95rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* BADGE POINTS */
.badge { background: var(--or); color: #fff; border-radius: 20px; padding: .15rem .6rem; font-size: .8rem; font-weight: 700; }

/* RESPONSIVE */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.5rem; }
    nav a { margin-left: .5rem; font-size: .85rem; }
    table { font-size: .8rem; }
    .btn { padding: .5rem 1rem; }
}