:root {
    --primary: #317845;
    --primary-dark: #245c34;
    --primary-light: #dbffd6;
    --secondary: #50a34e;
    --text: #17252A;
    --text-light: #5c6b60;
    --bg: #f2faf1;
    --white: #FFFFFF;
    --radius: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* Brand : monogramme sur pastille blanche */
.navbar-brand .brand-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}
.navbar-brand .brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.navbar-brand .brand-name {
    color: var(--white);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Boutons d'authentification dans la navbar */
.header-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-auth {
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 8px;
    padding: 0.35rem 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-auth:hover {
    background: var(--white);
    color: var(--primary);
}
.btn-auth-solid {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--white);
    border-radius: 8px;
    padding: 0.35rem 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-auth-solid:hover {
    background: var(--primary-light);
}
@media (max-width: 991px) {
    .header-auth {
        padding: 0.75rem 0.5rem 0.5rem;
        justify-content: center;
    }
}

/* Navbar verte */
.site-nav {
    background: var(--secondary);
    box-shadow: inset 5px 5px 30px rgba(0,0,0,0.1), inset -5px 5px 30px rgba(0,0,0,0.1);
    padding: 0.4rem 0;
}
.site-nav .navbar-toggler {
    border-color: rgba(255,255,255,0.4);
}
.site-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.site-nav .navbar-nav {
    gap: 0.75rem;
}
.site-nav .nav-link {
    color: var(--white) !important;
    font-weight: 600;
    padding: 0.5rem 1.25rem !important;
    border-radius: 8px;
    transition: all 0.2s;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active {
    background: var(--primary-light);
    color: var(--primary) !important;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Cards */
.card {
    border: 1px solid rgba(49, 120, 69, 0.1);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(49, 120, 69, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(49, 120, 69, 0.12);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 4rem 0;
    border-radius: 0 0 30px 30px;
}
.hero h1 { font-weight: 700; font-size: 2.5rem; }
.hero p { font-size: 1.15rem; opacity: 0.9; }

/* Footer vert */
footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.85);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    box-shadow: inset 5px 5px 10px rgba(19, 94, 18, 0.22);
}
footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}
footer a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
footer a:hover { color: var(--primary-light); }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 0.4rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 2rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    text-align: center;
}

/* Alerts */
.alert {
    border-radius: var(--radius);
    border: none;
}

/* Forms */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #dbe7dd;
    padding: 0.6rem 0.9rem;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem rgba(80, 163, 78, 0.15);
}
.form-control:disabled, .form-control[readonly] {
    background: #eef4ee;
    color: var(--text-light);
}
.form-section {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.4rem;
    margin: 1.5rem 0 1rem;
}
.form-section:first-child { margin-top: 0; }

/* Section titles */
.section-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 2.5rem 0; }
    .hero h1 { font-size: 1.8rem; }
}
