/* Hub Créations personnalisées — choix + panneaux */
.cp-page {
  --cp-ink: #25201d;
  --cp-muted: #7a6a5c;
  --cp-line: #e4d5c6;
  --cp-card: #fffcf8;
  --cp-accent: #965035;
  --cp-accent-deep: #743c29;
  background:
    radial-gradient(ellipse at 12% 0%, #f3ebe1 0%, transparent 42%),
    radial-gradient(ellipse at 88% 8%, #ebe0d4 0%, transparent 38%),
    #fcfaf7;
  color: var(--cp-ink);
  min-height: 100vh;
}
.cp-page .header {
  background: #e8d8c9;
  border-color: #cbb29e;
  box-shadow: 0 3px 12px rgba(65, 40, 25, 0.1);
}
.cp-page .header nav a[aria-current="page"] {
  color: #974d30;
  text-decoration-color: #974d30;
}

.cp-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 5% 100px;
}
.cp-hero {
  text-align: center;
  margin-bottom: 36px;
}
.cp-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.cp-hero p {
  margin: 0 auto;
  max-width: 420px;
  color: var(--cp-muted);
  line-height: 1.55;
  font-size: 15px;
}

.cp-chooser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}
.cp-card {
  display: flex;
  flex-direction: column;
  background: var(--cp-card);
  border: 1.5px solid var(--cp-line);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(60, 35, 20, 0.08);
  overflow: hidden;
  min-height: 100%;
}
.cp-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 8px;
  background: linear-gradient(180deg, #f3ebe3 0%, #fffcf8 100%);
  min-height: 180px;
}
.cp-card-visual img {
  width: min(168px, 55%);
  height: auto;
  display: block;
}
#cp-card-mesure .cp-card-visual {
  min-height: 210px;
  padding: 22px 20px 4px;
}
#cp-card-mesure .cp-card-visual img {
  width: min(220px, 72%);
}
.cp-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 26px 26px;
  flex: 1;
}
.cp-card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cp-accent);
  background: #f4ebe3;
  padding: 4px 10px;
  border-radius: 3px;
  width: fit-content;
}
.cp-card-body h2 {
  margin: 0;
  font: 400 clamp(24px, 3vw, 30px) / 1.2 Georgia, "Times New Roman", serif;
  color: var(--cp-ink);
}
.cp-card-body p {
  margin: 0;
  color: var(--cp-muted);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}
.cp-card-btn {
  appearance: none;
  align-self: stretch;
  margin-top: 8px;
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  background: var(--cp-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.cp-card-btn:hover {
  background: var(--cp-accent-deep);
}
.cp-card-btn:focus-visible {
  outline: 3px solid #865038;
  outline-offset: 2px;
}
.cp-card-btn-ghost {
  background: #fff;
  color: var(--cp-accent-deep);
  border: 1.5px solid var(--cp-line);
}
.cp-card-btn-ghost:hover {
  background: #faf6f1;
  border-color: #c4a488;
}

.cp-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cp-accent-deep);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 0 16px;
  cursor: pointer;
  min-height: 44px;
}
.cp-back:focus-visible {
  outline: 3px solid #865038;
  outline-offset: 2px;
}

.cp-panel[hidden],
.cp-chooser[hidden],
.cp-hero[hidden] {
  display: none !important;
}

.cp-sm-inner {
  padding: 0;
  max-width: none;
}
.cp-sm-hero {
  text-align: left;
  margin-bottom: 20px;
}
.cp-sm-hero h2 {
  font: 400 clamp(28px, 4vw, 40px) / 1.2 Georgia, "Times New Roman", serif;
  margin: 0 0 8px;
}
.cp-sm-hero p {
  margin: 0;
  max-width: 520px;
  color: var(--cp-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Sur mesure — étapes verticales, grille produits Boutique */
.cp-sm-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 920px;
}
.cp-page .sm-step {
  margin: 0;
}
.cp-page .sm-step-num {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cp-accent);
}
.cp-page .sm-audience-bar{
  margin: 0 0 14px;
}
.cp-page .sm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.cp-page .sm-filter {
  appearance: none;
  border: 1.5px solid var(--cp-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-muted);
  cursor: pointer;
}
.cp-page .sm-filter.is-active,
.cp-page .sm-filter[aria-pressed="true"] {
  background: var(--cp-accent);
  border-color: var(--cp-accent);
  color: #fff;
}
.cp-page .sm-filter:focus-visible {
  outline: 3px solid #865038;
  outline-offset: 2px;
}
.cp-page .sm-progress {
  margin: 0 0 4px;
  padding: 10px 12px;
  border: 1.5px solid var(--cp-line);
  border-radius: 8px;
  background: #fffcf8;
  position: sticky;
  top: 72px;
  z-index: 5;
}
.cp-page .sm-progress-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.cp-page .sm-progress-btn {
  appearance: none;
  width: 100%;
  min-height: 44px;
  border: 1.5px solid var(--cp-line);
  border-radius: 8px;
  background: #fff;
  color: var(--cp-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  cursor: pointer;
  font: inherit;
}
.cp-page .sm-progress-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.cp-page .sm-progress-btn.is-current,
.cp-page .sm-progress-btn[aria-current="step"] {
  border-color: var(--cp-accent);
  color: var(--cp-accent-deep);
  box-shadow: inset 0 0 0 1px var(--cp-accent);
  background: #faf6f1;
}
.cp-page .sm-progress-btn.is-done:not(.is-current) {
  border-color: #c9b5a4;
  color: var(--cp-ink);
}
.cp-page .sm-progress-btn:focus-visible {
  outline: 3px solid #865038;
  outline-offset: 2px;
}
.cp-page .sm-progress-n {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.cp-page .sm-progress-l {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.cp-page .sm-step.is-current-step {
  border-color: #d7c4b2;
  box-shadow: 0 0 0 1px rgba(150, 80, 53, 0.12);
}
.cp-page .sm-cart-disclaimer {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--cp-muted);
}
.cp-page .sm-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
  margin: 0 0 8px;
}
.cp-page .sm-category-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--cp-line);
  border-radius: 10px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  min-height: 0;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.cp-page .sm-category-card:hover {
  border-color: #c4a488;
  box-shadow: 0 6px 18px rgba(70, 40, 20, 0.1);
  transform: translateY(-1px);
}
.cp-page .sm-category-card:focus-visible {
  outline: 3px solid #865038;
  outline-offset: 2px;
}
.cp-page .sm-category-card img {
  width: 100%;
  aspect-ratio: 1.05;
  object-fit: cover;
  display: block;
  background: #f3ebe3;
}
.cp-page .sm-category-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 14px;
}
.cp-page .sm-category-card-body strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--cp-ink);
}
.cp-page .sm-category-card-count {
  font-size: 12px;
  color: var(--cp-muted);
}
.cp-page .sm-products-wrap {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--cp-line);
}
.cp-page .sm-products-wrap[hidden] {
  display: none !important;
}
.cp-page .sm-products-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 12px;
}
.cp-page .sm-change-cat {
  appearance: none;
  border: 1px solid var(--cp-line);
  background: #fffaf5;
  color: var(--cp-ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}
.cp-page .sm-change-cat:hover {
  border-color: #c4a488;
}
.cp-page .sm-change-cat:focus-visible {
  outline: 3px solid #865038;
  outline-offset: 2px;
}
.cp-page .sm-cat-current {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--cp-accent);
}
.cp-page .sm-models-title {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--cp-ink);
}
.cp-page .sm-product-tile-cta {
  display: block;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 4px;
  background: #965035;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.cp-page .sm-products-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f4ebe3;
  color: var(--cp-muted);
  font-size: 13px;
  line-height: 1.45;
}
.cp-page .sm-products-status[hidden] {
  display: none !important;
}
.cp-page .sm-products-status.is-err {
  background: #f8e8e4;
  color: #a33a2c;
  border: 1px solid #e2b4aa;
}
.cp-page .sm-products-status.is-ok {
  background: #e7f2eb;
  color: #2f6b4f;
}
.cp-page .sm-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}
.cp-page .sm-product-tile img.is-missing {
  object-fit: contain;
  background: #efe8e1;
  color: #7a6a5c;
  font-size: 11px;
}
.cp-page .sm-product-tile-cat {
  font-size: 11px;
  color: var(--cp-muted);
  text-transform: capitalize;
}
.cp-page .sm-product-tile {
  appearance: none;
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1.5px solid var(--cp-line);
  border-radius: 8px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  font: inherit;
  min-height: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cp-page .sm-product-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f3ebe3;
  display: block;
}
.cp-page .sm-product-tile-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 10px 12px;
  flex: 1 1 auto;
  min-height: 7.5rem;
}
.cp-page .sm-product-tile-body strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--cp-ink);
}
.cp-page .sm-product-tile-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--cp-accent);
  margin-top: auto;
}
.cp-page .sm-product-tile[aria-pressed="true"] {
  border-color: var(--cp-accent);
  box-shadow: inset 0 0 0 1px var(--cp-accent);
}
.cp-page .sm-product-tile:focus-visible {
  outline: 3px solid #865038;
  outline-offset: 2px;
}
.cp-page .sm-config-name {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.25;
  color: var(--cp-ink);
}
.cp-page #sm-config-lead {
  margin: 0 0 16px;
}
.cp-page .sm-chaleur-pending {
  margin-top: 4px;
}
.cp-page .sm-check {
  margin-bottom: 14px;
}
.cp-page .sm-check label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1.5px solid var(--cp-line);
  border-radius: 8px;
  background: #faf6f1;
  cursor: pointer;
}
.cp-page .sm-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
}
.cp-page .sm-check strong {
  display: block;
  font-size: 14px;
}
.cp-page .sm-check em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--cp-muted);
  margin-top: 2px;
}
.cp-page .sm-measure-figure {
  margin: 0 0 18px;
  padding: 0;
  border: 1.5px solid var(--cp-line);
  border-radius: 8px;
  background: #fffcf8;
  overflow: hidden;
}
.cp-page .sm-measure-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fcfaf7;
}
.cp-page .sm-measure-figure.is-pending .sm-measure-img {
  opacity: 0.95;
}
.cp-page .sm-measure-figure.is-no-diagram .sm-measure-img,
.cp-page .sm-measure-figure.is-hand .sm-measure-img {
  display: none;
}
.cp-page .sm-hand-guide {
  padding: 16px 16px 18px;
  background: #f7efe6;
  color: var(--cp-ink);
}
.cp-page .sm-hand-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: #6b3418;
  line-height: 1.15;
}
.cp-page .sm-hand-head p {
  margin: 4px 0 0;
  color: #6b3418;
  font-size: 15px;
}
.cp-page .sm-hand-body {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) 1.2fr;
  gap: 16px;
  margin-top: 14px;
  align-items: start;
}
.cp-page .sm-hand-body img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1.5px solid #e4d3c4;
  background: #fff;
}
.cp-page .sm-hand-steps {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.cp-page .sm-hand-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  margin: 0 0 10px;
}
.cp-page .sm-hand-steps .n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1d4e9f;
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.cp-page .sm-hand-steps strong {
  display: block;
  font-size: 15px;
}
.cp-page .sm-hand-steps span {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: #3d342c;
}
.cp-page .sm-hand-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
  font-size: 13px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.cp-page .sm-hand-table caption {
  caption-side: top;
  text-align: center;
  background: #6b3418;
  color: #fff;
  font-weight: 700;
  padding: 7px 8px;
}
.cp-page .sm-hand-table caption span {
  display: block;
}
.cp-page .sm-hand-provisional {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
.cp-page .sm-hand-table th,
.cp-page .sm-hand-table td {
  border: 1px solid #e6d5c6;
  padding: 5px 6px;
  text-align: center;
  white-space: nowrap;
}
.cp-page .sm-hand-table thead th {
  background: #f3e6da;
  font-weight: 600;
}
.cp-page .sm-hand-advice {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #e4d3c4;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  line-height: 1.4;
}
.cp-page .sm-hand-unitnote {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--cp-muted);
}
@media (max-width: 720px) {
  .cp-page .sm-hand-body {
    grid-template-columns: 1fr;
  }
  .cp-page .sm-hand-table {
    font-size: 12px;
  }
  .cp-page .sm-hand-table th,
  .cp-page .sm-hand-table td {
    padding: 4px 3px;
  }
}
.cp-page .sm-measure-figure.is-no-diagram .sm-measure-caption {
  border-top: none;
}
.cp-page .sm-measure-caption {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cp-muted);
  border-top: 1px solid var(--cp-line);
  background: #faf6f1;
}
.cp-page .sm-measure-caption strong {
  color: var(--cp-accent);
  font-weight: 700;
}
.cp-page .sm-field-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--cp-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
  flex-shrink: 0;
}
.cp-page .sm-input-row label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 0;
}
.cp-page .sm-step textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--cp-line);
  border-radius: 4px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  min-height: 88px;
  resize: vertical;
}
.cp-page .sm-step textarea:focus-visible {
  outline: 3px solid #865038;
  outline-offset: 2px;
}
.cp-page .sm-summary {
  position: static;
}
.cp-page .sm-price-box {
  margin-top: 8px;
}

/* Formulaire idée : un peu plus dense et centré */
.cp-panel .idea-section {
  padding: 24px 22px 26px;
}
.cp-panel .idea-lead {
  margin-bottom: 18px;
  max-width: 440px;
}
.cp-panel .idea-form {
  gap: 14px;
}

.cp-panel .idea-section {
  margin-top: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .cp-page .sm-grid {
    grid-template-columns: 1fr;
  }
  .cp-page .sm-progress {
    top: 64px;
  }
}
@media (max-width: 768px) {
  .cp-chooser {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cp-wrap {
    padding: 24px 4% 90px;
  }
  .cp-card-visual {
    min-height: 150px;
    padding-top: 20px;
  }
  #cp-card-mesure .cp-card-visual {
    min-height: 180px;
  }
  #cp-card-mesure .cp-card-visual img {
    width: min(200px, 68%);
  }
  .cp-page .sm-category-grid,
  .cp-page .sm-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .cp-page .sm-category-card-body strong {
    font-size: 14px;
  }
  .cp-page .sm-product-tile-body {
    padding: 8px;
  }
  .cp-page .sm-product-tile-body strong {
    font-size: 12px;
  }
  .cp-page .sm-filter {
    min-height: 44px;
    font-size: 13px;
  }
  .cp-page .sm-actions .demo-add,
  .cp-page .sm-actions .button {
    min-height: 48px;
    width: 100%;
  }
  .cp-page .sm-summary-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .cp-page .sm-summary-list li span:last-child {
    text-align: left;
    word-break: break-word;
  }
}
@media (max-width: 390px) {
  .cp-page .sm-progress-l {
    font-size: 10px;
  }
  .cp-page .sm-product-grid {
    gap: 8px;
  }
  .cp-sm-inner {
    gap: 12px;
  }
  .cp-page .sm-measure-caption {
    font-size: 12px;
  }
}
@media (max-width: 320px) {
  .cp-wrap {
    padding: 16px 3% 80px;
  }
  .cp-page .sm-product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .cp-page .sm-product-tile-body strong {
    font-size: 11px;
  }
  .cp-page .sm-progress-btn {
    padding: 4px 2px;
    min-height: 42px;
  }
  .cp-page .sm-progress-l {
    font-size: 9px;
  }
  .cp-hero h1,
  .cp-sm-hero h2 {
    font-size: clamp(26px, 8vw, 36px);
  }
}
@media (min-width: 1440px) {
  .cp-sm-inner {
    max-width: 980px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-card-btn {
    transition: none;
  }
  .cp-page .sm-product-tile {
    transition: none;
  }
}
