.account-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.account-forms {
  align-items: stretch;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.account-layout form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.account-layout input,
.account-layout textarea,
.account-layout select {
  padding: 0.7rem 0.9rem;
  border-radius: calc(var(--radius) - 10px);
  border: 1px solid var(--border);
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-layout input:focus,
.account-layout textarea:focus,
.account-layout select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.todo-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
  list-style: none;
}

.todo-list > li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.08rem 0;
}

.todo-list > li::before {
  content: "";
  position: relative;
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.38em;
  background-color: var(--accent-blue);
  mask: url("../icons/check-alt.svg") no-repeat center / contain;
  -webkit-mask: url("../icons/check-alt.svg") no-repeat center / contain;
}

.alert.info {
  border-color: rgba(19, 78, 120, 0.25);
  background: rgba(19, 78, 120, 0.08);
  color: var(--primary);
}

.is-hidden {
  display: none !important;
}

.account-session {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.session-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.session-card {
  border: 1px solid rgba(19, 78, 120, 0.14);
  border-radius: calc(var(--radius) - 10px);
  padding: 1.5rem;
  background: rgba(19, 78, 120, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: fit-content;
}

.session-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: var(--heading);
  font-weight: 600;
}

.session-card .button {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.session-card .button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Orders list */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.2s ease;
}

.order-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(19, 78, 120, 0.08);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.order-header strong {
  color: var(--heading);
  font-size: 1.1rem;
}

.order-date {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.order-status {
  padding: 0.25rem 0.75rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.order-status.status-pending {
  background: #fff3cd;
  color: #856404;
}

.order-status.status-processing {
  background: #cfe2ff;
  color: #084298;
}

.order-status.status-available {
  background: #cfe2ff;
  color: #084298;
}

.order-status.status-shipped {
  background: #d1e7dd;
  color: #0f5132;
}

.order-status.status-delivered {
  background: #d1e7dd;
  color: #0f5132;
}

.order-status.status-completed {
  background: #d1e7dd;
  color: #0f5132;
}

.order-status.status-cancelled {
  background: #f8d7da;
  color: #842029;
}

.order-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.order-items {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
}

.order-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.order-actions .button.small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.order-total {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.profile-fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.profile-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(19, 78, 120, 0.12);
  border-radius: calc(var(--radius) - 12px);
  background: rgba(19, 78, 120, 0.04);
}

.profile-label {
  font-size: 0.9rem;
  color: var(--muted);
  min-width: 90px;
  flex-shrink: 0;
}

.profile-value {
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  flex: 1;
}

.form-feedback {
  padding: 0.65rem 0.9rem;
  border-radius: calc(var(--radius) - 12px);
  background: rgba(19, 78, 120, 0.08);
  color: var(--primary);
  font-weight: 500;
  border: 1px solid rgba(19, 78, 120, 0.18);
}

.form-feedback.is-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.25);
}

.form-feedback.is-success {
  background: rgba(30, 122, 26, 0.12);
  color: var(--accent);
  border-color: rgba(30, 122, 26, 0.2);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.button.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.75;
}

.button.is-loading::after {
  content: "";
  position: absolute;
  right: 1rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: transparent;
  animation: account-spin 0.8s linear infinite;
}

.button.secondary.is-loading::after {
  border-color: rgba(19, 78, 120, 0.25);
  border-top-color: transparent;
}

@keyframes account-spin {
  to {
    transform: rotate(360deg);
  }
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}
@font-face {
  font-family: "candy_shop";
  src:
    url("../fonts/candy_shop.woff2") format("woff2"),
    url("../fonts/candy_shop.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --body-font: "Poppins", sans-serif;
  --heading-font: "Oswald", sans-serif;
  --nav-font: "Poppins", sans-serif;
  --bg: #f2f3f5;
  --surface: #ffffff;
  --border: #dde3ea;
  --primary: #343a40;
  --primary-soft: rgba(52, 58, 64, 0.08);
  --accent: #cd2529;
  --accent-soft: rgba(205, 37, 41, 0.12);
  --accent-blue: #2baae2;
  --accent-blue-hover: #cd2529;
  --shop-price-bg: #333333;
  --product-card-bg: #f2f3f5;
  --header-bg: #1d242a;
  --header-text: #f7f7f7;
  --danger: #ef4444;
  --text: #1d242a;
  --heading: #1d242a;
  --muted: #5c6670;
  --text-muted: #5c6670;
  --radius: 18px;
  font-size: 16px;
  --header-height: 128px;
}

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

body {
  margin: 0;
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--header-bg);
  color: var(--header-text);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

h1,
h2,
h3,
.brand,
.footer-brand,
.footer-title,
.home-banner .banner-title,
.card-header h2 {
  font-family: var(--heading-font);
  font-weight: 400;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
footer {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  box-shadow: 0 10px 25px rgba(29, 36, 42, 0.12);
  background: var(--surface);
  backdrop-filter: blur(8px);
}

/* Tout élément sticky autre que le header reste bloqué sous le header (ne passe pas en dessous) */
.sticky-below-header {
  position: sticky;
  top: var(--header-height);
  z-index: 99;
}

footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  border-bottom: none;
}

/* Footer avec fond gris foncé et 3 colonnes */
.site-footer {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 3rem 2.5rem;
  margin-top: auto;
  border-top: none;
  border-bottom: none;
}

.site-footer .footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem 3rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer .footer-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: #f4f6fb;
  font-weight: 600;
}

.site-footer .footer-brand {
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: #f4f6fb;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.site-footer .footer-link {
  color: #c6d2e3;
  text-decoration: none;
  transition: color 0.15s ease;
  font-size: 0.95rem;
}

.site-footer .footer-link:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 1.5rem;
  }

  .site-footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.02em;
  color: var(--primary);
}

.brand:hover,
.brand:focus-visible {
  color: var(--primary);
}

.brand-logo {
  width: 165px;
  height: auto;
  max-width: 165px;
  object-fit: contain;
}

.custom-logo {
  filter: drop-shadow(1px 1px 1px black);
}

.brand-text {
  display: inline-flex;
  gap: 0.25rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.brand-text-primary {
  color: var(--primary);
}

.brand-text-accent {
  color: var(--accent);
}

.brand-subtitle {
  display: block;
  width: 100%;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -0.2rem;
}

.layout {
  width: min(1200px, 95vw);
  margin: 2.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid.products {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-items: stretch;
}

.grid.products > .card.product {
  height: 100%;
}

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

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
}

.card img {
  width: 100%;
  object-fit: contain;
}

/* Styles spécifiques pour les cartes produits */
.card.product {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card.product .product-image-link {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.card.product .product-image-link img {
  display: block;
  width: 100%;
}

.card.product .stack {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.card.product .stack h3 {
  flex-shrink: 0;
  margin: 0;
  line-height: 1.3;
  min-height: 2.6em;
}

.card.product .stack p {
  margin: 0;
  min-height: 3.5em;
}

.card.product .stack .chip-set {
  flex-shrink: 0;
  margin: 0;
}

.card.product .stack strong {
  flex-shrink: 0;
  margin: 0;
  font-size: 1.2rem;
}

.card.product .product-actions {
  flex-shrink: 0;
  margin-top: auto;
}
.product-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card .product-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.product-card .product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: calc(var(--radius) - 6px) calc(var(--radius) - 6px) 0 0;
  background: var(--primary-soft);
  margin-bottom: 0;
  display: block;
}

.product-card .stack {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  min-height: auto;
  gap: 0;
  justify-content: flex-start;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .product-name {
  margin: 0;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.product-card .product-price {
  margin: 0;
  margin-top: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.product-title-link {
  color: var(--heading);
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-title-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.product-actions .button {
  flex: 1;
  min-width: 120px;
}

.add-to-cart-btn:not(.product-card-cart) {
  background: var(--accent) !important;
  color: #fff !important;
}

.add-to-cart-btn:not(.product-card-cart):hover,
.add-to-cart-btn:not(.product-card-cart):focus-visible {
  background: #155a12 !important;
  box-shadow: 0 18px 28px rgba(30, 122, 26, 0.25) !important;
}

.add-to-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--primary);
  color: #fff;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(29, 36, 42, 0.2);
}

.button.secondary {
  background: var(--primary-soft);
  color: var(--primary);
}

.button.tertiary {
  background: var(--accent-soft);
  color: var(--accent);
}

input[type="number"] {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(19, 78, 120, 0.06);
  border-radius: 999px;
  padding: 0.35rem;
  width:fit-content;
}

.quantity-control input[type="number"] {
  width: 4.5rem;
  margin: 0;
  border-radius: 999px;
  text-align: center;
  padding: 0.55rem 0.45rem;
  background: #fff;
  border: 1px solid var(--border);
}

.quantity-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid transparent;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.quantity-btn:hover,
.quantity-btn:focus-visible {
  background: rgba(19, 78, 120, 0.1);
  border-color: rgba(19, 78, 120, 0.2);
  box-shadow: 0 6px 16px rgba(19, 78, 120, 0.16);
}

.quantity-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.cart-quantity-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cart-quantity-control input[type="number"] {
  width: 4.5rem;
}

.cart-line-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.cart-total-amount {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.cart-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.link-danger {
  background: none;
  border: none;
  padding: 0;
  color: var(--danger);
  font-weight: 600;
  cursor: pointer;
}

.link-danger:hover,
.link-danger:focus-visible {
  text-decoration: underline;
}

.cart-remove-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 0.5rem;
}

.cart-remove-btn img {
  width: 18px;
  height: 18px;
}

.cart-remove-btn:hover img,
.cart-remove-btn:focus-visible img {
  opacity: 0.8;
}

/* Panier : layout en cartes (image, réf, nom, ligne prix / quantité / total / corbeille, stock) */
.cart-item-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* En-têtes de colonnes : visibles uniquement en desktop */
.cart-item-list-header {
  display: none;
}

@media (min-width: 769px) {
  .cart-item-list-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 0 0.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
  }

  .cart-item-header-product {
    flex: 1;
    min-width: 0;
  }

  .cart-item-header-row {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
  }

  .cart-item-header-row span:first-child {
    min-width: 5rem;
  }

  .cart-item-header-row span:nth-child(2) {
    min-width: 5.5rem;
  }

  .cart-item-header-row span:nth-child(3) {
    min-width: 4rem;
  }

  .cart-item-header-action {
    width: 2.5rem;
    min-width: 2.5rem;
  }

  .cart-item-header-stock {
    flex-shrink: 0;
    min-width: 10rem;
  }
}

.cart-item-card {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-item-card:last-of-type {
  border-bottom: none;
}

/* Desktop : toute la ligne sur une seule rangée */
@media (min-width: 769px) {
  .cart-item-card {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .cart-item-top {
    flex: 1;
    min-width: 0;
  }

  .cart-item-row {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    margin-left: 0;
  }

  .cart-item-row .cart-item-total {
    margin-left: 0;
  }

  .cart-item-stock {
    flex-shrink: 0;
  }
}

.cart-item-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cart-item-image-link {
  flex-shrink: 0;
  display: block;
  text-decoration: none;
  color: inherit;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--surface);
  border-radius: calc(var(--radius) - 4px);
  display: block;
}

.cart-item-info {
  min-width: 0;
  flex: 1;
}

.cart-item-ref {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.cart-item-name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.cart-item-name a {
  color: var(--heading);
  text-decoration: none;
  font-weight: 600;
}

.cart-item-name a:hover {
  text-decoration: underline;
}

.cart-item-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.cart-item-pu {
  font-size: 0.95rem;
}

.cart-item-row .cart-quantity-control {
  margin: 0;
}

/* Panier : module quantités avec fond gris (comme avant), bordures grises sur champ et boutons */
.cart-section .quantity-control-cart,
.cart-section .quantity-control {
  background: rgba(19, 78, 120, 0.06);
}

.cart-section .quantity-btn {
  background: #fff;
  border: 1px solid var(--border);
}

.cart-section .quantity-btn:hover,
.cart-section .quantity-btn:focus-visible {
  background: #fff;
  border-color: var(--border);
}

.cart-section .quantity-control input[type="number"] {
  background: #fff;
  border: 1px solid var(--border);
}

.cart-item-total {
  margin-left: auto;
  font-size: 1rem;
}

.cart-item-row .cart-remove-btn {
  margin-left: 0.25rem;
}

.cart-item-stock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-item-stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* Panier mobile : image plus petite */
@media (max-width: 768px) {
  .cart-section .cart-item-image {
    width: 72px;
    height: 72px;
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: flex-start;
  strong {
    text-align: center;
  }
  h3 {
    margin:0;
    font-size: 1rem;
  }
  p {
    font-size:0.9rem;
    /*min-height: 50px;*/
    margin: 0;
  }
}

.chip-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  text-align: center;
}

.category-checkbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}

.category-checkbox-list .checkbox-label {
  margin: 0;
}

.table .category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: 220px;
}

.table .category-tags .chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
}

.table .category-tags .chip.is-primary {
  border-color: var(--accent);
  background: rgba(30, 122, 26, 0.12);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.12);
  font-family: var(--body-font);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

button.chip,
a.chip {
  cursor: pointer;
  text-decoration: none;
}

.home-categories {
  text-align: center;
}

.home-categories h2 {
  margin-bottom: 1rem;
}

.chip.chip-soft {
  background: #ffffff;
  border-color: #cfd6de;
  color: #343a40;
}

.chip.is-active {
  border-color: var(--accent-blue);
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(43, 170, 226, 0.24);
}

/* Filtres de catégories - Responsive */
.category-filter-wrapper {
  margin-bottom: 2rem;
  padding: 1.15rem 1.35rem;
  background: var(--surface);
  border: 1px solid #dde3ea;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(29, 36, 42, 0.04);
}

.category-filter-desktop {
  justify-content: flex-start;
  gap: 0.65rem;
}

.category-filter-desktop .chip {
  padding: 0.62rem 1.35rem;
  min-height: 42px;
  border: 1.5px solid #cfd6de;
  background: #ffffff;
  color: #343a40;
  font-family: var(--nav-font);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.015em;
}

.category-filter-desktop .chip:hover,
.category-filter-desktop .chip:focus-visible {
  border-color: var(--accent-blue);
  background: rgba(43, 170, 226, 0.08);
  color: #178bb8;
  box-shadow: 0 4px 14px rgba(43, 170, 226, 0.14);
  transform: translateY(-1px);
}

.category-filter-desktop .chip.is-active {
  border-color: var(--accent-blue);
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(43, 170, 226, 0.28);
}

.category-filter-desktop .chip.is-active:hover,
.category-filter-desktop .chip.is-active:focus-visible {
  border-color: var(--accent-blue-hover);
  background: var(--accent-blue-hover);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(205, 37, 41, 0.22);
}

.home-categories .chip-set {
  justify-content: center;
  gap: 0.65rem;
}

.home-categories .chip {
  padding: 0.62rem 1.35rem;
  min-height: 42px;
  border: 1.5px solid #cfd6de;
  background: #ffffff;
  color: #343a40;
  font-family: var(--nav-font);
  font-size: 0.84rem;
  font-weight: 500;
}

.home-categories .chip:hover,
.home-categories .chip:focus-visible {
  border-color: var(--accent-blue);
  background: rgba(43, 170, 226, 0.08);
  color: #178bb8;
  box-shadow: 0 4px 14px rgba(43, 170, 226, 0.14);
  transform: translateY(-1px);
}

.category-filter-mobile {
  display: none;
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1.5px solid #cfd6de;
  background: #ffffff;
  color: var(--text);
  font-family: var(--nav-font);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.category-filter-mobile:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(43, 170, 226, 0.15);
}

.category-filter-mobile:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Masquer les chips sur mobile, afficher le select */
@media (max-width: 768px) {
  .category-filter-desktop {
    display: none !important;
  }
  
  .category-filter-mobile {
    display: block !important;
  }
}

/* Masquer le select sur desktop, afficher les chips */
@media (min-width: 769px) {
  .category-filter-desktop {
    display: flex !important;
  }
  
  .category-filter-mobile {
    display: none !important;
  }
}

.split {
  display: grid;
  gap: 2rem;
}

.split.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.table {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.table table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Réduire la largeur de certaines colonnes dans le tableau produits */
.table th:nth-child(2),
.table td:nth-child(2) {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table th:nth-child(3),
.table td:nth-child(3) {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table th:nth-child(4),
.table td:nth-child(4) {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table th:nth-child(5),
.table td:nth-child(5) {
  max-width: 80px;
  text-align: center;
}

.table th:nth-child(6),
.table td:nth-child(6) {
  max-width: 90px;
  text-align: right;
}

.table th {
  background: rgba(148, 163, 184, 0.14);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.table select {
  padding: 0.35rem 0.75rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 150px;
}

.table select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px dashed var(--border);
  color: var(--muted);
}

.nav-inline {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--nav-font);
}

.nav-inline a {
  padding: 0.45rem 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-inline a:hover,
.nav-inline a:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 8px 16px rgba(205, 37, 41, 0.12);
}

.nav-inline a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Badge du panier */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #dc2626;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-width: 20px;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
  flex-shrink: 0;
}

.nav-inline a:hover img,
.nav-inline a:focus-visible img {
  opacity: 0.8;
}

.nav-inline a:has(img) {
  padding: 0.45rem;
  min-width: 40px;
  justify-content: center;
  font-size: 0;
}

/* Header mobile : burger, loupe, panier (masqués en desktop) */
.header-actions-mobile {
  display: none;
}

.header-burger,
.header-search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}

.header-burger:hover,
.header-burger:focus-visible,
.header-search-toggle:hover,
.header-search-toggle:focus-visible {
  background: rgba(19, 78, 120, 0.08);
  outline: none;
}

.header-burger {
  flex-direction: column;
  gap: 5px;
}

.header-burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header-search-toggle svg {
  width: 22px;
  height: 22px;
}

.header-cart-mobile {
  display: none;
}

/* Barre de recherche */
.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 0.25rem;
  min-width: 300px;
}

.search-result-item {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item:focus-visible {
  background: var(--primary-soft);
  outline: none;
}

.search-result-name {
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0;
}

.search-result-packaging {
  font-size: 0.85rem;
  font-style: italic;
  font-weight: normal;
  color: var(--text-muted);
  margin-top: -0.25rem;
  display: block;
}

.search-no-results,
.search-error {
  color: var(--text-muted);
  font-style: italic;
  cursor: default;
}

.search-no-results:hover,
.search-error:hover {
  background: transparent;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  justify-content: center;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination a:hover,
.pagination a:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
}

.pagination .is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

[data-role="cart-feedback"].error {
  color: var(--danger);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}

.modal-content--wide {
  max-width: 640px;
}

.modal-body .order-detail-grid {
  padding: 1.75rem 1.5rem;
  display: grid;
  gap: 1.5rem;
}

.modal-body .order-detail-grid dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  margin: 0;
}

.modal-body .order-detail-grid dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.modal-body .order-detail-grid dd {
  margin: 0;
}

.modal-body .order-detail-grid .table-wrapper {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 1.5rem;
  border-bottom: 2px solid var(--border);
  background: linear-gradient(135deg, var(--primary-soft) 0%, transparent 100%);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-body {
  padding: 0;
}

.modal-body .form-fields {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-body .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-body .form-field label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.modal-body .label-text {
  color: var(--text);
}

.modal-body .label-required {
  color: var(--danger);
  font-weight: bold;
}

.modal-body .form-field input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: calc(var(--radius) - 8px);
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: all 0.2s ease;
  font-family: inherit;
}

.modal-body .form-field input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: #fff;
}

.modal-body .form-field input[type="text"]::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.modal-body .form-field input[type="number"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: calc(var(--radius) - 8px);
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: all 0.2s ease;
  font-family: inherit;
}

.modal-body .form-field input[type="number"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: #fff;
}

.modal-body .form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: calc(var(--radius) - 8px);
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: all 0.2s ease;
  font-family: inherit;
  resize: vertical;
}

.modal-body .form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: #fff;
}

.modal-body .form-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.modal-body .form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: calc(var(--radius) - 8px);
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: all 0.2s ease;
  font-family: inherit;
  cursor: pointer;
}

.modal-body .form-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: #fff;
}

.modal-body .form-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}

.modal-body .form-field-checkbox {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.modal-body .form-field-checkbox .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: calc(var(--radius) - 8px);
  transition: background-color 0.2s ease;
  margin: 0;
  font-weight: 500;
}

.modal-body .form-field-checkbox .checkbox-label:hover {
  background: var(--primary-soft);
}

.modal-body .form-field-checkbox .checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.modal-body .checkbox-custom {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--border);
  border-radius: calc(var(--radius) - 10px);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.modal-body .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.modal-body .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "✓";
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;
}

.modal-body .checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.modal-body .checkbox-text {
  color: var(--text);
  font-size: 0.95rem;
}

.modal-body .form-feedback {
  margin: 0 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius) - 8px);
  font-size: 0.9rem;
}

.modal-body .form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
  background: var(--primary-soft);
  border-top: 1px solid var(--border);
  margin-top: 0;
}

/* Styles pour les formulaires en dehors des modales */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

/* Label qui encapsule directement le champ */
.form-field label:has(> input, > select, > textarea, > .password-field, > .rich-text-editor) {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.form-field .label-text {
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.form-field .label-required {
  color: var(--danger);
  font-weight: bold;
  line-height: 1;
}

.form-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-field select,
.form-field textarea,
.form-field input[type="text"],
.form-field input[type="url"],
.form-field input[type="number"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #cfd6de;
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.45;
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  font-family: var(--body-font, inherit);
}

.form-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: rgba(43, 170, 226, 0.45);
}

.form-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(43, 170, 226, 0.15);
  background: #ffffff;
}

.form-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"])::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 2.85rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--text);
  background: var(--primary-soft, rgba(43, 170, 226, 0.12));
  outline: none;
}

.password-toggle svg {
  display: block;
  pointer-events: none;
}

.form-field textarea {
  resize: vertical;
  line-height: 1.5;
  min-height: 120px;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c6670' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Styles pour Quill Editor */
#presentation-content-editor,
#product-description-editor,
#page-content-editor,
.rich-text-editor {
  border: 2px solid var(--border);
  border-radius: calc(var(--radius) - 8px);
  background: var(--surface);
  min-height: 300px;
}

#presentation-content-editor .ql-container,
#product-description-editor .ql-container,
.rich-text-editor .ql-container {
  font-family: inherit;
  font-size: 1rem;
  min-height: 250px;
}

#presentation-content-editor .ql-editor,
#product-description-editor .ql-editor,
.rich-text-editor .ql-editor {
  min-height: 250px;
  color: var(--text);
}

#presentation-content-editor .ql-editor.ql-blank::before,
#product-description-editor .ql-editor.ql-blank::before,
.rich-text-editor .ql-editor.ql-blank::before {
  color: var(--muted);
  opacity: 0.6;
  font-style: normal;
}

#presentation-content-editor .ql-toolbar,
#product-description-editor .ql-toolbar,
.rich-text-editor .ql-toolbar {
  border-top-left-radius: calc(var(--radius) - 8px);
  border-top-right-radius: calc(var(--radius) - 8px);
  border-bottom: 2px solid var(--border);
  background: var(--primary-soft);
}

#presentation-content-editor .ql-container,
#product-description-editor .ql-container,
.rich-text-editor .ql-container {
  border-bottom-left-radius: calc(var(--radius) - 8px);
  border-bottom-right-radius: calc(var(--radius) - 8px);
  border-top: none;
}

#presentation-content-editor .ql-toolbar .ql-stroke,
#product-description-editor .ql-toolbar .ql-stroke,
.rich-text-editor .ql-toolbar .ql-stroke {
  stroke: var(--text);
}

#presentation-content-editor .ql-toolbar .ql-fill,
#product-description-editor .ql-toolbar .ql-fill,
.rich-text-editor .ql-toolbar .ql-fill {
  fill: var(--text);
}

#presentation-content-editor .ql-toolbar button:hover,
#presentation-content-editor .ql-toolbar button.ql-active,
#product-description-editor .ql-toolbar button:hover,
#product-description-editor .ql-toolbar button.ql-active,
.rich-text-editor .ql-toolbar button:hover,
.rich-text-editor .ql-toolbar button.ql-active {
  background: var(--primary);
  color: #fff;
}

#presentation-content-editor .ql-toolbar button:hover .ql-stroke,
#presentation-content-editor .ql-toolbar button.ql-active .ql-stroke,
#product-description-editor .ql-toolbar button:hover .ql-stroke,
#product-description-editor .ql-toolbar button.ql-active .ql-stroke,
.rich-text-editor .ql-toolbar button:hover .ql-stroke,
.rich-text-editor .ql-toolbar button.ql-active .ql-stroke {
  stroke: #fff;
}

#presentation-content-editor .ql-toolbar button:hover .ql-fill,
#presentation-content-editor .ql-toolbar button.ql-active .ql-fill,
#product-description-editor .ql-toolbar button:hover .ql-fill,
#product-description-editor .ql-toolbar button.ql-active .ql-fill,
.rich-text-editor .ql-toolbar button:hover .ql-fill,
.rich-text-editor .ql-toolbar button.ql-active .ql-fill {
  fill: #fff;
}

#product-description-editor {
  min-height: 280px;
}

.product-gallery-thumbs {
  justify-content: flex-start;
  gap: 0.5rem;
}

.card .product-gallery-thumb {
  width: 100px;
  height: 70px;
  aspect-ratio: auto;
  border-radius: 4px;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.card .product-gallery-thumb.is-active {
  border-color: var(--accent-blue);
}

.card .product-gallery-thumb:not(.is-active):hover {
  opacity: 0.85;
}

.product-page-title {
  font-family: var(--heading-font);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 1.7rem;
  padding: 1rem;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  border-bottom: 1px solid #ccc;
}

.product-packaging {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
}

.product-purchase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0;
  background: #f4f4f4;
  padding: 1rem;
}

.product-purchase-row .product-page-price,
.stack .product-page-price {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--heading);
}

.product-add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--accent-blue);
  border-radius: 0;
  background: transparent;
  color: var(--accent-blue);
  font-family: var(--heading-font);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.product-add-to-cart-btn:hover,
.product-add-to-cart-btn:focus-visible {
  background: var(--accent-blue);
  color: #fff;
  transform: none;
  box-shadow: none;
}

.product-add-to-cart-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.product-add-to-cart-icon {
  flex-shrink: 0;
}

.product-quantity-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.product-quantity-row .quantity-control {
  margin: 0;
}

@media (max-width: 520px) {
  .product-purchase-row {
    flex-direction: column;
    align-items: stretch;
  }

  .stack .product-page-price,
  .product-purchase-row .product-page-price {
    text-align: center;
    font-size: 2rem;
  }

  .product-add-to-cart-btn {
    width: 100%;
  }
}

.product-description,
#product-description-editor .ql-editor,
#page-content-editor .ql-editor {
  line-height: 1.7;
  color: var(--text);
  font-size: 0.9rem;
}

.product-description p,
#product-description-editor .ql-editor p,
#page-content-editor .ql-editor p {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}

.product-description p:last-child,
#product-description-editor .ql-editor p:last-child,
#page-content-editor .ql-editor p:last-child {
  margin-bottom: 0;
}

/* Quill : paragraphe vide (<p><br></p>) au-dessus d'une liste */
.product-description p:has(+ ul):is(:empty, :has(> br:only-child)),
.product-description p:has(+ ol):is(:empty, :has(> br:only-child)),
#product-description-editor .ql-editor p:has(+ ul):is(:empty, :has(> br:only-child)),
#product-description-editor .ql-editor p:has(+ ol):is(:empty, :has(> br:only-child)),
#page-content-editor .ql-editor p:has(+ ul):is(:empty, :has(> br:only-child)),
#page-content-editor .ql-editor p:has(+ ol):is(:empty, :has(> br:only-child)) {
  display: none;
  margin: 0;
}

.product-description ul,
#product-description-editor .ql-editor ul,
#page-content-editor .ql-editor ul {
  list-style: none;
  margin: 0 0 0.65rem 1rem;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  --list-bullet-icon: url("../icons/simple-right.svg");
}

.product-description ul ul,
#product-description-editor .ql-editor ul ul,
#page-content-editor .ql-editor ul ul {
  margin: 0.1rem 0 0.1rem 0;
  --list-bullet-icon: url("../icons/thin-right.svg");
}

.product-description ul.list-bullets-check,
#product-description-editor .ql-editor ul.list-bullets-check,
#page-content-editor .ql-editor ul.list-bullets-check {
  --list-bullet-icon: url("../icons/check-alt.svg");
}

.product-description ul.list-bullets-play,
#product-description-editor .ql-editor ul.list-bullets-play,
#page-content-editor .ql-editor ul.list-bullets-play {
  --list-bullet-icon: url("../icons/play.svg");
}

.product-description ul.list-bullets-ball,
#product-description-editor .ql-editor ul.list-bullets-ball,
#page-content-editor .ql-editor ul.list-bullets-ball {
  --list-bullet-icon: url("../icons/toy-ball.svg");
}

.product-description ul.list-bullets-thin,
#product-description-editor .ql-editor ul.list-bullets-thin,
#page-content-editor .ql-editor ul.list-bullets-thin {
  --list-bullet-icon: url("../icons/thin-right.svg");
}

.product-description ol,
#product-description-editor .ql-editor ol,
#page-content-editor .ql-editor ol {
  margin: 0 0 0.65rem 0.25rem;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.product-description ul > li,
#product-description-editor .ql-editor ul > li,
#page-content-editor .ql-editor ul > li {
  display: block;
  position: relative;
  padding: 0.08rem 0 0.08rem 1.5rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.product-description ol > li,
#product-description-editor .ql-editor ol > li,
#page-content-editor .ql-editor ol > li {
  font-size: 0.9rem;
  line-height: 1.7;
  padding-left: 0;
}

.product-description ul > li > p,
#product-description-editor .ql-editor ul > li > p,
#page-content-editor .ql-editor ul > li > p,
.product-description ol > li > p,
#product-description-editor .ql-editor ol > li > p,
#page-content-editor .ql-editor ol > li > p {
  display: inline;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.product-description ul > li > p:empty,
#product-description-editor .ql-editor ul > li > p:empty,
#page-content-editor .ql-editor ul > li > p:empty {
  display: none;
}

/* Annule les tailles / retraits Quill exportés dans le HTML */
.product-description [class*="ql-size"],
#product-description-editor .ql-editor [class*="ql-size"],
#page-content-editor .ql-editor [class*="ql-size"] {
  font-size: inherit !important;
}

.product-description li[class*="ql-indent"],
.product-description li [class*="ql-indent"],
#product-description-editor .ql-editor li[class*="ql-indent"],
#product-description-editor .ql-editor li [class*="ql-indent"],
#page-content-editor .ql-editor li[class*="ql-indent"],
#page-content-editor .ql-editor li [class*="ql-indent"] {
  padding-left: 0 !important;
}

/* Fiche produit (.stack) — listes calées sur les paragraphes */
.stack > .product-description ul {
  margin-left: 1rem;
  padding-left: 0;
  font-size: 0.9rem;
}

.stack > .product-description ol {
  padding-left: 0;
  font-size: 0.9rem;
}

.stack > .product-description ul > li,
.stack > .product-description ol > li,
.stack > .product-description ul > li > p,
.stack > .product-description ol > li > p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.product-description ul > li::before,
#product-description-editor .ql-editor ul > li::before,
#page-content-editor .ql-editor ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 1rem;
  height: 1rem;
  transform: none;
  background-color: var(--accent-blue);
  mask: var(--list-bullet-icon) no-repeat center / contain;
  -webkit-mask: var(--list-bullet-icon) no-repeat center / contain;
}

.product-description ul.list-bullets-ball > li::before,
#product-description-editor .ql-editor ul.list-bullets-ball > li::before,
#page-content-editor .ql-editor ul.list-bullets-ball > li::before {
  width: 1rem;
  height: 1rem;
  top: 0.38em;
}

.product-description li + li,
#product-description-editor .ql-editor li + li,
#page-content-editor .ql-editor li + li {
  margin-top: 0.1rem;
}

.product-description a,
#product-description-editor .ql-editor a,
#page-content-editor .ql-editor a {
  color: var(--accent-blue);
}

.product-description h1,
.product-description h2,
.product-description h3,
#product-description-editor .ql-editor h1,
#product-description-editor .ql-editor h2,
#product-description-editor .ql-editor h3,
#page-content-editor .ql-editor h1,
#page-content-editor .ql-editor h2,
#page-content-editor .ql-editor h3 {
  margin: 0 0 0.85rem;
  line-height: 1.3;
  font-weight: 600;
}

.product-description h1:last-child,
.product-description h2:last-child,
.product-description h3:last-child,
#product-description-editor .ql-editor h1:last-child,
#product-description-editor .ql-editor h2:last-child,
#product-description-editor .ql-editor h3:last-child,
#page-content-editor .ql-editor h1:last-child,
#page-content-editor .ql-editor h2:last-child,
#page-content-editor .ql-editor h3:last-child {
  margin-bottom: 0;
}

.form-field input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--primary);
}

.form-field input[type="file"] {
  width: 100%;
  max-width: 100%;
  padding: 0.85rem 1rem;
  border: 2px dashed #cfd6de;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.45;
  background: #fafbfc;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--body-font, inherit);
}

.form-field input[type="file"]:hover {
  border-color: rgba(43, 170, 226, 0.55);
  background: rgba(43, 170, 226, 0.04);
}

.form-field input[type="file"]:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(43, 170, 226, 0.15);
  background: #ffffff;
}

.form-field input[type="file"]::file-selector-button {
  margin-right: 1rem;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent-blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: var(--body-font, inherit);
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-field input[type="file"]::file-selector-button:hover {
  background: var(--accent-blue-hover, #239ccc);
}

.form-field input[type="file"]::-webkit-file-upload-button {
  margin-right: 1rem;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent-blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: var(--body-font, inherit);
  cursor: pointer;
}

/* Zone d’upload fichier (ordonnances, etc.) */
.file-upload-zone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border: 2px dashed var(--border);
  border-radius: calc(var(--radius) - 6px);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.file-upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.file-upload-zone input[type="file"] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
  padding: 0;
  min-width: 0;
}

.file-upload-zone .file-upload-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  background: rgba(19, 78, 120, 0.12);
  border: 1px solid var(--primary);
  border-radius: calc(var(--radius) - 8px);
  transition: background 0.2s ease, color 0.2s ease;
}

.file-upload-zone:hover .file-upload-trigger {
  background: var(--primary);
  color: #fff;
}

.file-upload-zone .file-upload-filename {
  color: var(--muted);
  font-size: 0.95rem;
}

.file-upload-zone .file-upload-filename.has-file {
  color: var(--text);
  font-weight: 500;
}

.prescription-upload-row .label-text {
  margin-bottom: 0.5rem;
}

.prescription-upload-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.prescription-upload-inline .file-upload-zone {
  flex: 1;
  min-width: 200px;
}

.prescription-upload-inline .button {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  min-width: 120px;
}

.file-upload-group {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.file-upload-group input[type="file"] {
  flex: 1 1 260px;
  min-width: min(100%, 260px);
}

.file-upload-group .button {
  white-space: nowrap;
  flex-shrink: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
}

.page-header-image-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.page-header-image-controls input[type="file"] {
  flex: 1 1 260px;
  min-width: min(100%, 260px);
}

.page-header-image-controls .button {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
}

.image-preview {
  margin-top: 1rem;
}

.image-preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: calc(var(--radius) - 8px);
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: calc(var(--radius) - 8px);
  transition: background-color 0.2s ease;
}

.checkbox-label:hover {
  background: var(--primary-soft);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

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

.card-header h2,
.card-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--heading);
  font-weight: 600;
}

.card-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.session-card .card-header {
  margin-bottom: 0.75rem;
  margin-top: -0.25rem;
}

.prescriptions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prescription-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.2s ease;
}

.prescription-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(19, 78, 120, 0.08);
}

.prescription-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.prescription-info {
  flex: 1;
  min-width: 0;
}

.prescription-name {
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.prescription-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.prescription-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.addresses-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.address-item {
  padding: 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.address-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(19, 78, 120, 0.1);
}

.address-item.is-billing {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(19, 78, 120, 0.05) 100%);
  box-shadow: 0 4px 16px rgba(19, 78, 120, 0.15);
}

.address-item-badge {
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: calc(var(--radius) - 6px);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-billing {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 4px rgba(19, 78, 120, 0.2);
}

.badge-billing::before {
  content: "✓";
  font-size: 0.9rem;
  font-weight: bold;
}

.address-item-actions {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.button-link {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.35rem 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: calc(var(--radius) - 10px);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.button-link:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.button-link.text-danger {
  color: var(--danger);
}

.button-link.text-danger:hover {
  color: #fff;
  background: var(--danger);
}

.address-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.address-line {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.address-line:first-child {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.address-line:not(:first-child) {
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: calc(var(--radius) - 8px);
  transition: background-color 0.2s ease;
  margin-top: 0.5rem;
}

.checkbox-label:hover {
  background: var(--primary-soft);
}

.checkbox-label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.checkbox-label span {
  font-weight: 500;
  color: var(--text);
}

/* Site header : version mobile (menu burger + loupe) */
@media (max-width: 768px) {
  .site-header {
    position: relative;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .header-actions-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
  }

  .header-burger,
  .header-search-toggle {
    display: flex;
  }

  .header-cart-mobile {
    display: inline-flex;
  }

  .site-header .nav-inline .nav-link-cart {
    display: none;
  }

  .site-header .nav-inline {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    max-height: 70vh;
    overflow-y: auto;
  }

  body.nav-open .site-header .nav-inline {
    display: flex;
  }

  .site-header .nav-inline a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
  }

  .site-header .search-wrapper {
    display: none;
    width: 100%;
    order: -1;
    margin-bottom: 0.5rem;
  }

  .site-header .search-wrapper .search-container {
    max-width: none;
  }

  body.search-open .site-header .search-wrapper {
    display: block;
  }

  body.search-open .site-header .nav-inline {
    display: flex;
  }

  .header-burger[aria-expanded="true"] .header-burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .header-burger[aria-expanded="true"] .header-burger-bar:nth-child(2) {
    opacity: 0;
  }

  .header-burger[aria-expanded="true"] .header-burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Admin header */
.admin-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  min-height: 0;
  background: #ffffff;
  border-bottom: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: none;
}

.admin-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 2rem;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
}

.admin-header-top-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.admin-header-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.15rem;
  border: none;
  background: transparent;
  color: #343a40;
  font-family: var(--nav-font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.admin-header-logout:hover,
.admin-header-logout:focus-visible {
  color: var(--accent-blue);
  outline: none;
}

.admin-header-logout-icon {
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.85;
}

.admin-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: #343a40;
  text-decoration: none;
}

.admin-header-brand:hover,
.admin-header-brand:focus-visible {
  color: #343a40;
}

.admin-header .brand-logo {
  width: 165px;
  max-width: 165px;
  height: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.admin-header-badge {
  font-family: var(--heading-font);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6c757d;
  border-left: 1px solid #dee2e6;
  padding-left: 1rem;
  line-height: 1;
}

.admin-header-burger {
  display: none;
  color: #343a40;
}

.admin-header-burger .header-burger-bar {
  background: currentColor;
}

.admin-header-burger:hover,
.admin-header-burger:focus-visible {
  background: rgba(52, 58, 64, 0.08);
}

.admin-header-nav {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 0 2rem;
  background: var(--header-bg);
  font-family: var(--nav-font);
}

.admin-nav-link,
.admin-nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 1.1rem;
  min-height: 62px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  background: transparent;
  border-top: none;
  border-bottom: none;
  border-left: none;
  cursor: pointer;
  font-family: inherit;
}

.admin-nav-link:first-child {
  margin-left: -1.1rem;
}

.admin-nav-group {
  position: relative;
  display: flex;
  align-items: stretch;
}

.admin-nav-group.is-active > .admin-nav-group-toggle,
.admin-nav-link.is-active {
  background: rgba(43, 170, 226, 0.14);
  color: #ffffff;
}

.admin-nav-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.admin-nav-group.is-open > .admin-nav-group-toggle .admin-nav-chevron {
  transform: rotate(-135deg) translateY(1px);
}

.admin-nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 120;
  display: none;
  flex-direction: column;
  min-width: 13rem;
  background: #1a2026;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.admin-nav-group.is-open .admin-nav-submenu {
  display: flex;
}

.admin-nav-submenu a {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 0.8rem 1.1rem;
  margin-left: 0;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-right: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav-submenu a:last-child {
  border-bottom: none;
}

.admin-nav-submenu a.is-active,
.admin-nav-submenu a:hover,
.admin-nav-submenu a:focus-visible {
  background: rgba(43, 170, 226, 0.12);
  color: #ffffff;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible,
.admin-nav-group-toggle:hover,
.admin-nav-group-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
}

.admin-header-nav-external {
  margin-left: auto;
  color: var(--accent-blue) !important;
  border-right: none !important;
}

.admin-header-nav-external:hover,
.admin-header-nav-external:focus-visible {
  background: rgba(43, 170, 226, 0.12) !important;
  color: #ffffff !important;
}

.admin-header .header-burger[aria-expanded="true"] .header-burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.admin-header .header-burger[aria-expanded="true"] .header-burger-bar:nth-child(2) {
  opacity: 0;
}

.admin-header .header-burger[aria-expanded="true"] .header-burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .admin-header-top {
    padding: 0.75rem 1rem;
  }

  .admin-header-burger {
    display: flex;
  }

  .admin-header-nav {
    display: none;
    flex-direction: column;
    padding: 0;
  }

  body.admin-nav-open .admin-header-nav {
    display: flex;
  }

  .admin-nav-link,
  .admin-nav-group-toggle {
    min-height: 0;
    width: 100%;
    padding: 0.85rem 1.5rem;
    margin-left: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    justify-content: space-between;
  }

  .admin-nav-link:first-child {
    margin-left: 0;
  }

  .admin-nav-group {
    flex-direction: column;
    width: 100%;
  }

  .admin-nav-submenu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.18);
  }

  .admin-nav-group.is-open .admin-nav-submenu {
    display: flex;
  }

  .admin-nav-submenu a {
    padding: 0.75rem 1.5rem 0.75rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .admin-header-nav-external {
    margin-left: 0;
  }
}

.admin-login-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2.5rem;
}

.admin-login-card {
  width: min(100%, 480px);
  padding: 0.5rem 0.25rem;
}

.admin-login-card .card-header h2 {
  margin-bottom: 0.35rem;
}

.admin-login-card .card-header p {
  color: var(--muted);
  margin: 0;
}

.admin-login-card .form-fields {
  gap: 1.25rem;
  padding: 1.25rem 0 0.5rem;
}

.admin-login-card .form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.5rem;
  border-top: 1px solid #e9ecef;
  margin-top: 0.25rem;
}

.admin-login-card .form-actions .button {
  min-width: 160px;
  border-radius: 999px;
  background: var(--accent-blue);
}

.admin-login-card .form-actions .button:hover,
.admin-login-card .form-actions .button:focus-visible {
  background: #239ccc;
}

.admin-login-links {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
}

.admin-login-links a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.admin-login-links a:hover,
.admin-login-links a:focus-visible {
  text-decoration: underline;
}

.admin-header-login .admin-header-top {
  justify-content: center;
}

@media (max-width: 768px) {
  .site-header,
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  footer {
    flex-wrap: wrap;
  }

  .modal-content {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }

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

  .card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .card-header .button {
    width: 100%;
  }

  .addresses-list {
    grid-template-columns: 1fr;
  }

  .address-item-actions {
    justify-content: flex-start;
  }

  .button-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .modal-body .form-row {
    grid-template-columns: 1fr;
  }

  .modal-body .form-actions {
    flex-direction: column-reverse;
  }

  .modal-body .form-actions .button {
    width: 100%;
  }

  .order-details {
    flex-direction: column;
    align-items: stretch;
  }

  .order-total {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .prescription-item {
    flex-wrap: wrap;
  }

  .prescription-actions {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.5rem;
  }

  .profile-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .profile-label {
    min-width: auto;
  }

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

/* Toggle Switch pour le statut des produits */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.toggle-switch input[type="checkbox"] {
  position: relative;
  width: 40px;
  height: 22px;
  appearance: none;
  background-color: #ccc;
  border-radius: 22px;
  outline: none;
  transition: background-color 0.3s;
  cursor: pointer;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.toggle-switch input[type="checkbox"]:checked {
  background-color: #22a06b;
}

.toggle-switch input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.toggle-switch input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked::before {
  transform: translateX(18px);
}

.toggle-slider {
  display: none; /* On utilise ::before à la place */
}

.toggle-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text, #1f2937);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  min-width: 70px;
}

/* Checkout Tunnel Styles */
.checkout-card:hover,
.checkout-card:focus-within {
  transform: none;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.checkout-card .checkout-item-image {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}


.payment-method-stripe-block {
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(221, 227, 234, 0.9);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  width: 100%;
}

.payment-method-stripe-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.payment-method-stripe-tagline {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: left;
}

.payment-method-stripe-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 4px;
  flex-shrink: 0;
}

.payment-method-stripe-logo-link:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.payment-method-stripe-logo {
  display: block;
  height: 1.5rem;
  width: auto;
}

.payment-method-stripe-info {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-blue);
  text-decoration: none;
}

.payment-method-stripe-info:hover,
.payment-method-stripe-info:focus-visible {
  text-decoration: underline;
  color: #1d7aa8;
}

.checkout-steps-wrapper {
  --checkout-progress: 0%;
  position: relative;
  margin: 2rem 0 1.5rem;
  padding-bottom: 1.5rem;
}

.checkout-steps-wrapper::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 1.25rem;
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  z-index: 0;
}

.checkout-steps-wrapper::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 1.25rem;
  height: 3px;
  width: calc(76% * var(--checkout-progress) / 100%);
  max-width: 76%;
  background: linear-gradient(90deg, var(--accent-blue), #1d8fbf);
  border-radius: 999px;
  z-index: 1;
  transition: width 0.35s ease;
}

.checkout-steps {
  display: flex;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 100px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.checkout-step.active {
  opacity: 1;
}

.checkout-step.completed {
  opacity: 0.8;
}

.checkout-step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.checkout-step.active .checkout-step-number {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(43, 170, 226, 0.35);
}

.checkout-step.completed .checkout-step-number {
  background: #1a9e5c;
  border-color: #1a9e5c;
  color: #fff;
}

.checkout-step-label {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-muted);
}

.checkout-step.active .checkout-step-label {
  color: var(--accent-blue);
  font-weight: 600;
}

.checkout-step-content {
  margin: 1.5rem 0 0;
}

.checkout-step-content h2 {
  margin-bottom: 0.5rem;
  color: var(--heading);
}

.checkout-review-header {
  margin-bottom: 1.75rem;
}

.checkout-review-header h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.checkout-review-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 960px) {
  .checkout-review-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 2rem;
  }
}

.checkout-review-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.checkout-review-block-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--heading);
}

.checkout-review-count {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.95rem;
}

.checkout-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.checkout-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(221, 227, 234, 0.85);
}

.checkout-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.checkout-item-image-wrap {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.checkout-item-image {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  background: var(--product-card-bg);
  border: 1px solid var(--border);
}

.checkout-item-main {
  min-width: 0;
}

.checkout-item-name {
  margin: 0 0 0.2rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.35;
}

.checkout-item-meta {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.checkout-item-unit {
  margin: 0;
  font-size: 0.85rem;
}

.checkout-item-qty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 2.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: calc(var(--radius) - 10px);
  background: var(--product-card-bg);
  border: 1px solid var(--border);
  text-align: center;
}

.checkout-item-qty-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1;
}

.checkout-item-qty-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
}

.checkout-item-total {
  font-size: 1rem;
  color: var(--heading);
  white-space: nowrap;
  text-align: right;
}

.checkout-detail-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .checkout-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .checkout-detail-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-detail-card {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
}

.checkout-detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.checkout-detail-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.checkout-detail-content {
  flex: 1;
  min-width: 0;
}

.checkout-detail-content h3 {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.checkout-detail-primary {
  margin: 0;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.4;
}

.checkout-detail-secondary {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-review-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 960px) {
  .checkout-review-sidebar {
    position: sticky;
    top: calc(var(--header-height, 128px) + 1.25rem);
  }
}

.checkout-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 24px rgba(29, 36, 42, 0.06);
}

.checkout-sidebar-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--heading);
}

.checkout-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.checkout-sidebar-actions .button {
  width: 100%;
  min-width: 0;
}

.checkout-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.checkout-secure-icon {
  display: inline-flex;
  color: #1a9e5c;
}

.checkout-secure-icon svg {
  width: 1rem;
  height: 1rem;
}

.checkout-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.checkout-actions .button {
  min-width: 150px;
}

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.payment-method-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.payment-method-option {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  column-gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.payment-method-option input[type="radio"] {
  margin: 0.65rem 0 0;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent-blue);
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.payment-method-option-body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.payment-method-option:not(.payment-method-option-stripe) .payment-method-option-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.payment-method-option-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.payment-method-option:not(.payment-method-option-stripe) .payment-method-provider {
  flex-shrink: 0;
  align-self: center;
}

@media (max-width: 640px) {
  .payment-method-option:not(.payment-method-option-stripe) .payment-method-option-body {
    flex-direction: column;
    align-items: stretch;
  }

  .payment-method-option:not(.payment-method-option-stripe) .payment-method-provider {
    align-self: flex-start;
  }
}

.payment-method-option:hover {
  border-color: rgba(43, 170, 226, 0.45);
  background: rgba(43, 170, 226, 0.04);
}

.payment-method-option.is-selected,
.payment-method-option:has(input[type="radio"]:checked) {
  border-color: var(--accent-blue);
  background: rgba(43, 170, 226, 0.08);
  box-shadow: 0 0 0 4px rgba(43, 170, 226, 0.12);
}

.payment-method-option-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.payment-method-option-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.payment-method-provider {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(52, 58, 64, 0.08);
  color: var(--text);
}

.payment-method-provider.is-stripe {
  background: rgba(99, 91, 255, 0.12);
  color: #4f46e5;
}

.payment-method-provider.is-paypal {
  background: rgba(0, 48, 135, 0.1);
  color: #003087;
}

.payment-method-provider.is-manual,
.payment-method-provider.is-bank {
  background: rgba(43, 170, 226, 0.12);
  color: #1d7aa8;
}

.payment-method-option-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.radio-label:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.radio-label input[type="radio"] {
  margin-top: 0.25rem;
  cursor: pointer;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--primary);
}

.radio-label input[type="radio"]:checked + div {
  color: var(--primary);
}

.radio-label input[type="radio"]:checked ~ div {
  color: var(--primary);
}

.radio-label > div {
  flex: 1;
}

.address-display {
  padding: 1rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.checkout-summary {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.checkout-summary-section {
  padding: 1.5rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.checkout-summary-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.1rem;
}

.checkout-summary-total {
  padding: 0;
  background: transparent;
  border: none;
}

.checkout-sidebar-card.checkout-sidebar-total {
  background: linear-gradient(160deg, rgba(43, 170, 226, 0.08) 0%, rgba(52, 58, 64, 0.04) 100%);
  border-color: rgba(43, 170, 226, 0.25);
}

.checkout-total-amount {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--heading);
}

.checkout-success-page {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.checkout-success-page:hover,
.checkout-success-page:focus-within {
  transform: none;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.checkout-success-hero {
  margin-bottom: 1.75rem;
}

.checkout-success-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 158, 92, 0.12);
  color: #1a9e5c;
  animation: checkout-success-pop 0.45s ease;
}

.checkout-success-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.checkout-success-icon-pending {
  background: rgba(43, 170, 226, 0.12);
  color: var(--accent-blue);
}

@keyframes checkout-success-pop {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.checkout-success-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.checkout-success-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.checkout-success-order-card {
  background: var(--product-card-bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.checkout-success-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}

.checkout-success-order-row + .checkout-success-order-row {
  border-top: 1px solid var(--border);
}

.checkout-success-order-id {
  font-size: 1.1rem;
  color: var(--accent-blue);
}

.checkout-success-next {
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.checkout-success-next p {
  margin: 0 0 0.35rem;
}

.checkout-success-actions {
  justify-content: center;
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.checkout-success {
  text-align: center;
  padding: 2rem 0;
}

.success-message {
  font-size: 1.25rem;
  color: #1a9e5c;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .checkout-steps-wrapper::before,
  .checkout-steps-wrapper::after {
    display: none;
  }

  .checkout-steps {
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .checkout-step {
    flex-direction: row;
    justify-content: flex-start;
    min-width: auto;
    gap: 0.75rem;
  }

  .checkout-step-number {
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
  }

  .checkout-step-label {
    text-align: left;
  }

  .checkout-item {
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-areas:
      "image main"
      "image qty"
      "image total";
    align-items: start;
    gap: 0.5rem 0.85rem;
  }

  .checkout-item-image-wrap {
    grid-area: image;
    width: 60px;
    height: 60px;
  }

  .checkout-item-image,
  .checkout-card .checkout-item-image {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
  }

  .checkout-item-main {
    grid-area: main;
  }

  .checkout-item-qty {
    grid-area: qty;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.4rem;
    width: fit-content;
    padding: 0.25rem 0.55rem;
  }

  .checkout-item-total {
    grid-area: total;
    text-align: left;
  }

  .checkout-detail-grid {
    grid-template-columns: 1fr;
  }

  .checkout-actions {
    flex-direction: column-reverse;
  }

  .checkout-actions .button {
    width: 100%;
  }

  .checkout-success-actions {
    flex-direction: column;
  }
}

/* Styles pour la bannière d'accueil */
.home-banner {
  background-color: #1a1f2e;
  background-image: none !important;
  display: block;
  position: relative;
  padding: 0;
  width: 100vw;
  max-width: none;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -2.5rem;
  margin-bottom: 0;
  border-radius: 0;
  overflow: hidden;
}

.home-banner .banner-figure {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: none;
  display: block;
}

.home-banner .banner-image {
  width: 100%;
  height: auto;
  min-height: clamp(280px, 42vw, 520px);
  max-height: 70vh;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
  border-radius: 0;
  display: block;
}

.home-banner .banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #fff;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.38) 100%);
}

.home-banner .banner-title {
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 48rem;
}

.home-banner .banner-subtitle {
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 42rem;
  line-height: 1.55;
}

.home-banner .banner-actions {
  margin-top: 0.35rem;
}

.home-banner .banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.8rem 1.85rem;
  border-radius: 999px;
  background: var(--accent-blue, #2baae2);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home-banner .banner-cta:hover,
.home-banner .banner-cta:focus-visible {
  background: #2499cc;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  outline: none;
}

.home-banner .banner-actions:has(.banner-cta[hidden]) {
  display: none;
}

/* Styles pour la section produits d'accueil - éviter le layout shift */
.home-products {
  min-height: 400px;
}

#home-products-grid[data-state="loading"],
#product-grid[data-state="loading"] {
  min-height: 400px;
}

.home-presentation:not(.is-ready) {
  display: none;
}

#home-banner[hidden] {
  display: none !important;
}

.product-card-skeleton .product-image-link,
.product-card-skeleton .skeleton-line,
.product-card-skeleton .product-card-price,
.product-card-skeleton .product-card-cart {
  background: #e2e6ea;
}

.product-card-skeleton .skeleton-line {
  height: 0.85rem;
  border-radius: 4px;
  margin: 0 auto 0.65rem;
  width: 80%;
}

.product-card-skeleton .skeleton-line-lg {
  width: 92%;
  height: 1rem;
}

.product-card-skeleton .product-card-cart {
  flex: 1;
  min-height: 60px;
}

@keyframes skeleton-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.55;
  }
}

.skeleton-shimmer {
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

#home-products-grid .card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .home-banner {
    padding: 0;
  }

  .home-banner .banner-image {
    min-height: 240px;
    max-height: 55vh;
  }

  .home-banner .banner-content {
    padding: 1.5rem 1rem;
    gap: 0.65rem;
  }

  .home-banner .banner-cta {
    min-width: 0;
    width: min(100%, 18rem);
  }

  .home-products {
    min-height: 300px;
  }
  
  #home-products-grid[data-state="loading"] {
    min-height: 300px;
  }
  
  .layout > *:not(.home-banner) {
    margin-top: 2rem;
  }
}

/* Boutons d'action sans fond dans les tableaux */
button[data-action]:not(.product-image-delete) {
   box-shadow: none !important;
  transform: none !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

button[data-action]:not(.product-image-delete) img {
  opacity: 0.8;
}

button[data-action]:not(.product-image-delete):hover img,
button[data-action]:not(.product-image-delete):focus-visible img {
  opacity: 1;
}

button[data-action]:not(.product-image-delete):hover,
button[data-action]:not(.product-image-delete):focus-visible {
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.8;
}

/* Conteneur des boutons d'action dans les tableaux */
.table td > div[style*="display: flex"] {
  display: flex !important;
  gap: 0.25rem !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

/* Colonne des actions dans le tableau produits */
.table td:last-child {
  width: auto;
  min-width: 80px;
  white-space: nowrap;
}

/* Colonne statut */
.table th:nth-child(7),
.table td:nth-child(7) {
  max-width: 140px;
  white-space: nowrap;
}

/* Section upselling */
.upsells-section {
  margin-top: 3rem;
}

.upsells-section .card {
  padding: 2rem;
}

.upsells-section h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  color: var(--heading);
}

.upsells-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.upsells-grid .product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upsells-grid .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.upsells-grid .product-card img {
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.upsells-grid .product-card .button {
  margin-top: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .upsells-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
  
  .upsells-section .card {
    padding: 1.5rem;
  }
  
  .upsells-section h2 {
    font-size: 1.25rem;
  }
}

/* ---------- Prise de rendez-vous : semainier ---------- */
.appointment-notes-row {
  margin-bottom: 1rem;
}

.appointment-notes-row label {
  display: block;
}

.appointment-notes-row textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
}

.appointment-week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.appointment-week-label {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading);
}

.appointment-semainier-container {
  min-height: 120px;
}

.semainier-loading {
  padding: 1rem 0;
}

.appointment-semainier {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.appointment-day-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.appointment-day-column.is-past {
  opacity: 0.65;
}

.appointment-day-header {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--heading);
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.appointment-day-slots {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Plage déjeuner grisée dans le semainier */
.semainier-lunch-break {
  padding: 0.5rem 0.75rem;
  margin: 0.25rem 0;
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.06);
  border-radius: calc(var(--radius) - 2px);
  border: 1px dashed var(--border);
  line-height: 1.3;
  user-select: none;
}

.appointment-slot-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.appointment-slot-btn:hover:not(:disabled) {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.appointment-slot-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Créneau déjà réservé par le client (couleur distincte) */
.appointment-slot-btn.is-selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.appointment-slot-btn.is-selected:hover:not(:disabled) {
  background: var(--primary);
  filter: brightness(1.08);
  border-color: var(--primary);
}

.semainier-day-empty {
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .appointment-semainier {
    grid-template-columns: repeat(2, 1fr);
  }

  .appointment-week-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .appointment-week-label {
    text-align: center;
  }
}

/* ---------- Horaires d'ouverture (admin) ---------- */
.opening-hours-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.opening-hours-config-section {
  padding: 1rem;
  background: rgba(19, 78, 120, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

#days-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.opening-hours-day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.opening-hours-day-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.opening-hours-day-row .checkbox-text {
  font-size: 1rem;
}

.opening-hours-time-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.opening-hours-time-inputs input[type="time"],
.opening-hours-day-card .lunch-break-inputs input[type="time"] {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 8px);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  width: 6.5rem;
  min-height: 36px;
  transition: border-color 0.2s ease;
}

.opening-hours-time-inputs input[type="time"]:focus,
.opening-hours-day-card .lunch-break-inputs input[type="time"]:focus {
  outline: none;
  border-color: var(--primary);
}

.opening-hours-time-inputs input[type="time"]:disabled,
.opening-hours-day-card .lunch-break-inputs input[type="time"]:disabled {
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.opening-hours-day-card .lunch-break-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.opening-hours-day-card .lunch-break-inputs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}

/* ---------- Page Informations (horaires, contact, carte) ---------- */
.informations-page .informations-header {
  margin-bottom: 1.5rem;
  position: static;
  display: block;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: 0;
  backdrop-filter: none;
}

.informations-page .informations-header h1 {
  margin-bottom: 0.25rem;
}

.informations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.informations-card {
  padding: 1.25rem;
}

.informations-card-wide {
  grid-column: span 2;
}

.informations-card-full {
  grid-column: span 2;
}

/* Tableau des horaires d'ouverture */
.informations-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.informations-hours-table th,
.informations-hours-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(19, 78, 120, 0.1);
}

.informations-hours-table thead th {
  font-weight: 600;
  color: var(--text);
  background: rgba(19, 78, 120, 0.06);
  border-bottom: 2px solid rgba(19, 78, 120, 0.15);
}

.informations-hours-table tbody tr:hover {
  background: rgba(19, 78, 120, 0.03);
}

.informations-hours-day {
  font-weight: 600;
  color: var(--text);
}

.informations-hours-slot {
  color: var(--text);
}

.informations-contact-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.informations-contact-list li {
  padding: 0.35rem 0;
}

.informations-contact-list li[hidden] {
  display: none;
}

.informations-contact-list a {
  color: var(--accent, #134e78);
  text-decoration: none;
}

.informations-contact-list a:hover {
  text-decoration: underline;
}

.informations-important-info {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.informations-important-info h3 {
  margin: 0 0 0.65rem;
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 500;
}

.informations-important-info-content {
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

.informations-map-wrap {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius, 8px);
  overflow: hidden;
  background: #f0f0f0;
}

.informations-map-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Formulaire de contact (style soigné) ---------- */
.contact-form-card {
  background: linear-gradient(135deg, #ffffff 0%, rgba(19, 78, 120, 0.02) 100%);
  border: 1px solid rgba(19, 78, 120, 0.12);
  border-left: 4px solid var(--primary);
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 20px rgba(19, 78, 120, 0.06);
}

.contact-form-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(19, 78, 120, 0.08);
}

.contact-form-header h2 {
  margin: 0 0 0.35rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.contact-form-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.contact-form-card .contact-form {
  gap: 1.25rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-form-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: text;
}

.contact-form-label-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.contact-form-required {
  color: var(--danger);
  font-weight: 700;
  margin-left: 0.15em;
}

.contact-form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  font-family: inherit;
}

.contact-form-input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.contact-form-input:hover {
  border-color: rgba(19, 78, 120, 0.35);
}

.contact-form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: #fff;
}

.contact-form-textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-textarea::-webkit-resizer {
  opacity: 0.5;
}

.contact-form-feedback {
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.contact-form-actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
}

.contact-form-submit {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-submit:hover,
.contact-form-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(19, 78, 120, 0.25);
}

.contact-form-submit:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .informations-grid {
    grid-template-columns: 1fr;
  }

  .informations-card-wide,
  .informations-card-full {
    grid-column: span 1;
  }

  .contact-form-card {
    padding: 1.25rem 1.25rem;
  }

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

  .contact-form-actions {
    justify-content: stretch;
  }

  .contact-form-submit {
    width: 100%;
  }
}

.footer-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.footer-admin-columns {
  display: grid;
  gap: 1rem;
}

.footer-admin-column {
  padding: 1rem;
  background: rgba(19, 78, 120, 0.03);
}

.footer-admin-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-admin-column-header h3 {
  margin: 0;
}

.footer-admin-links {
  display: grid;
  gap: 0.85rem;
}

.footer-admin-link {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.footer-admin-link-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer-admin-link-field {
  display: grid;
  gap: 0.25rem;
}

.footer-admin-remove-link {
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------------ */
/* Amenic — header 2 niveaux + cartes produits WooCommerce            */
/* ------------------------------------------------------------------ */

.site-header.site-header-amenic {
  display: block;
  padding: 0;
  background: #ffffff;
  border-bottom: none;
  box-shadow: none;
}

.site-header-amenic .site-header-top {
  display: grid;
  grid-template-columns: auto minmax(220px, 520px) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 2rem;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
}

.site-header-amenic .brand-logo {
  width: 165px;
  max-width: 165px;
  height: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.site-header-amenic .header-search-center {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.site-header-amenic .header-search-center .search-container {
  max-width: none;
  position: relative;
}

.site-header-amenic .search-container-amenic .search-input {
  padding-right: 2.75rem;
}

.site-header-amenic .search-input-icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #868e96;
  pointer-events: none;
}

.site-header-amenic .search-input {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid #ced4da;
  background: #ffffff;
  color: var(--text);
}

.site-header-amenic .search-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(43, 170, 226, 0.15);
}

.site-header-amenic .header-account-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: end;
}

.site-header-amenic .header-account {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #868e96;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header-amenic .header-account-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0.05rem;
}

.site-header-amenic .header-account-line {
  display: block;
}

.site-header-amenic .header-account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #ffffff;
  flex-shrink: 0;
}

.site-header-amenic .header-account-guest-svg {
  display: block;
}

.site-header-amenic .header-account-initials {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.site-header-amenic .header-account.is-logged-in .header-account-text {
  display: none;
}

.site-header-amenic .header-account.is-logged-in .header-account-guest-svg {
  display: none;
}

.site-header-amenic .header-account-logout {
  border: 1px solid #dee2e6;
  background: #ffffff;
  color: #495057;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-header-amenic .header-account-logout:hover,
.site-header-amenic .header-account-logout:focus-visible {
  background: #f8f9fa;
  border-color: #ced4da;
  color: #212529;
}

.site-header-amenic .site-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
  padding: 0 2rem;
  background: var(--header-bg);
}

.site-header-amenic .site-header-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  font-family: var(--nav-font);
}

.site-header-amenic .site-header-menu a {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  min-height: 62px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: capitalize;
  border-right: 1px solid #14181d;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-header-amenic .site-header-menu a:hover,
.site-header-amenic .site-header-menu a:focus-visible {
  background: #ffffff;
  color: var(--accent-blue);
}

.site-header-amenic .header-cart-summary {
  display: inline-flex;
  align-items: center;
  font-family: var(--nav-font);
  gap: 0.65rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.site-header-amenic .header-cart-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-header-amenic .header-cart-sep {
  opacity: 0.65;
  font-weight: 300;
}

.site-header-amenic .header-cart-icon {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.site-header-amenic .header-cart-summary .cart-badge {
  display: none !important;
}

.site-header-amenic .header-cart-total {
  font-weight: 600;
  min-width: 4.75rem;
  display: inline-block;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.site-header-amenic .header-cart-count {
  opacity: 0.85;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.site-footer .footer-title,
.site-footer .footer-brand {
  color: var(--header-text);
}

.site-footer .footer-link {
  color: rgba(247, 247, 247, 0.78);
}

.product-card-amenic {
  padding: 0;
  overflow: hidden;
  border: 1px solid #cccccc;
  border-radius: 0;
  background: var(--product-card-bg);
  box-shadow: none;
  gap: 0;
  display: flex;
  flex-direction: column;
}

.card.product.product-card-amenic {
  padding: 0;
  gap: 0;
}

.product-card-amenic:hover,
.product-card-amenic:focus-within {
  transform: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-card-amenic .product-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  background: var(--product-card-bg);
  min-height: 240px;
  height: 240px;
}

.product-card-amenic .product-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 240px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center center;
  background: var(--product-card-bg);
}

.product-card-amenic .product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.65rem 1rem 1rem;
  text-align: center;
  background: var(--product-card-bg);
}

.product-card-amenic .product-card-categories {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #495057;
}

.product-card-amenic .product-card-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: #000000;
  font-family: var(--heading-font);
}

.product-card-amenic .product-card-title a {
  color: inherit;
  text-decoration: none;
}

.product-card-amenic .product-card-title a:hover {
  color: var(--accent-blue);
}

.product-card-amenic .product-card-stars {
  display: block;
  margin-bottom: 0;
  color: #ffc107;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.product-card-amenic .product-card-footer {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 60px;
  margin-top: auto;
  flex-shrink: 0;
}

.product-card-amenic .product-card-price {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--shop-price-bg);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
}

.product-card-amenic .product-card-cart.add-to-cart-btn {
  flex: 1;
  width: 100%;
  border: none;
  background: #1565a8 !important;
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.2s ease;
}

.product-card-amenic .product-card-cart.add-to-cart-btn:hover,
.product-card-amenic .product-card-cart.add-to-cart-btn:focus-visible {
  background: #0f5288 !important;
  box-shadow: none !important;
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}

.button {
  background: var(--accent-blue);
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 18px 28px rgba(43, 170, 226, 0.22);
}

.button:not(.product-card-cart):hover,
.button:not(.product-card-cart):focus-visible {
  background: var(--accent-blue);
}

@media (max-width: 768px) {
  :root {
    --header-height: 112px;
  }

  .site-header-amenic .site-header-top {
    grid-template-columns: auto 1fr auto;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .site-header-amenic .header-search-center {
    display: none;
  }

  body.search-open .site-header-amenic .header-search-center {
    display: block;
    grid-column: 1 / -1;
    order: 3;
  }

  .site-header-amenic .header-account-wrap {
    display: none;
  }

  .site-header-amenic .site-header-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  body.nav-open .site-header-amenic .site-header-nav {
    display: flex;
  }

  .site-header-amenic .site-header-menu {
    flex-direction: column;
    width: 100%;
  }

  .site-header-amenic .site-header-menu a {
    border-right: none;
    border-bottom: 1px solid #14181d;
  }

  .site-header-amenic .header-cart-summary {
    justify-content: center;
    padding: 0.85rem 1rem;
    border-top: 1px solid #14181d;
  }

  .site-header-amenic .header-burger-bar {
    background: #343a40;
  }
}

@media (min-width: 769px) {
  .site-header-amenic .header-actions-mobile {
    display: none;
  }
}

/* Admin — fiche produit */
.product-edit-back {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.product-edit-back:hover {
  color: var(--accent-blue);
}

.product-edit-header {
  align-items: flex-start;
}

.product-edit-header-actions {
  flex-shrink: 0;
}

.product-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.product-edit-main .form-field label {
  text-align: left;
}

.product-edit-hint {
  font-size: 0.85rem;
  margin: 0 0 0.75rem 0;
}

.product-edit-footer {
  grid-column: 1 / -1;
}

.product-images-card {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  background: #fff;
}

.product-images-card .card-header {
  padding: 0;
  margin-bottom: 0.75rem;
}

.product-images-card .card-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.product-images-card .card-header p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
}

.product-images-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  min-height: 2rem;
}

.product-images-empty {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  padding: 1rem 0;
}

.product-image-item {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  background: var(--surface-muted, #f2f3f5);
}

.product-image-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 1;
  background: var(--accent-blue);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.product-image-delete {
  position: absolute !important;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(205, 37, 41, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger, #cd2529);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: background 0.15s ease, transform 0.15s ease;
}

.product-image-delete:hover {
  background: #fff;
  transform: scale(1.05);
}

.product-image-delete svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.product-images-dropzone {
  margin-top: 0.75rem;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  background: #fafbfc;
}

.product-images-dropzone:hover,
.product-images-dropzone.is-dragover {
  border-color: var(--accent-blue);
  background: rgba(43, 170, 226, 0.06);
}

.product-images-dropzone.is-uploading {
  opacity: 0.7;
  pointer-events: none;
}

.product-images-dropzone.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.product-images-dropzone-inner p {
  margin: 0.5rem 0 0.25rem;
}

.product-images-dropzone-icon {
  width: 32px;
  height: 32px;
  opacity: 0.7;
}

.product-images-status {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}

.product-images-status.is-error {
  color: var(--danger, #cd2529);
}

.product-images-status.is-success {
  color: #1a7f37;
}

.product-list-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  max-width: 100%;
}

.product-list-link:hover {
  color: var(--accent-blue);
}

.product-list-link span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.product-list-link--thumb {
  display: inline-flex;
}

.product-list-title {
  display: block;
  min-width: 12rem;
  max-width: none;
  white-space: normal;
  line-height: 1.4;
  word-break: break-word;
  font-size: 0.95rem;
  font-weight: 500;
}

.product-list-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.product-list-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: nowrap;
}

.product-list-action {
  padding: 0.3rem;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
}

.product-list-action img {
  width: 18px;
  height: 18px;
  display: block;
}

.product-photo-count {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
}

.product-catalog-toolbar {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-catalog-search {
  margin: 0;
  max-width: 28rem;
}

.product-search-meta {
  margin: 0;
  font-size: 0.9rem;
}

.content-page-card {
  max-width: 920px;
  margin: 0 auto;
}

.content-page-header {
  position: static;
  display: block;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: 0;
  backdrop-filter: none;
}

.content-page-header h1 {
  margin: 0;
}

.content-page-header.is-hidden {
  display: none !important;
}

.content-page-hero.is-hidden {
  display: none !important;
}

.content-page-hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -2.5rem;
  margin-bottom: 0;
}

.content-page-hero-figure {
  position: relative;
  margin: 0;
  width: 100%;
  min-height: 200px;
  overflow: hidden;
}

.content-page-hero-image {
  width: 100%;
  height: clamp(180px, 28vw, 280px);
  object-fit: cover;
  display: block;
}

.content-page-hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.38);
  text-align: center;
}

.content-page-hero-caption h1 {
  margin: 0;
  color: #fff;
  font-family: "candy_shop", "Brush Script MT", cursive;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  text-shadow: 1px 1px 1px #000;
}

.content-page-hero + .layout.content-page,
.content-page-hero + .layout {
  margin-top: 2rem;
}

.page-header-image-preview {
  margin-top: 0.75rem;
}

.page-header-image-preview img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

#product-admin .table th:nth-child(1),
#product-admin .table td:nth-child(1) {
  width: 3.75rem;
  max-width: 3.75rem;
  min-width: 3.75rem;
  text-align: center;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

#product-admin .table th:nth-child(2),
#product-admin .table td:nth-child(2) {
  width: 4.25rem;
  max-width: 4.25rem;
  min-width: 4.25rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  overflow: visible;
  text-overflow: unset;
}

#product-admin .table th:nth-child(3),
#product-admin .table td:nth-child(3) {
  min-width: 14rem;
  max-width: none;
  width: 42%;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

#product-admin .table th:nth-child(4),
#product-admin .table td:nth-child(4) {
  width: 6.5rem;
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

#product-admin .table th:nth-child(5),
#product-admin .table td:nth-child(5) {
  width: 3.75rem;
  max-width: 3.75rem;
  min-width: 3.75rem;
  text-align: center;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

#product-admin .table th:nth-child(6),
#product-admin .table td:nth-child(6) {
  width: 5.5rem;
  max-width: 6rem;
  text-align: right;
}

#product-admin .table th:nth-child(7),
#product-admin .table td:nth-child(7) {
  max-width: 8.5rem;
  white-space: nowrap;
}

.product-list-position-input {
  width: 2.75rem;
  min-width: 2.75rem;
  padding: 0.2rem 0.25rem;
  text-align: center;
}

@media (max-width: 960px) {
  .product-edit-grid {
    grid-template-columns: 1fr;
  }

  .product-images-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .product-images-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Admin — moyens de paiement */
.payment-methods-admin-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-admin-card {
  padding: 1.15rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-admin-card.is-enabled {
  border-color: rgba(43, 170, 226, 0.45);
  box-shadow: 0 0 0 4px rgba(43, 170, 226, 0.08);
}

.payment-admin-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.payment-admin-toggle {
  margin-right: auto;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgba(52, 58, 64, 0.05);
}

.payment-admin-toggle span {
  font-weight: 600;
  font-size: 0.9rem;
}

.payment-admin-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.payment-admin-status.is-ready {
  background: rgba(30, 122, 26, 0.12);
  color: #1e7a1a;
}

.payment-admin-status.is-warning {
  background: rgba(205, 37, 41, 0.12);
  color: #a61b1f;
}

.payment-admin-status.is-neutral {
  background: rgba(52, 58, 64, 0.08);
  color: var(--muted);
}

.payment-admin-card .form-field {
  margin: 0;
}

.payment-admin-card .form-field textarea {
  min-height: 88px;
}

.payment-admin-missing {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(205, 37, 41, 0.06);
  font-size: 0.85rem;
}

.payment-env-guide-card code {
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(52, 58, 64, 0.06);
  font-size: 0.88em;
}

.payment-env-guide {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.payment-env-intro p {
  margin: 0 0 0.5rem;
}

.payment-env-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.payment-env-block {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  background: #fafbfc;
}

.payment-env-block h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.payment-env-vars {
  margin: 0;
  padding-left: 1.1rem;
}

.payment-env-vars li + li {
  margin-top: 0.35rem;
}

.payment-gateway-settings {
  display: grid;
  gap: 1.25rem;
}

.payment-gateway-panel {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 0;
}

.payment-gateway-panel legend {
  font-family: var(--font-heading, inherit);
  font-weight: 600;
  padding: 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.payment-gateway-source {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.payment-gateway-source.is-db {
  background: rgba(43, 170, 226, 0.12);
  color: #1a7aa8;
}

.payment-gateway-source.is-env {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.payment-gateway-hint {
  margin: 0.5rem 0 0;
}

.payment-methods-menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.payment-methods-menu-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.payment-methods-menu-card:hover {
  border-color: var(--accent, #2baae2);
  box-shadow: 0 8px 24px rgba(43, 170, 226, 0.12);
  transform: translateY(-1px);
}

.payment-methods-menu-card.is-enabled {
  border-color: rgba(43, 170, 226, 0.45);
}

.payment-methods-menu-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.payment-methods-menu-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.payment-methods-menu-card-desc {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 1;
}

.payment-methods-menu-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.payment-methods-menu-card-action {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent, #2baae2);
}

.payment-methods-edit-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.payment-methods-sidebar {
  position: sticky;
  top: 1rem;
  padding: 0.75rem;
}

.payment-methods-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.payment-methods-nav-overview,
.payment-methods-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.payment-methods-nav-overview:hover,
.payment-methods-nav-item:hover {
  background: rgba(43, 170, 226, 0.06);
}

.payment-methods-nav-overview.is-active,
.payment-methods-nav-item.is-active {
  background: rgba(43, 170, 226, 0.12);
  border-color: rgba(43, 170, 226, 0.25);
}

.payment-methods-nav-label {
  font-weight: 600;
}

.payment-method-edit-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.payment-gateway-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.payment-gateway-panel-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.payment-gateway-mode {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.payment-gateway-mode.is-test {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.payment-gateway-mode.is-live {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.payment-gateway-mode.is-unknown {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

.payment-gateway-help {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: rgba(43, 170, 226, 0.08);
  border: 1px solid rgba(43, 170, 226, 0.18);
}

.payment-gateway-help p {
  margin: 0 0 0.5rem;
}

.payment-gateway-help ol {
  margin: 0.35rem 0 0.5rem;
  padding-left: 1.2rem;
}

.payment-gateway-help li + li {
  margin-top: 0.25rem;
}

.payment-gateway-help code {
  font-size: 0.88em;
}

.payment-gateway-panel-head h3 {
  margin: 0;
}

#payment-method-gateway-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#payment-method-gateway-fields[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .payment-methods-edit-layout {
    grid-template-columns: 1fr;
  }

  .payment-methods-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .payment-admin-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .payment-admin-toggle {
    margin-right: 0;
  }
}

/* Mondial Relay — surcharge du widget (classes MRW-* / PR-* — doc MR, CSS: "1" + overrides) */
.mondial-relay-widget-panel {
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mondial-relay-widget-header h3 {
  margin: 0 0 0.35rem;
  font-family: var(--heading-font);
  font-size: 1.15rem;
  color: var(--heading);
}

.mondial-relay-widget-header p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.mondial-relay-zone-host {
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: #fff;
}

/* Police du site sur tout le contenu injecté par le widget */
#mondial-relay-zone,
#mondial-relay-zone * {
  font-family: var(--body-font) !important;
  letter-spacing: normal;
}

#mondial-relay-zone .PR-Name {
  font-family: var(--heading-font) !important;
}

#mondial-relay-zone input,
#mondial-relay-zone button {
  font-family: var(--body-font) !important;
}

/* Barre de recherche */
#mondial-relay-zone .MRW-Search {
  padding: 1rem 1.1rem !important;
  gap: 0.75rem;
  background: var(--product-card-bg) !important;
  border-bottom: 1px solid var(--border) !important;
}

#mondial-relay-zone .MRW-Search input[type="text"],
#mondial-relay-zone .MRW-Search input.Arg2,
#mondial-relay-zone .MRW-Search input.iArg0 {
  padding: 0.65rem 0.85rem !important;
  border: 1px solid var(--border) !important;
  border-radius: calc(var(--radius) - 10px) !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  color: var(--text) !important;
  background: #fff !important;
  min-height: 2.5rem;
}

#mondial-relay-zone .MRW-Search input:focus {
  outline: none;
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 3px rgba(43, 170, 226, 0.15);
}

#mondial-relay-zone .MRW-BtGo {
  padding: 0.65rem 1.15rem !important;
  border-radius: calc(var(--radius) - 10px) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  min-height: 2.5rem;
}

#mondial-relay-zone .MRW-BtGeoGo {
  border-radius: 50% !important;
  min-width: 2.5rem;
  min-height: 2.5rem;
}

#mondial-relay-zone .MRW-flag {
  border-radius: 4px;
}

/* Zone résultats + carte */
#mondial-relay-zone .MRW-Results {
  padding: 0 !important;
}

#mondial-relay-zone .MRW-RList {
  padding: 0.75rem !important;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 58, 64, 0.25) transparent;
}

/* Items Point Relais — plus d'air entre les infos */
#mondial-relay-zone .PR-List-Item {
  padding: 1rem 1.1rem !important;
  margin-bottom: 0.7rem !important;
  border: 1px solid var(--border) !important;
  border-radius: calc(var(--radius) - 6px) !important;
  background: #fff !important;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#mondial-relay-zone .PR-List-Item:last-child {
  margin-bottom: 0 !important;
}

#mondial-relay-zone .PR-List-Item:hover {
  border-color: rgba(43, 170, 226, 0.45) !important;
  background: rgba(43, 170, 226, 0.04) !important;
}

#mondial-relay-zone .PR-List-Item.PR-Disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#mondial-relay-zone .PR-Name {
  margin: 0 0 0.55rem !important;
  padding: 0 !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  text-transform: none !important;
  color: var(--heading) !important;
}

#mondial-relay-zone .PR-List-Item > div:not(.PR-Name) {
  margin: 0.3rem 0 0 !important;
  padding: 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
  text-transform: none !important;
  color: var(--muted) !important;
}

#mondial-relay-zone .PR-List-Item > div:empty {
  display: none;
}

/* Carte Leaflet */
#mondial-relay-zone .MRW-Map {
  min-height: 320px;
  border-left: 1px solid var(--border);
}

#mondial-relay-zone .leaflet-container {
  font-family: var(--body-font) !important;
}

#mondial-relay-zone .leaflet-popup-content {
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}

#mondial-relay-zone .MRW-Errors {
  margin: 0.75rem 1rem !important;
  padding: 0.75rem 1rem !important;
  border-radius: calc(var(--radius) - 8px);
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
}

.mondial-relay-selection-summary {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  border-radius: calc(var(--radius) - 6px);
  border: 1px dashed var(--border);
  background: var(--product-card-bg);
  color: var(--muted);
  min-height: 2.75rem;
}

.mondial-relay-selection-summary:not(:empty) {
  border-style: solid;
}

.mondial-relay-selection-summary.is-selected {
  border-color: rgba(43, 170, 226, 0.35);
  background: rgba(43, 170, 226, 0.08);
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 768px) {
  .mondial-relay-widget-panel {
    padding: 1rem;
  }

  .mondial-relay-zone-host {
    min-height: 520px;
  }

  #mondial-relay-zone .MRW-RList {
    max-height: 240px;
  }

  #mondial-relay-zone .MRW-Map {
    border-left: none;
    border-top: 1px solid var(--border);
    min-height: 260px;
  }

  #mondial-relay-zone .PR-List-Item {
    padding: 0.9rem 1rem !important;
  }
}

.checkout-summary-totals {
  gap: 0.35rem;
  min-width: min(100%, 320px);
}

.checkout-summary-total-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.checkout-summary-total-final {
  margin-top: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(43, 170, 226, 0.35);
  font-size: 1.05rem;
}

/* Journal */
.journal-page-header {
  margin-bottom: 2rem;
}

.journal-page-header h1 {
  margin-bottom: 0.35rem;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.journal-card {
  border: 1px solid rgba(43, 170, 226, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.journal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.journal-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.journal-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.journal-card-image-placeholder {
  background: linear-gradient(135deg, rgba(43, 170, 226, 0.12), rgba(43, 170, 226, 0.04));
}

.journal-card-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.journal-card-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.journal-card-title {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
}

.journal-card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.journal-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.journal-pagination-info {
  color: var(--muted);
  font-size: 0.95rem;
}

.journal-post-date {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.journal-share-text {
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(43, 170, 226, 0.06);
  border: 1px solid rgba(43, 170, 226, 0.15);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
}

.journal-share-actions {
  margin-top: 0.75rem;
  padding-top: 0;
}
