:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-soft: #f4f4f5;
  --text: #18181b;
  --muted: #5c5c5c;
  --muted-2: #71717a;
  --border: #e8e8e8;
  --border-strong: #d4d4d8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --success: #16a34a;
  --danger: #ef4444;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.04);
  --max: 1180px;
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* =========================================
   HEADER — sticky, responsive, hamburger
   ========================================= */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo span {
  color: var(--accent);
}
.logo img {
  display: block;
  height: 30px;
  width: auto;
}
@media (max-width: 480px) {
  .logo img {
    height: 26px;
  }
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  align-items: center;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.25rem 0;
}
nav a:hover {
  color: var(--text);
  text-decoration: none;
}
nav a[aria-current="page"] {
  color: var(--text);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  padding: 0;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 820px) {
  .site-header__inner {
    padding: 0.7rem 1rem;
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }
  .site-nav {
    order: 4;
    width: 100%;
    display: none;
    border-top: 1px solid var(--border);
    margin-top: 0.7rem;
    padding-top: 0.7rem;
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav li {
    border-bottom: 1px solid var(--border);
  }
  .site-nav li:last-child {
    border-bottom: none;
  }
  .site-nav a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1rem;
  }
  .site-header__actions .btn--primary {
    display: none; /* CTA hidden on mobile, kept in nav drawer */
  }
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  line-height: 1.2;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.btn--outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--outline:hover {
  border-color: #a1a1aa;
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 0.4rem 0.6rem;
}
.btn--ghost:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
}

.btn-block {
  width: 100%;
}

/* =========================================
   LAYOUT
   ========================================= */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

@media (max-width: 640px) {
  main {
    padding: 1.25rem 1rem 3rem;
  }
}

.hero {
  text-align: center;
  padding: 3rem 0 2.25rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  line-height: 1.15;
}

.hero p {
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 0 1.5rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.price-tag {
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.section-title {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 42rem;
}

.section + .section {
  margin-top: 3rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.45rem;
  }
}

.lead {
  color: var(--muted);
  max-width: 42rem;
}

/* =========================================
   PRODUIT / PACK / SERVICE — cartes catalogue
   ========================================= */

.shop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  position: relative;
}

.shop-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.shop-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eff6ff 0%, #f4f4f5 100%);
  font-size: 2.6rem;
  margin-bottom: 0.25rem;
  overflow: hidden;
  position: relative;
}

.shop-card__media picture,
.shop-card__media img {
  width: 100%;
  height: 100%;
  display: block;
}

.shop-card__media img {
  object-fit: cover;
  transition: transform 0.4s ease;
}

.shop-card:hover .shop-card__media img {
  transform: scale(1.03);
}

@media (max-width: 480px) {
  .shop-card__media {
    height: 170px;
  }
}

.shop-card__kind {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted-2);
}

.shop-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.shop-card__short {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  flex: 1;
}

.shop-card__includes {
  margin: 0.25rem 0 0;
  padding-left: 1.05rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.shop-card__includes li {
  margin-bottom: 0.15rem;
}

.shop-card__price {
  margin: 0.4rem 0 0.1rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.shop-card__price small {
  font-size: 0.75rem;
  color: var(--muted-2);
  font-weight: 500;
  margin-left: 0.25rem;
}

.shop-card__cta {
  margin-top: 0.4rem;
}

.shop-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

/* =========================================
   Quantity stepper
   ========================================= */

.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  height: 38px;
}

.qty-stepper__btn {
  width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.12s, color 0.12s;
}

.qty-stepper__btn:hover {
  background: var(--surface-2, #f4f4f5);
}

.qty-stepper__btn:disabled {
  color: var(--muted-2);
  cursor: not-allowed;
  background: transparent;
}

.qty-stepper__input {
  width: 44px;
  text-align: center;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text);
  -moz-appearance: textfield;
}

.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-stepper__input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.shop-card__buy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  margin-top: 0.4rem;
}

.shop-card__buy .qty-stepper {
  align-self: flex-start;
}

.shop-card__buy .shop-card__cta {
  margin-top: 0;
  white-space: nowrap;
  width: 100%;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer a {
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--text);
}

/* =========================================
   PANIER — Drawer + Table
   ========================================= */

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--text);
  background: #f4f4f5;
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
}
.cart-link:hover {
  background: #e8e8ef;
  border-color: #cfcfd8;
  text-decoration: none;
}
.cart-link[aria-current="page"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cart-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-link__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  display: none;
}
.cart-link__badge[data-count]:not([data-count="0"]) {
  display: inline-block;
}

.devis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.5rem 0 1rem;
}

.devis-table th,
.devis-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0.6rem;
  text-align: left;
  vertical-align: middle;
}

.devis-table th {
  background: var(--surface-soft);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.devis-table .qty-input {
  width: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
  font: inherit;
  background: var(--surface);
}
.devis-table .qty-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

@media (max-width: 720px) {
  .devis-table thead {
    display: none;
  }
  .devis-table,
  .devis-table tbody,
  .devis-table tr,
  .devis-table td {
    display: block;
    width: 100%;
  }
  .devis-table tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.85rem;
    padding: 0.6rem 0.85rem;
    background: var(--surface);
  }
  .devis-table td {
    border: none;
    padding: 0.35rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
  }
  .devis-table td::before {
    content: attr(data-label);
    color: var(--muted-2);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
  }
  .devis-table td[data-label="Article"] {
    flex-direction: column;
    align-items: flex-start;
  }
  .devis-table td[data-label="Article"]::before {
    margin-bottom: 0.15rem;
  }
}

.cart-summary {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--muted);
}

.cart-summary__row.is-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  border-top: 1px dashed var(--border-strong);
  padding-top: 0.5rem;
  margin-top: 0.2rem;
}

.devis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cart-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

.cart-empty {
  text-align: center;
  padding: 1.5rem 0.5rem 0.5rem;
}
.cart-empty p {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* =========================================
   NOTICES & TOAST
   ========================================= */

.notice {
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  color: #1e3a5f;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin: 1rem 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(0.5rem);
  background: #18181b;
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================
   FILTRES catalogue
   ========================================= */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.filter-chip {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-chip:hover {
  border-color: #a1a1aa;
}

.filter-chip[aria-pressed="true"] {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* =========================================
   FEATURE BLOCK / CTA section
   ========================================= */

.feature-cta {
  background: linear-gradient(135deg, #18181b 0%, #1f2937 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-cta h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.feature-cta p {
  margin: 0;
  color: #d4d4d8;
  font-size: 0.95rem;
  max-width: 36rem;
}

.feature-cta__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.feature-cta .btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.feature-cta .btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   QUANTITY STEPPER (optionnel pour le panier)
   ========================================= */

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-stepper button {
  background: var(--surface-soft);
  border: none;
  width: 30px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
}
.qty-stepper button:hover {
  background: var(--border);
}
.qty-stepper input {
  width: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  height: 32px;
  font: inherit;
  background: var(--surface);
}
.qty-stepper input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* =========================================
   MISC
   ========================================= */

.text-muted {
  color: var(--muted);
}
.text-success {
  color: var(--success);
}
.text-danger {
  color: var(--danger);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  .site-header,
  .site-footer,
  .toast,
  .nav-toggle,
  .devis-actions,
  .cart-link {
    display: none !important;
  }
}
