/* ==========================================================================
   MarchéLink — feuille de style
   Palette tirée des maquettes : pétrole, sarcelle, orange.
   ========================================================================== */

/* Plus Jakarta Sans (SIL Open Font License, voir fonts/OFL.txt), hébergée localement :
   aucune requête vers un tiers, disponible hors connexion. */
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --petrol-950: #082a31;
    --petrol-900: #0b3139;
    --petrol-800: #0e3b45;
    --petrol-700: #134b56;
    --teal-700: #0f6f66;
    --teal-600: #12857a;
    --teal-500: #1a9a8d;
    --teal-100: #cdebe5;
    --teal-50: #e8f5f2;
    --orange-600: #e2571b;
    --orange-500: #f26b2a;
    --orange-100: #fddccb;
    --orange-50: #fef0e8;
    --blue-600: #2a6fc0;
    --blue-50: #e9f1fb;
    --green-600: #1c8653;
    --green-50: #e3f4ea;
    --red-600: #c63a3a;
    --red-50: #fcebea;
    --purple-600: #7a4cc2;
    --ink: #10262c;
    --ink-2: #2b4046;
    --muted: #5d6e73;
    --line: #e2e8e6;
    --line-2: #eef2f1;
    --bg: #f5f7f6;
    --white: #ffffff;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(16, 38, 44, .06);
    --shadow: 0 4px 18px rgba(16, 38, 44, .08);
    --shadow-lg: 0 18px 50px rgba(16, 38, 44, .16);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --container: 1240px;
    --gutter: clamp(16px, 3vw, 32px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-700); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(18, 133, 122, .45); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.xsmall { font-size: .76rem; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--petrol-800); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Icônes ------------------------------------------------------------------- */
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -.25em; }
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.6em; height: 1.6em; }
.icon-xl { width: 2.2em; height: 2.2em; }
.verified { color: var(--teal-600); width: 1.1em; height: 1.1em; vertical-align: -.18em; }
.stars { display: inline-flex; gap: 1px; vertical-align: -.15em; }
.stars .icon { width: 1em; height: 1em; }
.star-on { color: #f5a524; }
.star-off { color: #d5dcda; }

/* Boutons ------------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .72em 1.25em; border-radius: var(--radius-sm); border: 1.5px solid transparent;
    font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer;
    text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .05s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange-500); color: #fff; }
.btn-primary:hover { background: var(--orange-600); color: #fff; }
.btn-teal { background: var(--teal-700); color: #fff; }
.btn-teal:hover { background: var(--petrol-700); color: #fff; }
.btn-outline { background: #fff; border-color: var(--teal-700); color: var(--petrol-800); }
.btn-outline:hover { background: var(--teal-50); color: var(--petrol-800); }
.btn-light { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-light:hover { border-color: var(--teal-600); color: var(--teal-700); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-danger { background: #fff; border-color: #efc5c5; color: var(--red-600); }
.btn-danger:hover { background: var(--red-50); color: var(--red-600); }
.btn-white-outline { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.btn-white-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-lg { padding: .9em 1.6em; font-size: 1.02rem; }
.btn-sm { padding: .45em .8em; font-size: .84rem; }
.btn-block { width: 100%; }
.btn-icon { padding: .55em; border-radius: var(--radius-sm); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; }

/* Badges ------------------------------------------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: .3em; padding: .28em .7em; border-radius: 999px;
    font-size: .78rem; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.badge-orange { background: var(--orange-50); color: var(--orange-600); }
.badge-green { background: var(--green-50); color: var(--green-600); }
.badge-teal { background: var(--teal-50); color: var(--teal-700); }
.badge-blue { background: var(--blue-50); color: var(--blue-600); }
.badge-red { background: var(--red-50); color: var(--red-600); }
.badge-gray { background: #eef1f1; color: #5f6d70; }
.badge-purple { background: #f1ebfa; color: var(--purple-600); }
.count {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--orange-500); color: #fff; font-size: .72rem; font-weight: 800;
}

/* Formulaires -------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field > label, .form-label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--ink-2); }
.input, .select, .textarea {
    width: 100%; padding: .72em .9em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(18, 133, 122, .15); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red-600); }
.field-error { color: var(--red-600); font-size: .82rem; margin: 6px 0 0; }
.hint { color: var(--muted); font-size: .8rem; margin-top: 5px; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .input { padding-left: 2.6em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.checkbox input { margin-top: 3px; accent-color: var(--teal-600); width: 17px; height: 17px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 8px; }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cfd8d6; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + span { background: var(--teal-600); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid rgba(18, 133, 122, .45); outline-offset: 2px; }

/* Cartes ------------------------------------------------------------------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-body { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.15rem; }
.section { padding-block: clamp(28px, 4vw, 48px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* Alertes ------------------------------------------------------------------ */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .93rem; border: 1px solid transparent; }
.alert .icon { margin-top: 1px; }
.alert-success { background: var(--green-50); color: #155f3c; border-color: #bfe4cf; }
.alert-error { background: var(--red-50); color: #8f2626; border-color: #f2c7c7; }
.alert-info { background: var(--blue-50); color: #1f4f8a; border-color: #c9dcf4; }
.alert-warning { background: var(--orange-50); color: #9a3d10; border-color: var(--orange-100); }
.alert .close { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; opacity: .6; padding: 0; }
.flash-stack { position: fixed; top: 84px; right: 16px; z-index: 90; width: min(420px, calc(100% - 32px)); }
.flash-stack .alert { box-shadow: var(--shadow); }

/* ==========================================================================
   En-tête public
   ========================================================================== */
.topbar { background: var(--petrol-800); color: #fff; position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); }
.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; color: #fff; line-height: 1; }
.logo:hover { color: #fff; }
.logo-mark { width: 34px; height: 34px; color: var(--orange-500); }
.logo em { font-style: normal; color: var(--orange-500); }
.logo-light { color: var(--petrol-800); }
.logo-light:hover { color: var(--petrol-800); }
.logo-light em { color: var(--teal-600); }

.city-picker { position: relative; }
.city-picker select {
    appearance: none; -webkit-appearance: none; background: var(--petrol-700); color: #fff; border: 1.5px solid #2e6f78;
    border-radius: var(--radius-sm); padding: .55em 2.2em .55em 2.2em; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
}
.city-picker .icon { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; color: #fff; width: 1em; height: 1em; }
.city-picker .icon:first-of-type { left: 11px; }
.city-picker .icon.chev { right: 10px; }

.search { flex: 1; position: relative; max-width: 560px; }
.search input {
    width: 100%; border: 0; border-radius: var(--radius-sm); padding: .78em 1em .78em 2.7em; font: inherit; font-size: .95rem; color: var(--ink);
}
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--petrol-800); }

.top-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.top-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: .92rem; padding: 8px 10px; border-radius: var(--radius-sm); position: relative; background: none; border: 0; font-family: inherit; cursor: pointer; }
.top-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.top-link .count { position: absolute; top: 0; left: 22px; min-width: 18px; height: 18px; font-size: .68rem; }
.top-actions .btn-primary { margin-left: 10px; }
.menu-toggle { display: none; color: #fff; background: none; border: 0; padding: 6px; cursor: pointer; }

.navbar { background: #fff; border-bottom: 1px solid var(--line); }
.navbar-inner { display: flex; align-items: center; gap: 6px; min-height: 52px; }
.nav-main { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 700; color: var(--petrol-800); font-size: 1rem; border-radius: var(--radius-sm); background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav-link:hover, .nav-item.open .nav-link { background: var(--teal-50); color: var(--petrol-800); }
.nav-link .chev { width: .9em; height: .9em; transition: transform .2s; }
.nav-item.open .chev { transform: rotate(180deg); }
.dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; display: none;
}
.nav-item.open .dropdown, .user-menu.open .dropdown { display: block; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: .93rem; width: 100%; background: none; border: 0; font-family: inherit; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg); color: var(--teal-700); }
.dropdown .icon { color: var(--teal-600); }
.dropdown small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
.dropdown-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.nav-perks { display: flex; gap: 22px; margin-left: auto; font-size: .84rem; color: var(--ink-2); font-weight: 600; }
.nav-perks a, .nav-perks span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.nav-perks .icon { color: var(--petrol-800); }

.user-menu { position: relative; }
.user-menu .dropdown { right: 0; left: auto; min-width: 240px; color: var(--ink); }

/* Bandeau de coupure réseau */
.incident-bar { background: #fff4e5; border-bottom: 1px solid #f6d3a8; color: #8a3b0c; font-size: .9rem; }
.incident-bar > div { display: flex; gap: 10px; align-items: flex-start; padding-block: 10px; }
.dash-main .incident-bar > div { padding-inline: clamp(16px, 3vw, 36px); }
.incident-bar .icon { margin-top: 2px; }
.incident-bar a { color: #8a3b0c; font-weight: 700; text-decoration: underline; }

/* Barre d'onglets mobile */
.tabbar { display: none; }

/* ==========================================================================
   Accueil
   ========================================================================== */
.hero { position: relative; background: linear-gradient(90deg, #f7f9f8 0%, #f7f9f8 38%, #eef3f1 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch; min-height: 400px; }
.hero-copy { padding: clamp(32px, 5vw, 56px) 0; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.06; margin-bottom: 18px; letter-spacing: -.025em; }
.hero p.lead { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--ink-2); max-width: 520px; margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
/* L'image déborde jusqu'au bord droit de la fenêtre */
.hero-media { position: relative; margin-right: calc(-1 * (max(0px, (100vw - var(--container)) / 2) + var(--gutter))); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #f7f9f8 0%, rgba(247,249,248,0) 28%); }
.perks { display: flex; gap: 0; flex-wrap: wrap; }
.perk { display: flex; gap: 10px; align-items: center; padding-right: 16px; margin-right: 16px; border-right: 1px solid var(--line); }
.perk:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.perk .icon { width: 30px; height: 30px; color: var(--petrol-800); }
.perk strong { display: block; font-size: .9rem; }
.perk small { color: var(--muted); font-size: .78rem; }

.cat-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cat-tile { display: flex; align-items: center; gap: 12px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--teal-100); box-shadow: var(--shadow); color: var(--ink); }
.cat-tile img, .cat-tile .cat-icon { width: 64px; height: 58px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.cat-icon { display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); }
.cat-tile strong { display: block; font-size: .92rem; line-height: 1.25; }
.cat-tile small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .74rem; line-height: 1.35; }

.diaspora-band { background: var(--petrol-800); color: #fff; overflow: hidden; }
.diaspora-inner { display: grid; grid-template-columns: 300px minmax(300px, 1fr) auto auto; align-items: center; gap: 28px; }
.diaspora-inner > img {
    height: 100%; min-height: 130px; width: calc(100% + max(0px, (100vw - var(--container)) / 2) + var(--gutter)); max-width: none; object-fit: cover;
    margin-left: calc(-1 * (max(0px, (100vw - var(--container)) / 2) + var(--gutter)));
}
.diaspora-band h2 { color: #fff; margin-bottom: 4px; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.diaspora-band p { color: #cfe3e1; margin: 0; font-size: 1.02rem; }
.diaspora-steps { display: flex; gap: 0; }
.diaspora-steps div { text-align: center; padding: 0 16px; font-size: .8rem; line-height: 1.35; color: #e1eeec; border-right: 1px solid rgba(255,255,255,.18); }
.diaspora-steps div:last-child { border-right: 0; }
.diaspora-steps .icon { width: 28px; height: 28px; margin: 0 auto 6px; display: block; color: #fff; }

/* Grilles de produits / services ------------------------------------------ */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.product-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card .thumb { position: relative; aspect-ratio: 16 / 9.4; background: var(--line-2); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.product-card .title { font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.3; }
.product-card .title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card .sub { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.product-card .meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; margin-top: 4px; }
.product-card .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font-weight: 800; color: var(--orange-600); font-size: 1.32rem; line-height: 1.1; letter-spacing: -.01em; }
.price-teal { color: var(--teal-600); }
.price small { font-size: .7em; font-weight: 700; color: var(--muted); }
.price-from { font-size: .78rem; color: var(--muted); font-weight: 600; display: block; }
.card-cart { position: relative; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--teal-600); border-radius: var(--radius-sm); background: #fff; color: var(--petrol-800); cursor: pointer; }
.card-cart:hover { background: var(--teal-50); }
.fav-btn {
    position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 50%; background: #fff; border: 0; box-shadow: var(--shadow); color: var(--petrol-800); cursor: pointer;
}
.fav-btn.is-on { color: var(--orange-500); }
.fav-btn.is-on .icon { fill: currentColor; }
.tag-corner { position: absolute; top: 12px; left: 12px; z-index: 2; }

/* ==========================================================================
   Catalogue
   ========================================================================== */
.page-head { padding-block: 28px 8px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal-700); }
.breadcrumb .icon { width: .9em; height: .9em; }
.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: start; }
.filters { position: sticky; top: 140px; }
.filters h3 { font-size: .95rem; margin-bottom: 10px; }
.filter-group { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.filter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.filter-list a { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.filter-list a:hover { background: var(--bg); }
.filter-list a.active { background: var(--teal-50); color: var(--teal-700); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .select { width: auto; min-width: 190px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.chip:hover { border-color: var(--teal-600); color: var(--teal-700); }
.chip.active { background: var(--petrol-800); border-color: var(--petrol-800); color: #fff; }
.filters-toggle { display: none; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .icon { width: 46px; height: 46px; color: var(--teal-100); margin: 0 auto 12px; }
.empty h3 { color: var(--ink); }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.pagination a:hover { border-color: var(--teal-600); color: var(--teal-700); }
.pagination .current { background: var(--petrol-800); border-color: var(--petrol-800); color: #fff; }

/* ==========================================================================
   Fiche produit / service
   ========================================================================== */
.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-block: 18px 40px; }
.gallery { position: sticky; top: 140px; }
.gallery-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--line-2); aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); }
.gallery-dots span.on { background: #fff; width: 9px; height: 9px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 76px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--line-2); }
.thumbs button.on { border-color: var(--teal-600); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 6px; }
.detail-price { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; color: var(--teal-600); margin-bottom: 8px; letter-spacing: -.01em; }
.detail-desc { color: var(--ink-2); font-size: 1rem; }
.stock-line { display: inline-flex; gap: 6px; align-items: center; font-size: .86rem; font-weight: 600; }

.seller-card { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0; color: var(--ink); }
.seller-card:hover { color: var(--ink); }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; }
.avatar-sm { width: 40px; height: 40px; font-size: .85rem; }
.avatar-xs { width: 32px; height: 32px; font-size: .75rem; }
.seller-card .name { font-weight: 700; font-size: 1.02rem; display: flex; align-items: center; gap: 6px; }
.seller-card .verified-line { color: var(--teal-600); font-size: .86rem; font-weight: 600; }
.seller-card .city { color: var(--muted); font-size: .84rem; display: flex; align-items: center; gap: 4px; }
.seller-card .rating { margin-left: auto; text-align: right; font-weight: 800; font-size: 1.05rem; }
.seller-card .rating small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }

.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { flex: 1; background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button.on { color: var(--teal-700); border-bottom-color: var(--teal-600); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--bg); border-radius: var(--radius); padding: 14px 6px; margin-bottom: 16px; }
.features div { text-align: center; padding: 4px 10px; font-size: .84rem; color: var(--ink-2); border-right: 1px solid var(--line); }
.features div:last-child { border-right: 0; }
.features .icon { width: 28px; height: 28px; color: var(--teal-600); display: block; margin: 0 auto 6px; }

.option-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.option-row { display: flex; align-items: center; gap: 12px; }
.option-row strong { flex: 1; }
.option-row .icon { color: var(--orange-500); width: 24px; height: 24px; }
.delivery-row { display: flex; align-items: center; gap: 14px; padding: 12px 2px; }
.delivery-row .icon { width: 30px; height: 30px; color: var(--petrol-800); }
.delivery-row small { color: var(--muted); display: block; }

.buy-box { display: flex; align-items: center; gap: 16px; padding: 16px 0 0; }
.buy-box .total { font-weight: 800; font-size: 1.35rem; white-space: nowrap; }
.buy-box .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; }
.qty button:hover { background: var(--bg); }
.qty input { width: 46px; text-align: center; border: 0; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.review { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-head strong { font-size: .92rem; }
.rating-summary { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--bg); border-radius: var(--radius); margin-bottom: 8px; }
.rating-summary .big { font-size: 2.2rem; font-weight: 800; line-height: 1; }

/* Créneaux */
.slot-picker h3 { font-size: 1.05rem; margin: 18px 0 10px; }
.month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 700; }
.month-nav button { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink-2); border-radius: var(--radius-sm); }
.month-nav button:hover:not([disabled]) { background: var(--bg); }
.month-nav button[disabled] { opacity: .3; cursor: default; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.days .dow { font-size: .78rem; color: var(--muted); padding: 4px 0; }
.day { height: 44px; border: 0; background: none; border-radius: 50%; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; width: 44px; margin: 0 auto; }
.day:hover:not([disabled]) { background: var(--teal-50); }
.day.on { background: var(--teal-600); color: #fff; }
.day[disabled] { color: #b9c3c1; cursor: default; font-weight: 500; }
.day .dot { display: block; font-size: .62rem; font-weight: 600; color: var(--muted); }
.times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.time { padding: 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.time:hover:not([disabled]) { border-color: var(--teal-600); }
.time.on { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.time[disabled] { opacity: .4; text-decoration: line-through; cursor: default; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; display: flex; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff; }
.choice:hover { border-color: var(--teal-100); }
.choice input { position: absolute; opacity: 0; }
.choice .icon { width: 28px; height: 28px; color: var(--petrol-800); flex-shrink: 0; }
.choice strong { display: block; font-size: .95rem; }
.choice small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.choice::after { content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c4cfcd; }
.choice:has(input:checked) { border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(18, 133, 122, .12); }
.choice:has(input:checked)::after { border: 5px solid var(--teal-600); }
.choice:has(input:focus-visible) { outline: 3px solid rgba(18, 133, 122, .45); outline-offset: 2px; }

.trust-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .8rem; color: var(--ink-2); margin: 16px 0; }
.trust-strip div { display: flex; gap: 10px; align-items: center; }
.trust-strip .icon { width: 22px; height: 22px; color: var(--teal-700); }

/* ==========================================================================
   Panier, commande, paiement
   ========================================================================== */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.summary { position: sticky; top: 140px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .94rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.1rem; font-weight: 800; }
.cart-group { margin-bottom: 18px; }
.cart-group-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 84px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-line .title { font-weight: 700; color: var(--ink); }
.cart-line .actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.steps { display: flex; gap: 8px; align-items: center; margin-bottom: 22px; font-size: .86rem; font-weight: 700; color: var(--muted); flex-wrap: wrap; }
.steps .on { color: var(--teal-700); }
.steps .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: .78rem; margin-right: 6px; }
.steps .on .num { background: var(--teal-600); color: #fff; }

.pay-methods { display: grid; gap: 10px; }
.pay-method { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff; }
.pay-method:has(input:checked) { border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(18, 133, 122, .12); }
.pay-method input { accent-color: var(--teal-600); width: 18px; height: 18px; }
.pay-method strong { display: block; }
.pay-method small { color: var(--muted); }
.pay-logo { width: 44px; height: 30px; border-radius: 6px; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: #fff; flex-shrink: 0; letter-spacing: .02em; }
.pay-logo.mtn_momo { background: #ffcb05; color: #1b1b1b; }
.pay-logo.airtel_money { background: #e40000; }
.pay-logo.orange_money { background: #ff7900; }
.pay-logo.card_eur { background: var(--petrol-800); }

.psp { max-width: 460px; margin: 40px auto; }
.psp-head { background: #1d2733; color: #fff; padding: 18px 22px; border-radius: var(--radius) var(--radius) 0 0; display: flex; justify-content: space-between; align-items: center; }
.psp-amount { font-size: 2rem; font-weight: 800; text-align: center; margin: 10px 0 4px; }
.psp-note { background: #fff8e1; border: 1px dashed #e6c35c; color: #7a5b00; padding: 10px 12px; border-radius: var(--radius-sm); font-size: .82rem; }

.result { max-width: 620px; margin: 40px auto; text-align: center; }
.result-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; }
.result-icon .icon { width: 40px; height: 40px; }
.result-icon.ok { background: var(--green-50); color: var(--green-600); }
.result-icon.ko { background: var(--red-50); color: var(--red-600); }

.code-box { display: inline-flex; gap: 6px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 1.6rem; font-weight: 800; letter-spacing: .25em; background: var(--teal-50); color: var(--petrol-800); padding: 10px 16px; border-radius: var(--radius-sm); border: 1.5px dashed var(--teal-600); }

/* Chronologie */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 30px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--teal-600); }
.timeline li:last-child::after { background: var(--teal-600); }
.timeline strong { display: block; font-size: .92rem; }
.timeline small { color: var(--muted); }

.progress-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 6px 0 18px; }
.progress-steps div { text-align: center; font-size: .74rem; color: var(--muted); font-weight: 600; }
.progress-steps div::before { content: ""; display: block; height: 6px; border-radius: 999px; background: var(--line); margin-bottom: 6px; }
.progress-steps div.on { color: var(--teal-700); }
.progress-steps div.on::before { background: var(--teal-600); }

.dl { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: .93rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }

/* Tableaux */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .8rem; font-weight: 700; color: var(--ink-2); background: var(--bg); padding: 11px 14px; white-space: nowrap; }
.table th:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.table th:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.row-link { cursor: pointer; }
.table tbody tr.row-link:hover td { background: #fafcfb; }
.table .thumb { width: 72px; height: 42px; object-fit: cover; border-radius: 6px; }
.table .ref { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ==========================================================================
   Pages compte / auth
   ========================================================================== */
.account { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; padding-block: 28px 48px; }
.account-nav { position: sticky; top: 140px; padding: 10px; }
.account-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 600; }
.account-nav a:hover { background: var(--bg); color: var(--ink); }
.account-nav a.active { background: var(--teal-50); color: var(--teal-700); }
.account-nav .count { margin-left: auto; }
.list-item { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: #fafcfb; color: var(--ink); }
.list-item img { width: 64px; height: 52px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 700; }
.list-item.unread { background: #f6fbfa; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; }
.auth-aside { position: relative; background: var(--petrol-800); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-aside img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.auth-aside > * { position: relative; }
.auth-aside h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 440px; }
.auth-aside p { color: #d4e7e4; max-width: 420px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px var(--gutter); }
.auth-box { width: 100%; max-width: 440px; }
.role-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.demo-accounts { margin-top: 22px; padding: 14px; background: var(--bg); border-radius: var(--radius); font-size: .84rem; }
.demo-accounts button { background: none; border: 0; padding: 4px 0; color: var(--teal-700); font: inherit; font-weight: 600; cursor: pointer; text-align: left; display: block; }

/* Messagerie */
.chat { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 560px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 640px; }
.chat-list a { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink); align-items: center; }
.chat-list a:hover { background: var(--bg); }
.chat-list a.active { background: var(--teal-50); }
.chat-list .preview { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { display: flex; flex-direction: column; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-thread { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 520px; background: #fafcfb; }
.bubble { max-width: 74%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.bubble.mine { align-self: flex-end; background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.bubble time { display: block; font-size: .7rem; opacity: .7; margin-top: 3px; }
.chat-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form .textarea { min-height: 46px; height: 46px; }

/* ==========================================================================
   Espaces vendeur / livreur / admin
   ========================================================================== */
.dash { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--petrol-900) 290px, var(--bg) 290px); }
.sidebar {
    background: linear-gradient(180deg, var(--petrol-800) 0%, var(--petrol-900) 100%); color: #fff; padding: 22px 16px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px;
}
.sidebar .logo { font-size: 1.75rem; }
.sidebar .logo em { color: #5fd0c2; }
.sidebar .tagline { color: #bcd6d3; font-size: .82rem; margin: -10px 0 0 44px; }
.shop-chip { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; }
.shop-chip:hover { background: rgba(255,255,255,.1); color: #fff; }
.shop-chip strong { display: block; font-size: .95rem; line-height: 1.25; }
.shop-chip small { color: #bcd6d3; display: flex; gap: 4px; align-items: center; font-size: .78rem; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: var(--radius-sm); color: #e4efee; font-weight: 600; font-size: .98rem; }
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.active { background: var(--teal-700); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.side-nav .icon { width: 22px; height: 22px; }
.side-nav .count { margin-left: auto; }
.side-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #8fb3af; padding: 6px 14px 0; font-weight: 700; }
.promo-card { position: relative; border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); padding: 16px; min-height: 140px; margin-top: auto; }
.promo-card img { position: absolute; right: 0; bottom: 0; width: 46%; height: 100%; object-fit: cover; }
.promo-card div { position: relative; max-width: 58%; }
.promo-card strong { display: block; font-size: .98rem; line-height: 1.3; margin-bottom: 10px; }
.promo-card .btn { background: #fff; color: var(--petrol-800); }
.side-foot { display: flex; gap: 8px; color: #a9c6c2; font-size: .76rem; align-items: center; }

.dash-main { min-width: 0; display: flex; flex-direction: column; }
.dash-top { display: flex; align-items: center; gap: 16px; padding: 14px clamp(16px, 3vw, 36px); background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.dash-top .search { max-width: 580px; }
.dash-top .search input { background: var(--bg); border: 1px solid var(--line); }
.dash-top .search .icon { color: var(--muted); }
.dash-top .top-link { color: var(--ink); }
.dash-top .top-link:hover { background: var(--bg); color: var(--ink); }
.dash-top .bell-dot { position: absolute; top: 6px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange-500); border: 2px solid #fff; }
.dash-content { padding: clamp(18px, 3vw, 34px) clamp(16px, 3vw, 36px) 48px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 2px; }
.dash-head p { font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--ink-2); margin: 0; }
.dash-head .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sidebar-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 6px; cursor: pointer; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { display: flex; gap: 18px; align-items: center; padding: 20px 22px; }
.kpi-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.kpi-icon .icon { width: 30px; height: 30px; }
.kpi-icon.teal { background: var(--teal-50); color: var(--teal-700); }
.kpi-icon.orange { background: var(--orange-50); color: var(--orange-500); }
.kpi-icon.blue { background: var(--blue-50); color: var(--blue-600); }
.kpi-icon.red { background: var(--red-50); color: var(--red-600); }
.kpi .label { font-weight: 700; font-size: .98rem; color: var(--ink-2); }
.kpi .value { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.kpi > div { min-width: 0; }
.kpis-4 .kpi { gap: 14px; padding: 18px; }
.kpis-4 .kpi-icon { width: 52px; height: 52px; }
.kpis-4 .kpi .value { font-size: clamp(1.2rem, 1.7vw, 1.55rem); }
.card-body > h2 { font-size: 1.2rem; }
.kpi .hint { margin-top: 4px; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.chart { width: 100%; height: auto; display: block; }
.chart-grid { stroke: #e7ecea; stroke-width: 1; }
.chart-grid-v { stroke-dasharray: 0; }
.chart-axis { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.chart-line { fill: none; stroke: var(--teal-600); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--teal-600); stroke: #fff; stroke-width: 2; }

.todo { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.todo:last-child { border-bottom: 0; }
.todo:hover { color: var(--ink); }
.todo:hover strong { color: var(--teal-700); }
.todo .kpi-icon { width: 54px; height: 54px; }
.todo .kpi-icon .icon { width: 26px; height: 26px; }
.todo strong { display: block; font-size: 1.1rem; }
.todo small { color: var(--muted); font-size: .9rem; }
.todo > .icon:last-child { margin-left: auto; color: var(--muted); }

.mini-product { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; align-items: center; color: var(--ink); }
.mini-product:hover { border-color: var(--teal-100); color: var(--ink); }
.mini-product img { width: 108px; height: 92px; border-radius: var(--radius-sm); object-fit: cover; }
.mini-product .grow { flex: 1; min-width: 0; }
.mini-product .price { font-size: 1.05rem; color: var(--ink); }

.status-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.image-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.image-grid .img-item { position: relative; width: 110px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.image-grid img { width: 100%; height: 100%; object-fit: cover; }
.image-grid button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--red-600); cursor: pointer; display: grid; place-items: center; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); cursor: pointer; background: #fbfcfc; }
.dropzone:hover { border-color: var(--teal-600); color: var(--teal-700); }
.dropzone input { display: none; }
.preview-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.preview-row img { width: 80px; height: 64px; object-fit: cover; border-radius: 6px; }
.day-checks { display: flex; gap: 6px; flex-wrap: wrap; }
.day-checks label { position: relative; }
.day-checks input { position: absolute; opacity: 0; }
.day-checks span { display: inline-grid; place-items: center; width: 50px; height: 40px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; font-size: .86rem; cursor: pointer; }
.day-checks input:checked + span { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.day-checks input:focus-visible + span { outline: 3px solid rgba(18, 133, 122, .45); }

.balance { padding: 20px 22px; }
.balance .value { font-size: 1.6rem; font-weight: 800; }
.plan-card { border: 2px solid var(--teal-600); border-radius: var(--radius); padding: 20px; background: linear-gradient(135deg, #fff 0%, var(--teal-50) 100%); }

/* Pied de page ------------------------------------------------------------ */
.site-footer { background: var(--petrol-950); color: #b6cdca; padding: 44px 0 26px; margin-top: 30px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 30px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #b6cdca; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; }

.info-page { max-width: 860px; }
.steps-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step-card { padding: 22px; text-align: left; }
.step-card .num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange-50); color: var(--orange-600); font-weight: 800; margin-bottom: 10px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--teal-600); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

.error-page { text-align: center; padding: 80px 20px; max-width: 640px; margin: 0 auto; }
.error-page .code { font-size: 5rem; font-weight: 800; color: var(--teal-100); line-height: 1; }
.debug { text-align: left; background: #1d2428; color: #f4d58d; padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .8rem; margin-top: 24px; white-space: pre-wrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
    .cat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nav-perks .perk-pay { display: none; }
    .diaspora-inner { grid-template-columns: 260px minmax(0, 1fr) auto; }
    .diaspora-steps { display: none; }
    .kpis.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .catalog { grid-template-columns: minmax(0, 1fr); }
    .filters { position: static; }
    .filters-panel { display: none; }
    .filters-panel.open { display: block; }
    .filters-toggle { display: inline-flex; }
    .checkout { grid-template-columns: minmax(0, 1fr); }
    .summary { position: static; }
    .dash { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
    .sidebar { position: fixed; inset: 0 auto 0 0; width: 290px; z-index: 80; transform: translateX(-100%); transition: transform .25s; }
    .dash.sidebar-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
    .dash.sidebar-open::after { content: ""; position: fixed; inset: 0; background: rgba(8, 42, 49, .45); z-index: 70; }
    .sidebar-toggle { display: inline-flex; }
    .dash-grid { grid-template-columns: minmax(0, 1fr); }
    .account { grid-template-columns: minmax(0, 1fr); }
    .account-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
    .account-nav a { white-space: nowrap; }
}

@media (max-width: 900px) {
    .topbar-inner { flex-wrap: wrap; gap: 10px; padding-block: 10px; min-height: 0; }
    .topbar .search { order: 3; flex-basis: 100%; max-width: none; }
    .top-link .label, .top-actions .btn-primary .label { display: none; }
    .top-actions .btn-primary { padding: .55em .7em; margin-left: 4px; }
    .city-picker select { padding-block: .45em; font-size: .85rem; }
    .navbar { display: none; }
    .navbar.open { display: block; }
    .navbar-inner { flex-direction: column; align-items: stretch; padding-block: 8px; }
    .nav-main { flex-direction: column; align-items: stretch; }
    .dropdown { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
    .nav-perks { flex-direction: column; gap: 10px; margin: 8px 0 4px; padding: 10px 12px; border-top: 1px solid var(--line); }
    .nav-perks .perk-pay { display: inline-flex; }
    .menu-toggle { display: inline-flex; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); }
    .hero-media { order: -1; height: 220px; margin-inline: calc(-1 * var(--gutter)); }
    .hero-media::before { background: linear-gradient(0deg, #f7f9f8 0%, rgba(247,249,248,0) 40%); }
    .hero-copy { padding-top: 10px; }
    .perk { border-right: 0; margin-right: 0; padding-right: 0; flex-basis: 100%; margin-bottom: 10px; }
    .detail { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
    .gallery { position: static; margin-inline: calc(-1 * var(--gutter)); }
    .gallery-main { border-radius: 0; aspect-ratio: 16 / 11; }
    .thumbs { padding-inline: var(--gutter); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .diaspora-inner { grid-template-columns: minmax(0, 1fr); padding-block: 0 24px; gap: 16px; }
    .diaspora-inner > img { margin: 0 calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); max-width: none; height: 160px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-page { grid-template-columns: minmax(0, 1fr); }
    .auth-aside { display: none; }
    .chat { grid-template-columns: minmax(0, 1fr); }
    .chat-list { border-right: 0; max-height: none; }
    .chat.has-active .chat-list { display: none; }
    .chat:not(.has-active) .chat-main { display: none; }
    .steps-cards { grid-template-columns: minmax(0, 1fr); }

    /* Barre d'onglets façon application */
    body.has-tabbar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
    .tabbar {
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
        background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px; font-size: .7rem; font-weight: 700; color: var(--muted); }
    .tabbar a.active { color: var(--teal-700); }
    .tabbar .icon { width: 22px; height: 22px; }
    .tabbar .count { position: absolute; top: 4px; left: calc(50% + 4px); min-width: 17px; height: 17px; font-size: .64rem; }

    /* Barre d'achat collante sur fiche produit / service */
    body.has-buybar { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
    body.has-buybar .tabbar { display: none; }
    .buy-box.sticky-mobile {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; background: #fff; border-top: 1px solid var(--line);
        padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px rgba(16,38,44,.08);
    }
}

@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .grid-2 { grid-template-columns: minmax(0, 1fr); }
    .product-card .body { padding: 10px 12px 12px; }
    .product-card .title { font-size: .92rem; }
    .product-card .sub { font-size: .78rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .price { font-size: 1.08rem; }
    .card-cart { width: 38px; height: 38px; }
    .fav-btn { width: 34px; height: 34px; top: 8px; right: 8px; }
    .cat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cat-tile img, .cat-tile .cat-icon { width: 48px; height: 46px; }
    .cat-tile small { display: none; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .kpis { grid-template-columns: minmax(0, 1fr); }
    .kpis.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kpis-4 .kpi { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
    .kpis-4 .kpi-icon { width: 46px; height: 46px; }
    .choice-grid, .trust-strip { grid-template-columns: minmax(0, 1fr); }
    .cart-line { grid-template-columns: 64px minmax(0, 1fr); }
    .cart-line img { width: 64px; height: 52px; }
    .cart-line .actions { grid-column: 1 / -1; justify-content: space-between; }
    .dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .dl dd { margin-bottom: 8px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .dash-top .search { display: none; }
    .dash-head .actions { width: 100%; }
    .dash-head .actions .btn { flex: 1; }
    .mini-product img { width: 80px; height: 70px; }
    .table-cards thead { display: none; }
    .table-cards tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
    .table-cards td { padding: 0; border: 0; }
    .table-cards td.hide-sm { display: none; }
    .logo { font-size: 1.35rem; }
    .logo-mark { width: 28px; height: 28px; }
    /* En-tête compact : la barre d'onglets donne accès au panier et au compte */
    .topbar .menu-toggle { order: 0; }
    .topbar .logo { order: 1; }
    .topbar .top-actions { order: 2; }
    .topbar .city-picker { order: 3; }
    .topbar .search { order: 4; flex: 1 1 160px; }
    .topbar .top-link { display: none; }
    .dash-top .top-link { display: inline-flex; }
    .times { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .day { width: 38px; height: 38px; }
}
