﻿@media (max-width: 800px) {
  .cart-content {
    width: 100%;
    overflow-x: unset;
    padding: 0;
  }

  .cart-table {
    width: 100%;
    min-width: 0;
    font-size: 0.95rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    table-layout: auto;
    word-break: break-word;
  }

  .cart-table th,
  .cart-table td {
    padding: 8px 4px;
    font-size: 0.98rem;
    word-break: break-word;
    text-align: left;
  }

  .cart-product-image {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .quantity-input {
    width: 32px;
    font-size: 1rem;
    padding: 2px 4px;
  }

  .btn,
  .btn-danger,
  .btn-secondary,
  .btn-primary {
    font-size: 0.95rem;
    padding: 8px 0;
    min-width: 70px;
    margin: 2px 0;
  }

  .cart-summary {
    margin-top: 12px;
    padding: 10px 6px;
    border-radius: 8px;
    font-size: 1rem;
  }
}
/* O fil des créations de Joëlle - CSS Artisanal & Authentique */

:root {
  /* Palette artisan premium / mode éditorial */
  --primary: #6f4cc8;
  --primary-light: #8a6ad9;
  --secondary: #2e2a44;
  --secondary-dark: #232036;
  --accent: #f3ede4;
  --dark: #231f2f;
  --light: #fbf8f4;
  --border: #e6dccf;
  /* Surfaces */
  --primary-soft: #c4b3ee;
  --secondary-soft: #ddd5ef;
  --surface-2: #f7f1ea;
  --surface-3: #efe7dd;
  /* Neutres */
  --gray-100: #faf7f3;
  --gray-200: #f1ebe3;
  --gray-300: #e2d8c9;
  --gray-600: #7b7484;
  --success: #66bb6a;
  --danger: #ef5350;

  /* Typographie */
  --font-heading: "Playfair Display", serif;
  --font-body: "Lora", serif;
  --font-ui: "Poppins", sans-serif;

  /* Espacement */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;
  --spacing-2xl: 60px;

  /* Autres */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 8px 24px rgba(35, 31, 47, 0.06);
  --shadow-md: 0 14px 32px rgba(35, 31, 47, 0.09);
  --shadow-lg: 0 24px 50px rgba(35, 31, 47, 0.13);
  --transition: all 0.28s cubic-bezier(0.2, 0, 0, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at top left,
      rgba(111, 76, 200, 0.08),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(210, 183, 148, 0.1),
      transparent 24%
    ),
    linear-gradient(180deg, #fcf9f5 0%, #f8f3ed 100%);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 28px);
}

.section {
  padding: 5rem 0;
}

.section-compact {
  padding: 3.5rem 0;
}

.section-heading-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.section-heading-inline h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: 0;
}

.section-heading-inline p {
  margin: 0;
  max-width: 420px;
  color: var(--gray-600);
  font-size: 0.98rem;
}

/* Utilitaires simples */
.text-center {
  text-align: center;
}
.mt-12 {
  margin-top: 3rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-12 {
  margin-bottom: 3rem;
}

.text-soft {
  opacity: 0.85;
}

.section-soft {
  background: var(--gray-100);
}

.btn-mt-lg {
  margin-top: 1.5rem;
}

.clickable-card {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Layouts */
.two-col {
  display: grid;
  gap: var(--spacing-xl);
}
@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.media-placeholder {
  background: var(--gray-200);
  color: var(--gray-600);
  height: 260px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
}

/* ===== UTILITAIRES PALETTE ===== */
.text-primary {
  color: var(--primary);
}
.text-secondary {
  color: var(--secondary);
}
.bg-primary {
  background: var(--primary);
  color: #fff;
}
.bg-secondary {
  background: var(--secondary);
  color: #fff;
}
.link {
  color: var(--primary);
  transition: var(--transition);
}
.link:hover {
  color: var(--primary-light);
}

/* Utilitaires additionnels */
.text-muted {
  color: var(--gray-600);
}
.text-danger {
  color: var(--danger);
}

/* Alertes */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.alert-success {
  border-color: rgba(102, 187, 106, 0.35);
  color: #2e7d32;
  background: rgba(102, 187, 106, 0.08);
}

/* Notifications toast (messages en bas de l'écran) */
.toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  pointer-events: none;
}

.toast-message {
  min-width: 220px;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  background: #fff;
  color: var(--dark);
  border: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(10px);
  animation: toast-in 0.25s ease-out forwards;
  pointer-events: auto;
}

.toast-message--success {
  border-color: rgba(102, 187, 106, 0.45);
  background: rgba(102, 187, 106, 0.06);
  color: #2e7d32;
}

.toast-message--error {
  border-color: rgba(239, 83, 80, 0.5);
  background: rgba(239, 83, 80, 0.06);
  color: #c62828;
}

.toast-message--info {
  border-color: rgba(126, 87, 194, 0.4);
  background: rgba(126, 87, 194, 0.06);
}

.toast-message--hide {
  animation: toast-out 0.2s ease-in forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ===== Coloris produits (swatches) ===== */
.product-colors .label {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  margin-right: 8px;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-pill {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.color-pill input {
  display: none;
}

.color-swatch {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  border: 1px solid var(--gray-300);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.color-name {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-family: var(--font-ui);
  line-height: 1.2;
  color: var(--gray-600);
  text-align: center;
  max-width: 72px;
}

.color-pill input:checked + .color-swatch {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.35);
}

.color-pill input:checked + .color-swatch + .color-name {
  font-weight: 600;
  color: var(--primary);
}

.product-detail-page .color-options {
  gap: 12px;
}

.product-detail-page .color-pill {
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 72px;
}

.product-detail-page .color-swatch {
  width: 54px;
  height: 54px;
}

.color-choice-hint {
  margin: -2px 0 0;
  color: var(--gray-600);
  font-size: 0.88rem;
}

/* Check visuel sur le coloris sélectionné */
.color-pill {
  position: relative;
}

.color-check {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: var(--transition);
}

.color-pill input:checked ~ .color-check {
  opacity: 1;
}

.product-card-colors {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.product-card-color-label {
  margin-top: 4px;
  text-align: center;
  font-size: 0.8rem;
  font-family: var(--font-ui);
  color: var(--gray-600);
}

.product-card-colors-wrapper {
  margin-top: 8px;
  margin-bottom: 8px;
}

.product-card-color-label-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.8rem;
  font-family: var(--font-ui);
  color: var(--gray-600);
  margin-bottom: 4px;
}

.product-card-color-prefix {
  font-weight: 500;
}

.product-card-color-name {
  font-weight: 600;
}

/* Taille un peu plus petite des swatches sur les cards pour garder l'équilibre visuel */
.product-card-colors .color-swatch {
  width: 40px;
  height: 40px;
}

/* Sélecteurs d'images dans le BO produits (coloris) */
.color-swatch-select,
.color-image-select {
  display: none;
}

.image-select {
  position: relative;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  max-width: 260px;
}

.image-select-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  min-height: 34px;
  width: 100%;
  text-align: left;
}

.image-select-toggle:hover {
  background: var(--gray-100);
}

.image-select-toggle-thumb {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--gray-100);
  overflow: hidden;
  flex-shrink: 0;
}

.image-select-toggle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-select-toggle-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--gray-600);
}

.image-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  margin-top: 4px;
  width: 100%;
  max-width: 260px;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: none;
}

.image-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  cursor: pointer;
}

.image-select-option:hover {
  background: var(--gray-100);
}

.image-select-option-thumb {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--gray-100);
  overflow: hidden;
  flex-shrink: 0;
}

.image-select-option-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-select-option-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sections thématiques */
.hero-banner {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(35, 31, 47, 0.82), rgba(111, 76, 200, 0.56)),
    url("../uploads/oiseau.jpg") center/cover no-repeat;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.14),
      transparent 22%
    ),
    radial-gradient(
      circle at 80% 0%,
      rgba(255, 255, 255, 0.12),
      transparent 18%
    );
  pointer-events: none;
}

.hero-banner .container {
  position: relative;
  z-index: 1;
}

.hero-banner h1,
.hero-banner p {
  color: #fff;
}

.hero-banner h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.8rem);
  letter-spacing: 0;
  max-width: 13ch;
  margin-inline: auto;
}

.hero-banner p {
  max-width: 560px;
  margin-inline: auto;
  font-size: 1rem;
}
.newsletter {
  background: linear-gradient(
    135deg,
    rgba(111, 76, 200, 0.09),
    rgba(243, 237, 228, 0.96)
  );
  color: var(--dark);
}
.newsletter-form {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter input[type="email"] {
  width: 100%;
  max-width: 360px;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  margin-right: 0.5rem;
}

/* ===== TYPOGRAPHIE ===== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: 48px;
  color: var(--dark);
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: 36px;
  color: var(--dark);
  margin-bottom: var(--spacing-lg);
}

h3 {
  font-size: 24px;
  color: var(--dark);
  margin-bottom: var(--spacing-md);
}

p {
  margin-bottom: var(--spacing-md);
  color: #555;
}

a:not(.btn) {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:not(.btn):hover {
  color: var(--primary-light);
}

/* ===== BOUTONS ===== */

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: none;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(46, 42, 68, 0.06);
  color: var(--dark);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: rgba(46, 42, 68, 0.12);
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--dark);
  border: 1px solid var(--secondary);
}

.btn-accent:hover {
  background-color: var(--surface-3);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-danger:hover {
  background-color: #d84343;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
}

/* variantes de boutons */
.btn-ghost {
  --ghost-bg: transparent;
  --ghost-border: var(--border);
  --ghost-hover: var(--primary-soft);
  background: var(--ghost-bg);
  color: var(--dark);
  border: 1px solid var(--ghost-border);
}

.filter-btn,
.btn-icon,
.quantity-selector button,
.social-link,
.mobile-nav a {
  border-radius: 0;
}
.btn-ghost:hover {
  background: var(--ghost-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* Hover/active par défaut */
.btn:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* ===== HEADER ===== */

header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 220, 207, 0.82);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 10px 28px rgba(35, 31, 47, 0.05);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 28px);
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
@media (max-width: 800px) {
  .header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 8px;
    width: 100%;
  }
  .header-left,
  .header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .header-left {
    flex: 1 1 0;
    justify-content: flex-start;
  }
  .header-right {
    flex: 1 1 0;
    justify-content: flex-end;
  }
  .logo-img {
    height: 48px;
    padding: 2px;
  }
  .main-nav {
    display: none;
  }
  .checkout-content {
    flex-direction: column;
    gap: 24px;
  }
  .checkout-summary {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 16px 8px;
    position: static;
    top: unset;
    border-radius: 12px;
    margin-bottom: 16px;
  }
  .order-items,
  .order-summary-details {
    font-size: 1rem;
    padding: 0;
  }
  .order-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 8px;
  }
  .item-name,
  .item-price {
    font-size: 1rem;
    word-break: break-word;
  }
  .summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    padding: 6px 0;
  }
  .summary-row.total {
    font-weight: bold;
    font-size: 1.1rem;
  }
}

/* MENU BURGER & MOBILE NAV */
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--secondary);
  cursor: pointer;
  margin-left: 16px;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  box-shadow: 0 2px 24px rgba(126, 87, 194, 0.08);
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav a {
  font-size: 1.5rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.mobile-nav a:hover {
  background: var(--accent);
}
@media (max-width: 800px) {
  .main-nav {
    display: none;
  }
  .burger {
    display: inline-block;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo-img {
  height: 76px;
  width: 76px;
  flex: 0 0 76px;
  object-fit: cover;
  display: block;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 50%;
  transform: none;
  transform-origin: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.logo:hover .logo-img {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(126, 87, 194, 0.18);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
}

.logo-subtitle {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  margin-left: var(--spacing-xl);
  color: var(--dark);
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary);
}

.main-nav a,
.header-right .link,
.mobile-nav a {
  letter-spacing: 0.01em;
}

.admin-link {
  font-size: 14px;
}

.admin-logout-form {
  display: inline-flex;
  margin: 0;
}

.admin-logout-button {
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.cart-icon {
  position: relative;
  font-size: 20px;
  cursor: pointer;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--danger);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* ===== PRODUITS - CATALOGUE ===== */

.products-page {
  padding: var(--spacing-2xl) 0;
}

.page-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.filters {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(230, 220, 207, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  gap: 6px;
}

.filter-group label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.filter-group select,
.filter-group input[type="number"] {
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.92);
  transition: var(--transition);
}

.filter-group select:focus,
.filter-group input[type="number"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(126, 87, 194, 0.16);
}

.filter-group-price {
  min-width: 220px;
}

.filter-price-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.filter-price-row input[type="number"] {
  width: 100%;
}

.price-separator {
  font-size: 14px;
  color: var(--gray-600);
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #f6efe8);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--dark);
  box-shadow: 0 8px 18px rgba(35, 31, 47, 0.05);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.filter-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-left: auto;
}

.filter-reset {
  border-style: dashed;
  background: transparent;
}

@media (max-width: 800px) {
  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: var(--spacing-2xl);
}

.product-card {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(230, 220, 207, 0.78);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 310px;
  background: linear-gradient(135deg, #ede4d8 0%, #f8f3ee 100%);
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #efe5d7 0%, #f8f3ee 100%);
  color: var(--gray-600);
  font-size: 14px;
  font-family: var(--font-ui);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-info {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.product-name a {
  color: var(--dark);
}

.product-name a:hover {
  color: var(--primary);
}

.product-description {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 16px;
  flex: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 12px;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
}

.add-to-cart-btn {
  padding: 8px 16px;
  font-size: 12px;
}

.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--spacing-2xl);
  color: #999;
}

/* ===== PANIER ===== */

.cart-page {
  padding: var(--spacing-2xl) 0;
}

.cart-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

/* Tableau du panier (desktop) */
.cart-table {
  width: 100%;
  border-collapse: separate;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0;
  border: 1px solid rgba(230, 220, 207, 0.9);
  overflow: hidden;
  box-shadow: none;
  table-layout: fixed;
}

.cart-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 8px;
  text-align: left;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.cart-table td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
  vertical-align: middle;
}

.cart-table tr:last-child td {
  border-bottom: none;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 120px;
}

.price-cell,
.subtotal-cell {
  font-weight: 600;
  color: var(--primary);
  min-width: 70px;
  text-align: right;
}

.quantity-cell {
  min-width: 60px;
  text-align: center;
}

.action-cell {
  min-width: 90px;
  text-align: center;
}

/* Boutons d'action dans le panier (Modifier / Supprimer) */
.cart-table .action-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-table .cart-action-edit {
  padding: 6px 10px;
  font-size: 0.85rem;
}

.cart-table .cart-action-delete {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(111, 76, 200, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--secondary);
  cursor: pointer;
  transition: var(--transition);
}

.cart-table .cart-action-delete .material-icons {
  font-size: 1.2rem;
  line-height: 1;
}

.cart-table .cart-action-delete:hover,
.cart-table .cart-action-delete:focus-visible {
  border-color: rgba(239, 83, 80, 0.34);
  background: rgba(239, 83, 80, 0.08);
  color: #a43734;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cart-table .action-cell {
    align-items: flex-end;
  }
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.cart-item-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--spacing-md);
  align-items: center;
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.cart-item-left {
  display: flex;
  align-items: center;
}

.cart-item-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-item-name {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
}
.cart-item-name:hover {
  color: var(--primary);
}
.cart-item-color {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-family: var(--font-ui);
  color: var(--gray-600);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  white-space: nowrap;
}
.cart-item-color::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary-soft);
}
.cart-product-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--accent);
}

.cart-item-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--gray-600);
}

.cart-item-unit-price,
.cart-item-line-total {
  font-weight: 600;
  color: var(--primary);
}

.cart-item-multiply {
  color: var(--gray-600);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.cart-product-image.placeholder {
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
}

.cart-table tbody tr:nth-child(even) {
  background: var(--surface-2);
}

/* Unifie le badge du panier (si data attribute présent) */
[data-cart-count] {
  background: var(--primary) !important;
  color: #fff !important;
}

.quantity-input {
  width: 50px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 0;
  text-align: center;
}

.empty-cart {
  text-align: center;
  padding: 42px 28px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0;
  border: 1px solid rgba(230, 220, 207, 0.9);
  box-shadow: none;
  grid-column: 1 / -1;
}

.empty-cart p {
  margin-bottom: var(--spacing-lg);
  color: #999;
}

.cart-summary {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0;
  padding: 28px 24px;
  border: 1px solid rgba(230, 220, 207, 0.9);
  box-shadow: none;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.cart-summary h2 {
  font-size: 18px;
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-heading);
}

.cart-summary-note {
  font-size: 13px;
  color: #777;
  margin-bottom: var(--spacing-lg);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  font-size: 14px;
}

.summary-row.total {
  border-top: 2px solid var(--border);
  padding-top: var(--spacing-md);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.cart-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  flex-direction: column;
}

.cart-actions a,
.cart-actions button {
  width: 100%;
}

/* ===== CHECKOUT ===== */

.checkout-page {
  padding: var(--spacing-2xl) 0;
}

.checkout-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
}

.checkout-form {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0;
  padding: 32px 28px;
  border: 1px solid rgba(230, 220, 207, 0.9);
  box-shadow: none;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--spacing-sm);
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition);
}

/* Harmoniser le style des champs file avec les autres inputs */
input[type="file"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(126, 87, 194, 0.18);
}

.checkout-summary {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0;
  padding: 28px 24px;
  border: 1px solid rgba(230, 220, 207, 0.9);
  box-shadow: none;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.checkout-summary h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: var(--spacing-md);
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-main {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex: 1;
  min-width: 0;
}

.order-item-image {
  width: 72px;
  height: 72px;
  border-radius: 0;
  object-fit: cover;
  flex-shrink: 0;
}

.order-item-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-name {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
}

.item-color {
  font-size: 13px;
  color: var(--gray-600);
}

.item-price {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  white-space: nowrap;
  margin-left: var(--spacing-md);
}

.order-summary-details {
  border-top: 1px solid var(--border);
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 15px;
}

.summary-row.total span:last-child {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.form-row {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
}

@media (max-width: 900px) {
  .checkout-page {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
  }

  .checkout-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .checkout-summary {
    position: static;
    top: auto;
  }

  .order-item {
    align-items: flex-start;
  }

  .order-item-image {
    width: 60px;
    height: 60px;
  }
}

.checkout-summary h3 {
  margin-bottom: var(--spacing-md);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
  border-bottom: none;
}

.stripe-element {
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.stripe-element.StripeElement--focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(126, 87, 194, 0.18);
}

/* ===== SUCCESS PAGE ===== */

.success-page {
  padding: var(--spacing-2xl) 0;
}

.success-message {
  text-align: center;
  padding: var(--spacing-2xl);
  background: linear-gradient(135deg, var(--accent) 0%, var(--surface-2) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-2xl);
}

.success-message h1 {
  font-family: var(--font-heading);
  font-size: 26px;
  margin-bottom: var(--spacing-sm);
}

.success-message p {
  font-size: 15px;
  color: #444;
}

.success-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
}

.order-details {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-lg);
}

/* Success sections */
.order-items-recap,
.order-summary-recap,
.delivery-info {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-lg);
}

.order-items-recap table,
.order-summary-recap table {
  width: 100%;
  border-collapse: collapse;
}
.order-items-recap th,
.order-items-recap td,
.order-summary-recap th,
.order-summary-recap td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.order-items-recap thead th,
.order-summary-recap thead th {
  background: var(--gray-100);
  font-weight: 600;
}

.success-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-top: var(--spacing-xl);
  flex-wrap: wrap;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.detail-row:last-child {
  border-bottom: none;
}

.next-steps {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-lg);
}

.next-steps h2 {
  margin-bottom: var(--spacing-md);
}

.next-steps ol {
  margin: 0;
  padding-left: 1.25rem;
}

.next-steps li + li {
  margin-top: 0.35rem;
}

.next-steps strong {
  color: var(--primary);
}

.error-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */

footer {
  background: linear-gradient(180deg, #1f1b2a 0%, #17131f 100%);
  color: #eee7dc;
  padding: 3.5rem 0 2.5rem;
  margin-top: 4rem;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  text-decoration: none;
}

.card-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: var(--spacing-lg);
}

.card-field-number {
  grid-column: 1 / -1;
}

.card-fields .form-group {
  min-width: 0;
  margin-bottom: 0;
}

.footer-logo-pair {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-logo .logo-img {
  height: 76px;
  width: 76px;
  flex-basis: 76px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.footer-logo:hover .logo-img {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.footer-logo .footer-logo-principal {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
}

/* Réseaux sociaux */
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer-social-label {
  font-family: var(--font-heading);
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(111, 76, 200, 0.9) 0%,
    rgba(46, 42, 68, 0.96) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.social-link:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(111, 76, 200, 0.22);
}

.social-link:hover::before {
  opacity: 1;
}

.social-link svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.social-link:hover svg {
  transform: scale(1.06);
}

.footer-note {
  color: rgba(238, 231, 220, 0.74);
  letter-spacing: 0.03em;
  font-size: 12px;
  margin-top: 0.35rem;
}

.footer-links {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
}

.footer-links .footer-link {
  margin: 0 8px;
  color: rgba(238, 231, 220, 0.88);
}

footer h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 14px;
}

footer a {
  color: rgba(238, 231, 220, 0.9);
}

footer a:hover {
  color: #fff;
}

footer p {
  color: rgba(238, 231, 220, 0.88);
  margin-bottom: var(--spacing-sm);
}

.page-content-text {
  line-height: 1.8;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .product-image-wrapper {
    height: 200px;
  }

  .cart-content,
  .checkout-content {
    grid-template-columns: 1fr;
  }

  .cart-summary,
  .checkout-summary {
    position: static;
  }

  nav {
    display: none;
  }

  .header-container {
    flex-direction: column;
    gap: var(--spacing-md);
  }
}

/* ===== PAGE DÉTAIL PRODUIT ===== */

.product-detail-page {
  padding: 3rem 0 5rem;
  background:
    radial-gradient(
      circle at top left,
      rgba(111, 76, 200, 0.06),
      transparent 24%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(210, 183, 148, 0.08),
      transparent 20%
    );
  min-height: 60vh;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: var(--spacing-lg);
  transition: var(--transition);
}

.back-link:hover {
  color: var(--primary);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(230, 220, 207, 0.82);
  border-radius: 26px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

/* Galerie d'images */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.main-image {
  width: 100%;
  aspect-ratio: 0.96;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3ece3, #fbf8f4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.main-image img:hover {
  transform: scale(1.02);
}

.main-image.placeholder {
  background: var(--gray-200);
  color: var(--gray-500);
  font-style: italic;
}

.thumbnail-images {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.thumbnail {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid rgba(230, 220, 207, 0.95);
  transition: var(--transition);
  opacity: 0.82;
  box-shadow: 0 10px 20px rgba(35, 31, 47, 0.06);
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--primary);
  opacity: 1;
}

/* Informations produit */
.product-details-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3.15rem);
  font-weight: 600;
  color: var(--dark);
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.product-category {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-category a {
  color: var(--primary);
  font-weight: 500;
}

.product-category a:hover {
  text-decoration: underline;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-md);
  margin: var(--spacing-sm) 0;
}

.product-pricing .price {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--primary);
}

.product-pricing .original-price {
  font-size: 1.1rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

/* Stock */
.stock-status {
  padding: var(--spacing-sm) 0;
}

.stock-status .in-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2e7d32;
  font-weight: 500;
  font-size: 14px;
}

.stock-status .in-stock .material-icons {
  font-size: 18px;
}

.stock-status .out-of-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c62828;
  font-weight: 500;
  font-size: 14px;
}

.stock-status .out-of-stock .material-icons {
  font-size: 18px;
}

/* Section ajout panier */
.add-to-cart-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 22px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin: var(--spacing-sm) 0;
  flex-wrap: wrap;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: 0;
  overflow: hidden;
}

.quantity-selector button {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--gray-100);
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.quantity-selector button:hover {
  background: var(--gray-200);
  color: var(--primary);
}

.quantity-selector input {
  width: 60px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
  flex: 1;
  max-width: 300px;
}

.quantity-label {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-600);
  margin-bottom: -8px;
}

/* Description */
.product-detail-page .product-description {
  padding-top: var(--spacing-md);
}

.product-detail-page .product-description h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--spacing-sm);
}

.product-detail-page .product-description p {
  color: var(--gray-700);
  line-height: 1.8;
}

/* Section avis */
.reviews-section {
  margin-top: var(--spacing-2xl);
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
}

.reviews-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--gray-200);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.review-item {
  padding: var(--spacing-md);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.review-header strong {
  color: var(--text);
  font-weight: 600;
}

.review-rating {
  color: #f4b400;
  font-size: 16px;
  letter-spacing: 2px;
}

.review-comment {
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.review-date {
  color: var(--gray-500);
  font-size: 12px;
}

/* Responsive détail produit */
@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .product-title {
    font-size: 1.75rem;
  }

  .product-pricing .price {
    font-size: 1.75rem;
  }

  .add-to-cart-section {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-large {
    max-width: none;
  }

  .quantity-label {
    margin-bottom: -2px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .product-detail {
    padding: var(--spacing-md);
  }

  .product-title {
    font-size: 1.5rem;
  }

  .product-pricing .price {
    font-size: 1.5rem;
  }

  .quantity-selector button {
    width: 40px;
    height: 40px;
  }

  .quantity-selector input {
    width: 50px;
    height: 40px;
  }

  .product-detail-page .color-pill {
    min-width: 64px;
  }

  .product-detail-page .color-swatch {
    width: 50px;
    height: 50px;
  }

  .color-name {
    max-width: 64px;
    font-size: 0.78rem;
  }

  .reviews-section {
    padding: var(--spacing-md);
  }
}

/* ===== PAGE CONTACT ===== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.contact-form-wrapper {
  background: rgba(255, 252, 247, 0.9);
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid rgba(95, 23, 51, 0.14);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
}

.contact-info-wrapper {
  position: sticky;
  top: var(--spacing-lg);
}

.contact-info-card {
  background: rgba(255, 252, 247, 0.72);
  padding: var(--spacing-xl);
  border-radius: 0;
  text-align: center;
  border: 1px solid rgba(95, 23, 51, 0.14);
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--dark);
  margin-bottom: var(--spacing-xl);
}

.contact-social-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

/* Liens sociaux : actions secondaires, distinctes de l'envoi du formulaire. */
a.contact-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid rgba(95, 23, 51, 0.24);
  border-radius: 0;
  background: transparent;
  color: var(--secondary);
  font-weight: 600;
  font-family: var(--font-ui);
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}

a.contact-social-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

a.contact-social-link:hover,
a.contact-social-link:focus-visible {
  background: var(--surface-2);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.contact-info-note {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-wrapper {
    position: static;
  }
}

/* ==========================================
   ADMIN - Tableaux améliorés UX
   ========================================== */

/* En-tête de page admin */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.admin-header h1 {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.admin-header h1 .icon {
  font-size: 1.5rem;
}

.admin-stats {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.admin-stat {
  background: var(--surface-2);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border);
}

.admin-stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-ui);
}

.admin-stat-label {
  font-size: 12px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Carte tableau */
.admin-table-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.admin-table-header {
  background: linear-gradient(
    135deg,
    var(--secondary-soft) 0%,
    var(--primary-soft) 100%
  );
  color: var(--dark);
  padding: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-table-header h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.admin-table-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* Table stylée */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  background: var(--surface-2);
}

.admin-table th {
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: left;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
  border-bottom: 2px solid var(--border);
}

.admin-table td {
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: var(--transition);
}

.admin-table tbody tr:hover {
  background: var(--accent);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* Cellule produit avec image */
.product-cell {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.product-thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--gray-100);
}

.product-thumb-placeholder {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gray-600);
  border: 2px dashed var(--border);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-name {
  font-weight: 600;
  color: var(--dark);
}

.product-sku {
  font-size: 12px;
  color: var(--gray-600);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-ui);
}

.badge-success {
  background: rgba(102, 187, 106, 0.15);
  color: #2e7d32;
}

.badge-warning {
  background: rgba(255, 193, 7, 0.15);
  color: #f57c00;
}

.badge-danger {
  background: rgba(239, 83, 80, 0.15);
  color: #c62828;
}

.badge-info {
  background: rgba(126, 87, 194, 0.15);
  color: var(--primary);
}

.badge-neutral {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* Stock badges (comme les catégories) */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-ui);
  border: 1px solid;
  white-space: nowrap;
}

.stock-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stock-badge-success {
  background: rgba(102, 187, 106, 0.12);
  border-color: rgba(102, 187, 106, 0.3);
  color: #2e7d32;
}

.stock-badge-success .stock-badge-dot {
  background: #66bb6a;
}

.stock-badge-warning {
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(255, 193, 7, 0.3);
  color: #e65100;
}

.stock-badge-warning .stock-badge-dot {
  background: #ffc107;
}

.stock-badge-danger {
  background: rgba(239, 83, 80, 0.12);
  border-color: rgba(239, 83, 80, 0.3);
  color: #c62828;
}

.stock-badge-danger .stock-badge-dot {
  background: #ef5350;
}

/* Prix */
.price-cell {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
}

/* Actions */
.action-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
}

/* Boutons d'action admin */
.btn-action {
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-height: 32px;
}

.btn-action-view {
  background: rgba(102, 187, 106, 0.1);
  border-color: rgba(102, 187, 106, 0.3);
  color: #2e7d32;
}

.btn-action-view:hover {
  background: rgba(102, 187, 106, 0.2);
  border-color: #66bb6a;
}

.btn-action-edit {
  background: rgba(126, 87, 194, 0.1);
  border-color: rgba(126, 87, 194, 0.3);
  color: var(--primary);
}

.btn-action-edit:hover {
  background: rgba(126, 87, 194, 0.2);
  border-color: var(--primary);
}

.btn-action-delete {
  background: rgba(239, 83, 80, 0.1);
  border-color: rgba(239, 83, 80, 0.3);
  color: #c62828;
}

.btn-action-delete:hover {
  background: rgba(239, 83, 80, 0.2);
  border-color: #ef5350;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 16px;
}

.btn-icon:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-icon.edit:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-icon.delete:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(239, 83, 80, 0.08);
}

.btn-icon.view:hover {
  border-color: var(--success);
  color: var(--success);
}

/* Message card */
.message-preview {
  max-width: 300px;
}

.message-text {
  color: var(--dark);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.message-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.message-sender {
  font-weight: 600;
  color: var(--dark);
}

.message-email {
  font-size: 13px;
  color: var(--gray-600);
}

.message-email a {
  color: var(--primary);
}

/* Date */
.date-cell {
  font-size: 13px;
  color: var(--gray-600);
  white-space: nowrap;
}

.date-cell .date-ago {
  display: block;
  font-size: 11px;
  color: var(--primary-soft);
}

/* Empty state */
.admin-empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--gray-600);
}

.admin-empty-state .icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

.admin-empty-state p {
  margin-bottom: var(--spacing-lg);
}

/* Info box */
.admin-info-box {
  background: linear-gradient(135deg, var(--accent) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.admin-info-box .icon {
  font-size: 1.5rem;
  color: var(--primary);
}

.admin-info-box-content h3 {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.admin-info-box-content p {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
}

/* Breadcrumb retour */
.admin-back {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--gray-600);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: var(--spacing-lg);
  transition: var(--transition);
}

.admin-back:hover {
  color: var(--primary);
}

/* Category with color */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--surface-2);
  border-radius: 20px;
  font-size: 13px;
  color: var(--dark);
  border: 1px solid var(--border);
}

.category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* Responsive admin */
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-table-header {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
  }

  .admin-table th,
  .admin-table td {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .product-cell {
    flex-direction: column;
    align-items: flex-start;
  }

  .action-buttons {
    flex-direction: column;
  }
}

/* ===== MINI-PANIER (bandeau à droite) ===== */
.mini-cart {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 320px;
  max-height: 80vh;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.25s ease-out,
    opacity 0.2s ease-out;
  z-index: 2000;
}

.mini-cart.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mini-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
}

.mini-cart-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.mini-cart-items {
  padding: 8px 12px;
  overflow-y: auto;
  max-height: 50vh;
}

.mini-cart-empty {
  text-align: center;
  color: var(--gray-600);
  font-size: 0.9rem;
  padding: 10px 0;
}

.mini-cart-item {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-200);
}

.mini-cart-item:last-child {
  border-bottom: none;
}

.mini-cart-item-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  overflow: hidden;
}

.mini-cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-cart-item-info {
  flex: 1;
  min-width: 0;
}

.mini-cart-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.mini-cart-item-meta {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.mini-cart-footer {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--gray-200);
  background: var(--surface-2);
}

.mini-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.mini-cart-actions {
  display: flex;
  gap: 8px;
}

.mini-cart-actions .btn-small {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  white-space: normal;
  line-height: 1.2;
}

.btn-small {
  padding: 8px 10px;
  font-size: 0.85rem;
  width: 100%;
}

@media (max-width: 768px) {
  .mini-cart {
    top: 74px;
    right: 10px;
    width: min(320px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
  }
}

/* ===== PAGE HERO (bandeau image plein écran) ===== */
.page-hero {
  position: relative;
  padding: 92px 0 76px;
  margin-bottom: 28px;
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(14, 12, 22, 0.38), rgba(14, 12, 22, 0.62)),
    url("../uploads/oiseau.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.18) inset;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}

.page-hero-kicker {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 6px;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: 0;
}

.page-hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
}

@media (max-width: 600px) {
  .page-hero {
    padding: 72px 0 40px;
    margin-bottom: 16px;
    min-height: 80vh;
  }

  .page-hero-title {
    font-size: 1.5rem;
  }

  .page-hero-subtitle {
    font-size: 0.9rem;
  }

  .page-hero-content {
    min-height: auto;
    align-items: center;
  }
}

/* ===== PAGES LÉGALES ===== */
.legal-page .legal-container {
  max-width: 900px;
  margin: 0 auto;
}

.legal-container {
  font-family: var(--font-body);
  font-size: 0.97rem;
  line-height: 1.8;
  color: #444;
}

.legal-content p,
.legal-content li {
  margin-bottom: 0.8rem;
}

.legal-content h2,
.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 1.6rem 0 0.7rem;
  color: var(--dark);
}

.legal-content ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.legal-content pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.97rem;
  line-height: 1.8;
}

.legal-content strong {
  font-weight: 600;
}

.legal-details {
  display: grid;
  gap: 0;
  margin: 0 0 1.5rem;
}

.legal-details > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(33, 30, 36, 0.1);
}

.legal-details dt {
  font-weight: 600;
  color: var(--dark);
}

.legal-details dd {
  margin: 0;
}

.legal-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.legal-data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.55;
}

.legal-data-table th,
.legal-data-table td {
  padding: 12px;
  border: 1px solid rgba(33, 30, 36, 0.12);
  text-align: left;
  vertical-align: top;
}

.legal-data-table th {
  background: var(--dark);
  color: #fff;
  font-family: var(--font-ui);
}

.legal-template {
  padding: 18px;
  border-left: 3px solid var(--primary);
  background: var(--surface-2);
}

.legal-guarantee-box {
  margin: 1.5rem 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 2px solid var(--dark);
  background: #fff;
}

.legal-guarantee-box p,
.legal-guarantee-box li {
  font-size: 0.92rem;
}

.form-privacy-note,
.checkout-delivery-notice {
  margin: 4px 0 18px;
  color: var(--gray-600);
  font-size: 0.78rem;
  line-height: 1.55;
}

.withdrawal-form {
  max-width: 720px;
  margin-top: 2rem;
}

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

.withdrawal-receipt h2 {
  margin-top: 0;
}

.product-traceability {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(95, 23, 51, 0.18);
  color: var(--gray-600);
}

.product-traceability summary {
  color: var(--dark);
  font-weight: 600;
  cursor: pointer;
}

.product-traceability dl {
  margin: 1rem 0;
}

.product-traceability dl > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.35rem 0;
}

.product-traceability dt {
  font-weight: 600;
  color: var(--dark);
}

.product-traceability dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .legal-details > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .withdrawal-dates,
  .product-traceability dl > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-traceability dl > div {
    gap: 0.15rem;
  }
}

/* ===== HERO / FOOTER REPRISE EDITORIALE ===== */

.page-hero {
  isolation: isolate;
  min-height: 0;
  padding: clamp(56px, 8vw, 96px) 0 clamp(46px, 6vw, 72px);
  margin-bottom: clamp(28px, 4vw, 48px);
  color: #fffaf4;
  background-image:
    linear-gradient(
      90deg,
      rgba(15, 13, 19, 0.68) 0%,
      rgba(15, 13, 19, 0.38) 52%,
      rgba(15, 13, 19, 0.12) 100%
    ),
    var(--hero-image, url("../uploads/couture-hero-1600.jpg"));
  background-size: cover;
  background-position: center 46%;
  border-bottom: 1px solid rgba(95, 23, 51, 0.16);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 250, 244, 0.34);
  box-shadow: none;
  pointer-events: none;
}

.page-hero-content {
  min-height: clamp(180px, 24vw, 280px);
  display: flex;
  align-items: center;
}

.page-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 250, 244, 0.84);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-hero-kicker::before {
  content: "";
  width: 44px;
  height: 1px;
  background: rgba(255, 250, 244, 0.62);
}

.page-hero-title {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 0.98;
  color: #fffaf4;
  text-wrap: balance;
  text-shadow: 0 14px 38px rgba(0, 0, 0, 0.26);
}

.page-hero-subtitle {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 250, 244, 0.9);
  font-family: var(--font-ui);
  font-size: clamp(0.94rem, 1.5vw, 1.05rem);
  line-height: 1.7;
}

.page-hero--home {
  min-height: clamp(360px, 56vw, 560px);
  background-position: center 44%;
}

.page-hero--home .page-hero-content {
  min-height: clamp(280px, 44vw, 430px);
}

.page-hero--home .page-hero-title {
  max-width: 840px;
}

footer {
  background: linear-gradient(180deg, #17151c 0%, #100e14 100%);
  background-size: auto;
}

@font-face {
  font-family: "Material Icons";
  src: url("../fonts/material-icons.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

.material-icons {
  display: inline-block;
  font-family: "Material Icons";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@media (max-width: 800px) {
  .page-hero {
    padding: 42px 0 38px;
    margin-bottom: 26px;
    background-image:
      linear-gradient(
        180deg,
        rgba(15, 13, 19, 0.72) 0%,
        rgba(15, 13, 19, 0.38) 100%
      ),
      var(--hero-image, url("../uploads/couture-hero-1600.jpg"));
  }

  .page-hero-content,
  .page-hero--home .page-hero-content {
    min-height: 220px;
  }

  .page-hero--home {
    min-height: 320px;
  }

  .page-hero-title {
    font-size: clamp(2rem, 11vw, 3.15rem);
  }
}

/* Administration : stock par combinaison coloris / modèle. */
.admin-variant-stock-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(95, 23, 51, 0.14);
  background: #fffdfa;
}

.admin-variant-stock-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-family: var(--font-ui);
}

.admin-variant-stock-table th,
.admin-variant-stock-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(95, 23, 51, 0.1);
  text-align: center;
  vertical-align: middle;
}

.admin-variant-stock-table thead th {
  background: #19161d;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-variant-stock-table tbody th {
  min-width: 150px;
  color: var(--secondary);
  text-align: left;
  font-weight: 600;
}

.admin-variant-stock-table input[type="number"] {
  width: 88px;
  min-height: 44px;
  padding: 8px 10px;
  text-align: center;
}

.admin-variant-stock-table tbody tr:last-child th,
.admin-variant-stock-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 680px) {
  .admin-variant-stock-table th,
  .admin-variant-stock-table td {
    padding: 10px;
  }

  .admin-variant-stock-table input[type="number"] {
    width: 72px;
  }
}

/* Administration : listes de travail et mediatheque */
.admin-main .admin-narrow-list {
  max-width: 980px;
}

.admin-login-section {
  width: 100%;
}

.admin-login-container {
  max-width: 440px;
}

.admin-login-card {
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid rgba(33, 30, 36, 0.12);
  background: #fffdfa;
}

.admin-login-card h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.8rem, 7vw, 2.35rem);
}

.admin-login-intro {
  margin: 0 0 24px;
  color: rgba(33, 30, 36, 0.6);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  line-height: 1.6;
}

.admin-login-submit {
  width: 100%;
}

.admin-login-back {
  margin-top: 18px;
  text-align: center;
}

.admin-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  background: rgba(95, 23, 51, 0.07);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-card-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--secondary);
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
}

.admin-card-count small {
  color: rgba(33, 30, 36, 0.5);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
}

.admin-simple-list,
.admin-message-list {
  display: grid;
  gap: 12px;
}

.admin-simple-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 19px;
  border: 1px solid rgba(33, 30, 36, 0.12);
  background: #fffdfa;
}

.admin-simple-row > div:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-simple-row > div:first-child span {
  color: rgba(33, 30, 36, 0.56);
  font-size: 0.8rem;
}

.admin-simple-actions,
.admin-message-card footer,
.admin-media-card-body {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-simple-actions form,
.admin-message-card footer form,
.admin-media-card-body > form {
  margin: 0;
}

.admin-icon-delete,
.admin-icon-button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(33, 30, 36, 0.14);
  background: transparent;
  color: rgba(33, 30, 36, 0.62);
  cursor: pointer;
}

.admin-icon-delete:hover,
.admin-icon-delete:focus-visible {
  border-color: rgba(95, 23, 51, 0.36);
  color: var(--primary);
}

.admin-icon-button:hover,
.admin-icon-button:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

.admin-message-card {
  padding: 20px;
  border: 1px solid rgba(33, 30, 36, 0.12);
  background: #fffdfa;
}

.admin-message-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-message-card > header div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-message-card > header a {
  color: var(--primary);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.admin-message-card time {
  color: rgba(33, 30, 36, 0.52);
  font-size: 0.75rem;
  white-space: nowrap;
}

.admin-message-card > p {
  margin: 18px 0;
  color: rgba(33, 30, 36, 0.78);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.admin-message-card > h2 {
  margin: 18px 0 0;
  color: #211e24;
  font-family: var(--font-ui);
  font-size: 0.96rem;
  font-weight: 700;
}

.admin-message-card > h2 + p {
  margin-top: 8px;
}

.admin-message-card footer {
  justify-content: flex-end;
  border: 0;
  background: transparent;
}

.admin-message-inbox {
  overflow: hidden;
  border: 1px solid rgba(33, 30, 36, 0.12);
  background: #fffdfa;
}

.admin-message-row {
  border-bottom: 1px solid rgba(33, 30, 36, 0.1);
}

.admin-message-row:last-child {
  border-bottom: 0;
}

.admin-message-row > summary {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1.4fr) 90px auto 24px;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.admin-message-row > summary::-webkit-details-marker {
  display: none;
}

.admin-message-row > summary:hover,
.admin-message-row > summary:focus-visible,
.admin-message-row[open] > summary {
  background: #faf6f1;
}

.admin-message-person {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-message-person strong,
.admin-message-person small,
.admin-message-subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-message-person small {
  color: rgba(33, 30, 36, 0.52);
  font-size: 0.72rem;
}

.admin-message-subject {
  font-size: 0.85rem;
}

.admin-message-row time {
  color: rgba(33, 30, 36, 0.52);
  font-size: 0.74rem;
  white-space: nowrap;
}

.message-state {
  padding: 5px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.message-state.is-pending {
  background: rgba(142, 92, 28, 0.1);
  color: #80531c;
}

.message-state.is-done {
  background: rgba(47, 116, 67, 0.1);
  color: #2f7443;
}

.admin-message-chevron {
  color: rgba(33, 30, 36, 0.45);
  transition: transform 160ms ease;
}

.admin-message-row[open] .admin-message-chevron {
  transform: rotate(180deg);
}

.admin-message-row.is-handled > summary {
  color: rgba(33, 30, 36, 0.68);
}

.admin-message-content {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(33, 30, 36, 0.08);
  background: #fffdfa;
}

.admin-message-content > p {
  max-width: 760px;
  margin: 18px 0;
  color: rgba(33, 30, 36, 0.78);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.admin-message-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.admin-message-actions form {
  margin: 0;
}

.admin-filter-tabs a span {
  display: inline-flex;
  min-width: 22px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  background: rgba(33, 30, 36, 0.06);
  font-size: 0.66rem;
}

.admin-media-upload {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.admin-media-upload-action {
  padding-top: 29px;
}

.admin-media-upload-action .btn {
  min-height: 48px;
  white-space: nowrap;
}

.admin-work-section {
  margin-top: 30px;
}

.admin-work-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.admin-work-heading h2 {
  margin: 0;
  color: #211e24;
  font-size: 1.35rem;
}

.admin-work-heading p {
  max-width: 760px;
  margin: 5px 0 0;
  color: rgba(33, 30, 36, 0.6);
  font-family: var(--font-ui);
  font-size: 0.82rem;
}

.admin-media-upload .form-group {
  margin: 0;
}

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.admin-media-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(33, 30, 36, 0.12);
  background: #fffdfa;
}

.admin-media-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.admin-media-card-body {
  padding: 11px;
}

.admin-media-rename {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  gap: 6px;
}

.admin-media-rename input {
  min-width: 0;
  height: 42px;
  padding: 8px 10px;
  font-size: 0.76rem;
}

.admin-hero-list {
  display: grid;
  gap: 12px;
}

.admin-hero-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(33, 30, 36, 0.1);
}

.admin-hero-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-hero-preview {
  display: grid;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  background: rgba(33, 30, 36, 0.06);
  color: rgba(33, 30, 36, 0.4);
}

.admin-hero-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-hero-row > div:last-child {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.admin-hero-row label {
  font-weight: 700;
}

@media (max-width: 720px) {
  .admin-media-upload {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-media-upload .btn {
    width: 100%;
  }

  .admin-media-upload-action {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .admin-message-row > summary {
    grid-template-columns: minmax(0, 1fr) auto 24px;
    gap: 8px 12px;
    padding: 14px;
  }

  .admin-message-subject {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .admin-message-row time {
    grid-column: 1;
    grid-row: 3;
  }

  .message-state {
    grid-column: 2;
    grid-row: 1;
  }

  .admin-message-chevron {
    grid-column: 3;
    grid-row: 1;
  }

  .admin-message-content {
    padding: 0 14px 14px;
  }
}

@media (max-width: 520px) {
  .admin-message-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .admin-message-actions > .btn,
  .admin-message-actions form:not(:last-child),
  .admin-message-actions form:not(:last-child) .btn {
    width: 100%;
  }

  .admin-message-actions > .btn {
    grid-column: 1;
    grid-row: 1;
  }

  .admin-message-actions form:not(:last-child) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .admin-message-actions form:last-child {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 520px) {
  .admin-simple-row,
  .admin-message-card > header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-simple-actions {
    justify-content: space-between;
  }

  .admin-message-card time {
    white-space: normal;
  }

  .admin-message-card footer .btn {
    min-width: 0;
    flex: 1 1 auto;
  }

  .admin-hero-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

/* Priorite finale : ecrans de gestion simplifies */
.admin-body .admin-color-grid {
  grid-template-columns: minmax(220px, 1fr) 120px;
}

.admin-color-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-color-remove {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(33, 30, 36, 0.58);
  cursor: pointer;
}

.admin-color-remove:hover,
.admin-color-remove:focus-visible {
  background: rgba(95, 23, 51, 0.08);
  color: var(--primary);
}

.admin-color-advanced {
  margin-top: 14px;
  border-top: 1px solid rgba(33, 30, 36, 0.1);
}

.admin-color-advanced summary {
  padding: 13px 0 0;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-color-advanced summary span {
  color: rgba(33, 30, 36, 0.5);
  font-weight: 500;
}

.admin-color-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 16px;
}

.admin-filter-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.admin-order-search {
  margin: 0 0 18px;
}

.admin-order-search > label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-order-search > div {
  display: flex;
  align-items: stretch;
  max-width: 780px;
}

.admin-order-search .material-icons {
  display: grid;
  width: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgba(33, 30, 36, 0.16);
  border-right: 0;
  color: rgba(33, 30, 36, 0.55);
}

.admin-order-search input {
  min-width: 0;
  flex: 1 1 auto;
  border-right: 0;
}

.admin-order-search .btn {
  flex: 0 0 auto;
}

.admin-filter-tabs a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-bottom: 2px solid transparent;
  color: rgba(33, 30, 36, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-filter-tabs a:hover,
.admin-filter-tabs a:focus-visible,
.admin-filter-tabs a.is-active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.admin-order-list {
  border: 1px solid rgba(33, 30, 36, 0.12);
  background: #fffdfa;
}

.admin-order-row {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 150px auto 120px 24px;
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(33, 30, 36, 0.1);
  color: #211e24;
  text-decoration: none;
}

.admin-order-row:last-child {
  border-bottom: 0;
}

.admin-order-row:hover,
.admin-order-row:focus-visible {
  background: #faf6f1;
}

.admin-order-row > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-order-row > div span {
  overflow: hidden;
  color: rgba(33, 30, 36, 0.58);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-order-row > div small {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-order-row time {
  color: rgba(33, 30, 36, 0.58);
  font-size: 0.78rem;
}

.admin-order-total {
  color: var(--secondary);
  text-align: right;
  white-space: nowrap;
}

.admin-order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  gap: 22px;
  align-items: start;
}

.admin-order-main {
  display: grid;
  min-width: 0;
  gap: 20px;
}

.admin-order-items,
.admin-order-totals,
.admin-order-info {
  display: grid;
}

.admin-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(33, 30, 36, 0.1);
}

.admin-order-item > div {
  display: grid;
  gap: 3px;
}

.admin-order-item > div span {
  color: rgba(33, 30, 36, 0.58);
  font-size: 0.8rem;
}

.admin-order-totals {
  justify-content: end;
  gap: 8px;
  padding-top: 16px;
}

.admin-order-totals > span {
  display: flex;
  min-width: 250px;
  justify-content: space-between;
  gap: 28px;
}

.admin-order-totals .is-total {
  padding-top: 10px;
  border-top: 1px solid rgba(33, 30, 36, 0.14);
  font-size: 1.08rem;
}

.admin-order-info {
  gap: 14px;
  margin: 0;
}

.admin-order-info div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
}

.admin-order-info dt {
  color: rgba(33, 30, 36, 0.56);
}

.admin-order-info dd {
  margin: 0;
}

.admin-order-status-card {
  position: sticky;
  top: 94px;
}

.admin-order-status-card .btn {
  width: 100%;
  margin-top: 10px;
}

.admin-pickup-workflow {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(33, 30, 36, 0.1);
}

.admin-pickup-workflow form {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-pickup-workflow label {
  color: var(--secondary);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-pickup-workflow input {
  width: 100%;
  min-height: 46px;
}

.admin-order-payment-info dd {
  overflow-wrap: anywhere;
}

.admin-order-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-order-current-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(33, 30, 36, 0.1);
}

.admin-order-current-status > span {
  color: rgba(33, 30, 36, 0.6);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .admin-order-row {
    grid-template-columns: minmax(0, 1fr) auto 24px;
  }

  .admin-order-row time {
    display: none;
  }

  .admin-order-row .order-status {
    grid-column: 1;
  }

  .admin-order-total {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .admin-order-row > .material-icons {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .admin-order-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-order-status-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .admin-order-search > div {
    flex-wrap: wrap;
  }

  .admin-order-search input {
    min-height: 48px;
  }

  .admin-order-search .btn {
    flex: 1 1 50%;
    margin-top: 8px;
  }

  .admin-body .admin-color-grid,
  .admin-color-media-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-color-grid .form-group:last-child {
    max-width: 120px;
  }

  .admin-order-row {
    gap: 10px;
    padding: 15px;
  }

  .admin-order-row > div span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .admin-order-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
  }

  .admin-order-item > strong {
    grid-column: 2;
  }

  .admin-order-totals,
  .admin-order-totals > span {
    width: 100%;
    min-width: 0;
  }

  .admin-order-info div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
}

/* ===== INTERFACE ATELIER ADMIN ===== */

.admin-body {
  min-height: 100vh;
  background: #f5f2ee;
  color: #211e24;
  font-family: var(--font-ui);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1500;
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 24px;
  padding: 10px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid rgba(33, 30, 36, 0.12);
  background: #fffdfa;
  box-shadow: 0 8px 26px rgba(33, 30, 36, 0.05);
}

.admin-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: #211e24;
  text-decoration: none;
}

.admin-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-brand span {
  display: grid;
  line-height: 1.15;
}

.admin-brand strong {
  font-family: var(--font-heading);
  font-size: 1rem;
}

.admin-brand small {
  margin-top: 3px;
  color: rgba(33, 30, 36, 0.55);
  font-size: 0.68rem;
}

.admin-navigation {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-primary-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 3px;
}

.admin-primary-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
  color: rgba(33, 30, 36, 0.68);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.admin-primary-nav a .material-icons {
  font-size: 18px;
}

.admin-primary-nav a:hover,
.admin-primary-nav a:focus-visible,
.admin-primary-nav a.is-active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.admin-account-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.admin-account-actions form {
  margin: 0;
}

.admin-icon-action,
.admin-nav-toggle {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(33, 30, 36, 0.68);
  cursor: pointer;
  text-decoration: none;
}

.admin-icon-action:hover,
.admin-icon-action:focus-visible,
.admin-nav-toggle:hover,
.admin-nav-toggle:focus-visible {
  background: rgba(95, 23, 51, 0.07);
  color: var(--primary);
}

.admin-nav-toggle {
  display: none;
  margin-left: auto;
}

.admin-site-link {
  margin-left: auto;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-main {
  width: 100%;
  min-width: 0;
}

.admin-main .section,
.admin-main .admin-section {
  padding: clamp(28px, 4vw, 52px) 0;
  background: transparent;
}

.admin-main .container {
  max-width: 1280px;
}

.admin-main .admin-narrow {
  max-width: 760px;
}

.admin-dashboard-hero {
  padding: 0 0 24px;
  margin-bottom: 24px;
  border: 0;
  border-bottom: 1px solid rgba(33, 30, 36, 0.12);
  background: transparent;
  box-shadow: none;
}

.admin-dashboard-hero h1,
.admin-page-head h1,
.admin-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
}

.admin-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-dashboard-card {
  min-height: 210px;
  padding: 22px;
  border-radius: 4px;
  box-shadow: none;
}

.admin-card-icon {
  color: var(--primary);
  font-size: 27px;
}

.admin-quick-actions,
.admin-form-card,
.admin-table-card {
  border-radius: 4px;
  box-shadow: none;
}

.admin-page-intro {
  margin-top: 6px;
  color: rgba(33, 30, 36, 0.62);
  font-size: 0.88rem;
}

.admin-product-list-card {
  overflow: hidden;
}

.admin-product-list {
  display: grid;
}

.admin-product-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(270px, auto) auto;
  gap: 22px;
  align-items: center;
  min-width: 0;
  padding: 18px 22px;
  border-top: 1px solid rgba(33, 30, 36, 0.1);
  background: #fffdfa;
}

.admin-product-row:hover {
  background: #faf6f1;
}

.admin-product-summary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.admin-product-summary .product-thumb,
.admin-product-summary .product-thumb-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 2px;
  object-fit: cover;
}

.admin-product-summary .product-info {
  padding: 0;
}

.admin-product-summary .product-name {
  overflow-wrap: anywhere;
}

.admin-product-data {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-product-data .price-cell {
  min-width: 84px;
  color: var(--secondary);
  text-align: left;
  white-space: nowrap;
}

.admin-product-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.admin-product-editor {
  display: flex;
  max-width: 1080px;
  flex-direction: column;
}

.admin-product-editor > .admin-form-card.admin-editor-block {
  order: 2;
  margin-bottom: 20px;
}

.admin-product-editor > .product-edit-form {
  order: 3;
}

.admin-body--login .admin-main {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
}

.admin-body--login .admin-main > .section {
  width: 100%;
}

@media (max-width: 1120px) {
  .admin-topbar {
    flex-wrap: wrap;
  }

  .admin-nav-toggle {
    display: inline-flex;
  }

  .admin-navigation {
    display: none;
    width: 100%;
    flex-basis: 100%;
    align-items: stretch;
    flex-direction: column;
    padding: 8px 0 4px;
  }

  .admin-navigation.is-open {
    display: flex;
  }

  .admin-primary-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-primary-nav a {
    width: 100%;
  }

  .admin-account-actions {
    padding-top: 8px;
    border-top: 1px solid rgba(33, 30, 36, 0.1);
  }

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

  .admin-product-row {
    grid-template-columns: minmax(250px, 1fr) auto;
  }

  .admin-product-data {
    justify-content: flex-end;
  }

  .admin-product-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 680px) {
  .admin-topbar {
    min-height: 64px;
    padding: 8px 12px;
  }

  .admin-brand small {
    display: none;
  }

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

  .admin-primary-nav a {
    min-height: 46px;
  }

  .admin-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard-card {
    min-height: 0;
  }

  .admin-product-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .admin-product-data {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .admin-product-actions {
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-product-actions .btn-action,
  .admin-product-actions form,
  .admin-product-actions button {
    width: 100%;
  }
}

/* ===== PANIER ÉDITORIAL RESPONSIVE ===== */

.cart-page {
  padding: clamp(34px, 5vw, 64px) 0 clamp(56px, 7vw, 88px);
}

.cart-page .cart-content {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.75fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  margin-top: 0;
}

.cart-items-panel {
  min-width: 0;
  border: 1px solid rgba(95, 23, 51, 0.13);
  background: #fffdfa;
}

.cart-list-heading {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  padding: 22px 24px 20px;
  border-bottom: 1px solid rgba(95, 23, 51, 0.16);
}

.cart-list-kicker {
  margin: 0 0 4px;
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-list-heading h2 {
  margin: 0;
  color: var(--secondary);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.cart-list-count {
  flex: 0 0 auto;
  color: rgba(23, 21, 28, 0.58);
  font-family: var(--font-ui);
  font-size: 0.8rem;
}

.cart-page .cart-items-list {
  display: block;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(100px, auto) minmax(290px, auto);
  gap: clamp(18px, 2.4vw, 32px);
  align-items: center;
  min-width: 0;
  padding: 24px;
  background: #fffdfa;
}

.cart-line + .cart-line {
  border-top: 1px solid rgba(95, 23, 51, 0.12);
}

.cart-line-product {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.cart-line-image-link {
  display: block;
  width: 96px;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-2);
}

.cart-line .cart-product-image {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.cart-line .cart-item-main {
  gap: 9px;
}

.cart-line .cart-item-name {
  width: fit-content;
  color: var(--secondary);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.cart-line-options {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 3px 8px;
}

.cart-line-option {
  display: contents;
  color: rgba(23, 21, 28, 0.72);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  line-height: 1.45;
}

.cart-line-option > span {
  color: rgba(23, 21, 28, 0.48);
  white-space: nowrap;
}

.cart-line-option > span::after {
  content: ":";
}

.cart-line-option > strong {
  min-width: 0;
  color: rgba(23, 21, 28, 0.78);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.cart-line-price,
.cart-line-quantity {
  display: grid;
  gap: 7px;
}

.cart-line-price > span,
.cart-line-quantity > span {
  color: rgba(23, 21, 28, 0.48);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-line-price strong {
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 1rem;
  white-space: nowrap;
}

.cart-line .quantity-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

.cart-line .quantity-input::-webkit-inner-spin-button,
.cart-line .quantity-input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.cart-line-controls {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: flex-end;
  min-width: 0;
}

.cart-line-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.cart-line .cart-action-edit {
  min-height: 44px;
  max-width: 156px;
  padding: 8px 12px;
  font-size: 0.78rem;
  line-height: 1.25;
}

.cart-line .cart-action-delete {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(95, 23, 51, 0.18);
  border-radius: 50%;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  transition: var(--transition);
}

.cart-line .cart-action-delete .material-icons {
  font-size: 1.2rem;
}

.cart-line .cart-action-delete:hover,
.cart-line .cart-action-delete:focus-visible {
  border-color: rgba(164, 55, 52, 0.38);
  background: rgba(164, 55, 52, 0.07);
  color: #a43734;
}

.cart-page .cart-summary {
  top: 92px;
  padding: 28px;
  border-color: rgba(95, 23, 51, 0.14);
  background: #fffdfa;
}

@media (max-width: 1180px) {
  .cart-page .cart-content {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 760px) {
  .cart-list-heading {
    padding: 19px 18px 17px;
  }

  .cart-line {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 14px;
    padding: 20px 18px;
  }

  .cart-line-product {
    grid-column: 1 / -1;
  }

  .cart-line-price {
    align-self: end;
  }

  .cart-line-controls {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .cart-page {
    padding-top: 24px;
  }

  .cart-list-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .cart-line {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-line-product {
    grid-column: auto;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
  }

  .cart-line-image-link {
    width: 84px;
  }

  .cart-line-price {
    grid-template-columns: auto 1fr;
    align-items: baseline;
  }

  .cart-line-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-line-quantity,
  .cart-line .cart-qty-control {
    width: 100%;
  }

  .cart-line .cart-qty-control {
    grid-template-columns: 48px minmax(58px, 1fr) 48px;
  }

  .cart-line .cart-qty-btn,
  .cart-line .cart-qty-control .quantity-input {
    width: 100%;
    min-height: 48px;
  }

  .cart-line-actions {
    justify-content: stretch;
  }

  .cart-line .cart-action-edit {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-height: 48px;
  }

  .cart-line .cart-action-delete {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .cart-page .cart-summary {
    padding: 22px 18px;
  }
}

/* ===== NAVIGATION ET RYTHME MOBILE ===== */
body.menu-open {
  overflow: hidden;
}

.mobile-nav-header,
.mobile-menu-backdrop {
  display: none;
}

@media (max-width: 800px) {
  .header-container {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    min-height: 64px;
    padding: 8px 12px;
  }

  .header-left {
    display: contents;
  }

  .header-left .logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    max-width: 100%;
    gap: 8px;
  }

  .burger {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--secondary);
  }

  .header-right {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
  }

  .header-left .logo-img {
    width: 44px;
    height: 44px;
  }

  .header-left .logo-title {
    max-width: none;
    font-size: 14px;
    white-space: nowrap;
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2100;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 13, 19, 0.48);
  }

  .mobile-menu-backdrop:not([hidden]) {
    display: block;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 2200;
    width: min(88vw, 360px);
    height: 100vh;
    height: 100dvh;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fffaf4;
    border-right: 1px solid rgba(95, 23, 51, 0.18);
    box-shadow: 18px 0 52px rgba(15, 13, 19, 0.18);
    opacity: 1;
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
  }

  .mobile-nav.open {
    display: flex;
    pointer-events: auto;
    transform: translateX(0);
  }

  .mobile-nav-header {
    display: flex;
    min-height: 64px;
    padding: 10px 14px 10px 20px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(95, 23, 51, 0.14);
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
  }

  .mobile-nav-close {
    display: inline-flex;
    width: 42px;
    height: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--secondary);
    cursor: pointer;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 14px 20px 28px;
  }

  .mobile-nav-links a {
    margin: 0;
    padding: 16px 4px;
    border-bottom: 1px solid rgba(95, 23, 51, 0.12);
    color: var(--secondary);
    font-size: 20px;
  }

  .mobile-nav-links a:hover,
  .mobile-nav-links a:focus-visible {
    background: transparent;
    color: var(--primary);
  }

  .mobile-nav-admin {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(95, 23, 51, 0.22);
  }

  .mobile-nav-admin-label {
    display: block;
    padding: 0 4px 7px;
    color: var(--primary);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .mobile-nav-admin form {
    margin: 0;
  }

  .mobile-admin-logout {
    display: block;
    width: 100%;
    margin: 0;
    padding: 16px 4px;
    border: 0;
    border-bottom: 1px solid rgba(95, 23, 51, 0.12);
    background: transparent;
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }

  .mobile-admin-logout:hover,
  .mobile-admin-logout:focus-visible {
    color: var(--primary);
  }

  .home-intro-top {
    padding-top: 32px;
    padding-bottom: 42px;
  }

  .home-intro-top .section-heading-inline {
    margin-bottom: 20px;
  }

  .home-intro-top .products-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 0;
  }

  .home-intro-top .product-image-wrapper {
    height: min(88vw, 360px);
  }

  .home-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin: 24px auto 0;
  }

  .home-actions .btn,
  .home-about .btn,
  .home-contact-cta .btn {
    width: 100%;
    margin-top: 0;
    white-space: normal;
  }

  .home-about,
  .home-contact-cta {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .home-about .two-col {
    gap: 26px;
  }

  .home-about h2,
  .home-contact-cta h2 {
    margin-bottom: 16px;
  }

  .home-contact-cta p {
    margin-bottom: 22px;
  }

  main:has(.home-page) + footer {
    margin-top: 0;
  }

  .page-hero-title {
    max-width: 100%;
    font-size: clamp(2.05rem, 9vw, 2.45rem);
    line-height: 1.06;
  }
}

/* Performance Lighthouse: hero image discoverable */
.page-hero--with-media {
  position: relative;
  overflow: hidden;
  background-image: none !important;
  background-color: #17151c;
}

.page-hero--with-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(15, 13, 19, 0.68) 0%,
    rgba(15, 13, 19, 0.38) 52%,
    rgba(15, 13, 19, 0.12) 100%
  );
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.atelier-visual picture,
.atelier-visual picture img {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 800px) {
  .page-hero--with-media::before {
    background: linear-gradient(
      180deg,
      rgba(15, 13, 19, 0.72) 0%,
      rgba(15, 13, 19, 0.38) 100%
    );
  }

  .page-hero-media img {
    object-position: center 44%;
  }
}

/* ===== Tailles produits et ajustements panier ===== */
.product-sizes-block {
  margin: 22px 0;
}

.product-sizes-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-ui);
}

.product-current-size {
  color: var(--gray-600);
  font-size: 0.92rem;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-pill {
  display: inline-flex;
  cursor: pointer;
}

.size-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-pill span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(95, 23, 51, 0.22);
  background: #fffdfa;
  color: var(--secondary);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.size-pill input:checked + span {
  border-color: var(--primary);
  background: var(--secondary);
  color: #fff;
}

.size-pill:focus-within span {
  outline: 2px solid rgba(95, 23, 51, 0.25);
  outline-offset: 2px;
}

.admin-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.admin-choice-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(95, 23, 51, 0.16);
  background: #fffdfa;
  font-family: var(--font-ui);
  font-weight: 600;
  cursor: pointer;
}

.admin-choice-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.cart-table .cart-action-edit {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.product-choice-btn {
  width: 100%;
}

@media (max-width: 800px) {
  .size-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .size-pill span,
  .product-choice-btn {
    width: 100%;
  }

  .admin-choice-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== VERROU RESPONSIVE FINAL ===== */

img,
svg,
video {
  max-width: 100%;
}

.logo,
.logo-text,
.header-left,
.header-right,
.product-card,
.product-footer,
.order-item-main,
.cart-item-main,
.checkout-content,
.cart-content {
  min-width: 0;
}

.logo-title,
.mini-cart-item-name,
.item-name {
  overflow-wrap: anywhere;
}

.btn,
.filter-btn,
.product-request-btn,
.add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  line-height: 1.2;
  text-align: center;
}

.product-card:hover img.product-image {
  transform: scale(1.06);
}

.product-price,
.summary-row span:last-child,
.item-price {
  white-space: nowrap;
}

.cart-table-wrapper {
  max-width: 100%;
}

.cart-action-edit,
.cart-action-delete {
  white-space: normal;
}

.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.summary-row {
  gap: 16px;
}

@media (max-width: 800px) {
  .btn,
  .btn-large,
  .btn-small,
  .filter-btn,
  .product-request-btn {
    white-space: normal;
  }

  .header-container {
    gap: 8px;
  }

  .logo {
    gap: 8px;
  }

  .logo-img {
    height: 44px;
    flex: 0 0 auto;
  }

  .logo-title {
    max-width: 156px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .filter-group,
  .filter-group-price {
    min-width: 0;
    width: 100%;
  }

  .filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
    width: 100%;
  }

  .filter-actions .filter-btn {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  }

  .cart-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cart-table {
    min-width: 660px;
  }

  .order-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .item-price {
    justify-self: start;
    margin-left: 76px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 14px;
  }

  .logo-title {
    max-width: 128px;
  }

  .catalog-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .catalog-switcher a,
  .filter-actions .filter-btn,
  .cart-actions .btn {
    min-height: 44px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image-wrapper {
    height: 260px;
  }

  .cart-table {
    min-width: 620px;
  }

  .cart-qty-control {
    grid-template-columns: 44px 62px 44px;
  }

  .cart-qty-btn {
    width: 44px;
    min-height: 48px;
  }

  .cart-qty-control .quantity-input {
    height: 48px;
  }

  .checkout-form,
  .checkout-summary,
  .cart-summary {
    padding: 18px 14px;
  }

  .checkout-terms-label {
    padding: 13px 12px;
  }

  .mini-cart {
    right: 8px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }
}

/* ===== AUDIT PARCOURS + RESPONSIVE ===== */

img,
svg,
video {
  max-width: 100%;
}

.logo,
.logo-text,
.header-left,
.header-right,
.product-card,
.order-item-main,
.cart-item-main {
  min-width: 0;
}

.logo-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn,
.filter-btn,
.product-request-btn,
.add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  line-height: 1.2;
  text-align: center;
}

.product-card:hover img.product-image {
  transform: scale(1.06);
}

.product-footer {
  min-width: 0;
}

.product-price {
  white-space: nowrap;
}

.product-card-color-label-row,
.product-card-colors,
.color-options {
  min-width: 0;
}

.cart-table-wrapper {
  max-width: 100%;
}

.cart-table {
  width: 100%;
}

.cart-table .product-cell {
  min-width: min(280px, 48vw);
}

.cart-action-edit,
.cart-action-delete {
  white-space: normal;
}

.checkout-content,
.cart-content {
  min-width: 0;
}

.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.order-item-text,
.item-name {
  min-width: 0;
}

.item-name {
  overflow-wrap: anywhere;
}

.summary-row {
  gap: 16px;
}

.summary-row span:first-child {
  min-width: 0;
}

.summary-row span:last-child,
.item-price {
  white-space: nowrap;
}

.mini-cart-item-name {
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .btn,
  .btn-large,
  .btn-small,
  .filter-btn,
  .product-request-btn {
    white-space: normal;
  }

  .header-container {
    gap: 8px;
  }

  .logo {
    gap: 8px;
  }

  .logo-img {
    height: 44px;
    flex: 0 0 auto;
  }

  .logo-title {
    max-width: 156px;
  }

  .filter-group,
  .filter-group-price {
    min-width: 0;
    width: 100%;
  }

  .filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
  }

  .filter-actions .filter-btn {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  }

  .product-price {
    font-size: 18px;
  }

  .cart-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cart-table {
    min-width: 660px;
  }

  .checkout-content {
    gap: 18px;
  }

  .order-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .item-price {
    justify-self: start;
    margin-left: 76px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 14px;
  }

  .logo-title {
    max-width: 128px;
  }

  .catalog-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .catalog-switcher a,
  .filter-actions .filter-btn,
  .cart-actions .btn {
    min-height: 44px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image-wrapper {
    height: 260px;
  }

  .cart-table {
    min-width: 620px;
  }

  .cart-qty-control {
    grid-template-columns: 44px 62px 44px;
  }

  .cart-qty-btn {
    width: 44px;
    min-height: 48px;
  }

  .cart-qty-control .quantity-input {
    height: 48px;
  }

  .checkout-form,
  .checkout-summary,
  .cart-summary {
    padding: 18px 14px;
  }

  .checkout-terms-label {
    padding: 13px 12px;
  }

  .mini-cart {
    right: 8px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }
}

/* Admin et visuels client */
.page-hero {
  color: #19151a;
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 250, 244, 0.93) 0%,
      rgba(255, 250, 244, 0.78) 42%,
      rgba(255, 250, 244, 0.2) 100%
    ),
    var(--hero-image, url("../uploads/atelier-fils-ciseaux.jpg"));
  background-position: center 48%;
}

.page-hero-kicker {
  color: rgba(25, 21, 26, 0.7);
}

.page-hero-kicker::before {
  background: rgba(95, 23, 51, 0.42);
}

.page-hero-title {
  color: #19151a;
  text-shadow: none;
}

.page-hero-subtitle {
  color: rgba(25, 21, 26, 0.76);
}

.page-hero--home {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 250, 244, 0.95) 0%,
      rgba(255, 250, 244, 0.72) 45%,
      rgba(255, 250, 244, 0.16) 100%
    ),
    var(--hero-image, url("../uploads/atelier-outils-couture-800.jpg"));
  background-position: center 50%;
}

.admin-section {
  background: linear-gradient(180deg, #fffaf4 0%, #f7efe7 100%);
}

.admin-dashboard-hero,
.admin-quick-actions,
.admin-form-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(25, 21, 26, 0.1);
  box-shadow: 0 18px 42px rgba(31, 25, 20, 0.08);
}

.admin-dashboard-hero {
  padding: clamp(28px, 4vw, 46px);
  margin-bottom: 28px;
}

.admin-dashboard-hero h1,
.admin-page-head h1 {
  margin: 0 0 10px;
  color: #19151a;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.admin-dashboard-hero p,
.admin-page-head p,
.admin-quick-actions p,
.field-help {
  color: rgba(25, 21, 26, 0.68);
}

.admin-eyebrow {
  margin: 0 0 10px;
  color: #7c2546;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.admin-dashboard-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  color: #19151a;
  text-decoration: none;
  background: #fffdf9;
  border: 1px solid rgba(25, 21, 26, 0.1);
  box-shadow: 0 12px 26px rgba(31, 25, 20, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.admin-dashboard-card:hover,
.admin-dashboard-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(124, 37, 70, 0.36);
  box-shadow: 0 18px 34px rgba(31, 25, 20, 0.1);
}

.admin-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.1;
}

.admin-card-text {
  color: rgba(25, 21, 26, 0.68);
  font-size: 0.94rem;
  line-height: 1.6;
}

.admin-card-action {
  margin-top: auto;
  color: #7c2546;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-quick-actions {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding: 24px;
}

.admin-quick-actions h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-logout-row {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid rgba(25, 21, 26, 0.12);
}

.admin-narrow {
  max-width: 720px;
}

.admin-page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.admin-form-card {
  padding: clamp(22px, 4vw, 34px);
}

.admin-hero-table {
  width: 100%;
  min-width: 760px;
}

.admin-hero-table td,
.admin-hero-table th {
  vertical-align: middle;
}

.admin-hero-table select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(25, 21, 26, 0.16);
  background: #fffdf9;
  color: #19151a;
  font: inherit;
}

.admin-hero-thumb {
  width: 150px;
  height: 68px;
  object-fit: cover;
  border: 1px solid rgba(25, 21, 26, 0.12);
}

.admin-code {
  color: rgba(25, 21, 26, 0.64);
  font-family: var(--font-ui);
  font-size: 0.86rem;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.field-help {
  margin: 8px 0 0;
  font-size: 0.85rem;
}

.alert-success {
  background: rgba(45, 125, 86, 0.1);
  border-color: rgba(45, 125, 86, 0.3);
  color: #245f42;
}

.alert-error {
  background: rgba(180, 39, 53, 0.1);
  border-color: rgba(180, 39, 53, 0.3);
  color: #8d1f2b;
}

@media (max-width: 800px) {
  .page-hero,
  .page-hero--home {
    background-image:
      linear-gradient(
        180deg,
        rgba(255, 250, 244, 0.94) 0%,
        rgba(255, 250, 244, 0.72) 100%
      ),
      var(--hero-image, url("../uploads/atelier-fils-ciseaux.jpg"));
  }

  .admin-quick-actions,
  .admin-page-head {
    flex-direction: column;
  }

  .admin-action-row,
  .admin-action-row .btn,
  .admin-page-head .btn {
    width: 100%;
  }
}

/* Boutique / realisations */
.catalog-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(25, 21, 26, 0.1);
}

.catalog-switcher a {
  padding: 10px 16px;
  color: rgba(25, 21, 26, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.catalog-switcher a.active {
  color: #fffaf4;
  background: #19151a;
}

.catalog-intro {
  max-width: 680px;
  margin-bottom: 24px;
  color: rgba(25, 21, 26, 0.72);
  font-size: 1rem;
  line-height: 1.7;
}

.product-card-badge,
.product-mode-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(25, 21, 26, 0.12);
  color: #19151a;
  background: rgba(255, 250, 244, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
}

.product-mode-badge {
  margin-left: 12px;
  vertical-align: middle;
}

.product-mode-badge-made_to_order,
.status-pill-made_to_order {
  color: #6b2c49;
  background: rgba(124, 37, 70, 0.1);
  border-color: rgba(124, 37, 70, 0.22);
}

.product-request-btn {
  white-space: nowrap;
}

.stock-status .made-to-order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b2c49;
  font-weight: 700;
}

.product-request-panel {
  padding: 20px;
  margin: 22px 0;
  background: #fffdf9;
  border: 1px solid rgba(25, 21, 26, 0.1);
}

.product-request-panel p {
  margin: 0 0 16px;
  color: rgba(25, 21, 26, 0.72);
  line-height: 1.7;
}

.product-request-panel .btn,
.product-request-panel .btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  line-height: 1.2;
  text-align: center;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stock-badge-neutral {
  color: rgba(25, 21, 26, 0.7);
  background: rgba(25, 21, 26, 0.06);
}

/* Admin produit : coloris et photos */
.admin-product-editor {
  max-width: 1040px;
}

.product-edit-form {
  display: grid;
  gap: 28px;
}

.admin-editor-block {
  display: grid;
  gap: 18px;
}

.admin-editor-block h2 {
  margin: 0;
  color: #19151a;
  font-size: 1.25rem;
}

.admin-block-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.admin-block-heading p {
  margin: 6px 0 0;
  color: rgba(25, 21, 26, 0.66);
}

.admin-inline-note {
  padding: 14px 16px;
  color: #6b2c49;
  background: rgba(124, 37, 70, 0.08);
  border: 1px solid rgba(124, 37, 70, 0.18);
}

.admin-color-list {
  display: grid;
  gap: 16px;
}

.admin-color-card {
  padding: 18px;
  background: #fffdf9;
  border: 1px solid rgba(25, 21, 26, 0.1);
}

.admin-color-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.admin-color-card-title {
  font-weight: 800;
  color: #19151a;
}

.admin-color-preview {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(25, 21, 26, 0.2);
}

.admin-color-grid {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.1fr) minmax(96px, 0.5fr) minmax(180px, 1fr)
    minmax(180px, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-color-grid input[type="color"] {
  min-height: 44px;
  padding: 4px;
  cursor: pointer;
}

.admin-media-preview {
  width: 86px;
  height: 64px;
  margin-top: 8px;
  background: rgba(25, 21, 26, 0.04);
  border: 1px solid rgba(25, 21, 26, 0.1);
}

.admin-media-preview:empty {
  display: none;
}

.admin-media-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.admin-product-image-card {
  position: relative;
  overflow: hidden;
  background: #fffdf9;
  border: 1px solid rgba(25, 21, 26, 0.1);
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.admin-product-image-card[draggable="true"] {
  cursor: grab;
}

.admin-product-image-card[draggable="true"]:active {
  cursor: grabbing;
}

.admin-product-image-card.is-dragging {
  opacity: 0.55;
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(25, 21, 26, 0.14);
}

.admin-product-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.admin-image-primary {
  position: absolute;
  top: 46px;
  right: 8px;
  padding: 5px 8px;
  color: #fffaf4;
  background: #19151a;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-image-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
}

.admin-image-move-actions {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.admin-image-actions .admin-image-move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--secondary);
  border: 1px solid rgba(95, 23, 51, 0.18);
  background: #fff;
}

.admin-image-actions .admin-image-move:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.admin-image-actions .admin-image-move .material-icons {
  font-size: 19px;
}

.admin-image-actions form {
  margin: 0;
}

.admin-image-actions button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.admin-image-order-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.admin-image-order-form .btn {
  min-width: 210px;
}

@media (max-width: 560px) {
  .admin-product-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-image-order-form .btn {
    width: 100%;
  }
}

.admin-upload-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.admin-upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.admin-upload-preview-item {
  min-height: 96px;
  color: #8d1f2b;
  background: rgba(180, 39, 53, 0.08);
  border: 1px solid rgba(180, 39, 53, 0.2);
  font-size: 0.8rem;
}

.admin-upload-preview-item img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
}

@media (max-width: 800px) {
  .catalog-switcher {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .catalog-switcher a {
    text-align: center;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-block-heading {
    flex-direction: column;
  }

  .admin-color-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== REPRISE HERO CLAIR / NOTICES / PANIER CHECKOUT ===== */

.page-hero {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 250, 244, 0.94) 0%,
      rgba(255, 250, 244, 0.82) 38%,
      rgba(255, 250, 244, 0.34) 68%,
      rgba(255, 250, 244, 0.08) 100%
    ),
    var(--hero-image, url("../uploads/couture-hero-1600.jpg"));
  color: var(--secondary);
  border-top: 1px solid rgba(95, 23, 51, 0.08);
  border-bottom: 1px solid rgba(95, 23, 51, 0.16);
}

.page-hero::after {
  background: rgba(95, 23, 51, 0.18);
}

.page-hero-kicker {
  color: var(--primary);
}

.page-hero-kicker::before {
  background: var(--primary);
}

.page-hero-title {
  color: var(--secondary);
  text-shadow: none;
}

.page-hero-subtitle {
  color: rgba(23, 21, 28, 0.74);
}

.page-hero--home {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 250, 244, 0.96) 0%,
      rgba(255, 250, 244, 0.82) 40%,
      rgba(255, 250, 244, 0.26) 72%,
      rgba(255, 250, 244, 0.05) 100%
    ),
    var(--hero-image, url("../uploads/couture-hero-1600.jpg"));
}

.shop-notice-region {
  position: fixed;
  top: 92px;
  left: 50%;
  z-index: 2100;
  width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.shop-notice-region .toast-message {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 13px 16px 13px 44px;
  border-radius: 0;
  border: 1px solid rgba(95, 23, 51, 0.2);
  background: #fffdfa;
  color: var(--secondary);
  box-shadow: 0 18px 42px rgba(24, 21, 27, 0.13);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  position: relative;
}

.shop-notice-region .toast-message::before {
  content: "i";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
}

.shop-notice-region .toast-message--success {
  border-color: rgba(83, 125, 93, 0.34);
  background: #fbfdf9;
  color: #2f6540;
}

.shop-notice-region .toast-message--success::before {
  content: "✓";
}

.shop-notice-region .toast-message--error {
  border-color: rgba(185, 74, 72, 0.34);
  background: #fffafa;
  color: #943635;
}

.shop-notice-region .toast-message--error::before {
  content: "!";
}

.cart-page,
.checkout-page {
  padding-top: clamp(32px, 5vw, 64px);
}

.cart-content,
.checkout-content {
  align-items: start;
}

.cart-table-wrapper,
.checkout-form,
.checkout-summary,
.cart-summary {
  background: #fffdfa;
  border: 1px solid rgba(95, 23, 51, 0.16);
  box-shadow: 0 18px 42px rgba(24, 21, 27, 0.07);
}

.cart-table-wrapper {
  overflow: hidden;
}

.cart-table {
  border: 0;
  background: transparent;
}

.cart-table th {
  background: #f4ece4;
  color: var(--secondary);
  border-bottom: 1px solid rgba(95, 23, 51, 0.16);
}

.cart-table tbody tr:nth-child(even) {
  background: rgba(247, 239, 231, 0.48);
}

.cart-summary,
.checkout-summary {
  position: sticky;
  top: 104px;
}

.cart-summary h2,
.checkout-summary h2,
.checkout-form h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.cart-summary-note {
  color: rgba(23, 21, 28, 0.62);
}

.summary-row.total {
  border-top: 1px solid rgba(95, 23, 51, 0.18);
  color: var(--secondary);
}

.checkout-form {
  padding: clamp(22px, 4vw, 38px);
}

.checkout-form h2 + .form-group,
.checkout-form h2 + .form-row {
  margin-top: 4px;
}

.order-item {
  gap: 14px;
}

.order-item-image,
.cart-product-image {
  border: 1px solid rgba(95, 23, 51, 0.12);
  background: var(--surface-2);
}

.item-color,
.cart-item-color {
  color: rgba(23, 21, 28, 0.64);
  background: #f7efe7;
}

@media (max-width: 800px) {
  .main-nav,
  .header-right .admin-link,
  .header-right .admin-logout-form {
    display: none !important;
  }

  .header-container {
    flex-direction: row !important;
  }

  .header-left {
    min-width: 0;
  }

  .header-right {
    flex: 0 0 auto;
  }

  .shop-notice-region {
    top: 72px;
  }

  .page-hero,
  .page-hero--home {
    background-image:
      linear-gradient(
        180deg,
        rgba(255, 250, 244, 0.96) 0%,
        rgba(255, 250, 244, 0.84) 58%,
        rgba(255, 250, 244, 0.26) 100%
      ),
      var(--hero-image, url("../uploads/couture-hero-1600.jpg"));
  }

  .cart-summary,
  .checkout-summary {
    position: static;
  }

  .cart-table-wrapper {
    overflow-x: auto;
  }

  .cart-table {
    min-width: 640px;
  }

  .checkout-form,
  .checkout-summary,
  .cart-summary {
    padding: 20px 16px;
  }
}

/* ===== CORRECTIONS PANIER / CHECKOUT ===== */

.cart-table th {
  background: var(--secondary);
  color: #fff;
}

.cart-table th,
.cart-table td {
  padding: 18px 16px;
}

.cart-table .product-cell {
  min-width: 280px;
}

.cart-item-name {
  font-size: 1rem;
}

.cart-qty-control {
  display: inline-grid;
  grid-template-columns: 42px 64px 42px;
  align-items: stretch;
  border: 1px solid rgba(95, 23, 51, 0.22);
  background: #fffdfa;
  min-height: 44px;
}

.cart-qty-btn {
  width: 42px;
  min-height: 44px;
  border: 0;
  background: var(--surface-2);
  color: var(--secondary);
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cart-qty-btn:hover {
  background: var(--secondary);
  color: #fff;
}

.cart-qty-control .quantity-input {
  width: 64px;
  height: 44px;
  border: 0;
  border-left: 1px solid rgba(95, 23, 51, 0.16);
  border-right: 1px solid rgba(95, 23, 51, 0.16);
  background: #fffdfa;
  color: var(--secondary);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
}

.cart-summary,
.checkout-summary {
  background: #fffdfa;
}

.cart-summary h2,
.checkout-summary h2 {
  border-bottom: 1px solid rgba(95, 23, 51, 0.14);
  padding-bottom: 12px;
}

.cart-actions .btn,
#submitBtn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.checkout-terms {
  margin-top: 6px;
}

.checkout-terms-label {
  display: grid !important;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(95, 23, 51, 0.18);
  background: var(--surface-2);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500 !important;
  line-height: 1.5;
}

.checkout-terms-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.checkout-terms-label a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shipping-methods {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.shipping-method-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(95, 23, 51, 0.18);
  background: #fffdfa;
  cursor: pointer;
  transition: var(--transition);
}

.shipping-method-card:hover,
.shipping-method-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(24, 21, 27, 0.07);
}

.shipping-method-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.shipping-method-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.shipping-method-main strong,
.shipping-method-price {
  font-family: var(--font-ui);
  color: var(--secondary);
}

.shipping-method-main small {
  color: var(--gray-600);
  line-height: 1.45;
}

.shipping-method-price {
  font-weight: 700;
  white-space: nowrap;
}

.relay-selector {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(95, 23, 51, 0.16);
  background: #fffdfa;
}

.pickup-selector {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(95, 23, 51, 0.16);
  background: #fffdfa;
}

.pickup-selector[hidden] {
  display: none;
}

.pickup-selector legend {
  padding: 0;
  margin-bottom: 12px;
  color: var(--secondary);
  font-family: var(--font-ui);
  font-weight: 600;
}

.pickup-locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pickup-location-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(95, 23, 51, 0.16);
  background: #fff;
  cursor: pointer;
}

.pickup-location-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: inset 4px 0 0 var(--primary);
}

.pickup-location-card input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.pickup-location-card span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

@media (max-width: 680px) {
  .card-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-field-number {
    grid-column: 1 / -1;
  }
}

.pickup-location-card small {
  color: var(--gray-600);
  line-height: 1.45;
}

.pickup-code-panel {
  margin: 24px 0;
  padding: 20px;
  color: var(--secondary);
  background: var(--surface-2);
  border: 1px solid rgba(95, 23, 51, 0.2);
  text-align: center;
}

.product-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-request-actions .btn {
  flex: 1 1 220px;
}

.pickup-code-panel span,
.pickup-code-panel strong {
  display: block;
}

.pickup-code-panel strong {
  margin: 8px 0;
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  letter-spacing: 0.18em;
}

.pickup-code-panel p {
  margin: 0;
}

.relay-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.relay-search-row .btn {
  min-height: 48px;
}

.relay-search-status {
  min-height: 24px;
  margin-top: 12px;
  color: var(--primary);
  font-size: 0.9rem;
}

.relay-points {
  display: grid;
  gap: 8px;
}

.relay-point {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(95, 23, 51, 0.16);
  background: #fff;
  color: var(--secondary);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.relay-point:hover,
.relay-point:focus-visible,
.relay-point.is-selected {
  border-color: var(--primary);
  box-shadow: inset 4px 0 0 var(--primary);
}

.relay-point-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.relay-point-heading span,
.relay-point small {
  color: var(--gray-600);
  font-size: 0.82rem;
}

.relay-point-address {
  display: block;
  margin: 5px 0 2px;
  line-height: 1.45;
}

.relay-unavailable {
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .shipping-method-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .shipping-method-price {
    grid-column: 2;
    justify-self: start;
  }

  .relay-selector {
    padding: 14px;
  }

  .pickup-selector {
    padding: 14px;
  }

  .pickup-locations {
    grid-template-columns: 1fr;
  }

  .relay-search-row {
    grid-template-columns: 1fr;
  }

  .relay-search-row .btn {
    width: 100%;
  }

  .relay-point-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

@media (max-width: 800px) {
  .cart-table {
    min-width: 720px;
  }

  .cart-table th,
  .cart-table td {
    padding: 14px 12px;
  }

  .cart-qty-control {
    grid-template-columns: 40px 58px 40px;
  }
}

/* ===== DIRECTION ARTISTIQUE MODE / COUTURE ===== */

:root {
  --primary: #5f1733;
  --primary-light: #8f2d4d;
  --secondary: #17151c;
  --secondary-dark: #0f0d13;
  --accent: #f1e7dc;
  --dark: #18151b;
  --light: #fffaf4;
  --border: #ded0c2;
  --primary-soft: #ead2dc;
  --secondary-soft: #e7dfd7;
  --surface-2: #f7efe7;
  --surface-3: #eadfd2;
  --gray-100: #fbf7f1;
  --gray-200: #f0e8df;
  --gray-300: #dccfc1;
  --gray-600: #756d73;
  --success: #537d5d;
  --danger: #b94a48;
  --gold: #a8834b;
  --shadow-sm: 0 10px 24px rgba(24, 21, 27, 0.055);
  --shadow-md: 0 18px 42px rgba(24, 21, 27, 0.085);
  --shadow-lg: 0 28px 68px rgba(24, 21, 27, 0.13);
}

body {
  background: linear-gradient(180deg, #fffaf4 0%, #f8f1e9 58%, #f2e7dc 100%);
  background-size: auto;
  color: var(--dark);
}

h1,
h2,
h3,
.section-heading-inline h2,
.page-hero-title,
.product-title,
.logo-subtitle,
.main-nav a,
.header-right .link,
.footer-link,
.btn {
  letter-spacing: 0;
}

header {
  background: rgba(255, 250, 244, 0.92);
  border-bottom: 1px solid rgba(95, 23, 51, 0.14);
  box-shadow: 0 12px 34px rgba(24, 21, 27, 0.055);
}

.header-container {
  min-height: 76px;
}

.logo-title {
  color: var(--secondary);
}

.logo-subtitle {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a {
  margin-left: 0;
}

.main-nav a,
.header-right .link {
  position: relative;
  padding: 8px 10px;
  color: var(--secondary);
  font-size: 13px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.cart-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
}

.burger:hover,
.cart-icon:hover,
.mobile-nav-close:hover {
  background: rgba(95, 23, 51, 0.07);
  color: var(--primary);
}

.burger:focus-visible,
.cart-icon:focus-visible,
.mobile-nav-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.cart-badge {
  background: var(--primary);
  border: 2px solid #fffaf4;
}

.section-heading-inline {
  border-bottom: 1px solid rgba(95, 23, 51, 0.14);
  padding-bottom: 18px;
}

.section-heading-inline p {
  font-family: var(--font-ui);
}

.filters,
.product-card,
.cart-summary,
.checkout-summary,
.checkout-form,
.admin-table-card {
  border-radius: 0;
  background: rgba(255, 252, 247, 0.9);
  border-color: rgba(95, 23, 51, 0.14);
  box-shadow: var(--shadow-sm);
}

.filters {
  align-items: flex-end;
}

.filter-group select,
.filter-group input[type="number"],
.form-group input,
.form-group textarea,
.form-group select,
#card-element {
  border-radius: 0;
  border-color: rgba(95, 23, 51, 0.18);
  background: #fffdfa;
}

.filter-btn {
  border-radius: 0;
  background: #fffdfa;
  border-color: rgba(95, 23, 51, 0.22);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.product-card {
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.24s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card:hover::before {
  border-color: rgba(168, 131, 75, 0.42);
}

.product-image-wrapper {
  background: #efe5d9;
}

.product-name {
  font-size: 17px;
}

.product-price {
  color: var(--secondary);
  font-size: 20px;
}

.btn,
.btn-large,
.btn-small,
.btn-action,
.color-pill,
.color-swatch,
.cart-item-color,
.stock-badge,
.category-badge,
.badge {
  border-radius: 0;
}

.btn-primary {
  background: var(--secondary);
  border-color: var(--secondary);
}

.btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-secondary,
.btn-ghost {
  background: transparent;
  border-color: rgba(95, 23, 51, 0.24);
  color: var(--secondary);
}

.btn-secondary:hover,
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--primary);
  border-color: var(--primary);
}

.color-swatch {
  border-color: rgba(24, 21, 27, 0.18);
}

.color-pill input:checked + .color-swatch,
.color-pill input:checked ~ .color-swatch {
  box-shadow:
    0 0 0 2px #fffaf4,
    0 0 0 4px var(--primary);
}

.page-hero {
  min-height: 0;
  padding: 42px 0 38px;
  margin-bottom: 18px;
  background-position: center 48%;
  border-bottom: 1px solid rgba(95, 23, 51, 0.14);
}

.page-hero::after {
  box-shadow: none;
  background: linear-gradient(
    90deg,
    rgba(15, 13, 19, 0.62),
    rgba(15, 13, 19, 0.28) 56%,
    rgba(15, 13, 19, 0.14)
  );
}

.page-hero-content {
  min-height: 160px;
  align-items: center;
}

.page-hero-kicker {
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 250, 244, 0.82);
}

.page-hero-title {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  color: #fffaf4;
  text-wrap: balance;
}

.page-hero-subtitle {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 250, 244, 0.84);
  font-family: var(--font-ui);
  font-size: 14px;
}

.atelier-visual {
  position: relative;
  min-height: 320px;
  margin: 0;
  border: 1px solid rgba(95, 23, 51, 0.14);
  background: #efe5d9;
  overflow: hidden;
}

.atelier-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
}

.atelier-visual figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(15, 13, 19, 0.78));
}

.cart-table th {
  background: var(--secondary);
}

footer {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #17151c 0%, #0f0d13 100%);
  background-size:
    80px 80px,
    auto;
  margin-top: 5rem;
  border-top: 1px solid rgba(168, 131, 75, 0.28);
}

.footer-brand-line {
  max-width: 420px;
  margin: 6px auto 0;
  color: rgba(255, 250, 244, 0.76);
  font-family: var(--font-ui);
  font-size: 13px;
}

.social-link {
  border-radius: 0;
  border-color: rgba(168, 131, 75, 0.28);
  background: rgba(255, 250, 244, 0.035);
}

.social-link::before {
  background: rgba(168, 131, 75, 0.16);
  border-radius: 0;
}

.social-link:hover {
  border-color: rgba(168, 131, 75, 0.75);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.social-link:hover svg {
  transform: scale(1.02);
}

.mini-cart {
  width: min(360px, calc(100vw - 24px));
  border-radius: 0;
}

.mini-cart-actions {
  flex-direction: column;
}

.mini-cart-actions .btn-small {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-links .footer-link {
  margin: 0;
}

@media (max-width: 800px) {
  .header-container {
    min-height: 64px;
    padding: 8px 12px;
  }

  .logo-title {
    font-size: 15px;
  }

  .logo-subtitle,
  .admin-link {
    display: none;
  }

  .mobile-nav {
    background: rgba(255, 250, 244, 0.98);
  }

  .mobile-nav a {
    border-radius: 0;
    letter-spacing: 0;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 16px;
  }

  .product-image-wrapper {
    height: 220px;
  }

  .product-info {
    padding: 16px;
  }

  .product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .add-to-cart-btn {
    width: 100%;
  }

  .atelier-visual,
  .atelier-visual img {
    min-height: 240px;
  }

  .page-hero {
    padding: 34px 0 30px;
  }

  .page-hero-content {
    min-height: 130px;
  }

  .page-hero-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
}

/* ===== VERROU RESPONSIVE FINAL ===== */

img,
svg,
video {
  max-width: 100%;
}

.logo,
.logo-text,
.header-left,
.header-right,
.product-card,
.product-footer,
.order-item-main,
.cart-item-main,
.checkout-content,
.cart-content {
  min-width: 0;
}

.logo-title,
.mini-cart-item-name,
.item-name {
  overflow-wrap: anywhere;
}

.btn,
.filter-btn,
.product-request-btn,
.add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  line-height: 1.2;
  text-align: center;
}

.product-card:hover img.product-image {
  transform: scale(1.06);
}

.product-price,
.summary-row span:last-child,
.item-price {
  white-space: nowrap;
}

.cart-table-wrapper {
  max-width: 100%;
}

.cart-action-edit,
.cart-action-delete {
  white-space: normal;
}

.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.summary-row {
  gap: 16px;
}

@media (max-width: 800px) {
  .btn,
  .btn-large,
  .btn-small,
  .filter-btn,
  .product-request-btn {
    white-space: normal;
  }

  .header-container {
    gap: 8px;
  }

  .logo {
    gap: 8px;
  }

  .logo-img {
    height: 44px;
    flex: 0 0 auto;
  }

  .logo-title {
    max-width: 156px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .filter-group,
  .filter-group-price {
    min-width: 0;
    width: 100%;
  }

  .filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
    width: 100%;
  }

  .filter-actions .filter-btn {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  }

  .cart-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cart-table {
    min-width: 660px;
  }

  .order-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .item-price {
    justify-self: start;
    margin-left: 76px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 14px;
  }

  .logo-title {
    max-width: 128px;
  }

  .catalog-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .catalog-switcher a,
  .filter-actions .filter-btn,
  .cart-actions .btn {
    min-height: 44px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image-wrapper {
    height: 260px;
  }

  .cart-table {
    min-width: 620px;
  }

  .cart-qty-control {
    grid-template-columns: 44px 62px 44px;
  }

  .cart-qty-btn {
    width: 44px;
    min-height: 48px;
  }

  .cart-qty-control .quantity-input {
    height: 48px;
  }

  .checkout-form,
  .checkout-summary,
  .cart-summary {
    padding: 18px 14px;
  }

  .checkout-terms-label {
    padding: 13px 12px;
  }

  .mini-cart {
    right: 8px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }
}

/* ===== CONFIRMATION PANIER ET ACTIONS DE VARIANTE (priorité finale) ===== */

.shop-notice-region .toast-message {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(23, 21, 28, 0.14);
  border-left: 3px solid var(--primary);
  background: #fffdfa;
  color: var(--secondary);
  box-shadow: 0 18px 42px rgba(24, 21, 27, 0.14);
}

.shop-notice-region .toast-message::before {
  content: none;
}

.toast-message-icon {
  margin-top: 1px;
  color: var(--primary);
  font-size: 24px;
}

.toast-message--success .toast-message-icon {
  color: var(--success);
}

.toast-message--error .toast-message-icon {
  color: var(--danger);
}

.toast-message-content {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.toast-message-title {
  color: var(--secondary);
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
}

.toast-message-text {
  color: rgba(23, 21, 28, 0.7);
  font-size: 0.86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.toast-message-action {
  width: fit-content;
  margin-top: 8px;
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toast-message-action:hover,
.toast-message-action:focus-visible {
  color: var(--secondary);
}

.toast-message-close {
  display: inline-flex;
  width: 36px;
  height: 36px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(23, 21, 28, 0.54);
  cursor: pointer;
}

.toast-message-close .material-icons {
  font-size: 20px;
}

.toast-message-close:hover,
.toast-message-close:focus-visible {
  color: var(--primary);
}

.add-to-cart-section {
  display: block;
}

.product-purchase-row {
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.product-purchase-row .btn-large,
.add-to-cart-section--editing > .btn-large,
.cart-add-variant .btn-large {
  width: 100%;
  max-width: none;
  min-height: 54px;
  padding: 12px 18px;
  gap: 9px;
  white-space: normal;
}

.add-to-cart-section .quantity-selector button,
.add-to-cart-section .quantity-selector input {
  height: 56px;
}

.add-to-cart-section .quantity-selector button {
  width: 54px;
}

.add-to-cart-section .quantity-selector input {
  width: 72px;
}

.product-purchase-row .btn-large,
.add-to-cart-section--editing > .btn-large,
.cart-add-variant .btn-large {
  height: 58px;
  min-height: 58px;
  padding-block: 8px;
}

.add-to-cart-section--editing > .btn-large {
  margin-bottom: 16px;
}

.add-to-cart-section--editing .btn .material-icons {
  flex: 0 0 auto;
  font-size: 20px;
}

.cart-add-variant {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  gap: 16px;
  align-items: end;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.quantity-group {
  display: grid;
  gap: 8px;
}

.quantity-group .quantity-label {
  margin: 0;
}

@media (max-width: 620px) {
  .shop-notice-region {
    top: 76px;
    width: calc(100vw - 20px);
  }

  .shop-notice-region .toast-message {
    grid-template-columns: 24px minmax(0, 1fr) 32px;
    gap: 10px;
    padding: 14px 12px;
  }

  .product-purchase-row,
  .cart-add-variant {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-purchase-row .quantity-selector,
  .quantity-group .quantity-selector {
    width: fit-content;
  }
}

/* ===== FICHE PRODUIT SIMPLIFIÉE ===== */

.product-card-colors-wrapper {
  display: grid;
  gap: 6px;
  margin: 10px 0 4px;
}

.product-card-color-label-row {
  margin: 0;
  color: rgba(23, 21, 28, 0.58);
  font-size: 0.75rem;
}

.product-card-colors {
  justify-content: flex-start;
  gap: 6px;
}

.product-card-color {
  display: inline-flex;
  cursor: default;
}

.product-card-colors .product-card-color .color-swatch {
  width: 24px;
  height: 24px;
  box-shadow: none;
}

.product-details-info {
  min-width: 0;
  gap: 0;
}

.product-detail,
.product-gallery,
.product-detail-page .main-image,
.product-details-info .product-options,
.product-details-info .add-to-cart-section,
.product-details-info .product-description {
  min-width: 0;
  max-width: 100%;
}

.product-details-info .product-description {
  overflow-wrap: anywhere;
}

.product-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  color: rgba(23, 21, 28, 0.58);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-image-order-help {
  margin: 0 0 14px;
}

.admin-image-order-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 6px 9px;
  color: var(--secondary);
  background: rgba(95, 23, 51, 0.055);
  font-family: var(--font-ui);
}

.admin-image-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #fff;
  background: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-image-position-label {
  font-size: 0.76rem;
  font-weight: 600;
}

.admin-image-drag-handle {
  color: var(--gray-600);
  font-size: 21px;
}

.product-meta-line a {
  color: var(--primary);
  text-decoration: none;
}

.product-meta-line a:hover,
.product-meta-line a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-details-info .product-title {
  margin: 0;
}

.product-details-info .product-pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin: 14px 0 22px;
}

.product-details-info .product-pricing .price {
  line-height: 1.1;
}

.product-availability {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: rgba(23, 21, 28, 0.68);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
}

.variant-cart-status {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  color: rgba(23, 21, 28, 0.7);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.4;
}

.variant-cart-status[hidden] {
  display: none;
}

.variant-cart-status .material-icons {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 19px;
}

.product-availability::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.product-availability--stock {
  color: #367945;
}

.product-availability--request {
  color: var(--primary);
}

.product-options {
  display: grid;
  gap: 22px;
  padding: 20px 0 22px;
  border-top: 1px solid rgba(95, 23, 51, 0.14);
  border-bottom: 1px solid rgba(95, 23, 51, 0.14);
}

.product-details-info .product-colors-block,
.product-details-info .product-sizes-block {
  margin: 0;
}

.product-details-info .product-colors-header,
.product-details-info .product-sizes-header {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 0 0 11px;
  font-family: var(--font-ui);
}

.product-details-info .product-colors-header .label,
.product-details-info .product-sizes-header .label {
  color: var(--secondary);
  font-size: 0.86rem;
  font-weight: 700;
}

.product-details-info .product-current-color {
  color: rgba(23, 21, 28, 0.62);
  font-size: 0.86rem;
}

.product-details-info .product-current-color::before {
  content: "·";
  margin-right: 8px;
}

.product-detail-page .color-options {
  gap: 12px;
}

.product-detail-page .color-pill {
  min-width: 56px;
  width: 56px;
  min-height: 56px;
}

.product-detail-page .color-swatch {
  width: 56px;
  height: 56px;
}

.product-details-info .size-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-details-info .size-pill {
  width: 100%;
}

.product-details-info .size-pill span {
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
}

.size-pill span small:not(.sr-only) {
  display: block;
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 500;
}

.size-pill span small[hidden] {
  display: none;
}

.size-pill.is-unavailable {
  cursor: not-allowed;
}

.size-pill.is-unavailable span {
  color: var(--gray-500);
  background: var(--gray-100);
  border-style: dashed;
  opacity: 0.75;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.product-details-info .add-to-cart-section {
  padding: 22px 0;
  margin: 0;
  border-top: 0;
}

.product-details-info .quantity-label {
  width: auto;
  margin: 0;
  color: rgba(23, 21, 28, 0.58);
  font-size: 0.74rem;
}

.product-details-info .product-purchase-row,
.product-details-info .cart-add-variant {
  align-items: end;
}

.add-to-cart-section .quantity-selector,
.add-to-cart-section .quantity-selector button,
.add-to-cart-section .quantity-selector input,
.cart-add-variant .btn-large {
  height: 58px;
  min-height: 58px;
}

.product-detail-page .product-description {
  color: var(--gray-700);
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
}

.admin-size-stock-grid {
  display: grid;
  gap: 10px;
}

.admin-size-stock-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 140px;
  gap: 12px;
  align-items: stretch;
}

.admin-size-stock-row .admin-choice-card {
  min-height: 56px;
}

.admin-size-stock-input {
  display: grid;
  grid-template-columns: auto minmax(64px, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid rgba(95, 23, 51, 0.18);
  background: #fff;
  font-weight: 600;
}

.admin-size-stock-input input {
  width: 100%;
  min-height: 40px;
  margin: 0;
  text-align: center;
}

.admin-size-stock-input[hidden],
.admin-stock-total[hidden] {
  display: none !important;
}

.admin-stock-total {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--primary);
  background: rgba(95, 23, 51, 0.06);
}

@media (max-width: 620px) {
  .product-details-info .size-options {
    grid-template-columns: 1fr;
  }

  .product-detail-page .product-description {
    text-align: left;
  }

  .admin-size-stock-row {
    grid-template-columns: 1fr;
  }

  .product-details-info .product-pricing {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }

  .product-options {
    gap: 20px;
    padding-block: 18px;
  }

  .product-detail-page .color-pill,
  .product-detail-page .color-swatch {
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
  }
}

/* Ajustements finaux hero/footer */
.page-hero {
  isolation: isolate;
  min-height: 0;
  padding: clamp(56px, 8vw, 96px) 0 clamp(46px, 6vw, 72px);
  margin-bottom: clamp(28px, 4vw, 48px);
  color: #fffaf4;
  background-image:
    linear-gradient(
      90deg,
      rgba(15, 13, 19, 0.68) 0%,
      rgba(15, 13, 19, 0.38) 52%,
      rgba(15, 13, 19, 0.12) 100%
    ),
    var(--hero-image, url("../uploads/couture-hero-1600.jpg"));
  background-size: cover;
  background-position: center 46%;
  border-bottom: 1px solid rgba(95, 23, 51, 0.16);
}

.page-hero::after {
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 250, 244, 0.34);
  box-shadow: none;
}

.page-hero-content {
  min-height: clamp(180px, 24vw, 280px);
  align-items: center;
}

.page-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 250, 244, 0.84);
  letter-spacing: 0.08em;
}

.page-hero-kicker::before {
  content: "";
  width: 44px;
  height: 1px;
  background: rgba(255, 250, 244, 0.62);
}

.page-hero-title {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 0.98;
  color: #fffaf4;
  text-wrap: balance;
  text-shadow: 0 14px 38px rgba(0, 0, 0, 0.26);
}

.page-hero-subtitle {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 250, 244, 0.9);
  font-family: var(--font-ui);
  font-size: clamp(0.94rem, 1.5vw, 1.05rem);
  line-height: 1.7;
}

.page-hero--home {
  min-height: clamp(360px, 56vw, 560px);
  background-position: center 44%;
}

.page-hero--home .page-hero-content {
  min-height: clamp(280px, 44vw, 430px);
}

footer {
  background: linear-gradient(180deg, #17151c 0%, #100e14 100%);
  background-size: auto;
}

@media (max-width: 800px) {
  .page-hero {
    padding: 42px 0 38px;
    margin-bottom: 26px;
    background-image:
      linear-gradient(
        180deg,
        rgba(15, 13, 19, 0.72) 0%,
        rgba(15, 13, 19, 0.38) 100%
      ),
      var(--hero-image, url("../uploads/couture-hero-1600.jpg"));
  }

  .page-hero-content,
  .page-hero--home .page-hero-content {
    min-height: 220px;
  }

  .page-hero--home {
    min-height: 320px;
  }

  .page-hero-title {
    font-size: clamp(2rem, 11vw, 3.15rem);
  }
}


.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

/* Verrous de largeur pour les petits écrans et la connexion administration. */
.page-hero-content > div,
.page-hero-title,
.page-hero-subtitle {
  min-width: 0;
  max-width: 100%;
}

.page-hero-content,
.page-hero-content > div {
  width: 100%;
}

.admin-main .admin-login-container {
  width: 100%;
  max-width: 440px;
  padding-inline: 16px;
}

.admin-login-card,
.admin-login-card form,
.admin-login-card .form-group,
.admin-login-card input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.admin-login-intro {
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .page-hero-subtitle {
    width: calc(100vw - 32px);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .admin-body--login .admin-main,
  .admin-body--login .admin-main > .section,
  .admin-main .admin-login-container {
    min-width: 0;
    max-width: 100vw;
  }

  .admin-main .admin-login-container {
    width: 100vw;
    margin-inline: 0;
    padding-inline: 16px;
  }

  .admin-login-card {
    width: calc(100vw - 32px);
  }

  .page-hero-title {
    font-size: 2rem;
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .page-hero-subtitle {
    font-size: 0.95rem;
  }
}
