/* =============================================
   PHANOOB CRÉATIONS — Configurateur
   Thème : Artisan-luxe, sombre, ambre
   ============================================= */

/* ── Variables (alignées sur phanoob.css) ── */
:root {
  --bg:           #1C1208;
  --surface:      #1C1208;
  --panel-bg:     #2A1F0E;
  --panel-border: rgba(200,150,62,0.22);
  --input-bg:     #1C1208;
  --input-border: rgba(200,150,62,0.3);

  --amber:        #C8963E;
  --amber-light:  #E8C062;
  --amber-glow:   rgba(200,150,62,0.45);
  --amber-dim:    rgba(200,150,62,0.4);

  --text-1:       #F5EDD8;
  --text-2:       #A08060;
  --text-3:       #6A5040;

  --radius:       10px;
  --panel-w:      268px;

  --font-script:  'Dancing Script', cursive;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;

  --transition:   200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
  height: 100%;
}
body {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--panel-border);
  background: var(--surface);
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--amber);
}
.brand-mark { flex-shrink: 0; }
.brand-name {
  font-family: var(--font-script);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--amber);
}

.header-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-2);
  text-align: center;
}
.header-title em {
  color: var(--text-1);
  font-style: italic;
}

.lit-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}
.toggle-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}

.lit-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  width: 44px;
  height: 24px;
}
.toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  position: relative;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.toggle-thumb {
  display: block;
  width: 16px;
  height: 16px;
  background: var(--text-3);
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.lit-toggle.active .toggle-track {
  background: #2a1a08;
  border-color: var(--amber);
  box-shadow: 0 0 12px rgba(200, 132, 58, 0.3);
}
.lit-toggle.active .toggle-thumb {
  transform: translateX(20px);
  background: var(--amber-light);
  box-shadow: 0 0 8px rgba(232, 164, 85, 0.6);
}
.lit-toggle.active + .toggle-label,
.lit-toggle-wrap:has(.lit-toggle.active) .toggle-label:last-child {
  color: var(--amber-light);
}

/* ── Layout ── */
.layout {
  display: grid;
  grid-template-columns: var(--panel-w) 1fr var(--panel-w);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── Panels ── */
.panel {
  background: var(--panel-bg);
  border-inline: 1px solid var(--panel-border);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--panel-border) transparent;
}
.panel::-webkit-scrollbar { width: 4px; }
.panel::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 2px; }

#leftPanel  { border-left: none; }
#rightPanel { border-right: none; }

.panel-block {
  padding: 20px 18px;
  border-bottom: 1px solid var(--panel-border);
}
.panel-block:last-child { border-bottom: none; }

.panel-heading {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-1);
  margin-bottom: 4px;
}
.panel-sub {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ── Dropzone ── */
.dropzone {
  position: relative;
  border: 1px solid rgba(200, 132, 58, 0.55);
  border-radius: var(--radius);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(200, 132, 58, 0.12), rgba(200, 132, 58, 0.035));
  box-shadow: inset 0 0 0 1px rgba(255, 210, 150, 0.04), 0 8px 22px rgba(0, 0, 0, 0.14);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--amber-light);
  background: linear-gradient(180deg, rgba(232, 164, 85, 0.18), rgba(200, 132, 58, 0.06));
  box-shadow: inset 0 0 0 1px rgba(255, 226, 182, 0.08), 0 10px 26px rgba(200, 132, 58, 0.12);
  transform: translateY(-1px);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dropzone-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 16px;
  pointer-events: none;
}
.dropzone-icon {
  color: var(--amber-light);
  margin-bottom: 4px;
  transition: color var(--transition);
}
.dropzone:hover .dropzone-icon { color: #ffd19a; }

.dropzone-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-1);
}
.dropzone-action {
  font-size: 12.5px;
  color: var(--text-2);
}
.link-underline {
  color: var(--amber-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dropzone-formats {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* ── Photo loaded ── */
.photo-loaded { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.photo-thumb-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-border);
}
.photo-thumb {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  background: rgba(8, 6, 4, 0.7);
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.photo-remove:hover { background: rgba(200, 132, 58, 0.2); color: var(--amber-light); }

.photo-filename {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  text-align: center;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Prefab gallery ── */
.prefab-sep {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 10px;
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.prefab-sep::before,
.prefab-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--panel-border);
}

.prefab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.prefab-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: border-color 140ms, transform 140ms, box-shadow 140ms;
}
.prefab-item:hover {
  border-color: var(--amber-dim);
  transform: scale(1.05);
}
.prefab-item.active {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 0 8px rgba(200,132,58,0.35);
}
.prefab-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Prefab accordion ── */
.prefab-accordion {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prefab-category {
  border-bottom: 1px solid var(--panel-border);
}
.prefab-category:last-child {
  border-bottom: none;
}

.prefab-cat-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-align: left;
  transition: color 140ms;
}
.prefab-cat-header:hover {
  color: var(--amber);
}

.prefab-cat-label {
  flex: 1;
}

.prefab-cat-count {
  font-size: 10px;
  color: var(--text-3);
  background: var(--panel-border);
  border-radius: 8px;
  padding: 1px 6px;
}

.prefab-cat-arrow {
  flex-shrink: 0;
  transition: transform 200ms ease;
  color: var(--text-3);
}
.prefab-cat-header[aria-expanded="true"] .prefab-cat-arrow {
  transform: rotate(180deg);
}

.prefab-cat-body {
  padding-bottom: 8px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--amber-dim);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
  padding: 2px 0;
}
.btn-text:hover { color: var(--amber-light); }

/* ── Frame options ── */
.frame-options {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.frame-opt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.frame-opt input[type="radio"] { display: none; }
.frame-opt-swatch {
  width: 100%;
  height: 32px;
  border-radius: var(--radius);
  border: 2px solid var(--panel-border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.frame-opt input:checked + .frame-opt-swatch {
  border-color: var(--amber);
  box-shadow: 0 0 8px rgba(200, 132, 58, 0.3);
}
.frame-opt-label {
  font-size: 10.5px;
  color: var(--text-2);
  text-align: center;
  transition: color var(--transition);
}
.frame-opt input:checked ~ .frame-opt-label { color: var(--amber-light); }

/* ── Settings collapsible ── */
.settings-details { list-style: none; }
.settings-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-1);
  user-select: none;
}
.settings-summary::-webkit-details-marker { display: none; }
.settings-arrow {
  font-size: 18px;
  color: var(--text-3);
  transition: transform var(--transition);
  line-height: 1;
}
.settings-details[open] .settings-arrow { transform: rotate(90deg); }
.settings-body { margin-top: 14px; }

/* ── Spec note ── */
.spec-row--note { border-bottom: none; padding-top: 4px; }
.spec-note {
  font-size: 10.5px;
  color: var(--text-3);
  font-style: italic;
}

/* ── Sliders ── */
.slider-row { margin-bottom: 16px; }
.slider-row:last-child { margin-bottom: 0; }

.slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: 12px;
}
.slider-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber-dim);
  min-width: 28px;
  text-align: right;
}

.range {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: var(--panel-border);
  border-radius: 1px;
  outline: none;
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  border: 2px solid var(--panel-bg);
  box-shadow: 0 0 6px rgba(200, 132, 58, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(200, 132, 58, 0.6);
}
.range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  border: 2px solid var(--panel-bg);
  box-shadow: 0 0 6px rgba(200, 132, 58, 0.4);
  cursor: pointer;
}

/* ── Product specs ── */
.product-specs {}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--panel-border);
  font-size: 12px;
}
.spec-row:last-child { border-bottom: none; }
.spec-key { color: var(--text-2); }
.spec-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-1);
  letter-spacing: 0.02em;
}

/* ── Viewport ── */
.viewport {
  position: relative;
  background: #06040200;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#threeCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── No-photo overlay ── */
.no-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(8, 6, 4, 0.0);
}
.overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: floatOverlay 4s ease-in-out infinite;
}
.overlay-icon {
  color: var(--text-3);
  opacity: 0.6;
}
.overlay-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-3);
  text-align: center;
  line-height: 1.5;
}

@keyframes floatOverlay {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ── Viewport hint ── */
.viewport-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(8, 6, 4, 0.5);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--panel-border);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  white-space: nowrap;
}
.viewport:hover .viewport-hint { opacity: 1; }

.viewport-hint-mobile {
  display: none;
}

/* ── Badge Fabriqué en France ── */
.france-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(8, 6, 4, 0.6);
  border: 1px solid var(--amber-dim);
  border-radius: 20px;
  padding: 4px 10px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* ── Calibration badge ── */
.calibration-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--amber-dim);
  background: rgba(8, 6, 4, 0.7);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--amber-dim);
  letter-spacing: 0.04em;
  opacity: 0.6;
  pointer-events: none;
  white-space: nowrap;
}

/* ── Price ── */
.price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  color: var(--text-1);
  letter-spacing: -0.02em;
}
.price-amount sup {
  font-size: 20px;
  vertical-align: super;
  font-weight: 400;
}
.price-note {
  font-size: 11px;
  color: var(--text-2);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.color-photo-warn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 11px;
  background: rgba(220, 150, 30, 0.10);
  border: 1px solid rgba(220, 150, 30, 0.35);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-2);
}
.color-photo-warn strong { color: var(--gold); font-weight: 600; }
.color-photo-warn-icon { flex-shrink: 0; font-size: 13px; margin-top: 1px; opacity: .8; }

.price-eco {
  font-size: 10px;
  color: var(--text-2);
  font-family: var(--font-mono);
  opacity: .6;
  margin-top: 2px;
}

/* ── Order form ── */
.order-form { display: flex; flex-direction: column; gap: 12px; }

.field { display: flex; flex-direction: column; gap: 4px; }
.field-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field-opt {
  text-transform: none;
  color: var(--text-3);
  font-size: 10px;
}
.field-input {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  padding: 8px 10px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.field-input::placeholder { color: var(--text-3); }
.field-input:focus {
  border-color: var(--amber-dim);
  box-shadow: 0 0 0 2px rgba(200, 132, 58, 0.12);
}
.field-input:user-invalid {
  border-color: #a03030;
}
/* Fallback pour navigateurs plus anciens — uniquement après tentative de submit */
.form-submitted .field-input:invalid {
  border-color: #a03030;
}
.field-textarea {
  resize: vertical;
  min-height: 72px;
  font-size: 12px;
}

/* ── Form alerts ── */
.form-alert {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #c89050;
  background: rgba(200, 144, 80, 0.08);
  border: 1px solid rgba(200, 144, 80, 0.2);
  border-radius: var(--radius);
  padding: 8px 10px;
}
.form-alert--error { color: #c05050; background: rgba(192, 80, 80, 0.08); border-color: rgba(192, 80, 80, 0.2); }

/* ── Order button ── */
.btn-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: var(--amber);
  border: none;
  border-radius: var(--radius);
  color: #080604;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-order::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition);
}
.btn-order:hover {
  background: var(--amber-light);
  box-shadow: 0 4px 20px rgba(200, 132, 58, 0.35);
  transform: translateY(-1px);
}
.btn-order:active { transform: translateY(0); }
.btn-order:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-order-arrow { font-size: 16px; transition: transform var(--transition); }
.btn-order:hover .btn-order-arrow { transform: translateX(3px); }

.form-note {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
  text-align: center;
}
.form-rgpd {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.6;
  text-align: center;
  border-top: 1px solid var(--panel-border);
  padding-top: 10px;
  opacity: 0.7;
}

/* ── Success state ── */
.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 12px 0;
}
.success-star {
  font-size: 28px;
  color: var(--amber);
  animation: spinStar 1s ease;
}
@keyframes spinStar {
  from { transform: rotate(-90deg) scale(0); opacity: 0; }
  to   { transform: rotate(0deg)   scale(1); opacity: 1; }
}
.success-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-1);
}
.success-body {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Guarantee ── */
.guarantee {
  font-size: 13px;
  color: var(--text-2);
  line-height: 2;
  letter-spacing: 0.02em;
}

/* ── Glow ambiance (corps) quand allumé ── */
body.lit .header {
  box-shadow: 0 1px 20px rgba(255, 154, 60, 0.06);
}

/* ── Scrollbar global ── */
* { scrollbar-width: thin; scrollbar-color: var(--panel-border) transparent; }

/* ── Responsive (tablette, panneaux repliés) ── */
@media (max-width: 900px) {
  :root { --panel-w: 220px; }
}
@media (max-width: 680px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
    height: auto;
    overflow: visible;
  }
  body { overflow: auto; }
  html, body { height: auto; }
  .viewport { height: 50vh; }
  .panel { border-inline: none; }
  #leftPanel  { order: 2; }
  #rightPanel { order: 3; }
  .viewport   { order: 1; }

  html { overflow: auto; }

  .viewport-hint { display: none; }
  .viewport-hint-mobile {
    display: block;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(8, 6, 4, 0.5);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--panel-border);
    pointer-events: none;
    white-space: nowrap;
  }
}

/* ── Gravure arrière ── */
.field--gravure { gap: 0; }

.gravure-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), border-radius var(--transition);
  user-select: none;
}
.gravure-opt:hover {
  border-color: var(--amber-dim);
  background: rgba(200, 132, 58, 0.04);
}
.field--gravure.is-open .gravure-opt {
  border-color: var(--amber-dim);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: rgba(200, 132, 58, 0.06);
}
.gravure-opt-icon {
  color: var(--amber);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 0.8;
}
.gravure-opt-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.gravure-opt-title {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-1);
  letter-spacing: 0.02em;
}
.gravure-opt-desc {
  font-size: 10px;
  color: var(--text-3);
}
.gravure-opt-badge {
  flex-shrink: 0;
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3ab573;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 3px;
  padding: 2px 6px;
}
.gravure-check { display: none; }
.gravure-opt-arrow {
  font-size: 18px;
  color: var(--text-3);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.field--gravure.is-open .gravure-opt-arrow {
  transform: rotate(90deg);
  color: var(--amber);
}

.gravure-reveal {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}
.field--gravure.is-open .gravure-reveal {
  max-height: 110px;
  opacity: 1;
  border: 1px solid var(--amber-dim);
  border-top: none;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  background: rgba(200, 132, 58, 0.03);
}
.gravure-input {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--input-border) !important;
  padding: 9px 12px !important;
}
.gravure-input:focus {
  border-bottom-color: var(--amber-dim) !important;
}
.gravure-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 12px 8px;
}
.gravure-hint {
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.gravure-count {
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
  transition: color var(--transition);
  flex-shrink: 0;
}
.gravure-count.near-limit { color: var(--amber); }
.gravure-count.at-limit   { color: #c05050; }

/* ── Case CGV ── */
.field--cgv { margin-top: 4px; }
.cgv-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}
.cgv-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 14px;
  height: 14px;
  accent-color: var(--amber);
  cursor: pointer;
}
.cgv-label a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cgv-label a:hover { color: var(--amber-light); }

/* ── Footer site ── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
  border-top: 1px solid var(--panel-border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: .06em;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 150ms;
}
.site-footer a:hover { color: var(--text-2); }
