/* ==========================================================================
   Berté International Trading — système de design
   Vert et or (couleurs du logo), typographie Inter, nom de marque en Cinzel.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  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;
}
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url("/fonts/cinzel-latin-700-normal.woff2") format("woff2"); }

:root {
  --green-950: #04200f;
  --green-900: #072e18;
  --green-800: #0b4025;
  --green-700: #0f5432;
  --green-600: #166b41;
  --green-50: #edf6f0;
  --gold-600: #b88a1e;
  --gold-500: #d4a62a;
  --gold-400: #e2bb4a;
  --gold-300: #f0d27a;
  --gold-50: #fbf6e5;
  --on-gold: #241b04;
  --gray-25: #fbfcfb;
  --gray-50: #f5f7f6;
  --gray-100: #edf0ee;
  --gray-200: #e1e6e3;
  --gray-300: #ccd3cf;
  --gray-400: #98a29d;
  --gray-500: #66716b;
  --gray-600: #4a5550;
  --gray-700: #333d38;
  --gray-900: #121a16;
  --green-ok: #079455;
  --red-600: #d92d20;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(16, 32, 24, .05);
  --shadow-sm: 0 1px 3px rgba(16, 32, 24, .08), 0 1px 2px rgba(16, 32, 24, .04);
  --shadow-md: 0 6px 16px -4px rgba(16, 32, 24, .12), 0 2px 4px -2px rgba(16, 32, 24, .05);
  --shadow-lg: 0 16px 32px -8px rgba(16, 32, 24, .18), 0 4px 8px -4px rgba(16, 32, 24, .06);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --brand-font: "Cinzel", Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--gray-700);
  background: var(--gray-50); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4 { color: var(--gray-900); line-height: 1.25; margin: 0; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: 30px; letter-spacing: -.03em; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--gold-600); }
img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--gray-200); margin: 16px 0; }
[hidden] { display: none !important; }
.ico { flex-shrink: 0; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
main.container { padding-top: 24px; padding-bottom: 24px; min-height: 60vh; }
.view { animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

.muted { color: var(--gray-500); }
.muted a, .page-title p a { text-decoration: underline; text-underline-offset: 2px; }
.small { font-size: 13px; }
.block { display: block; }
.strong { font-weight: 600; color: var(--gray-900); }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: .01em; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-line; }
.grow { flex: 1; min-width: 0; }
.error { color: var(--red-600); }
.w-auto { width: auto !important; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 28px; }
.stack { display: grid; gap: 20px; align-content: start; }
.stack-sm { display: grid; gap: 10px; }
.narrow { max-width: 760px; margin: 0 auto; }
.optional { font-size: 12px; font-weight: 500; color: var(--gray-400); }
.hint { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--gray-500); margin-top: 12px; }
.hint .ico { margin-top: 3px; }
.eyebrow-sm { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); }
.price, .price-xl, .kpi-value, .cart-price, .ship-price, .row { font-variant-numeric: tabular-nums; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent; font: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  text-decoration: none; line-height: 1;
}
.btn:focus-visible, .icon-btn:focus-visible, .action:focus-visible { outline: 3px solid rgba(22, 107, 65, .35); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500)); color: var(--on-gold);
  box-shadow: 0 1px 2px rgba(150, 110, 20, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--gold-500), var(--gold-600)); color: var(--on-gold); }
.btn-secondary { background: #fff; color: var(--gray-700); border-color: var(--gray-300); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--gray-50); color: var(--gray-900); border-color: var(--gray-400); }
.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 0;
  background: transparent; color: var(--gray-500); cursor: pointer; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--gray-100); color: var(--gray-900); }
.icon-btn.danger:hover { background: #fef3f2; color: var(--red-600); }
.icon-btn.sm { width: 28px; height: 28px; }
.link-arrow, .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--green-700); }

/* ---------- Formulaires ---------- */

label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--gray-700); }
input, select, textarea {
  font: inherit; font-size: 15px; color: var(--gray-900); width: 100%; height: 44px; padding: 0 14px;
  background: #fff; border: 1px solid var(--gray-300); border-radius: 10px; box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s; min-width: 0;
}
textarea { height: auto; padding: 11px 14px; resize: vertical; line-height: 1.5; }
select {
  appearance: none; padding-right: 38px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2366716b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;
}
input::placeholder, textarea::placeholder { color: var(--gray-400); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(22, 107, 65, .13); }
input:disabled, select:disabled { background-color: var(--gray-50); color: var(--gray-400); cursor: not-allowed; }
input[type="checkbox"], input[type="radio"] { width: auto; height: auto; box-shadow: none; accent-color: var(--green-600); }
input[type="number"]::-webkit-inner-spin-button { opacity: .4; }
input[type="file"] { height: auto; padding: 8px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 13.5px; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; padding: 0; }
.input-sm { height: 34px; padding: 0 8px; font-size: 13.5px; width: 84px; border-radius: 8px; }
.select-sm { height: 34px; font-size: 13.5px; width: auto; border-radius: 8px; padding-left: 10px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-card h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 18px; }
.num {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-800); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0;
}
.form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.inline-field { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.inline-field select { width: auto; }
.sort { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; color: var(--gray-500); white-space: nowrap; }
.sort select { width: auto; height: 40px; }

.radio { flex-direction: row; align-items: center; gap: 10px; padding: 5px 0; font-weight: 500; color: var(--gray-700); cursor: pointer; }
.radio input { width: 16px; height: 16px; }

.switch { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--gray-300); transition: background .2s; flex-shrink: 0; }
.switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s;
}
.switch input:checked + span { background: var(--green-600); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 4px rgba(22, 107, 65, .18); }
.switch input:disabled + span { opacity: .5; }

/* ---------- Cartes, alertes, badges ---------- */

.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-xs); padding: 24px; }
.card > h3 { margin-bottom: 16px; }
.table-card { padding: 0; overflow-x: auto; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid; font-size: 14px; margin-bottom: 16px; }
.alert .ico { margin-top: 1px; }
.alert-info { background: #eff6ff; border-color: #cfe0fb; color: #1d4f91; }
.alert-warning { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.alert-error { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.alert-success { background: #ecfdf3; border-color: #abefc6; color: #067647; }

.badge {
  display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; letter-spacing: .01em; background: #fff; border: 1px solid var(--gray-200); color: var(--gray-700);
}
.badge-used { background: #f4f3ff; border-color: #d9d6fe; color: #5925dc; }
.badge-refurbished { background: #ecfdff; border-color: #a5f0fc; color: #0e7090; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 5px; background: #ecfdf3; color: #067647; vertical-align: 1px; margin-left: 4px; }
.tag .ico { vertical-align: -1px; margin-right: 3px; }
.tag-priority { background: var(--gold-50); color: var(--gold-600); }
.tag-pending { background: #fffaeb; color: #b54708; }

.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; border: 1px solid; white-space: nowrap; line-height: 1.4;
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-pending_payment, .q-new { background: #fffaeb; border-color: #fedf89; color: #b54708; }
.st-paid { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }
.st-processing { background: #f4f3ff; border-color: #d9d6fe; color: #5925dc; }
.st-shipped { background: #ecfdff; border-color: #a5f0fc; color: #0e7090; }
.st-customs { background: #fef6ee; border-color: #f9dbaf; color: #b93815; }
.st-delivered, .q-answered { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.st-cancelled, .q-closed { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.st-draft { background: var(--gray-50); border-color: var(--gray-200); color: var(--gray-500); }

.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.in { color: #067647; }
.stock.low { color: #b54708; }
.stock.out { color: #b42318; }

.origin { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--gray-500); white-space: nowrap; }

.empty { text-align: center; padding: 48px 24px; }
.empty-icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--gray-100); color: var(--gray-500); box-shadow: 0 0 0 8px var(--gray-50);
}
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--gray-500); max-width: 440px; margin: 0 auto 20px; }
.empty .btn { margin-top: 8px; }

.skeleton {
  height: 60px; border-radius: 10px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.no-photo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%;
  background: var(--gray-50); color: var(--gray-400); font-size: 12.5px; font-weight: 500; text-align: center;
}
.cart-thumb .no-photo span, .mini-thumb .no-photo span { display: none; }
.cart-thumb .no-photo .ico { width: 20px; height: 20px; }

/* ---------- En-tête ---------- */

/* Le bandeau du logo défile, le menu reste collé en haut. */
.site-header { position: sticky; top: -88px; z-index: 40; }
.topbar { background: var(--green-950); color: #d5e2d9; }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 88px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: #fff; }
.logo:hover { color: #fff; }
.logo-mark { width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(226, 187, 74, .55); }
.brand { display: flex; flex-direction: column; line-height: 1.05; text-transform: uppercase; color: #fff; }
.brand strong { font-size: 27px; font-weight: 800; letter-spacing: .02em; }
.brand b { font-size: 19px; font-weight: 800; letter-spacing: .005em; }
.brand small { margin-top: 5px; font-size: 12.5px; font-weight: 500; text-transform: none; color: var(--gold-400); }

.topbar-side { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.contact-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; }
.contact-link:hover { color: var(--gold-300); }
.topbar-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .22); }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; }
.lang-switch button {
  height: 32px; min-width: 42px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: #fff; white-space: nowrap;
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s;
}
.lang-switch button:hover { background: rgba(255, 255, 255, .1); }
.lang-switch button.active { background: var(--gold-500); color: var(--on-gold); }
.top-icon {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px;
  background: transparent; color: #fff; cursor: pointer; transition: background .15s;
}
.top-icon:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.account { position: relative; }
.cart-icon { position: relative; display: inline-flex; }
.cart-count {
  position: absolute; top: -7px; right: -9px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--gold-500); color: var(--on-gold); font-size: 11px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--green-950);
}

.mainnav { background: var(--green-900); border-top: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 2px 8px rgba(4, 32, 15, .18); }
.mainnav-inner { display: flex; justify-content: space-between; gap: 4px; height: 52px; overflow-x: auto; scrollbar-width: none; }
.mainnav-inner::-webkit-scrollbar { display: none; }
.mainnav a {
  display: inline-flex; align-items: center; padding: 0 14px; color: #fff; font-size: 15px; font-weight: 500;
  white-space: nowrap; box-shadow: inset 0 -3px 0 transparent; transition: color .15s, box-shadow .15s;
}
.mainnav a:hover { color: var(--gold-300); }
.mainnav a.active { color: var(--gold-400); font-weight: 600; box-shadow: inset 0 -3px 0 var(--gold-500); }

.menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 280px; padding: 8px; z-index: 50;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; border: 0;
  background: none; font: inherit; font-size: 14px; color: var(--gray-700); cursor: pointer; text-align: left;
}
.menu a:hover, .menu button:hover { background: var(--gray-50); color: var(--gray-900); }
.menu .ico { color: var(--gray-500); }
.menu-head { display: flex; flex-direction: column; padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--gray-100); }
.menu-head strong { color: var(--gray-900); }
.menu-head span { font-size: 13px; color: var(--gray-500); }
.menu-cta { display: grid; gap: 8px; padding: 8px 4px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--gray-100); }
.menu .menu-cta .btn { justify-content: center; color: inherit; padding: 0 18px; }
.menu .menu-cta .btn-primary { color: var(--on-gold); }
.menu-prefs { display: grid; gap: 8px; margin-top: 6px; padding: 12px 12px 6px; border-top: 1px solid var(--gray-100); }
.menu-prefs span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); }
.menu-prefs select { height: 38px; font-size: 14px; }
.role-tag {
  align-self: flex-start; margin-top: 6px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--green-50); color: var(--green-700);
}

/* ---------- Pied de page ---------- */

.site-footer { background: var(--green-950); color: #a9bdb0; margin-top: 72px; font-size: 14px; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand p { margin-top: 16px; max-width: 320px; line-height: 1.6; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-300); font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; color: #a9bdb0; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #7f978a; }
.footer-bottom a { color: #a9bdb0; text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }

.pay-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 8px; font-size: 13px;
  font-weight: 500; background: #fff; border: 1px solid var(--gray-200); color: var(--gray-700);
}
.site-footer .pay-pill { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); color: #d6e2da; }
.pm-logo {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: var(--c); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: -.02em;
}
.pm-logo.dark { color: #1a1a1a; }
.pay-pill .pm-logo { width: 22px; height: 22px; border-radius: 6px; font-size: 9.5px; }
.pay-pill .pm-logo .ico { width: 13px; height: 13px; }

/* ---------- Fil d'Ariane, titres de page ---------- */

.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--gray-500); margin-bottom: 16px; }
.crumbs a { color: var(--gray-500); }
.crumbs a:hover { color: var(--green-700); }
.crumbs span:last-child { color: var(--gray-700); font-weight: 500; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs .ico { color: var(--gray-300); }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-title p { color: var(--gray-500); margin-top: 6px; }
.page-title .actions { display: flex; gap: 10px; margin: 0; }
.with-badge { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.with-badge .mono { font-family: var(--font); font-size: 1em; letter-spacing: -.01em; }

/* ---------- Pages pleine largeur, bandeaux ---------- */

main.container.is-wide { max-width: none; padding: 0; }
.page-body { padding-top: 24px; padding-bottom: 8px; }
.rule { display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--gold-500); }
.title-rule { font-size: 28px; letter-spacing: -.025em; }
.title-rule::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--gold-500); }
.lead { font-size: 17.5px; color: #c4d6ca; max-width: 560px; line-height: 1.6; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .85); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-green { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.btn-green:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.page-banner {
  color: #fff;
  background:
    linear-gradient(90deg, var(--green-950) 0%, var(--green-950) 40%, rgba(4, 32, 15, .55) 60%, rgba(4, 32, 15, 0) 82%),
    url("/img/site/banner.jpg") right center / auto 100% no-repeat, var(--green-950);
}
.page-banner .container { display: flex; flex-direction: column; justify-content: center; min-height: 172px; padding-top: 28px; padding-bottom: 28px; }
.page-banner h1 { color: #fff; font-size: 40px; letter-spacing: -.03em; }
.page-banner h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; border-radius: 2px; background: var(--gold-500); }
.page-banner p { max-width: 500px; margin-top: 14px; color: #dbe7df; font-size: 16.5px; line-height: 1.5; }

/* ---------- Accueil ---------- */

.hero-band {
  color: #fff;
  background:
    linear-gradient(90deg, var(--green-950) 0%, var(--green-950) 38%, rgba(4, 32, 15, .7) 52%, rgba(4, 32, 15, 0) 72%),
    url("/img/site/hero.jpg") right center / auto 100% no-repeat, var(--green-950);
}
.hero-band-inner { display: flex; align-items: center; min-height: 400px; padding-top: 48px; padding-bottom: 48px; }
.hero-copy { max-width: 560px; }
.hero-copy h1 { color: #fff; font-size: 44px; line-height: 1.12; letter-spacing: -.035em; margin: 18px 0 16px; font-weight: 800; }
.hero-copy h1 em, .cta-band h2 em { font-style: normal; color: var(--gold-400); }
.hero-copy .lead { color: #dbe7df; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.feature-band { background: var(--green-900); color: #c9d8ce; }
.feature-band-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { display: flex; align-items: center; gap: 16px; padding: 24px 20px; }
.feature + .feature { border-left: 1px solid rgba(255, 255, 255, .1); }
.feature > .ico { color: var(--gold-400); stroke-width: 1.5; }
.feature strong { display: block; color: #fff; font-size: 15.5px; }
.feature span { font-size: 13.5px; line-height: 1.4; }

.family-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.family-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--green-900); color: #fff;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.family-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: #fff; }
.family-card img { display: block; width: 100%; aspect-ratio: 252 / 136; object-fit: cover; }
.family-card span { display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-weight: 600; }
.family-card span .ico:first-child { color: var(--gold-400); }
.family-card span .ico:last-child { margin-left: auto; }

.quote-how { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: center; margin-top: 48px; }
.quote-card-home {
  padding: 30px 32px; border-radius: 14px; border: 1px solid #f3e6bf; box-shadow: var(--shadow-xs);
  background:
    linear-gradient(90deg, #fff8e5 0%, #fff8e5 50%, rgba(255, 248, 229, .2) 78%, rgba(255, 248, 229, 0) 100%),
    url("/img/site/banner.jpg") right center / auto 100% no-repeat, #fff8e5;
}
.quote-card-home h2 { display: flex; align-items: center; gap: 12px; font-size: 25px; }
.quote-card-home h2 .ico { color: var(--gold-600); }
.quote-card-home p { max-width: 360px; margin: 12px 0 20px; color: var(--gray-700); font-size: 14.5px; }
.how-row ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 22px 0 0; padding: 0; list-style: none; }
.how-row li { position: relative; text-align: center; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--gray-900); }
.how-row li + li::before { content: "→"; position: absolute; top: 18px; left: -14px; color: var(--gold-500); font-weight: 700; }
.how-ico { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 50%; background: var(--gold-50); color: var(--gold-600); }

.cta-band {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1.3fr); align-items: center; gap: 28px;
  margin-top: 56px; padding: 26px 36px; border-radius: 16px; background: var(--green-900); color: #fff;
}
.cta-band-globe { color: var(--gold-400); }
.cta-band-globe .ico { stroke-width: 1.3; }
.cta-band h2 { color: #fff; font-size: 26px; font-weight: 600; line-height: 1.3; }
.cta-band-sep { width: 1px; align-self: stretch; background: rgba(255, 255, 255, .2); }
.cta-band nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cta-band nav a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; font-size: 14px; text-align: center; }
.cta-band nav a:hover { color: var(--gold-300); }
.cta-band nav .ico { color: var(--gold-400); stroke-width: 1.5; }

.section { margin-top: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.section-head p { color: var(--gray-500); margin-top: 6px; }

.cta { display: flex; align-items: center; gap: 20px; padding: 28px; border-radius: var(--radius-lg); }
.cta h3 { font-size: 18px; margin-bottom: 4px; }
.cta p { font-size: 14px; }
.cta .btn { margin-left: auto; flex-shrink: 0; }
.cta-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0; }
.cta-dark { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #c4d6ca; }
.cta-dark h3 { color: #fff; }
.cta-dark .cta-icon { background: rgba(255, 255, 255, .1); color: var(--gold-300); }

/* ---------- À propos, Contact ---------- */

.about-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.about-intro p { margin-top: 14px; font-size: 15.5px; line-height: 1.7; }
.about-photo { width: 100%; border-radius: 12px; aspect-ratio: 650 / 349; object-fit: cover; }
.about-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.about-feature { display: grid; gap: 6px; align-content: start; }
.about-feature > .ico { color: var(--gold-500); margin-bottom: 4px; }
.about-feature strong { color: var(--gray-900); }
.about-feature span { font-size: 14px; color: var(--gray-500); }
.how-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.how-cards li { text-align: center; }
.how-cards strong { display: block; color: var(--gray-900); }
.how-cards p { margin-top: 6px; font-size: 14px; color: var(--gray-500); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact-card { display: grid; justify-items: start; gap: 6px; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.contact-card:hover { color: inherit; border-color: var(--gray-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 13px; background: var(--green-900); color: var(--gold-400); }
.contact-card strong { font-size: 17px; color: var(--gray-900); }
.contact-value { font-weight: 600; color: var(--green-700); word-break: break-all; }
.contact-card p { font-size: 14px; color: var(--gray-500); }

/* ---------- Cartes produit ---------- */

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.pgrid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pcard {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-200); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow-xs); transition: box-shadow .18s, border-color .18s, transform .18s;
}
.pcard:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); transform: translateY(-2px); }
.pcard-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--gray-100); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-media .badge { position: absolute; top: 10px; left: 10px; }
.pcard-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.pcard-title { font-size: 16.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.pcard-title a { color: var(--gray-900); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-title a:hover { color: var(--green-700); }
.pcard-specs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--gray-700); }
.pcard-specs > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pcard-specs .ico { color: var(--gold-600); }
.pcard-fit { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--gray-600); min-width: 0; }
.pcard-fit span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-fit .ico { color: var(--gray-400); }
.pcard-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 4px; }
.price { font-size: 19px; font-weight: 700; color: var(--green-900); letter-spacing: -.02em; line-height: 1.2; }

/* ---------- Catalogue ---------- */

.family-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.family-tab {
  display: flex; align-items: center; gap: 16px; min-height: 80px; padding: 14px 20px; border: 1px solid var(--gray-200);
  border-radius: 12px; background: #fff; color: var(--gray-900); font-size: 16px; font-weight: 700; line-height: 1.25;
  box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s;
}
.family-tab:hover { border-color: var(--gray-300); box-shadow: var(--shadow-sm); color: var(--gray-900); }
.family-tab > .ico:first-child { color: var(--gold-500); stroke-width: 1.6; }
.family-tab > .ico:last-child { margin-left: auto; flex-shrink: 0; }
.family-tab.active { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.family-tab.active > .ico:first-child { color: var(--gold-400); }

.catalog { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; align-items: start; }
.filter-panel {
  position: sticky; top: 64px; overflow: hidden; background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px; box-shadow: var(--shadow-xs);
}
.filter-panel-head { padding: 14px 18px; background: var(--green-900); color: #fff; font-size: 16px; font-weight: 700; }
.filter-search { display: flex; align-items: center; gap: 8px; margin: 14px 18px 4px; padding: 0 10px; border: 1px solid var(--gray-300); border-radius: 9px; }
.filter-search:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(22, 107, 65, .1); }
.filter-search .ico { color: var(--gray-400); }
.filter-search input { height: 40px; padding: 0; border: 0; box-shadow: none; font-size: 14px; }
.filter-search input:focus { box-shadow: none; }
.filter-sec { padding: 12px 18px; border-bottom: 1px solid var(--gray-100); }
.filter-sec summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-weight: 700; color: var(--gray-900); }
.filter-sec summary::-webkit-details-marker { display: none; }
.filter-sec summary .ico { color: var(--gray-500); transform: rotate(180deg); transition: transform .15s; }
.filter-sec:not([open]) summary .ico { transform: none; }
.filter-body { display: grid; gap: 2px; margin-top: 8px; }
.check { flex-direction: row; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; font-weight: 500; color: var(--gray-700); cursor: pointer; }
.check input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--gold-500); }
.check small { color: var(--gray-400); font-size: 13px; }
.filter-vehicle { display: grid; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--gray-100); }
.filter-vehicle strong { display: flex; align-items: center; gap: 8px; color: var(--gray-900); }
.filter-vehicle select { height: 40px; font-size: 14px; }
.filter-reset { width: calc(100% - 36px); margin: 16px 18px 18px; }

.results-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--gray-200);
}
.results-head h2 { font-size: 26px; }
.results-head small { font-size: 16px; font-weight: 500; color: var(--gray-500); }
.title-tools { display: flex; align-items: center; gap: 10px; }
.filters-btn { display: none; }
.count-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--green-800); color: #fff; font-size: 11.5px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; }
.pager > a, .pager > span {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--gray-300);
  border-radius: 8px; background: #fff; color: var(--gray-700); font-weight: 600;
}
.pager > a:hover { border-color: var(--green-700); color: var(--green-800); }
.pager .current { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.pager .gap { border: 0; background: none; min-width: 20px; }
.pager .off { color: var(--gray-300); }

/* ---------- Fiche produit ---------- */

.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pdp-gallery {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--gray-100); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
}
.pdp-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery .no-photo { font-size: 15px; }
.pdp-gallery .badge { position: absolute; top: 16px; left: 16px; }
.pdp-media { display: grid; gap: 12px; min-width: 0; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.pdp-thumbs button { aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 1px solid var(--gray-200); border-radius: 8px; background: var(--gray-100); cursor: pointer; }
.pdp-thumbs button.active { border-color: var(--gold-500); box-shadow: 0 0 0 1px var(--gold-500); }
.pdp-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pdp-quote { margin-top: 24px; }
.pdp-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pdp-info h1 { font-size: 30px; }
.pdp-ref { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--gray-500); }
.pdp-ref .mono { background: var(--gray-100); color: var(--gray-900); padding: 3px 8px; border-radius: 6px; }
.pdp-fit { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--gray-600); }
.pdp-fit .ico { color: var(--gray-400); }
.pdp-price { margin: 20px 0 14px; padding: 20px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.pdp-price .muted { font-size: 14px; }
.pdp-price .small { margin-top: 6px; }
.price-xl { font-size: 36px; font-weight: 800; color: var(--green-900); letter-spacing: -.035em; line-height: 1.1; }
.pdp-buy { display: flex; gap: 12px; margin-top: 18px; }
.pdp-buy .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--gray-300); border-radius: 10px; background: #fff; box-shadow: var(--shadow-xs); flex-shrink: 0; }
.cart-line .qty { height: 40px; }
.qty button { display: grid; place-items: center; width: 38px; height: 100%; border: 0; background: none; color: var(--gray-600); cursor: pointer; border-radius: 10px; }
.qty button:hover { color: var(--gray-900); background: var(--gray-50); }
.qty input { width: 44px; height: 100%; border: 0; box-shadow: none; padding: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { box-shadow: none; }
.pdp-box { margin-top: 24px; padding: 18px; border-radius: var(--radius); background: var(--gray-25); border: 1px solid var(--gray-200); }
.pdp-box-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--gray-900); font-size: 14.5px; }
.pdp-box-head .ico { color: var(--green-700); }
.pdp-seller { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; }
.pdp-seller small { display: block; font-size: 12px; color: var(--gray-500); }
.pdp-seller strong { color: var(--gray-900); }
.pdp-seller .origin { margin-left: auto; }
.seller-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green-50); color: var(--green-700); flex-shrink: 0; }
.pdp-tabs { margin-top: 40px; padding-top: 0; }
.tabs { display: flex; gap: 4px; margin: 0 -24px 22px; padding: 0 24px; border-bottom: 1px solid var(--gray-200); overflow-x: auto; }
.tabs button {
  padding: 16px 14px 14px; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--gray-500);
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap;
}
.tabs button:hover { color: var(--gray-900); }
.tabs button.active { color: var(--gray-900); border-bottom-color: var(--gold-500); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0; padding: 18px; border-radius: var(--radius); background: var(--gray-25); border: 1px solid var(--gray-100); }
.specs dt { color: var(--gray-500); font-size: 13.5px; }
.specs dd { margin: 0; font-weight: 500; color: var(--gray-900); font-size: 14px; }
[data-pane="ship"] p { margin-bottom: 16px; max-width: 720px; }

.ship-list { display: grid; gap: 8px; }
.ship-opt {
  position: relative; display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--gray-200);
  border-radius: 10px; background: #fff; font-size: 14px; font-weight: 400; color: var(--gray-700); transition: border-color .15s, box-shadow .15s, background .15s;
}
.ship-opt.selectable { cursor: pointer; }
.ship-opt.selectable:hover { border-color: var(--gray-400); }
.ship-opt input { position: absolute; opacity: 0; }
.ship-opt:has(input:checked) { border-color: var(--gold-500); background: var(--gold-50); box-shadow: 0 0 0 1px var(--gold-500); }
.ship-opt:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(212, 166, 42, .25); }
.ship-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--green-50); color: var(--green-700); flex-shrink: 0; }
.ship-opt:has(input:checked) .ship-icon { background: var(--green-700); color: #fff; }
.ship-body { display: flex; flex-direction: column; min-width: 0; }
.ship-body strong { font-size: 14.5px; color: var(--gray-900); }
.ship-body span { font-size: 13px; color: var(--gray-500); }
.ship-price { margin-left: auto; color: var(--gray-900); white-space: nowrap; }

/* ---------- Tableaux ---------- */

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  color: var(--gray-500); background: var(--gray-25); padding: 11px 16px; border-bottom: 1px solid var(--gray-200); white-space: nowrap;
}
.table th.right { text-align: right; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .1s; }
.table-card .table tbody tr:hover { background: var(--gray-25); }
.table.compact td { padding: 9px 12px; }
.card:not(.table-card) > .table th:first-child, .card:not(.table-card) > .table td:first-child { padding-left: 0; }
.card:not(.table-card) > .table th:last-child, .card:not(.table-card) > .table td:last-child { padding-right: 0; }
.table-card .table th:first-child, .table-card .table td:first-child { padding-left: 20px; }
.table-card .table th:last-child, .table-card .table td:last-child { padding-right: 20px; }
.cell-product { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.cell-user { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green-50); color: var(--green-700); font-weight: 700; flex-shrink: 0; }

/* ---------- Panier, commande, paiement ---------- */

.checkout-steps { display: flex; align-items: center; list-style: none; padding: 0; margin: 0 0 28px; max-width: 680px; }
.checkout-steps li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--gray-400); white-space: nowrap; }
.checkout-steps li:not(:last-child) { flex: 1; }
.checkout-steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--gray-200); margin: 0 12px; border-radius: 2px; }
.checkout-steps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gray-300); font-size: 12.5px; background: #fff; }
.checkout-steps li.done { color: var(--gray-700); }
.checkout-steps li.done span { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.checkout-steps li.done::after { background: var(--green-700); }
.checkout-steps li.current { color: var(--green-800); }
.checkout-steps li.current span { border-color: var(--green-700); color: var(--green-800); box-shadow: 0 0 0 4px var(--green-50); }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.cart-list { padding: 4px 24px; }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 120px 36px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--gray-100); }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { display: block; aspect-ratio: 1; border-radius: 10px; background: var(--gray-100); overflow: hidden; border: 1px solid var(--gray-100); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb.sm { width: 48px; height: 48px; flex-shrink: 0; }
.cart-info { display: grid; gap: 3px; min-width: 0; }
.cart-title { font-weight: 600; color: var(--gray-900); font-size: 15px; }
.cart-price { text-align: right; font-weight: 700; color: var(--gray-900); }

.summary { position: sticky; top: 140px; }
.summary.static { position: static; }
.summary h3 { margin-bottom: 16px; }
.summary .btn-block { margin-top: 10px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; }
.row.total { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--gray-200); font-size: 16px; color: var(--gray-900); }
.row.total strong { font-size: 22px; letter-spacing: -.02em; color: var(--green-900); }
.summary-items { display: grid; gap: 14px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-100); }
.card > .summary-items:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.summary-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--gray-700); }
.summary-item > span:last-child { white-space: nowrap; font-weight: 600; color: var(--gray-900); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 12.5px; color: var(--gray-500); }

.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 20px; }
.pm-option {
  position: relative; flex-direction: row; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s;
}
.pm-option:hover { border-color: var(--gray-400); }
.pm-option input { position: absolute; opacity: 0; }
.pm-option:has(input:checked) { border-color: var(--gold-500); background: var(--gold-50); box-shadow: 0 0 0 1px var(--gold-500); }
.pm-option:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(212, 166, 42, .25); }
.pm-body { display: flex; flex-direction: column; min-width: 0; }
.pm-body strong { font-size: 14.5px; color: var(--gray-900); }
.pm-body span { font-size: 12.5px; color: var(--gray-500); font-weight: 400; }
.pm-check {
  position: absolute; top: 10px; right: 10px; display: none; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: var(--green-700); color: #fff;
}
.pm-option:has(input:checked) .pm-check { display: grid; }
.pm-inline { display: flex; align-items: center; gap: 8px; }
.pm-inline .pm-logo { width: 24px; height: 24px; border-radius: 6px; font-size: 10px; }
.field-lg { margin-bottom: 16px; }

/* ---------- Suivi de commande ---------- */

.stepper-card { padding: 28px 16px 24px; margin-bottom: 20px; }
.stepper { display: flex; list-style: none; padding: 0; margin: 0; }
.stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; text-align: center; font-size: 13px; color: var(--gray-500); }
.stepper li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--gray-200); }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.current::before { background: var(--green-600); }
.stepper .dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gray-300); color: var(--gray-500); font-weight: 700; font-size: 13px;
}
.stepper li.done .dot { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.stepper li.current .dot { background: var(--gold-500); border-color: var(--gold-500); color: var(--on-gold); box-shadow: 0 0 0 5px rgba(212, 166, 42, .22); }
.stepper li.current { color: var(--gray-900); font-weight: 600; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 22px 28px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--gray-300); box-shadow: 0 0 0 3px #fff; z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 5px; top: 14px; bottom: -6px; width: 1.5px; background: var(--gray-200); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li:first-child::before { background: var(--gold-500); box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(212, 166, 42, .22); }
.timeline strong { color: var(--gray-900); font-size: 14.5px; }
.tl-date { font-size: 12.5px; color: var(--gray-500); margin-left: 8px; }
.timeline p { font-size: 13.5px; color: var(--gray-500); margin-top: 3px; }

.info-list { margin: 0; display: grid; }
.info-list > div { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.info-list > div:first-child { padding-top: 0; }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-500); }
.info-list dd { margin: 0 0 0 24px; color: var(--gray-900); font-size: 14.5px; }
.admin-panel { margin-bottom: 20px; border-top: 3px solid var(--green-700); }
.admin-panel h3 { display: flex; align-items: center; gap: 8px; }

.page-intro { text-align: center; margin: 16px 0 28px; }
.page-intro p { color: var(--gray-500); margin-top: 8px; }
.intro-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; background: var(--gold-50); color: var(--gold-600); }
.search-lg {
  display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 6px 0 18px; margin-bottom: 24px;
  background: #fff; border: 1.5px solid var(--gray-300); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.search-lg:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(22, 107, 65, .1); }
.search-lg > .ico { color: var(--gray-400); }
.search-lg input { border: 0; box-shadow: none; height: 100%; font-size: 16px; }
.search-lg .btn { height: 46px; }
.track-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.track-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--gray-600); }
.track-facts > span { display: inline-flex; align-items: center; gap: 6px; }
.track-facts .ico { color: var(--gray-400); }

/* ---------- Devis ---------- */

.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.quote-form { padding: 28px; }
.form-sec + .form-sec { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--gray-100); }
.sec-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 21px; }
.sec-title .num { width: 30px; height: 30px; font-size: 14px; background: var(--green-900); color: #fff; }
.req { color: var(--red-600); font-weight: 700; margin-left: 2px; }
.input-icon { position: relative; display: block; }
.input-icon > .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--gray-500); pointer-events: none; }
.input-icon input, .input-icon select, .input-icon textarea { padding-left: 42px; }
.input-icon.is-textarea > .ico { top: 14px; transform: none; }
.phone-row { display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: 8px; }
.phone-row select { padding-left: 38px; padding-right: 30px; }
.field-label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13.5px; color: var(--gray-700); }
.field-label strong { color: var(--gray-900); }
.dropzone {
  position: relative; align-items: center; gap: 4px; padding: 20px; border: 1.5px dashed var(--gray-300); border-radius: 10px;
  background: var(--gray-25); color: var(--gray-900); text-align: center; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone > .ico { color: var(--gray-600); }
.dropzone small { color: var(--gray-500); font-weight: 400; }
.dropzone input { position: absolute; inset: 0; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--green-600); background: var(--green-50); }
.file-list { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.file-list li { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 13.5px; }
.file-list li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list small { color: var(--gray-500); }
.file-list .ico { color: var(--gray-500); }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan-grid .ship-opt { align-items: center; }
.radio-dot { flex-shrink: 0; width: 18px; height: 18px; border: 2px solid var(--gray-300); border-radius: 50%; background: #fff; }
.ship-opt:has(input:checked) .radio-dot { border-color: var(--gold-600); box-shadow: inset 0 0 0 3px #fff; background: var(--gold-600); }
.confirm { margin: 24px 0 18px; padding-top: 18px; border-top: 1px solid var(--gray-100); }

.side-card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 19px; }
.side-card h3 > .ico { color: var(--gold-500); }
.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--gray-700); }
.check-list .ico { flex-shrink: 0; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green-50); color: var(--green-700); stroke-width: 3; }
.steps-v { margin: 0; padding: 0; list-style: none; }
.steps-v li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding-bottom: 16px; }
.steps-v li:last-child { padding-bottom: 0; }
.steps-v li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; border-left: 2px dotted var(--gold-300); }
.step-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-500); color: var(--on-gold); font-weight: 800; }
.steps-v strong { display: block; color: var(--gray-900); }
.steps-v p { margin-top: 2px; font-size: 13.5px; color: var(--gray-500); }
.help-card { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius); background: var(--green-900); color: #fff; }
.help-card h3 { display: flex; align-items: center; gap: 14px; color: #fff; font-size: 22px; }
.help-card h3 > .ico { color: var(--gold-400); flex-shrink: 0; }
.help-card h3 small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: #dbe7df; letter-spacing: 0; }
.help-card .btn { justify-content: flex-start; }
.help-card .btn .ico:last-child { margin-left: auto; }
.help-mail { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; word-break: break-all; }
.help-mail .ico { color: var(--gold-400); flex-shrink: 0; }
.help-mail:hover { color: var(--gold-300); }

.quote-item { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.quote-item:last-child { border-bottom: 0; padding-bottom: 0; }
.answer { background: #ecfdf3; border: 1px solid #abefc6; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: #054f31; }
.answer p { margin: 4px 0; }
.quote-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.quote-files > .ico { color: var(--gray-500); }
.file-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 260px; padding: 5px 10px; border: 1px solid var(--gray-300);
  border-radius: 999px; background: #fff; font: inherit; font-size: 13px; color: var(--gray-700); cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-chip:hover { border-color: var(--green-700); color: var(--green-800); }

/* ---------- Authentification ---------- */

.auth-page {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 640px; overflow: hidden;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 20px; box-shadow: var(--shadow-sm);
}
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 56px; }
.auth-form > form { width: 100%; max-width: 460px; }
.auth-form h1 { margin-bottom: 6px; }
.auth-panel {
  position: relative; display: flex; flex-direction: column; justify-content: center; padding: 48px; color: #c4d6ca; overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0) 0 0 / 22px 22px,
    radial-gradient(ellipse at 100% 100%, rgba(212, 166, 42, .25), transparent 55%),
    linear-gradient(160deg, var(--green-950), var(--green-800));
}
.auth-logo { width: 150px; height: 150px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(212, 166, 42, .35), 0 20px 40px rgba(0, 0, 0, .35); }
.auth-panel h2 { color: #fff; font-size: 28px; line-height: 1.2; letter-spacing: -.03em; margin: 32px 0 26px; max-width: 420px; }
.auth-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.auth-panel li { display: flex; align-items: center; gap: 12px; color: #e0eae3; font-weight: 500; }
.auth-panel li .ico { box-sizing: content-box; padding: 9px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--gold-300); }
.demo-box { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius); border: 1px dashed var(--gray-300); background: var(--gray-25); }
.demo-box > strong { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--gray-900); }
.demo-list { display: grid; gap: 6px; }
.demo-list button {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--gray-200); background: #fff; font: inherit; font-size: 13.5px; color: var(--gray-700); cursor: pointer;
}
.demo-list button:hover { border-color: var(--green-600); color: var(--green-800); }
.demo-list .role-tag { margin: 0; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick legend { grid-column: 1 / -1; }
.role-option {
  position: relative; flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s, box-shadow .15s;
}
.role-option input { position: absolute; opacity: 0; }
.role-option strong { display: block; color: var(--gray-900); font-size: 14.5px; }
.role-option span span { display: block; font-size: 12.5px; color: var(--gray-500); margin-top: 2px; }
.role-option:has(input:checked) { border-color: var(--gold-500); background: var(--gold-50); box-shadow: 0 0 0 1px var(--gold-500); }
.role-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--gray-100); color: var(--gray-600); flex-shrink: 0; }
.role-option:has(input:checked) .role-icon { background: var(--green-700); color: #fff; }

/* ---------- Espaces vendeur & administration ---------- */

.dash { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 28px; align-items: start; }
.dash-nav { position: sticky; top: 100px; padding: 12px; background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; box-shadow: var(--shadow-xs); }
.dash-nav-title { padding: 8px 12px 12px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); }
.dash-nav nav { display: grid; gap: 2px; }
.dash-nav nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--gray-600); }
.dash-nav nav a:hover { background: var(--gray-50); color: var(--gray-900); }
.dash-nav nav a.active { background: var(--green-800); color: #fff; }
.dash-nav nav a.active .ico { color: var(--gold-300); }
.dash-nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold-500); color: var(--on-gold); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.dash-back { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 14px 12px 6px; border-top: 1px solid var(--gray-100); font-size: 13.5px; color: var(--gray-500); }
.dash-main { min-width: 0; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.kpi-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; }
.tone-navy { background: var(--green-50); color: var(--green-700); }
.tone-green { background: #ecfdf3; color: #067647; }
.tone-blue { background: #eff8ff; color: #175cd3; }
.tone-orange { background: var(--gold-50); color: var(--gold-600); }
.tone-red { background: #fef3f2; color: #b42318; }
.tone-gray { background: var(--gray-100); color: var(--gray-500); }
.kpi-label { font-size: 13px; color: var(--gray-500); }
.kpi-value { font-size: 22px; font-weight: 700; color: var(--gray-900); letter-spacing: -.02em; line-height: 1.25; }
.kpi-value small { font-size: 13px; color: var(--gray-500); font-weight: 500; letter-spacing: 0; }

.status-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.status-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: #fff; border: 1px solid var(--gray-200); color: var(--gray-900); }
.status-chip:hover { border-color: var(--gray-400); color: var(--gray-900); }

.order-card { padding: 0; margin-bottom: 14px; overflow: hidden; }
.order-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--gray-100); }
.order-card header .mono { margin-right: 10px; color: var(--gray-900); }
.order-card .table td:first-child { padding-left: 20px; }
.order-card .table td:last-child { padding-right: 20px; }
.order-card footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; background: var(--gray-25); border-top: 1px solid var(--gray-100); }
.order-total { font-size: 17px; color: var(--gray-900); }

.quote-card { margin-bottom: 14px; }
.quote-card.is-priority { border-color: var(--gold-400); box-shadow: inset 3px 0 0 var(--gold-500), var(--shadow-xs); }
.quote-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.quote-vehicle { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--gray-700); margin-bottom: 8px; }
.quote-vehicle > span { display: inline-flex; align-items: center; gap: 6px; }
.quote-vehicle .ico { color: var(--gray-400); }
.quote-answer { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.quote-answer .toolbar { margin: 0; }
.quote-vehicle > a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.quote-product { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--gray-25); color: inherit; }
.quote-product:hover { border-color: var(--gray-300); color: inherit; }
.quote-product strong { color: var(--gray-900); }

.rates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 4px 0 20px; }
.rate-field { padding: 12px; border: 1px solid var(--gray-200); border-radius: 10px; background: var(--gray-25); }
.rate-field > span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }

.product-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.compat-row { display: grid; grid-template-columns: 1.3fr 1.3fr .8fr .8fr auto; gap: 8px; margin-bottom: 8px; }
.spec-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; margin-bottom: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo-tile { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--gray-200); border-radius: 8px; background: var(--gray-100); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-main { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 4px; background: var(--gold-500); color: var(--on-gold); font-size: 10.5px; font-weight: 700; }
.photo-remove {
  position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px;
  border: 0; border-radius: 50%; background: rgba(16, 24, 40, .7); color: #fff; cursor: pointer;
}
.photo-add {
  position: relative; aspect-ratio: 1; align-items: center; justify-content: center; gap: 4px; padding: 6px; text-align: center;
  border: 1.5px dashed var(--gray-300); border-radius: 8px; background: var(--gray-25); color: var(--gray-500); font-size: 12px; cursor: pointer;
}
.photo-add:hover { border-color: var(--green-600); }
.photo-add input { position: absolute; inset: 0; height: 100%; opacity: 0; cursor: pointer; }
.upload {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer;
  border: 1.5px dashed var(--gray-300); border-radius: var(--radius); background: var(--gray-25); transition: border-color .15s;
}
.upload:hover { border-color: var(--green-600); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; height: 100%; }
.upload .preview { width: 100%; height: 100%; object-fit: contain; }
.upload-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 1px solid var(--gray-200); color: var(--gray-500); }

/* ---------- Notification ---------- */

.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 100; display: flex; align-items: center; gap: 10px;
  max-width: calc(100% - 32px); padding: 12px 18px 12px 14px; border-radius: 12px; background: var(--green-950); color: #fff;
  font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transform: translate(-50%, 16px); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ico { color: var(--gold-300); }
.toast.error { background: #3d1210; }
.toast.error .ico { color: #fda29b; }

/* ---------- Adaptation aux écrans ---------- */

@media (max-width: 1180px) {
  .hide-md { display: none !important; }
  .hero-copy h1 { font-size: 38px; }
  .quote-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .family-tab { gap: 12px; padding: 12px 14px; font-size: 15px; }
  .cta-band { grid-template-columns: auto minmax(0, 1fr); }
  .cta-band-sep { display: none; }
  .cta-band nav { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .catalog, .pdp, .checkout-layout, .product-form, .two-col, .dash, .auth-page, .quote-layout, .quote-how, .about-intro { grid-template-columns: minmax(0, 1fr); }
  .filter-panel, .summary, .dash-nav { position: static; }
  .filters-btn { display: inline-flex; }
  .filter-panel:not(.open) { display: none; }
  .hero-band {
    background: linear-gradient(180deg, rgba(4, 32, 15, .55) 0%, var(--green-950) 75%), url("/img/site/hero.jpg") center top / cover no-repeat, var(--green-950);
  }
  .feature-band-inner, .family-grid, .family-tabs, .about-features, .how-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .dash-nav nav { display: flex; overflow-x: auto; }
  .dash-nav nav a { white-space: nowrap; }
  .dash-nav-title, .dash-back { display: none; }
  .auth-panel { display: none; }
  .pdp { gap: 28px; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  h1, .pdp-info h1 { font-size: 24px; }
  .hide-sm { display: none; }
  .site-header { top: -68px; }
  .topbar-inner { height: 68px; gap: 10px; }
  .topbar-side { gap: 4px; }
  .logo { gap: 8px; }
  .logo-mark { width: 42px; height: 42px; }
  .brand strong { font-size: 19px; }
  .brand b { font-size: 9.5px; letter-spacing: .02em; }
  .brand small { display: none; }
  .lang-switch { margin-right: 2px; }
  .lang-switch button { min-width: 0; height: 28px; padding: 0 7px; font-size: 12px; }
  .top-icon { width: 36px; height: 36px; }
  .mainnav-inner { justify-content: flex-start; height: 46px; }
  .mainnav a { padding: 0 11px; font-size: 14px; }
  .page-banner {
    background: linear-gradient(90deg, rgba(4, 32, 15, .94), rgba(4, 32, 15, .72)), url("/img/site/banner.jpg") center / cover no-repeat, var(--green-950);
  }
  .page-banner .container { min-height: 130px; }
  .page-banner h1 { font-size: 30px; }
  .page-banner p { font-size: 15px; }
  .hero-band-inner { min-height: 0; padding-top: 120px; padding-bottom: 32px; }
  .hero-copy h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  .hero-actions .btn { flex: 1; }
  .feature-band-inner { grid-template-columns: minmax(0, 1fr); }
  .feature + .feature { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .feature { padding: 16px 0; }
  .title-rule { font-size: 23px; }
  .section { margin-top: 36px; }
  .section-head { flex-wrap: wrap; }
  .family-grid { gap: 10px; }
  .family-card span { padding: 10px 12px; font-size: 13.5px; gap: 8px; }
  .quote-card-home { padding: 22px; background: #fff8e5; }
  .how-row ol { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .how-row li:nth-child(3)::before { display: none; }
  .cta-band { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px; text-align: center; }
  .cta-band-globe { display: none; }
  .cta-band h2 { font-size: 21px; }
  .cta-band nav { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .family-tabs { gap: 10px; }
  .family-tab { min-height: 64px; padding: 10px 12px; font-size: 14px; }
  .family-tab > .ico:first-child { width: 26px; height: 26px; }
  .family-tab > .ico:last-child { display: none; }
  .results-head h2 { font-size: 21px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard-body { padding: 10px 12px 12px; gap: 6px; }
  .pcard-title { font-size: 14px; }
  .pcard-specs { font-size: 12px; gap: 4px 10px; }
  .pcard-fit { display: none; }
  .pcard-foot .btn-block { height: 38px; padding: 0 8px; font-size: 13px; }
  .pcard-foot .btn-block .ico { display: none; }
  .price { font-size: 16px; }
  .btn-icon { width: 36px; height: 36px; }
  .quote-form { padding: 18px; }
  .plan-grid, .about-features, .how-cards { grid-template-columns: minmax(0, 1fr); }
  .phone-row { grid-template-columns: 146px minmax(0, 1fr); }
  .cta { flex-wrap: wrap; padding: 22px; }
  .cta .btn { margin-left: 0; width: 100%; }
  .card { padding: 18px; }
  .tabs { margin: 0 -18px 18px; padding: 0 18px; }
  .form-grid, .form-grid.cols-3, .role-pick { grid-template-columns: minmax(0, 1fr); }
  .cart-list { padding: 4px 16px; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr) 36px; gap: 12px; }
  .cart-line .cart-thumb { grid-row: span 2; align-self: start; }
  .cart-line .qty { grid-column: 2; justify-self: start; }
  .cart-line .cart-price { grid-column: 2; grid-row: 3; text-align: left; }
  .cart-line .icon-btn { grid-column: 3; grid-row: 1; }
  .checkout-steps li { font-size: 0; gap: 0; }
  .checkout-steps span { font-size: 12.5px; }
  .stepper .lbl { font-size: 11px; }
  .stepper .dot { width: 28px; height: 28px; }
  .stepper li::before { top: 13px; }
  .pdp-buy { flex-wrap: wrap; }
  .price-xl { font-size: 30px; }
  .compat-row { grid-template-columns: 1fr 1fr; }
  .auth-form { padding: 28px 20px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 14px; gap: 10px; }
  .kpi-icon { width: 36px; height: 36px; }
  .kpi-value { font-size: 18px; }
  .page-title { align-items: flex-start; }
  .title-tools { width: 100%; }
  .title-tools .sort { margin-left: auto; font-size: 0; gap: 0; }
  .title-tools .sort select { font-size: 14px; }
  .search-lg { height: 52px; }
}

@media (max-width: 440px) {
  .brand b { display: none; }
  .lang-switch button { padding: 0 6px; }
}
