:root {
  --pink: #d7263d;
  --pink-dark: #a81b2e;
  --gold: #c9970a;
  --dark: #0d0d0f;
  --dark-soft: #1f1f23;
  --bg: #ffffff;
  --bg-soft: #f4f4f5;
  --border: #e4e4e6;
  --text: #17171a;
  --text-muted: #6b6b70;
  --success: #1a9c6d;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(13, 13, 15, 0.1);
  --max-width: 1240px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--pink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--pink-dark);
  box-shadow: 0 6px 18px rgba(230, 0, 126, 0.35);
}
.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover {
  background: var(--dark-soft);
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--pink);
  color: var(--pink);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}
.btn-danger-outline {
  background: transparent;
  color: #c0392b;
  border-color: #f3c8c8;
}
.btn-danger-outline:hover {
  background: #fdecea;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--dark);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 22% 38%;
  flex-shrink: 0;
  background: var(--dark);
}
.logo-mark-lg {
  width: 64px;
  height: 64px;
}
.main-nav {
  display: flex;
  gap: 28px;
  margin-left: 12px;
  flex: 1;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--pink);
  border-color: var(--pink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
}
.cart-link:hover {
  background: #eceeff;
}
.cart-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  position: absolute;
  top: -6px;
  right: -6px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
}

/* ---------- Recherche ---------- */
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}
.search-toggle:hover {
  background: #eceeff;
}
.search-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 45;
  max-height: 80vh;
  overflow-y: auto;
}
.search-panel.open {
  display: block;
}
.search-panel-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px 24px;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 10px 16px;
}
.search-form svg {
  flex-shrink: 0;
  color: var(--text-muted);
}
.search-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 1rem;
  outline: none;
  color: var(--text);
}
.search-close {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-muted);
  padding: 4px 6px;
  flex-shrink: 0;
}
.search-results {
  margin-top: 16px;
  display: grid;
  gap: 6px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: var(--radius);
}
.search-result-item:hover {
  background: var(--bg-soft);
}
.search-result-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-result-thumb svg {
  width: 26px;
  height: 26px;
}
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}
.search-result-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.search-result-price {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--text);
}
.search-empty {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 6px 2px;
  margin: 0;
}
.search-viewall {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--pink);
}
.catalogue-search-bar {
  max-width: 420px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .search-panel-inner {
    padding: 14px 14px 20px;
  }
  .catalogue-search-bar {
    max-width: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #cdd0e2;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 24px 32px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.footer-grid ul li {
  margin-bottom: 8px;
}
.footer-grid ul a {
  color: #a9adc6;
  font-size: 0.9rem;
}
.footer-grid ul a:hover {
  color: #fff;
}
.footer-grid p {
  color: #a9adc6;
  font-size: 0.9rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px;
  text-align: center;
  font-size: 0.82rem;
  color: #7d81a0;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--dark) 0%, #26262b 55%, var(--pink-dark) 130%);
  color: #fff;
  padding: 72px 24px;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 0.4em;
}
.hero p {
  font-size: 1.1rem;
  color: #d8dafc;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.hero-visual .tile {
  aspect-ratio: 1;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  color: #fff;
}
.hero-visual .tile svg {
  width: 100%;
  height: 100%;
}
.hero-brand-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-brand-visual img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(201, 151, 10, 0.25);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 24px;
}
.section-soft {
  background: var(--bg-soft);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
}
.section-head h2 {
  font-size: 1.9rem;
  margin: 0;
}
.section-head p {
  color: var(--text-muted);
  margin: 6px 0 0;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}

/* ---------- Category cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.category-card .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-card .icon-wrap svg {
  width: 34px;
  height: 34px;
}
.category-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.category-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-card .thumb {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.product-card .thumb svg {
  width: 72px;
  height: 72px;
  color: #fff;
}
.product-card .body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card .cat-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pink);
  margin-bottom: 6px;
}
.product-card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.product-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
}
.product-card .price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-top: 10px;
}
.product-card .price {
  font-weight: 800;
  color: var(--dark);
  font-size: 1.05rem;
}
.product-card .price small {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.price-discounted {
  color: var(--pink) !important;
}

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.filter-chip.active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.filter-chip:hover:not(.active) {
  border-color: var(--pink);
  color: var(--pink);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 20px 24px 0;
  max-width: var(--max-width);
  margin: 0 auto;
}
.breadcrumb a:hover {
  color: var(--pink);
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 0;
}
.product-media {
  border-radius: var(--radius);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.product-media svg {
  width: 220px;
  height: 220px;
  color: #fff;
}
.product-info .cat-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 8px;
  display: block;
}
.product-info h1 {
  font-size: 1.9rem;
}
.badge-eco {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--success);
  margin-top: 6px;
}

.config-box {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 26px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill-option {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.pill-option.selected {
  border-color: var(--pink);
  color: var(--pink);
  background: #fff0f7;
}
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--pink);
}
textarea {
  resize: vertical;
  min-height: 110px;
}

.summary-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child {
  border-bottom: none;
}
.summary-row .label {
  color: var(--text-muted);
}
.summary-row.total {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--dark);
}
.product-long-desc {
  margin-top: 34px;
  max-width: var(--max-width);
  padding: 0 24px 60px;
  margin-left: auto;
  margin-right: auto;
}
.product-long-desc h2 {
  font-size: 1.3rem;
}

/* ---------- Cart / Panier page ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}
.cart-item {
  display: flex;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  align-items: center;
}
.cart-item .thumb-sm {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item .thumb-sm svg {
  width: 36px;
  height: 36px;
  color: #fff;
}
.cart-item .info {
  flex: 1;
}
.cart-item h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.cart-item .opts {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.cart-item .price {
  font-weight: 800;
  white-space: nowrap;
}
.cart-item .qty-select {
  margin: 8px 0;
  max-width: 220px;
  padding: 8px 10px;
  font-size: 0.85rem;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.cart-item .edit-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pink);
  text-decoration: underline;
}
.cart-item .edit-link:hover {
  color: var(--pink-dark);
}
.cart-item .remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
  padding: 0;
}
.cart-item .remove-btn:hover {
  color: var(--pink);
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state svg {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  color: var(--border);
}

.form-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 26px;
}
.form-card h3 {
  margin-bottom: 6px;
}
.form-card .hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.alert {
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
  display: none;
}
.alert.show {
  display: block;
}
.alert-success {
  background: #e7f8f0;
  color: var(--success);
}
.alert-error {
  background: #fdecea;
  color: #c0392b;
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.contact-info-card {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
}
.contact-info-card h3 {
  margin-top: 0;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-info-item .ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .ic svg {
  width: 18px;
  height: 18px;
}
.contact-info-item p {
  margin: 0;
  color: #cdd0e2;
  font-size: 0.9rem;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.trust-bar .item h4 {
  font-size: 1.6rem;
  color: var(--pink);
  margin-bottom: 2px;
}
.trust-bar .item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Design editor ---------- */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}
.editor-canvas-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.editor-canvas-frame {
  position: relative;
  background: repeating-conic-gradient(#eef0fa 0% 25%, #fff 0% 50%) 50% / 20px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.safe-margin-guide {
  position: absolute;
  border: 1.5px dashed rgba(230, 0, 126, 0.5);
  pointer-events: none;
}
.editor-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 420px;
  text-align: center;
}
.editor-toolbar {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 90px;
}
#editorModeSwitcher {
  max-width: var(--max-width);
  margin: 0 auto 24px;
  padding: 0 24px;
}
.face-selector {
  display: flex;
  gap: 8px;
  max-width: var(--max-width);
  margin: 0 auto 18px;
  padding: 0 24px;
}
.face-selector .filter-chip {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ---------- Mockup preview ---------- */
.mockup-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mockup-svg-wrap {
  width: 100%;
  height: 100%;
  background: #fff;
}
.mockup-svg-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--dark);
}
.mockup-overlay {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(21, 26, 45, 0.18);
}

/* ---------- Aperçu du visuel depuis le panier ---------- */
.cart-item .thumb-sm.has-design {
  cursor: zoom-in;
}
.cart-item .preview-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-item .preview-link:hover {
  color: var(--pink);
}
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(13, 13, 15, 0.6);
}
.preview-modal.open {
  display: flex;
}
.preview-dialog {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.preview-head h3 {
  margin: 0;
  font-size: 1.1rem;
}
.preview-head p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.preview-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 4px;
}
.preview-close:hover {
  color: var(--dark);
}
.preview-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.preview-tab {
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.preview-tab.active {
  border-color: var(--pink);
  color: var(--pink);
}
.preview-flat {
  margin-top: 16px;
  text-align: center;
}
.preview-flat span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.preview-flat img {
  max-width: 100%;
  max-height: 260px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: repeating-conic-gradient(#f2f2f3 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}
.preview-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}
@media (max-width: 520px) {
  .preview-dialog {
    padding: 16px;
  }
  .preview-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* ---------- Auth pages ---------- */
.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.auth-card h2 {
  margin-bottom: 4px;
}
.auth-card .hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 22px;
}
.hint-inline {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.auth-divider span {
  padding: 0 12px;
}
.oauth-btn {
  gap: 10px;
  margin-bottom: 10px;
}
.auth-switch {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 18px 0 0;
}
.auth-switch a {
  color: var(--pink);
  font-weight: 700;
}

/* ---------- Account page ---------- */
.tab-switcher {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.tab-btn {
  background: none;
  border: none;
  padding: 12px 6px;
  margin-right: 22px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab-btn.active {
  color: var(--pink);
  border-color: var(--pink);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.quote-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.quote-head {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-soft);
}
.quote-head .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff0f7;
  color: var(--pink);
  text-transform: capitalize;
}
.order-table {
  width: 100%;
  border-collapse: collapse;
}
.order-table td {
  padding: 10px 18px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.order-table tr:last-child td {
  border-bottom: none;
}

/* ---------- Checkout (validation de commande) ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}
.checkout-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 22px;
}
.checkout-section h3 {
  margin-bottom: 4px;
}
.checkout-section .section-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.recap-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.recap-item > div:first-child {
  min-width: 0;
}
.recap-item > div:last-child {
  white-space: nowrap;
  flex-shrink: 0;
}
.recap-item:last-child {
  border-bottom: none;
}
.recap-item .name {
  font-weight: 700;
}
.recap-item .opts {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 0.9rem;
}
.checkbox-row input {
  width: 18px;
  height: 18px;
}
.delivery-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.delivery-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.delivery-card:hover {
  border-color: var(--pink);
}
.delivery-card input {
  margin-bottom: 6px;
}
.delivery-card.selected {
  border-color: var(--pink);
  background: #fff0f7;
}
.delivery-card .delivery-label {
  font-weight: 700;
  font-size: 0.92rem;
}
.delivery-card .delivery-days {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.payment-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.payment-card .payment-icon {
  font-size: 1.3rem;
}
.payment-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
}
.order-delivery-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 10px 18px 14px;
}
.order-delivery-info strong {
  color: var(--text);
}

/* ---------- Offers page ---------- */
.offers-hero {
  background: linear-gradient(120deg, var(--pink-dark) 0%, var(--pink) 60%, #ff6fac 130%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.offers-hero h1 {
  font-size: 2.3rem;
  margin-bottom: 0.3em;
}
.offers-hero p {
  color: #ffe1f0;
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.offer-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.offer-badge {
  position: absolute;
  top: -14px;
  left: 22px;
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(21, 26, 45, 0.25);
}
.offer-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 18px;
}
.offer-card .icon-wrap svg {
  width: 30px;
  height: 30px;
}
.offer-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.offer-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}
.offer-card .validity {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 10px 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.offer-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

/* ---------- Pricing cards (offres de services web) ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pricing-card.featured {
  border-color: var(--pink);
  box-shadow: 0 12px 32px rgba(215, 38, 61, 0.14);
}
.pricing-card .pricing-tag {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
}
.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.pricing-card .pricing-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}
.pricing-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.pricing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  margin-bottom: 18px;
}
.pricing-card details {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.pricing-card summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--pink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pricing-card summary::-webkit-details-marker {
  display: none;
}
.pricing-card summary .chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.pricing-card details[open] summary .chevron {
  transform: rotate(180deg);
}
.pricing-features {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  padding: 6px 0;
  color: var(--text);
}
.pricing-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--success);
}
.pricing-footnote {
  max-width: 720px;
  margin: 40px auto 0;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: center;
}
.pricing-footnote h3 {
  margin-bottom: 8px;
}
.pricing-footnote p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner,
  .product-detail,
  .cart-layout,
  .contact-layout,
  .editor-layout,
  .settings-grid,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .delivery-options,
  .payment-options {
    grid-template-columns: 1fr;
  }
  .category-grid,
  .product-grid,
  .offer-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}
@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 4px;
    z-index: 40;
  }
  .main-nav.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  /* Le logo (icône + texte) et les deux pastilles "Connexion"/"Mon devis" ne
     tiennent pas côte à côte sur un petit écran : on masque leur texte (les
     pastilles gardent icône/badge) plutôt que de les faire déborder. */
  .header-inner {
    padding: 14px;
    gap: 10px;
  }
  .logo {
    font-size: 0;
    gap: 0;
  }
  .header-actions {
    gap: 8px;
  }
  .cart-link {
    font-size: 0;
    gap: 0;
    padding: 9px 11px;
  }
  #accountLink {
    font-size: 0.8rem;
    padding: 9px 12px;
  }
}
@media (max-width: 560px) {
  .category-grid,
  .product-grid,
  .offer-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  /* Panier : le prix passait sur la même ligne que le nom/les options et écrasait
     tout le contenu dans une colonne trop étroite — on le fait passer en dessous. */
  .cart-item {
    flex-wrap: wrap;
  }
  .cart-item .thumb-sm {
    width: 56px;
    height: 56px;
  }
  .cart-item .info {
    flex: 1 1 calc(100% - 74px);
    min-width: 0;
  }
  .cart-item .price {
    flex: 0 0 100%;
    text-align: right;
    margin-top: 10px;
    font-size: 1.05rem;
  }
}
