/* Carte cadeau — fond clair (comme Atelier Moustache), palette Funk Factory */

html:has(body.page-carte-cadeau),
html:has(body.page-ma-carte-cadeau) {
  background: #fff;
}

body.page-carte-cadeau,
body.page-ma-carte-cadeau {
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e0d8cc;
  background: #fff !important;
  color: var(--text);
}

body.page-carte-cadeau footer,
body.page-ma-carte-cadeau footer {
  margin-top: 0;
}

.cc-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.cc-breadcrumb {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 1.15rem;
}

.cc-breadcrumb a {
  color: #2d1b4e;
  text-decoration: none;
  font-weight: 700;
}

.cc-breadcrumb a:hover {
  text-decoration: underline;
}

.cc-page h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 1px;
  color: #2d1b4e;
  margin: 0 0 0.65rem;
  line-height: 1.15;
}

.cc-subtitle {
  font-size: 1.02rem;
  color: #d0296d;
  font-weight: 600;
  margin: 0 0 0.85rem;
  line-height: 1.45;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

.cc-lead {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.75;
  margin: 0 0 1.75rem;
  max-width: 52rem;
}

.cc-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(1.25rem, 3.5vw, 2rem);
  align-items: start;
}

.cc-preview {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(45, 27, 78, 0.08);
  line-height: 0;
}

.cc-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.cc-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(45, 27, 78, 0.1);
  overflow: hidden;
}

.cc-panel__body {
  padding: 1.25rem 1.35rem 1.1rem;
}

.cc-section {
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(224, 216, 204, 0.85);
}

.cc-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cc-section-label {
  font-size: 0.88rem;
  color: #555;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.cc-section-label strong {
  color: #2d1b4e;
  font-weight: 700;
}

.cc-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.cc-amount-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.65rem 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
  text-align: center;
}

.cc-amount-btn:hover {
  border-color: #d0296d;
}

.cc-amount-btn.is-selected {
  border-color: #d0296d;
  box-shadow: 0 0 0 3px rgba(208, 41, 109, 0.16);
  color: #2d1b4e;
}

.cc-amount-btn--autre.is-selected {
  padding: 0.45rem 0.5rem;
}

.cc-amount-btn--autre .cc-amount-btn__label {
  display: block;
  font-size: 0.82rem;
}

.cc-amount-btn--autre.is-selected .cc-amount-btn__label {
  display: none;
}

.cc-amount-btn__custom {
  display: none;
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #2d1b4e;
  text-align: center;
  outline: none;
}

.cc-amount-btn--autre.is-selected .cc-amount-btn__custom {
  display: block;
}

.cc-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cc-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.cc-qty-ctrl button {
  width: 36px;
  height: 36px;
  border: none;
  background: #fff;
  font-size: 1.1rem;
  color: #2d1b4e;
  cursor: pointer;
  line-height: 1;
}

.cc-qty-ctrl button:hover {
  background: #f5f0e8;
}

.cc-qty-ctrl button:disabled {
  opacity: 0.35;
  cursor: default;
}

.cc-qty-ctrl span {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0.4rem 0;
}

.cc-field {
  margin-bottom: 0.85rem;
}

.cc-field:last-child {
  margin-bottom: 0;
}

.cc-field > label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #2d1b4e;
  margin-bottom: 0.4rem;
}

.cc-field > label span {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
}

.cc-field input,
.cc-field textarea,
.cc-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cc-field input:focus,
.cc-field textarea:focus,
.cc-field select:focus {
  outline: none;
  border-color: #d0296d;
  box-shadow: 0 0 0 3px rgba(208, 41, 109, 0.12);
}

.cc-field textarea {
  min-height: 88px;
  resize: vertical;
}

.cc-field--hidden {
  display: none;
}

.cc-field-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.3rem;
  line-height: 1.45;
}

.cc-section-heading {
  font-size: 0.86rem;
  font-weight: 700;
  color: #2d1b4e;
  margin: 0 0 0.75rem;
}

.cc-print-option {
  margin: 0 0 0.85rem;
}

.cc-print-option__label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: calc(0.86rem - 2px);
  font-weight: 700;
  color: #2d1b4e;
  cursor: pointer;
  line-height: 1.45;
}

.cc-print-option__label input[type="checkbox"] {
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  width: auto;
}

.cc-print-option__hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.45rem 0 0 1.35rem;
  line-height: 1.45;
}

.cc-block--muted,
.cc-block--muted .cc-field > label,
.cc-field.cc-block--muted > label,
.cc-block--muted .cc-field-hint,
.cc-block--muted .cc-char-count {
  color: #b0b0b0;
}

.cc-block--muted .cc-field input,
.cc-block--muted .cc-field textarea,
.cc-field.cc-block--muted > input,
.cc-field.cc-block--muted > textarea {
  background: #f3f3f3;
  border-color: #e8e8e8;
  color: #b0b0b0;
  cursor: not-allowed;
}

.cc-field.cc-block--muted {
  cursor: not-allowed;
}

.cc-block--muted .cc-field input:disabled,
.cc-block--muted .cc-field textarea:disabled,
.cc-field.cc-block--muted > input:disabled,
.cc-field.cc-block--muted > textarea:disabled {
  opacity: 1;
}

.cc-field-stack .cc-field + .cc-field {
  margin-top: -1px;
}

.cc-field-stack .cc-field input {
  border-radius: 0;
}

.cc-field-stack .cc-field:first-child input {
  border-radius: 10px 10px 0 0;
}

.cc-field-stack .cc-field:last-child input {
  border-radius: 0 0 10px 10px;
}

.cc-char-count {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  margin-top: 0.3rem;
}

.cc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0 1rem;
  font-size: 0.9rem;
  color: #555;
}

.cc-total strong {
  font-size: 1.2rem;
  color: #0a0a0a;
}

.cc-error {
  font-size: 0.8rem;
  color: #c62828;
  margin: 0 0 0.65rem;
  min-height: 0;
  display: none;
}

.cc-error.is-visible {
  display: block;
}

.cc-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 18px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--offwhite, #f5f0e8);
  background: var(--black, #0a0a0a);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.15s;
}

.cc-btn:hover,
.cc-btn:active {
  background: var(--gold, #c9a84c);
  color: var(--black, #0a0a0a);
}

.cc-btn:focus-visible {
  outline: 2px solid var(--gold, #c9a84c);
  outline-offset: 2px;
}

.cc-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.cc-trust {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.cc-trust li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: #555;
}

.cc-trust svg {
  flex-shrink: 0;
  color: #2d1b4e;
}

.cc-accordions {
  border-top: 1px solid var(--border);
}

.cc-acc {
  border-bottom: 1px solid rgba(224, 216, 204, 0.85);
}

.cc-acc summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #2d1b4e;
  cursor: pointer;
  user-select: none;
}

.cc-acc summary::-webkit-details-marker {
  display: none;
}

.cc-acc summary::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #f5f0e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%232d1b4e' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") center / 10px no-repeat;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.cc-acc[open] summary::after {
  transform: rotate(180deg);
}

.cc-acc__body {
  padding: 0 1.35rem 1rem;
  font-size: 0.84rem;
  color: #555;
  line-height: 1.7;
}

.cc-acc__body p {
  margin: 0 0 0.5rem;
}

.cc-acc__body p:last-child {
  margin-bottom: 0;
}

.cc-seo {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding: clamp(1.35rem, 3vw, 1.75rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 22px rgba(45, 27, 78, 0.06);
}

.cc-seo h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  letter-spacing: 0.5px;
  color: #2d1b4e;
  margin: 0 0 1rem;
  line-height: 1.25;
}

.cc-seo h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #2d1b4e;
  margin: 1.35rem 0 0.65rem;
  line-height: 1.35;
}

.cc-seo a {
  color: #d0296d;
  font-weight: 600;
  text-decoration: none;
}

.cc-seo a:hover {
  color: #2d1b4e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-seo p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.78;
  margin: 0 0 0.95rem;
}

.cc-seo p:last-child {
  margin-bottom: 0;
}

/* Page ma-carte-cadeau */
.gc-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.gc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(45, 27, 78, 0.1);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.gc-card h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  color: #2d1b4e;
  margin: 0 0 0.75rem;
}

.gc-balance {
  font-size: 2rem;
  font-weight: 800;
  color: #d0296d;
  margin: 0.5rem 0 1rem;
}

.gc-code {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.18);
  border: 1px solid rgba(201, 168, 76, 0.45);
  font-family: ui-monospace, monospace;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.gc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.gc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font: inherit;
}

.gc-btn-primary {
  background: var(--black, #0a0a0a);
  color: var(--offwhite, #f5f0e8);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: background 0.25s, color 0.25s;
}

.gc-btn-primary:hover,
.gc-btn-primary:active {
  background: var(--gold, #c9a84c);
  color: var(--black, #0a0a0a);
}

.gc-btn-outline {
  background: #fff;
  color: #2d1b4e;
  border: 1.5px solid var(--border);
}

@media (max-width: 860px) {
  .cc-product {
    grid-template-columns: 1fr;
  }

  .cc-preview {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .cc-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cc-panel__body {
    padding: 1rem;
  }

  .cc-acc summary,
  .cc-acc__body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
