/* Adaptation WordPress du design historique. */

body.admin-bar .site-header { top: 32px; }
.admin-bar .main-nav { top: 32px; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.header-cart {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.cart-count {
  display: inline-grid;
  min-width: 1.45rem;
  min-height: 1.45rem;
  place-items: center;
  padding-inline: 0.25rem;
  border-radius: 999px;
  color: var(--paper);
  background: var(--red);
  font-size: 0.68rem;
  line-height: 1;
}

.home-shops-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.home-shops-grid-single .home-shop {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
}

.home-shops-grid-single .home-shop-copy {
  align-content: center;
}

.shop-strip-single {
  grid-template-columns: auto minmax(12rem, 1fr) auto auto;
}

.shop-strip-order {
  color: var(--red);
}

.standard-page,
.woo-single-page,
.shop-order-page {
  min-height: 70vh;
}

.page-hero-compact {
  min-height: min(48vh, 32rem);
}

.standard-content {
  background: var(--paper);
}

.entry-content {
  max-width: 980px;
}

.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2,
.entry-content h3 {
  font-family: var(--serif);
  font-weight: 400;
}
.entry-content h2 {
  margin-top: 2.8rem;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}
.entry-content h3 { margin-top: 2rem; }
.entry-content a { color: var(--red-dark); }
.entry-content ul,
.entry-content ol { padding-left: 1.4rem; }

.post-list {
  display: grid;
  gap: 1rem;
}

.post-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.post-card h2 { margin-bottom: 0.75rem; }
.post-card a { text-decoration: none; }

.form-feedback {
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  font-weight: 650;
}

.form-feedback.is-success {
  color: #234c2c;
  border: 1px solid #6b9a72;
  background: #edf6ee;
}

.form-feedback.is-error {
  color: var(--red-dark);
  border: 1px solid rgba(180, 31, 36, 0.35);
  background: rgba(180, 31, 36, 0.08);
}

.privacy-check {
  display: grid;
  align-items: start;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  font-size: 0.86rem;
}

.privacy-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--red);
}

.privacy-check a { color: var(--red-dark); }

.adp-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.footer-main {
  grid-template-columns: 1.15fr 0.75fr 1fr 0.9fr;
}

.footer-direction {
  display: inline-block;
  margin-top: 0.65rem;
}

.footer-cookie-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.cookie-panel[hidden] { display: none; }

.cookie-panel {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  align-items: end;
}

.cookie-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 7, 0.7);
  backdrop-filter: blur(6px);
}

.cookie-panel-card {
  position: relative;
  z-index: 1;
  width: min(100%, 44rem);
  max-height: min(90vh, 52rem);
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  overflow-y: auto;
  border-radius: 1.5rem 1.5rem 0 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cookie-panel-card h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.cookie-panel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
}

.cookie-choice {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.cookie-choice div { display: grid; }
.cookie-choice small { color: var(--muted); }
.cookie-choice input { width: 1.35rem; height: 1.35rem; accent-color: var(--red); }
.cookie-required { color: var(--muted); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; }

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

.cart-toast {
  position: fixed;
  z-index: 1100;
  right: 1.2rem;
  bottom: 1.2rem;
  max-width: min(26rem, calc(100vw - 2.4rem));
  padding: 0.95rem 1.15rem;
  border-radius: 0.85rem;
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  font-weight: 700;
}

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

@media (max-width: 1200px) {
  .footer-main { grid-template-columns: 1.2fr 0.8fr 1fr; }
  .footer-commerce { grid-column: 2 / 4; }
}

@media (max-width: 1080px) {
  .header-actions { display: contents; }
  .header-cart { display: none; }
  .nav-toggle { grid-column: 2; }
  .home-shops-grid-single .home-shop { grid-template-columns: 1fr; }
  .shop-strip-single { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-strip-title { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  .admin-bar .main-nav { top: 46px; }
}

@media (max-width: 680px) {
  .shop-strip-single { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-commerce { grid-column: auto; }
  .cookie-panel-card { max-height: 94vh; padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
  .cookie-choice { align-items: start; }
  .mobile-cart-bar {
    position: fixed;
    z-index: 150;
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: 0.75rem;
    display: flex;
    min-height: 3.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--paper);
    background: rgba(17, 16, 15, 0.96);
    box-shadow: 0 18px 44px rgba(17, 16, 15, 0.3);
    backdrop-filter: blur(14px);
    text-decoration: none;
  }
  .mobile-cart-bar > span { display: flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
  .mobile-cart-bar strong { font-size: 0.9rem; }
  body.woocommerce-page { padding-bottom: 5.25rem; }
  .cart-toast { right: 0.75rem; bottom: 5.5rem; left: 0.75rem; }
}

@media (max-width: 600px) {
  body.admin-bar .site-header { top: 0; }
  .admin-bar .main-nav { top: 0; }
}

