:root {
    --ink: #132019;
    --muted: #58665f;
    --line: #dce4df;
    --soft: #f4f7f5;
    --paper: #ffffff;
    --brand: #17643c;
    --brand-strong: #0f4a2b;
    --accent: #e6a132;
    --danger: #b93d45;
    --info: #176f7c;
    --shadow-sm: 0 1px 2px rgba(19, 32, 25, 0.08);
    --shadow-md: 0 18px 48px rgba(19, 32, 25, 0.1);
    --radius: 8px;
}

* {
    letter-spacing: 0;
}

html {
    background: var(--soft);
}

body {
    min-height: 100vh;
    background: var(--soft);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--brand);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--brand-strong);
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ink);
    font-weight: 750;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2.1rem, 4vw, 4.6rem);
    line-height: 1.02;
}

h2 {
    font-size: clamp(1.35rem, 2.2vw, 2.35rem);
}

.lead {
    color: var(--muted);
}

.container,
.container-fluid {
    width: min(calc(100% - 2rem), 1240px);
    margin-inline: auto;
}

.container-fluid {
    padding-inline: 0;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.page-shell {
    flex: 1;
    width: 100%;
    padding-block: 1.5rem 3.5rem;
}

.public-shell {
    padding-top: 0;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 4.5rem;
    border-bottom: 1px solid rgba(220, 228, 223, 0.92);
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 12px 34px rgba(19, 32, 25, 0.06);
    padding-block: 0.55rem;
    backdrop-filter: blur(14px);
}

.app-navbar {
    background: rgba(255, 255, 255, 0.96) !important;
}

.navbar .container {
    gap: 0.9rem;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    color: var(--ink) !important;
    font-size: 1.2rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
}

.navbar-brand::before {
    display: none;
}

.brand-logo,
.navbar-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex: 0 0 46px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex: 0 0 54px;
}

.navbar .navbar-toggler {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
}

.navbar-dark .navbar-toggler-icon {
    filter: invert(1);
}

.navbar-nav {
    align-items: center;
    gap: 0.18rem;
}

.navbar .nav-link,
.dropdown-item {
    border-radius: 7px;
    color: var(--muted) !important;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.15;
    padding: 0.72rem 0.82rem !important;
    text-decoration: none;
}

.navbar .nav-link:hover,
.navbar .nav-link.active,
.dropdown-item:hover {
    background: #eaf3ed;
    color: var(--brand-strong) !important;
}

.navbar .navbar-nav:last-child .nav-link[href*="login"],
.navbar .navbar-nav:last-child .nav-link[href*="register"] {
    border: 1px solid var(--line);
    background: #fff;
}

.navbar .navbar-nav:last-child .nav-link[href*="register"] {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff !important;
}

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 0.45rem;
}

.app-user-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: 0.75rem;
}

.app-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    padding: 0.35rem 0.85rem 0.35rem 0.38rem;
    box-shadow: var(--shadow-sm);
}

.app-user-toggle::after {
    margin-left: 0.25rem;
}

.app-user-avatar {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), #14a36b);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
}

.app-user-avatar-lg {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
}

.app-user-copy {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
    text-align: left;
}

.app-user-name {
    max-width: 8.5rem;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user-role {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1;
}

.app-profile-menu {
    min-width: 17rem;
    border-radius: 14px;
    padding: 0.55rem;
}

.app-profile-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem;
}

.app-profile-head strong,
.app-profile-head small {
    display: block;
}

.app-profile-head strong {
    color: var(--ink);
    font-size: 0.98rem;
}

.app-profile-head small {
    color: var(--muted);
    font-weight: 700;
}

.app-logout-link {
    background: #fff4f4;
    color: var(--danger) !important;
}

.app-logout-link:hover {
    background: #ffe7e7 !important;
    color: #8f2630 !important;
}

.app-logout-button {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    min-height: 2.9rem;
    border: 1px solid #dc2626;
    border-radius: 999px;
    background: #dc2626;
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 850;
    padding: 0 1rem;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
}

.app-logout-button:hover {
    border-color: #991b1b;
    background: #991b1b;
    color: #fff !important;
}

/* Shared surfaces */
.card,
.form-container,
.category-nav,
.modal-content {
    border: 1px solid var(--line);
    border-radius: var(--radius) !important;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.card {
    overflow: hidden;
}

.card-body {
    padding: clamp(1rem, 1.7vw, 1.55rem);
}

.card-header {
    border-bottom: 1px solid var(--line);
    background: #fafcfb;
    padding: 1rem 1.25rem;
}

.card-header h5,
.modal-title {
    margin: 0;
}

.btn,
button,
.order-btn,
.category-btn {
    border-radius: 7px !important;
    font-weight: 750;
}

.btn {
    border: 1px solid transparent;
    box-shadow: none;
    padding: 0.72rem 1rem;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-success,
.bg-success {
    background-color: var(--brand) !important;
}

.btn-success {
    border-color: var(--brand);
}

.btn-primary,
.bg-primary {
    background-color: #245e91 !important;
}

.btn-info,
.bg-info {
    background-color: var(--info) !important;
}

.btn-warning,
.bg-warning {
    background-color: var(--accent) !important;
    color: #23180a !important;
}

.btn-danger,
.bg-danger {
    background-color: var(--danger) !important;
}

.btn-light,
.btn-secondary,
.btn-outline-secondary {
    border: 1px solid var(--line) !important;
    background: #fff !important;
    color: var(--ink) !important;
}

.btn-sm {
    min-width: 2.2rem;
    padding: 0.48rem 0.68rem;
}

.badge {
    border-radius: 999px;
    font-weight: 800;
    padding: 0.42rem 0.64rem;
}

.form-container {
    padding: clamp(1.25rem, 3vw, 2.2rem);
}

.form-label {
    color: var(--ink);
    font-size: 0.91rem;
    font-weight: 750;
}

.form-control,
.form-select {
    min-height: 2.9rem;
    border: 1px solid #cbd6d0;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    box-shadow: none;
}

textarea.form-control {
    min-height: 8.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.22rem rgba(23, 100, 60, 0.15);
}

.form-text,
.text-muted {
    color: var(--muted) !important;
}

.alert {
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow: none;
}

.alert-success {
    border-color: #bde1ca;
    background: #e8f5ed;
    color: #0f4a2b;
}

.alert-danger {
    border-color: #efc6ca;
    background: #fff1f2;
    color: #8a2930;
}

.alert-info {
    border-color: #b9dde2;
    background: #edf7f8;
    color: #115866;
}

.table-responsive {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.table {
    color: var(--ink);
    margin-bottom: 0;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    border-bottom-color: #e8eeea;
    padding: 0.9rem 0.82rem;
}

.table thead th {
    background: #fafcfb;
    color: var(--muted);
    font-size: 0.77rem;
    font-weight: 850;
    text-transform: uppercase;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: #fbfdfc;
}

.modal-header,
.modal-footer {
    border-color: var(--line);
}

/* Public home */
.legacy-home-carousel,
.legacy-home-intro {
    display: none;
}

.storefront-home {
    display: block;
    flex: 1;
}

.commerce-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 1.25rem;
    align-items: stretch;
    padding-block: clamp(1rem, 2vw, 1.6rem);
}

.commerce-hero-stage {
    display: flex;
    min-height: clamp(29rem, 56vw, 39rem);
    align-items: flex-end;
    overflow: hidden;
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, rgba(11, 23, 16, 0.88), rgba(11, 23, 16, 0.48), rgba(11, 23, 16, 0.1)),
        url("../../images/autres/recolter.jpg") center / cover;
    box-shadow: var(--shadow-md);
}

.commerce-hero-copy {
    width: min(100%, 39rem);
    padding: clamp(1.45rem, 4vw, 4rem);
}

.commerce-kicker,
.section-kicker,
.product-meta {
    display: inline-flex;
    width: max-content;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 900;
    padding: 0.38rem 0.66rem;
    text-transform: uppercase;
}

.commerce-hero h1 {
    color: #fff;
    font-size: clamp(2.9rem, 6vw, 6rem);
    font-weight: 900;
    margin-block: 0.9rem 0.65rem;
}

.commerce-hero-copy > p:not(.commerce-kicker) {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 1.5vw, 1.28rem);
    max-width: 33rem;
}

.commerce-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.72rem;
    margin-top: 1.25rem;
}

.commerce-hero-rail {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hero-department {
    display: grid;
    grid-template-columns: 7.2rem 1fr;
    gap: 0.95rem;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    min-height: 8.4rem;
    padding: 0.72rem;
    text-decoration: none;
}

.hero-department img {
    width: 7.2rem;
    height: 6.9rem;
    border-radius: 6px;
    object-fit: cover;
}

.hero-department span {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.role-shelf {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

.role-panel {
    display: grid;
    grid-template-columns: 2.7rem 1fr;
    gap: 0.88rem;
    min-height: 10rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 1.2rem;
}

.role-panel i,
.info-cell i {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border-radius: 7px;
    background: #e8f5ed;
    color: var(--brand);
}

.role-panel h2 {
    font-size: 1.12rem;
    margin-bottom: 0.28rem;
}

.role-panel p {
    color: var(--muted);
    font-size: 0.94rem;
    margin-bottom: 0;
}

.role-panel > a {
    grid-column: 2;
    align-self: end;
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.storefront-home > section.bg-light {
    border-top: 1px solid var(--line);
    background: #fff !important;
}

.home-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 30rem);
    gap: clamp(1rem, 4vw, 4rem);
    align-items: center;
}

.home-feature p:not(.section-kicker),
.section-heading p {
    color: var(--muted);
}

.home-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.home-photo-grid img {
    width: 100%;
    height: clamp(15rem, 28vw, 25rem);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    object-fit: cover;
}

.home-photo-grid img:last-child {
    margin-top: 2rem;
}

.market-locator {
    padding-block: clamp(2rem, 5vw, 4.5rem);
}

.section-heading {
    max-width: 41rem;
    margin-bottom: 1.2rem;
}

.locator-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 1rem;
}

.locator-grid #map {
    min-height: 31rem;
}

.locator-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: clamp(1rem, 2vw, 1.4rem);
}

.locator-panel ul {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.locator-panel li {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    border-top: 1px solid var(--line);
    padding-top: 0.65rem;
}

.map-pin {
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 6px 18px rgba(19, 32, 25, 0.22);
    color: #fff;
}

#map {
    border: 1px solid var(--line);
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* Public editorial pages */
.public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
    gap: clamp(1rem, 3vw, 3rem);
    align-items: center;
    padding-block: clamp(2rem, 5vw, 5rem);
}

.public-hero-copy p {
    max-width: 40rem;
    color: var(--muted);
    font-size: 1.08rem;
}

.public-hero-media {
    overflow: hidden;
    min-height: 24rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.public-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 24rem;
    object-fit: cover;
}

.content-band {
    border-top: 1px solid var(--line);
    background: #fff;
    padding-block: clamp(2rem, 5vw, 4.5rem);
}

.value-grid,
.contact-grid {
    display: grid;
    gap: 1rem;
}

.value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value-panel,
.info-cell {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 1.2rem;
}

.value-panel p,
.info-cell p {
    color: var(--muted);
    margin-bottom: 0;
}

.contact-shell {
    display: grid;
    grid-template-columns: minmax(16rem, 23rem) minmax(0, 1fr);
    gap: 1rem;
    padding-block: clamp(1.8rem, 4vw, 4rem);
}

.contact-grid {
    grid-template-columns: 1fr;
}

.info-cell {
    display: grid;
    grid-template-columns: 2.7rem 1fr;
    gap: 0.85rem;
}

.contact-form-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: clamp(1.2rem, 3vw, 2rem);
}

/* Authentication */
.auth-page {
    background: #f4f7f5;
}

.auth-page .navbar {
    position: static;
    box-shadow: none;
}

.auth-register-nav {
    min-height: 3.5rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96) !important;
    padding-block: 0.3rem;
}

.auth-register-nav .container {
    min-height: 3.5rem;
}

.auth-register-nav .navbar-brand {
    gap: 0.55rem;
    font-size: 1.05rem;
    font-weight: 850;
}

.auth-register-nav .auth-brand-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(23rem, 30rem);
    gap: clamp(1rem, 4vw, 4rem);
    align-items: center;
    flex: 1;
    padding-block: clamp(2rem, 6vw, 5rem);
}

.auth-showcase {
    min-height: 35rem;
    overflow: hidden;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(12, 26, 18, 0.08), rgba(12, 26, 18, 0.82)),
        url("../../images/autres/planter.jpg") center / cover;
    box-shadow: var(--shadow-md);
    color: #fff;
    display: flex;
    align-items: end;
    padding: clamp(1.4rem, 3vw, 2.5rem);
}

.auth-showcase h1,
.auth-showcase p {
    color: #fff;
}

.auth-showcase h1 {
    font-size: clamp(2rem, 3.4vw, 3.7rem);
}

.auth-panel h1 {
    font-size: clamp(1.7rem, 2vw, 2.3rem);
}

/* Catalogue and marketplace */
.products-hero {
    display: grid;
    align-items: center;
    min-height: 21rem;
    margin: 1.25rem auto;
    border-radius: var(--radius) !important;
    background:
        linear-gradient(90deg, rgba(11, 23, 16, 0.9), rgba(11, 23, 16, 0.24)),
        url("../../images/autres/recolter.jpg") center / cover !important;
    box-shadow: var(--shadow-md);
}

.catalog-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
    gap: clamp(1rem, 3vw, 3rem);
    align-items: center;
    margin-bottom: 1rem;
}

.catalog-hero p:not(.section-kicker) {
    max-width: 40rem;
    color: var(--muted);
    font-size: 1.06rem;
}

.catalog-hero img {
    width: 100%;
    height: clamp(15rem, 26vw, 23rem);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.catalog-shell {
    display: grid;
    gap: 1rem;
}

.category-actions {
    display: flex;
    flex-wrap: wrap;
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    margin: 0;
    padding: 1rem;
}

.order-preview .order-price {
    color: var(--ink);
    font-size: 1.3rem;
    font-weight: 850;
}

.products-hero .hero-content h1,
.products-hero .hero-content p {
    color: #fff;
}

.category-nav {
    padding: 1rem;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.catalog-toolbar h3,
.catalog-toolbar p {
    margin: 0;
}

.catalog-toolbar p {
    color: var(--muted);
}

.catalog-search {
    display: flex;
    width: min(100%, 25rem);
    min-height: 3rem;
    align-items: center;
    gap: 0.72rem;
    border: 1px solid #cbd6d0;
    border-radius: 7px;
    background: #fff;
    color: var(--muted);
    padding-inline: 0.9rem;
}

.catalog-search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.22rem rgba(23, 100, 60, 0.12);
}

.catalog-search input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: 0;
}

.category-btn {
    margin: 0.28rem;
    border: 1px solid var(--line) !important;
    background: #fff !important;
    color: var(--ink) !important;
    padding: 0.68rem 0.92rem;
}

.category-btn:hover,
.category-btn.active {
    border-color: var(--brand) !important;
    background: #e8f5ed !important;
    color: var(--brand-strong) !important;
}

.category-section {
    margin-bottom: 1rem !important;
    border: 1px solid var(--line);
    border-radius: var(--radius) !important;
    background: #fff !important;
    padding: clamp(1rem, 2vw, 1.5rem) !important;
}

.category-header {
    border-bottom: 1px solid var(--line);
    margin-bottom: 1rem !important;
    padding-bottom: 1rem;
    text-align: left !important;
}

.category-name {
    color: var(--ink) !important;
    font-size: clamp(1.35rem, 2vw, 1.9rem) !important;
    margin-bottom: 0.22rem !important;
}

.category-name::after {
    display: none !important;
}

.category-description {
    max-width: none !important;
    margin: 0 !important;
    color: var(--muted) !important;
    font-size: 0.98rem !important;
}

.products-grid,
.market-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)) !important;
    gap: 1rem !important;
    margin: 1rem 0 0 !important;
}

.product-card.product-tile,
.market-product {
    height: auto !important;
    margin: 0 !important;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    cursor: default !important;
    perspective: none !important;
}

.product-media {
    position: relative;
    padding: 0.8rem 0.8rem 0;
}

.product-image,
.card-img-top {
    width: 100%;
    height: 14rem !important;
    border: 0 !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    object-fit: cover;
}

.stock-badge {
    position: absolute !important;
    top: 1.35rem !important;
    right: 1.35rem !important;
    z-index: 2;
    border-radius: 999px !important;
    background: rgba(19, 32, 25, 0.88) !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 0.82rem !important;
    padding: 0.34rem 0.56rem !important;
}

.product-summary {
    display: grid;
    gap: 0.55rem;
    padding: 0.9rem;
    text-align: left;
}

.product-meta {
    background: #e8f5ed;
}

.product-name {
    color: var(--ink) !important;
    font-size: 1.08rem !important;
    line-height: 1.28;
    margin: 0 !important;
    min-height: 2.75rem;
    text-align: left !important;
}

.product-description {
    color: var(--muted) !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    min-height: 2.55rem;
    text-align: left !important;
}

.product-prices {
    display: grid;
    gap: 0.14rem;
}

.product-prices strong {
    font-size: 1.14rem;
}

.product-prices span,
.product-facts {
    color: var(--muted);
    font-size: 0.84rem;
}

.product-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem 0.72rem;
}

.order-btn {
    width: 100%;
    border: 1px solid var(--brand) !important;
    background: var(--brand) !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 0.94rem !important;
    margin-top: 0.22rem;
    padding: 0.68rem 0.8rem !important;
}

.order-btn:hover {
    background: var(--brand-strong) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

/* Dashboards */
.admin-dashboard > h2:first-child,
.container > h2:first-child,
.container > h1:first-child {
    margin-bottom: 1rem;
}

.stats-card {
    min-height: 9.6rem;
    border: 0;
    box-shadow: var(--shadow-sm);
}

.stats-card .card-title {
    color: inherit;
    font-size: 0.88rem;
    opacity: 0.86;
}

.stats-number,
.display-4 {
    font-size: clamp(2rem, 3vw, 3.15rem);
    font-weight: 850;
    line-height: 1;
}

footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #132019 !important;
    color: rgba(255, 255, 255, 0.78);
}

footer h5 {
    color: #fff;
}

footer a {
    color: rgba(255, 255, 255, 0.84) !important;
}

footer .border-top,
footer hr {
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(10rem, 1fr));
    gap: 1rem;
}

.footer-grid a,
.footer-grid p {
    display: block;
    margin-bottom: 0.45rem;
}

@media (max-width: 991px) {
    .container,
    .container-fluid {
        width: min(calc(100% - 1.25rem), 1240px);
    }

    .navbar-nav {
        align-items: stretch;
        padding-top: 0.7rem;
    }

    .navbar-collapse {
        border-top: 1px solid var(--line);
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }

    .app-user-nav {
        align-items: stretch;
        border-top: 1px solid var(--line);
        flex-direction: column;
        gap: 0.55rem;
        margin-left: 0;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .app-user-toggle,
    .app-logout-button {
        justify-content: flex-start;
        width: 100%;
    }

    .app-profile-menu {
        width: 100%;
        min-width: 0;
    }

    .commerce-hero,
    .public-hero,
    .catalog-hero,
    .contact-shell,
    .auth-layout,
    .home-feature,
    .locator-grid {
        grid-template-columns: 1fr;
    }

    .commerce-hero-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .hero-department {
        grid-template-columns: 1fr;
    }

    .hero-department img {
        width: 100%;
    }

    .role-shelf {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        min-height: 22rem;
    }
}

@media (max-width: 767px) {
    .value-grid,
    .commerce-hero-rail {
        grid-template-columns: 1fr;
    }

    .commerce-hero-stage {
        min-height: 31rem;
    }

    .catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .table > :not(caption) > * > * {
        white-space: nowrap;
    }
}

/* Marketplace public reference */
.public-market {
    background: #fff;
}

.promo-bar {
    display: flex;
    min-height: 2.9rem;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: #08b294;
    color: #fff;
    font-weight: 800;
    padding: 0.5rem 1rem;
    text-align: center;
}

.promo-bar a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.78);
    color: #fff;
    text-decoration: none;
}

.public-market-nav {
    min-height: 6.25rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(19, 32, 25, 0.08);
}

.public-market-nav .container {
    width: min(calc(100% - 3rem), 1800px);
}

.public-market-nav .navbar-brand {
    font-size: 1.42rem;
}

.public-market-nav .navbar-brand::before {
    border-radius: 7px;
    background: #08b294;
    content: "\f290";
    font-family: "Font Awesome 6 Free";
    font-size: 1rem;
    font-weight: 900;
}

.public-market-nav .public-links {
    gap: clamp(0.3rem, 1vw, 1.35rem);
    margin-left: clamp(0.5rem, 2vw, 2rem);
}

.public-market-nav .nav-link {
    color: #141b18 !important;
    font-size: 1rem;
    font-weight: 550;
}

.public-market-nav .nav-link:hover,
.public-market-nav .nav-link.active {
    background: transparent;
    color: #08a58a !important;
}

.public-market-nav .navbar-nav:last-child .nav-link[href*="login"],
.public-market-nav .sign-link {
    display: inline-flex;
    gap: 0.62rem;
    align-items: center;
    border: 0 !important;
    background: transparent !important;
    font-size: 1.05rem;
}

.public-market-nav .sign-link i {
    color: #8b9390;
    font-size: 1.5rem;
}

.market-search {
    display: flex;
    flex: 1;
    min-width: min(28vw, 18rem);
    max-width: 42rem;
    min-height: 4rem;
    align-items: center;
    overflow: hidden;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    background: #fff;
    margin-inline: auto clamp(0.6rem, 2vw, 2rem);
}

.market-search:focus-within {
    border-color: #08b294;
    box-shadow: 0 0 0 3px rgba(8, 178, 148, 0.12);
}

.market-search input {
    width: 100%;
    border: 0;
    color: #141b18;
    font-size: 1rem;
    outline: 0;
    padding: 0 1.6rem;
}

.market-search button {
    width: 4.3rem;
    align-self: stretch;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    color: #8b9390;
    font-size: 1.28rem;
}

.market-banner {
    display: flex;
    min-height: clamp(16rem, 28vw, 22.75rem);
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(252, 214, 156, 0.96), rgba(252, 214, 156, 0.58)),
        url("../../images/autres/recolter.jpg") right center / cover;
    margin-block: 1.45rem 3rem;
    padding: clamp(1.3rem, 5vw, 5.2rem);
}

.market-banner-copy {
    max-width: 34rem;
}

.market-banner .commerce-kicker {
    background: #fff;
    color: #e55738;
}

.market-banner h1 {
    color: #17201b;
    font-size: clamp(2.2rem, 4.5vw, 4.8rem);
    font-weight: 900;
    margin-block: 0.72rem 0.52rem;
}

.market-banner p:not(.commerce-kicker) {
    color: #2d3832;
    font-size: 1.08rem;
}

.market-home-grid {
    display: grid;
    grid-template-columns: minmax(16rem, 27rem) minmax(0, 1fr) minmax(18rem, 28rem);
    gap: clamp(1rem, 1.8vw, 2rem);
    align-items: stretch;
    margin-bottom: 3rem;
}

.home-categories,
.home-deal,
.home-product-strip article {
    border: 1px solid #e1e8eb;
    border-radius: 7px;
    background: #fff;
}

.home-categories {
    overflow: hidden;
}

.home-categories a {
    display: grid;
    grid-template-columns: 4rem 1fr auto;
    gap: 1rem;
    min-height: 5.3rem;
    align-items: center;
    border-bottom: 1px solid #e1e8eb;
    color: #141b18;
    font-size: 1.05rem;
    padding: 0.7rem 1.15rem;
    text-decoration: none;
}

.home-categories a:last-child {
    border-bottom: 0;
}

.home-categories img {
    width: 4rem;
    height: 4rem;
    border-radius: 7px;
    object-fit: cover;
}

.home-categories i,
.market-category-list i {
    color: #9aa3a0;
    font-size: 0.82rem;
}

.home-product-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(10rem, 1fr));
    gap: 1.25rem;
}

.home-product-strip article {
    display: grid;
    align-content: space-between;
    min-height: 25rem;
    box-shadow: 0 2px 12px rgba(19, 32, 25, 0.06);
    padding: 1.35rem;
}

.home-product-strip img {
    width: 100%;
    height: 14rem;
    border-radius: 6px;
    object-fit: contain;
}

.home-product-strip strong {
    color: #141b18;
    font-size: 1.08rem;
}

.home-product-strip span {
    color: #64706a;
}

.home-deal {
    display: grid;
    align-content: start;
    border-color: #ffb617;
    text-align: center;
    padding: 1.5rem;
}

.home-deal img {
    width: 100%;
    height: 15rem;
    object-fit: contain;
    margin-block: 0.8rem 1.2rem;
}

.home-deal h2 {
    font-size: 1.35rem;
}

.home-deal a {
    color: #08a58a;
    font-weight: 800;
    text-decoration: none;
}

.market-catalog-layout {
    display: grid;
    grid-template-columns: minmax(15rem, 27rem) minmax(0, 1fr);
    gap: 2rem;
}

.market-category-list {
    align-self: start;
    overflow: hidden;
    padding: 0;
}

.market-category-list .catalog-toolbar {
    margin: 0;
    padding: 1.25rem;
}

.market-category-list .category-actions {
    display: grid;
}

.market-category-list .category-btn {
    display: flex;
    min-height: 5.15rem;
    align-items: center;
    justify-content: space-between;
    border: 0 !important;
    border-top: 1px solid #e1e8eb !important;
    border-radius: 0 !important;
    font-size: 1.02rem;
    font-weight: 550;
    margin: 0;
    padding: 1rem 1.35rem;
    text-align: left;
}

.market-category-list .category-btn.active,
.market-category-list .category-btn:hover {
    background: #f1f4f8 !important;
    color: #141b18 !important;
}

.market-catalog-main {
    min-width: 0;
}

.inline-catalog-search {
    width: min(100%, 32rem);
    margin-bottom: 1.1rem;
}

.market-catalog-main .category-section {
    border: 0;
    padding: 0 !important;
}

.market-catalog-main .category-header {
    margin-bottom: 1.3rem !important;
}

.market-catalog-main .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)) !important;
    gap: 1.35rem !important;
}

.market-catalog-main .product-card.product-tile {
    border-color: #eef2f4;
    min-height: 29rem;
    box-shadow: 0 2px 12px rgba(19, 32, 25, 0.06);
}

.market-catalog-main .product-image {
    height: 14.8rem !important;
    object-fit: contain;
}

.market-catalog-main .order-btn {
    display: grid;
    width: 2.9rem;
    height: 2.9rem;
    margin-left: auto;
    place-items: center;
    border: 0 !important;
    border-radius: 999px !important;
    background: #08b294 !important;
    font-size: 0;
    padding: 0 !important;
}

.market-catalog-main .order-btn i {
    font-size: 1.08rem;
    margin: 0 !important;
}

.cart-count-badge {
    display: inline-grid;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-left: 0.35rem;
    place-items: center;
    border-radius: 999px;
    background: #10b981;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
}

.buyer-market-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
    border: 1px solid #dcebe3;
    border-radius: 1.4rem;
    background: linear-gradient(135deg, #f8fffb 0%, #eef9f2 100%);
    padding: clamp(1.25rem, 3vw, 2.25rem);
    box-shadow: 0 18px 45px rgba(15, 37, 27, 0.08);
}

.buyer-eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #dff8e8;
    color: #116b39;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    padding: 0.4rem 0.75rem;
}

.buyer-market-hero h1 {
    margin: 0.75rem 0 0.45rem;
    color: #102016;
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 950;
}

.buyer-market-hero p {
    max-width: 43rem;
    margin: 0;
    color: #59665d;
    font-size: 1rem;
}

.buyer-cart-link,
.buyer-primary-btn,
.buyer-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.buyer-cart-link,
.buyer-primary-btn {
    background: #082016;
    color: #fff;
    padding: 0.85rem 1.15rem;
}

.buyer-cart-link:hover,
.buyer-primary-btn:hover {
    background: #0f5132;
    color: #fff;
}

.buyer-secondary-btn {
    border: 1px solid #d7e2dc;
    background: #fff;
    color: #102016;
    padding: 0.75rem 1rem;
}

.buyer-secondary-btn:hover {
    border-color: #10b981;
    color: #0f6b43;
}

.buyer-location-card {
    margin-bottom: 1.5rem;
    border: 1px solid #e2ebe5;
    border-radius: 1.2rem;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 37, 27, 0.06);
}

.buyer-location-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #edf2ef;
    padding: 1rem 1.25rem;
}

.buyer-location-head h2 {
    margin: 0;
    color: #102016;
    font-size: 1.1rem;
    font-weight: 950;
}

.buyer-location-head span {
    border-radius: 999px;
    background: #eaf8ef;
    color: #146c43;
    font-size: 0.84rem;
    font-weight: 900;
    padding: 0.4rem 0.7rem;
}

.buyer-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.buyer-product-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid #edf2ef;
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
}

.buyer-product-image {
    position: relative;
    display: grid;
    height: 13.5rem;
    place-items: center;
    background: #f8faf9;
}

.buyer-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.buyer-product-image span {
    position: absolute;
    left: 0.8rem;
    top: 0.8rem;
    border-radius: 999px;
    background: #10b981;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.35rem 0.6rem;
}

.buyer-product-body {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
}

.buyer-product-body h3 {
    margin: 0;
    color: #102016;
    font-size: 1.05rem;
    font-weight: 950;
}

.buyer-product-body p {
    margin: 0.25rem 0 0;
    color: #647067;
}

.buyer-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.buyer-product-meta strong {
    color: #0b1d13;
    font-size: 1.05rem;
}

.buyer-product-meta span {
    color: #5f6d64;
    font-size: 0.86rem;
}

.buyer-recipe-preview {
    min-height: 3.2rem;
    color: #59665d !important;
    font-size: 0.9rem;
}

.buyer-card-actions {
    display: grid;
    gap: 0.7rem;
    margin-top: auto;
}

.buyer-cart-form {
    display: grid;
    grid-template-columns: 4.6rem 1fr;
    gap: 0.55rem;
}

.buyer-cart-form input,
.buyer-cart-quantity input {
    width: 100%;
    border: 1px solid #d7e2dc;
    border-radius: 999px;
    background: #fff;
    color: #102016;
    font-weight: 800;
    padding: 0.7rem 0.75rem;
}

.buyer-recipe-modal-head span {
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 900;
}

.buyer-recipe-modal-grid {
    display: grid;
    grid-template-columns: minmax(12rem, 18rem) 1fr;
    gap: 1.25rem;
}

.buyer-recipe-modal-grid img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1rem;
    background: #f8faf9;
    object-fit: contain;
    padding: 1rem;
}

.buyer-recipe-modal-grid h6 {
    margin-top: 0.9rem;
    color: #102016;
    font-weight: 950;
}

.buyer-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
    gap: 1.25rem;
    align-items: start;
}

.buyer-cart-list {
    display: grid;
    gap: 0.9rem;
}

.buyer-cart-item {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) 8rem 8rem 2.6rem;
    gap: 1rem;
    align-items: center;
    border: 1px solid #e2ebe5;
    border-radius: 1rem;
    background: #fff;
    padding: 0.85rem;
}

.buyer-cart-item img {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 0.8rem;
    background: #f8faf9;
    object-fit: contain;
    padding: 0.45rem;
}

.buyer-cart-item h2 {
    margin: 0;
    color: #102016;
    font-size: 1rem;
    font-weight: 950;
}

.buyer-cart-item p,
.buyer-cart-item small {
    margin: 0.3rem 0 0;
    color: #66736b;
}

.buyer-cart-item span {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    margin-top: 0.45rem;
    color: #0f8f5a;
    font-size: 0.84rem;
    font-weight: 800;
}

.buyer-cart-quantity label {
    display: block;
    margin-bottom: 0.35rem;
    color: #647067;
    font-size: 0.78rem;
    font-weight: 900;
}

.buyer-remove-btn {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #fff1f2;
    color: #be123c;
}

.buyer-cart-summary {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 0.9rem;
    border: 1px solid #dcebe3;
    border-radius: 1rem;
    background: #fff;
    padding: 1.1rem;
    box-shadow: 0 12px 32px rgba(15, 37, 27, 0.07);
}

.buyer-cart-summary h2 {
    margin: 0;
    color: #102016;
    font-size: 1.2rem;
    font-weight: 950;
}

.buyer-cart-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #edf2ef;
    padding-top: 0.8rem;
}

.buyer-link-btn {
    border: 0;
    background: transparent;
    color: #647067;
    font-weight: 850;
}

.buyer-empty-state {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    border: 1px solid #e2ebe5;
    border-radius: 1.25rem;
    background: #fff;
    padding: 3rem 1.25rem;
    text-align: center;
}

.buyer-empty-state i {
    color: #10b981;
    font-size: 2.4rem;
}

.buyer-empty-state h2 {
    margin: 0;
    color: #102016;
    font-weight: 950;
}

.buyer-empty-state p {
    margin: 0;
    color: #647067;
}

@media (max-width: 1199px) {
    .market-home-grid {
        grid-template-columns: 1fr;
    }

    .market-catalog-layout {
        grid-template-columns: 1fr;
    }

    .buyer-cart-layout {
        grid-template-columns: 1fr;
    }

    .buyer-cart-summary {
        position: static;
    }
}

@media (max-width: 991px) {
    .promo-bar {
        flex-direction: column;
        gap: 0.15rem;
    }

    .public-market-nav .container {
        width: min(calc(100% - 1.25rem), 1800px);
    }

    .market-search {
        max-width: none;
        margin: 0.7rem 0;
    }

    .home-product-strip {
        grid-template-columns: 1fr;
    }

    .buyer-market-hero,
    .buyer-location-head,
    .buyer-product-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .buyer-cart-item {
        grid-template-columns: 5.5rem minmax(0, 1fr);
    }

    .buyer-cart-item > strong,
    .buyer-cart-quantity,
    .buyer-remove-btn {
        grid-column: 2;
    }

    .buyer-recipe-modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .buyer-products-grid {
        grid-template-columns: 1fr;
    }

    .buyer-cart-form {
        grid-template-columns: 1fr;
    }

    .buyer-cart-link,
    .buyer-primary-btn,
    .buyer-secondary-btn {
        width: 100%;
    }
}
