/* ── Variables & Reset ─────────────────────────────────────────────────────── */
:root {
  --blue-light: #ADD8E6;
  --blue-mid:   #15819b;
  --orange:     #ff9344;
  --white:      #ffffff;
  --off-white:  #f8f6f2;
  --text:       #2c2c2c;
  --text-light: #666;
  --danger:     #c0392b;
  --success:    #27ae60;
  --warning:    #e67e22;
  --shadow:     0 2px 1em rgba(0,0,0,.10);
  --radius:     8px;
}

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

body {
  font-family: 'Playfair Display', Georgia, serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout helpers ─────────────────────────────────────────────────────────── */
.container {
  max-width: 100%;
  padding: 1.5rem 1.5rem;
  flex: 1;
}
/* Formulaires et pages internes : on garde une largeur max pour la lisibilité */
.checkout-page, .login-page, .artist-page, .admin-page, .order-confirmation,
.mentions-page, .product-detail {
  max-width: 1200px;
  margin: 0 auto;
}
/* Page artiste élargie sur grand écran */
.wide-page {
  max-width: 1600px;
}

.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row > .form-group { flex: 1; min-width: 200px; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.header-container {
  background: var(--blue-light);
  padding: 0;
}

.top-section {
  padding: 1.2rem 2rem .8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.header-back-link {
  font-family: 'Unbounded', sans-serif;
  font-size: .72rem;
  font-weight: 300;
  color: var(--blue-mid);
  text-decoration: none;
  letter-spacing: .03em;
  white-space: nowrap;
  opacity: .85;
  transition: opacity .2s;
}
.header-back-link:hover { opacity: 1; color: var(--orange); }

.titles {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo-container img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.nomboutique a.shop-name {
  font-family: 'Henny Penny', cursive;
  font-size: 2rem;
  color: var(--orange);
  text-decoration: none;
  text-shadow: 1px 1px 0 rgba(0,0,0,.15);
}

.txtboutique .shop-subtitle {
  font-family: 'Unbounded', sans-serif;
  font-size: .75rem;
  font-weight: 300;
  color: var(--blue-mid);
  letter-spacing: .05em;
  margin-top: .15rem;
}

nav {
  background: var(--blue-mid);
  padding: .55rem 2rem;
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--white);
  font-family: 'Unbounded', sans-serif;
  font-size: .8rem;
  font-weight: 400;
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 4px;
  transition: background .2s;
}
nav a:hover { background: rgba(255,255,255,.15); text-decoration: none; }

.separator { color: rgba(255,255,255,.4); margin: 0 .1rem; }

.nav-cart { font-weight: 600; }

.cart-badge {
  background: var(--orange);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 999px;
  margin-left: .25rem;
}

/* ── SVG Waves ──────────────────────────────────────────────────────────────── */
.wave { display: block; width: 100%; height: 60px; }
.wave-container { margin-top: auto; }

/* ── Flash messages ─────────────────────────────────────────────────────────── */
.flash {
  padding: .85rem 1.2rem;
  border-radius: var(--radius);
  margin: .8rem auto;
  max-width: 1100px;
  font-size: .95rem;
}
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.flash-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .5rem 1.2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: 'Unbounded', sans-serif;
  font-size: .8rem;
  font-weight: 400;
  text-decoration: none;
  transition: filter .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary  { background: var(--blue-mid); color: var(--white); }
.btn-danger   { background: var(--danger);   color: var(--white); }
.btn-success  { background: var(--success);  color: var(--white); }
.btn-warning  { background: var(--warning);  color: var(--white); }
.btn-ghost    { background: transparent; color: var(--blue-mid); border: 1px solid var(--blue-mid); }
.btn-lg  { padding: .7rem 1.8rem; font-size: .9rem; }
.btn-sm  { padding: .3rem .7rem; font-size: .75rem; }
.btn-full { width: 100%; text-align: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-remove {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 .3rem;
}

/* ── Forms ──────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .3rem; color: var(--text); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .6rem .9rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  background: var(--white);
  color: var(--text);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 2px rgba(21,129,155,.15);
}
.form-hint { color: var(--text-light); font-size: .88rem; margin-bottom: .8rem; }
.form-check { display: flex; align-items: center; gap: .5rem; }
.form-check label { margin: 0; }
.checkbox-label { display: flex; align-items: center; gap: .4rem; font-size: .85rem; cursor: pointer; }
.form-actions { display: flex; gap: .8rem; margin-top: 1.2rem; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  background: var(--blue-light);
  padding: .8rem 2rem;
}
.footer-content {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-size: .85rem;
  color: var(--text);
}
.footer-content a { color: var(--blue-mid); }
.footer-sep { color: var(--text-light); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}
.hero h1 {
  font-family: 'Henny Penny', cursive;
  font-size: 2.2rem;
  color: var(--blue-mid);
}
.hero-sub { color: var(--text-light); margin-top: .4rem; font-size: 1rem; }

/* ── Artist filter ──────────────────────────────────────────────────────────── */
.artist-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.filter-btn {
  padding: .35rem .9rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--blue-mid);
  color: var(--blue-mid);
  font-size: .85rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--blue-mid);
  color: var(--white);
  text-decoration: none;
}

/* ── Nav cart à droite ──────────────────────────────────────────────────────── */
nav { justify-content: flex-start; }
.nav-cart { margin-left: auto; }

/* ── Product grid ───────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .15s;
}
.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.15); transform: translateY(-2px); }

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f5f5f5;
  padding: .5rem;
}
.no-image {
  width: 100%;
  height: 200px;
  background: #e8e4de;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .85rem;
}
.no-image.large  { height: 380px; font-size: 1rem; }
.no-image.small  { width: 80px; height: 80px; font-size: .75rem; border-radius: 4px; }

.card-body { padding: 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-title { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--blue-mid); text-decoration: none; }
.card-artist { font-size: .82rem; color: var(--text-light); font-style: italic; }
.card-price { font-size: 1.1rem; color: var(--orange); font-weight: 700; margin-top: auto; }

.empty-state { text-align: center; padding: 3rem; color: var(--text-light); font-size: 1.1rem; }

/* ── Product detail ─────────────────────────────────────────────────────────── */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 700px) { .product-layout { grid-template-columns: 1fr; } }

.product-gallery #main-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.thumbnails {
  display: flex;
  gap: .5rem;
  margin-top: .6rem;
}
.thumbnails .thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.thumbnails .thumb.active,
.thumbnails .thumb:hover { border-color: var(--blue-mid); }

.product-info h1 { font-family: 'Henny Penny', cursive; font-size: 1.8rem; color: var(--blue-mid); }
.artist-name { color: var(--text-light); font-style: italic; margin: .3rem 0; }
.product-price { font-size: 1.8rem; color: var(--orange); font-weight: 700; margin: .8rem 0; }
.product-description { line-height: 1.7; color: var(--text); margin: 1rem 0; }
.out-of-stock { color: var(--danger); font-weight: 600; margin: 1rem 0; }
.low-stock { color: var(--warning); font-size: .88rem; margin-top: .4rem; }
.delivery-delay { font-size: .9rem; color: #666; margin: .6rem 0; }
.pending-icon { color: #f59e0b; }
.muted { font-size: .85rem; color: #888; margin-top: .5rem; }

.qty-row { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.qty-row input { width: 70px; }

.shipping-table { margin-top: 1.5rem; }
.shipping-table h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--blue-mid); }
.shipping-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.shipping-table th, .shipping-table td { padding: .4rem .7rem; border-bottom: 1px solid #e8e4de; }
.shipping-table th { background: var(--blue-light); font-weight: 600; text-align: left; }
.shipping-note { font-size: .78rem; color: var(--text-light); margin-top: .4rem; }
.shipping-message { background: #f0f8ff; border-left: 3px solid var(--blue-mid); padding: .7rem 1rem; margin-top: 1rem; font-size: .9rem; border-radius: 0 var(--radius) var(--radius) 0; }

.back-link { margin-top: 2rem; }

/* ── Cart ───────────────────────────────────────────────────────────────────── */
.zone-form { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; background: var(--white); padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.zone-form select { min-width: 200px; padding: .5rem .8rem; border-radius: var(--radius); border: 1px solid #ccc; font-size: .95rem; }

.cart-lines { display: flex; flex-direction: column; gap: .8rem; }
.cart-line {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  padding: .8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 600px) { .cart-line { grid-template-columns: 60px 1fr; } }

.cart-line-img img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.cart-line-info { display: flex; flex-direction: column; gap: .2rem; }
.cart-line-info a { font-weight: 600; color: var(--text); }
.cart-unit-price { font-size: .82rem; color: var(--text-light); }
.cart-qty-form input[type="number"] { width: 65px; padding: .35rem .5rem; border: 1px solid #ccc; border-radius: 4px; text-align: center; }
.cart-line-total { font-weight: 700; color: var(--orange); white-space: nowrap; }

.cart-summary {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  margin: 1.5rem 0;
  max-width: 400px;
  margin-left: auto;
}
.summary-row { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid #eee; font-size: .95rem; }
.summary-total { font-size: 1.15rem; border-bottom: none; padding-top: .7rem; }
.zone-notice { color: var(--text-light); font-style: italic; font-size: .9rem; margin-top: .5rem; }

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

/* ── Checkout ───────────────────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; margin-top: 1.5rem; }
@media (max-width: 800px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-form h2, .checkout-summary h2 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--blue-mid); border-bottom: 1px solid #e0e0e0; padding-bottom: .4rem; }

.checkout-summary {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  align-self: start;
}
.summary-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.summary-table td { padding: .4rem .3rem; border-bottom: 1px solid #eee; }
.summary-table tfoot td { font-size: .95rem; padding-top: .6rem; border-bottom: none; }
.total-row td { font-size: 1.05rem; font-weight: 700; color: var(--orange); }
.sumup-note { font-size: .8rem; color: var(--text-light); margin-top: 1rem; line-height: 1.5; }

/* ── Payment page ───────────────────────────────────────────────────────────── */
.payment-page h1 { margin-bottom: 1.5rem; }
.payment-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
@media (max-width: 800px) { .payment-layout { grid-template-columns: 1fr; } }
.payment-widget-wrap { background: #fff; border-radius: 8px; box-shadow: 0 2px 1em rgba(0,0,0,.08); padding: 1.5rem; min-height: 300px; }
.payment-summary { background: #f8f8f8; border-radius: 8px; padding: 1.5rem; }
.payment-summary h2 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--blue-mid); }

/* ── Order confirmation ─────────────────────────────────────────────────────── */
.order-confirmation { text-align: center; padding: 3rem 1rem; }
.confirm-icon { font-size: 4rem; color: var(--success); margin-bottom: 1rem; }
.order-confirmation h1 { font-family: 'Henny Penny', cursive; font-size: 2rem; color: var(--blue-mid); }
.confirm-sub { color: var(--text-light); margin: .7rem 0 1.5rem; }
.order-recap { background: var(--white); border-radius: var(--radius); padding: 1.2rem; display: inline-block; text-align: left; margin-bottom: 1.5rem; min-width: 280px; box-shadow: var(--shadow); }
.order-recap p { padding: .3rem 0; font-size: .95rem; }

/* ── Login ──────────────────────────────────────────────────────────────────── */
.login-page { display: flex; justify-content: center; align-items: flex-start; padding: 2rem 1rem; }
.login-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  width: 100%;
  max-width: 440px;
}
.login-box h1 { font-family: 'Henny Penny', cursive; font-size: 1.8rem; color: var(--blue-mid); text-align: center; margin-bottom: 1.2rem; }
.login-tabs { display: flex; gap: .3rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--blue-light); }
.tab {
  padding: .5rem 1rem;
  font-family: 'Unbounded', sans-serif;
  font-size: .78rem;
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--text);
  background: #e8f4f8;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.tab:hover { background: var(--blue-light); color: var(--text); text-decoration: none; }
.tab.active { background: var(--blue-mid); color: var(--white); }
.login-form { display: flex; flex-direction: column; gap: .8rem; }

/* ── Artist dashboard ───────────────────────────────────────────────────────── */
.artist-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.artist-header h1 { font-family: 'Henny Penny', cursive; font-size: 1.8rem; color: var(--blue-mid); }

.artist-tabs, .admin-tabs { display: flex; gap: .3rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--blue-light); flex-wrap: wrap; }
.artist-tabs .tab, .admin-tabs .tab { color: var(--text); background: #e8f4f8; }

.tab-actions { display: flex; justify-content: flex-end; margin-bottom: 1rem; }

/* Product form */
.product-form, .profile-form, .password-form, .artist-form { max-width: 700px; }

.images-fieldset, .shipping-fieldset { border: 1px solid #ddd; border-radius: var(--radius); padding: 1.2rem; margin: 1rem 0; }
.images-fieldset legend, .shipping-fieldset legend { font-weight: 600; color: var(--blue-mid); padding: 0 .5rem; }

.images-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: .8rem; }
@media (max-width: 600px) { .images-grid { grid-template-columns: 1fr; } }

.image-slot { display: flex; flex-direction: column; gap: .4rem; }
.image-slot label { font-size: .85rem; font-weight: 600; color: var(--text); }
.preview-img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }

.shipping-zones-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.shipping-zones-table th, .shipping-zones-table td { padding: .4rem .6rem; border-bottom: 1px solid #eee; }
.shipping-zones-table th { background: var(--blue-light); }
.shipping-zones-table input[type="text"] { width: 80px; padding: .3rem .5rem; }
.shipping-help { font-size: .85rem; color: var(--text-light); margin-bottom: .8rem; line-height: 1.5; }

/* ── Admin ──────────────────────────────────────────────────────────────────── */
.admin-page h1 { font-family: 'Henny Penny', cursive; font-size: 1.8rem; color: var(--blue-mid); margin-bottom: 1rem; }

.report-filter {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--white);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.report-filter label { display: flex; align-items: center; gap: .4rem; font-size: .9rem; }
.report-filter select, .report-filter input[type="number"] { padding: .4rem .7rem; border: 1px solid #ccc; border-radius: 4px; }

/* ── Data tables ────────────────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 1em;
}
.data-table th { background: var(--blue-mid); color: var(--white); padding: .6rem .9rem; text-align: left; font-weight: 600; font-size: 1em; }
.data-table td { padding: .55rem .9rem; border-bottom: 1px solid #eee; vertical-align: middle; font-size: 1em; }
.data-table td small { font-size: 1em; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #f0f8ff; }
.data-table tfoot td { background: var(--blue-light); font-weight: 600; padding: .6rem .9rem; }
.actions-cell { white-space: nowrap; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }

/* ── Badges ─────────────────────────────────────────────────────────────────── */
.badge-active, .badge-paid, .badge-successful {
  background: #d4edda; color: #155724;
  padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
}
.badge-inactive, .badge-failed, .badge-expired {
  background: #f8d7da; color: #721c24;
  padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
}
.badge-pending {
  background: #fff3cd; color: #856404;
  padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
}

/* ── Mentions légales ───────────────────────────────────────────────────────── */
.mentions-page h1 { font-family: 'Henny Penny', cursive; color: var(--blue-mid); margin-bottom: 1.5rem; }
.mentions-page section { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.5rem; margin-bottom: 1.2rem; }
.mentions-page h2 { font-size: 1rem; color: var(--blue-mid); margin-bottom: .5rem; font-family: 'Unbounded', sans-serif; font-weight: 400; }
.mentions-page p { line-height: 1.7; font-size: .95rem; }

/* ── Zone selector in cart summary ──────────────────────────────────────────── */
.summary-zone { padding: .6rem 0 .8rem; border-bottom: 1px solid #eee; }
.zone-form-inline { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .5rem; }
.zone-form-inline select { min-width: 200px; padding: .45rem .8rem; border-radius: var(--radius); border: 1px solid #ccc; font-size: .95rem; }
.zone-blocked-msg { font-size: .82rem; color: #c0392b; margin: .2rem 0 0; }
.summary-row-indent { padding-left: 1.2rem; font-size: .88rem; color: var(--text-light); }
.summary-shipping-detail { padding: .3rem 0; }
.summary-shipping-detail .shipping-detail-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-light); padding: .2rem 0; }
.summary-shipping-total { font-size: .92rem; color: var(--text-light); }

/* ── Address autocomplete ────────────────────────────────────────────────────── */
.address-autocomplete-group { position: relative; }
.address-suggestions {
  position: absolute;
  z-index: 200;
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  margin: 0;
  padding: 0;
  list-style: none;
  box-shadow: 0 4px 1em rgba(0,0,0,.12);
  max-height: 220px;
  overflow-y: auto;
}
.address-suggestions li {
  padding: .55rem .9rem;
  cursor: pointer;
  font-size: .92rem;
  border-bottom: 1px solid #f0f0f0;
}
.address-suggestions li:last-child { border-bottom: none; }
.address-suggestions li:hover,
.address-suggestions li.active { background: #e8f4f8; color: var(--blue-mid); }

/* ── Product thumbnails in artist table ──────────────────────────────────────── */
.td-thumb { width: 64px; padding: .3rem !important; }
.product-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; display: block; }
.no-image.thumb { width: 56px; height: 56px; font-size: .6rem; border-radius: 4px; }

/* ── Payment page address block ─────────────────────────────────────────────── */
.payment-address { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #e0e0e0; }
.payment-address h3 { font-size: .9rem; font-family: 'Unbounded', sans-serif; font-weight: 400; color: var(--blue-mid); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .03em; }
.payment-address p { font-size: .92rem; line-height: 1.6; color: var(--text-dark); margin: 0; }

/* ── Cart zone estimator ─────────────────────────────────────────────────────── */
.zone-select-inline { margin-left: .5rem; padding: .2rem .5rem; font-size: .88rem; border: 1px solid #ccc; border-radius: var(--radius); background: var(--white); color: var(--text-dark); vertical-align: middle; }
.summary-shipping-estimate { align-items: center; }
.summary-total-estimate { border-top: 2px solid var(--blue-mid); padding-top: .5rem; margin-top: .25rem; }
.shipping-free { color: #1a7f3c; font-weight: 600; }

/* ── Postal code / zone detection ───────────────────────────────────────────── */
.postal-detect-wrap { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.postal-detect-wrap input[type="text"] { max-width: 140px; }
.zone-detected { font-size: .9rem; font-weight: 600; padding: .2rem .5rem; border-radius: 4px; }
.zone-detected.zone-ok    { color: #1a7f3c; background: #e6f5ec; }
.zone-detected.zone-error { color: #c0392b; background: #fdecea; }

/* ── Visibilité desktop / mobile ────────────────────────────────────────────── */
.show-mobile { display: none !important; }
/* .hide-mobile est visible par défaut (pas besoin de le déclarer) */

/* ── Product cards (mobile) ─────────────────────────────────────────────────── */
.product-cards { display: flex; flex-direction: column; gap: .7rem; }
.product-card-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: .75rem;
  background: var(--white);
  border: 1px solid #dde8ef;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .7rem;
}
.pci-thumb img,
.pci-thumb .no-image.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.pci-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.pci-info strong { font-size: .95rem; line-height: 1.3; }
.pci-info span { font-size: .82rem; color: var(--text-light); }
.pci-actions { display: flex; flex-direction: column; gap: .75rem; align-items: flex-end; white-space: nowrap; }

/* ── Order cards (mobile) ───────────────────────────────────────────────────── */
.order-cards { display: flex; flex-direction: column; gap: .9rem; }
.order-card-item {
  background: var(--white);
  border: 1px solid #dde8ef;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.oci-articles {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #eee;
}
.oci-article-line { font-size: .95rem; }
.oci-article-line strong { color: var(--blue-mid); }
.oci-total { font-size: 1.05rem; font-weight: 700; color: var(--orange); margin-top: .3rem; }
.oci-client { font-size: .88rem; line-height: 1.55; color: var(--text); }
.oci-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
}
.oci-date { color: var(--text-light); }
.oci-action { margin-top: .2rem; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Bascule desktop/mobile */
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .product-cards.show-mobile,
  .order-cards.show-mobile { display: flex !important; }

  .nomboutique a.shop-name { font-size: 1.4rem; }
  nav { padding: .5rem 1rem; }
  nav a { font-size: .72rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .product-card img { height: 150px; }
  .cart-line { grid-template-columns: 60px 1fr; }
  .container { padding: 0 .75rem; max-width: 100%; }

  /* ── Page artiste ── */
  .artist-page { padding: 0 .5rem; max-width: 100%; }
  .artist-header { flex-direction: column; align-items: flex-start; }
  .artist-tabs { gap: .2rem; flex-wrap: wrap; }
  .artist-tabs .tab { font-size: .78rem; padding: .35rem .6rem; }
  .product-form, .profile-form, .password-form, .artist-form { max-width: 100%; width: 100%; }
  .form-row { flex-direction: column; gap: .5rem; }
  .form-row > .form-group { min-width: 0; width: 100%; }
  .tab-actions { flex-wrap: wrap; }
  fieldset { min-width: 0; }

  /* Zones d'expédition → masquer Supplément, inputs réduits */
  .shipping-zones-table { width: 100%; table-layout: fixed; }
  .shipping-zones-table th:nth-child(4),
  .shipping-zones-table td:nth-child(4) { display: none; }
  .shipping-zones-table input[type="text"] { width: 100%; max-width: 65px; }
  .shipping-zones-table th, .shipping-zones-table td { padding: .3rem .35rem; font-size: .82rem; word-break: normal; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   Page d'accueil V12 — Grille de cartes artistes (Option B)
══════════════════════════════════════════════════════════════════════════════ */

/* Hero accueil */
.home-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}
.home-hero h1 {
  font-family: 'Henny Penny', cursive;
  font-size: 2.4rem;
  color: var(--blue-mid);
}
.home-hero .hero-sub {
  color: var(--text-light);
  margin-top: .5rem;
  font-size: 1rem;
}

/* ── Grille artistes (centrée) ───────────────────────────────────────────── */
.artists-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0 3rem;
}

/* ── Carte artiste ───────────────────────────────────────────────────────── */
.artist-card-big {
  display: block;
  position: relative;
  width: 300px;
  flex: 0 0 300px;           /* largeur fixe — pas d'étirement */
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background-color: #b8d8e2;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: transform .35s ease, box-shadow .35s ease;
}
.artist-card-big:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 14px 36px rgba(0,0,0,.25);
  text-decoration: none;
}

/* Dégradé sombre du bas */
.artist-card-big::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.25) 50%,
    rgba(0,0,0,0)   100%
  );
  transition: background .3s ease;
}
.artist-card-big:hover::before {
  background: linear-gradient(
    to top,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.35) 55%,
    rgba(0,0,0,0)   100%
  );
}

/* Fallback sans image */
.artist-card-no-img {
  background-image: none;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-mid) 100%);
}

/* Zone de texte en bas de carte */
.acb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.6rem 1.4rem;
  z-index: 1;
}
.acb-name {
  font-family: 'Henny Penny', cursive;
  font-size: 1.9rem;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 6px rgba(0,0,0,.45);
  margin-bottom: .25rem;
}
.acb-count {
  font-family: 'Unbounded', sans-serif;
  font-size: .72rem;
  font-weight: 300;
  color: rgba(255,255,255,.80);
  letter-spacing: .06em;
  margin-bottom: 1rem;
}
.acb-cta {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  padding: .45rem 1.1rem;
  border-radius: var(--radius);
  transition: background .2s, transform .15s;
}
.artist-card-big:hover .acb-cta {
  background: #ff7520;
  transform: translateX(2px);
}

/* ── Coups de cœur ───────────────────────────────────────────────────────── */
.coups-section {
  margin: 2rem 0 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--blue-light);
}
.coups-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.coups-title {
  font-family: 'Henny Penny', cursive;
  font-size: 1.9rem;
  color: var(--blue-mid);
}
.coups-sub {
  color: var(--text-light);
  font-style: italic;
  margin-top: .3rem;
  font-size: .95rem;
}

/* Grille centrée (coups de cœur) */
.product-grid-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}
.product-grid-centered .product-card {
  width: 220px;
  flex: 0 0 220px;
}
@media (max-width: 600px) {
  .product-grid-centered .product-card {
    width: calc(50% - .6rem);
    flex: 0 0 calc(50% - .6rem);
  }
}

/* ── Onglet Profil ───────────────────────────────────────────────────────── */
.profile-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.profile-section-title {
  font-size: 1rem;
  color: var(--blue-mid);
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  margin-bottom: .8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--blue-light);
}

/* ── Sélecteur d'image de couverture (tableau de bord artiste) ───────────── */
.card-image-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-image-section h3 {
  font-size: 1rem;
  color: var(--blue-mid);
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  margin-bottom: .4rem;
}
.card-image-hint {
  font-size: .88rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.card-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}
.card-img-option {
  position: relative;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  border: 3px solid #ddd;
  transition: border-color .2s;
  flex-shrink: 0;
}
.card-img-option input[type="radio"] { display: none; }
.card-img-option img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  display: block;
}
.card-img-option:hover { border-color: var(--blue-mid); }
.card-img-option.selected { border-color: var(--orange); }
.card-img-check {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--orange);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Vue produits filtrée par artiste ─────────────────────────────────────── */
.artist-view-header {
  margin: 1.5rem 0 2rem;
}
.back-to-artists {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: 'Unbounded', sans-serif;
  font-size: .78rem;
  font-weight: 300;
  color: var(--blue-mid);
  margin-bottom: .9rem;
  transition: color .2s;
}
.back-to-artists:hover { color: var(--orange); text-decoration: none; }
.artist-view-header h1 {
  font-family: 'Henny Penny', cursive;
  font-size: 2rem;
  color: var(--blue-mid);
}
.artist-view-bio {
  color: var(--text-light);
  margin-top: .5rem;
  max-width: 620px;
  line-height: 1.75;
  font-size: .95rem;
}

/* ── Responsive cartes artistes ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .artists-grid { gap: .9rem; margin: 1rem 0 2rem; }
  .artist-card-big { width: calc(50% - .45rem); flex: 0 0 calc(50% - .45rem); }
  .acb-name  { font-size: 1.25rem; }
  .acb-count { font-size: .65rem; margin-bottom: .7rem; }
  .acb-cta   { font-size: .7rem; padding: .35rem .85rem; }
  .acb-overlay { padding: 1rem .9rem; }
}
@media (max-width: 400px) {
  .artist-card-big { width: 100%; flex: 0 0 100%; }
}
