/* PARTYBOOTH — Catalogue des styles IA — Theme blanc (octobre 2026).
   Remplacer uniquement /catalogue-ia/styles.css. Aucun secret, aucun changement API. */
:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --text: #1c2026;
  --muted: #6e7480;
  --pink: #e74b87;
  --border: #e8e9ec;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-width: 320px;
  color: var(--text); background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #b22c63; outline-offset: 3px; }
.container { max-width: 1350px; margin: auto; padding: 0 32px; }

/* Navigation très sobre, dans le même esprit que les pages blanches PARTYBOOTH. */
.header { border-bottom: 1px solid var(--border); background: #fff; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 86px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 800; letter-spacing: .14em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--pink); }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; color: #fff; background: #242831; border-radius: 9px; }
.brand-mark svg { height: 22px; width: 22px; }
.header-note { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.status-dot { height: 8px; width: 8px; background: #a4a6ab; border-radius: 50%; }
.status-dot.ok { background: #218a60; }
.status-dot.error { background: #dc5770; }

.hero { padding: 70px 0 42px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--pink); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--pink); }
.hero-content { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; }
h1 { max-width: 900px; margin: 20px 0 19px; font-size: clamp(37px, 5vw, 68px); font-weight: 780; line-height: 1.08; letter-spacing: -.048em; }
h1 .accent { color: var(--pink); }
.intro { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.75; font-size: 16px; }
.cta-wrap { margin: 27px 0 0; }
.cta { display: inline-flex; align-items: center; padding: 14px 21px; background: #20242a; border: 1px solid #20242a; border-radius: 8px; color: white; font-size: 13px; font-weight: 740; letter-spacing: .025em; text-decoration: none; transition: background .2s, border-color .2s; }
.cta:hover { background: #3e4147; border-color: #3e4147; }
.stat { min-width: 172px; flex: 0 0 auto; padding: 18px 24px; background: #fafafa; border: 1px solid var(--border); border-radius: 12px; }
.stat-number { display: block; font-size: 39px; font-weight: 760; letter-spacing: -.035em; line-height: 1.15; }
.stat-caption { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }

.tools { display: flex; gap: 12px; align-items: center; margin: 14px 0 24px; }
.search { flex: 1; position: relative; }
.search svg { position: absolute; z-index: 1; top: 50%; left: 17px; width: 20px; height: 20px; transform: translateY(-50%); color: #8a8e97; pointer-events: none; }
.search input { width: 100%; height: 54px; padding: 0 18px 0 50px; border: 1px solid #dfe2e6; border-radius: 9px; color: var(--text); background: #fff; outline: none; }
.search input::placeholder { color: #999da6; }
.search input:focus { border-color: #d75886; box-shadow: 0 0 0 3px #e74b8719; }
.refresh { height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 21px; border: 1px solid #dde0e4; border-radius: 9px; color: #34383f; background: white; font-size: 13px; font-weight: 690; white-space: nowrap; transition: border-color .2s, background .2s; }
.refresh:hover { border-color: #c8cbd2; background: #f8f9fa; }
.refresh:disabled { cursor: wait; opacity: .65; }
.refresh svg { width: 18px; height: 18px; }
.refresh:disabled svg { animation: rotate 1s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }

.categories { display: flex; flex-wrap: wrap; gap: 9px; padding-bottom: 34px; }
.category { border: 1px solid #dfe1e5; border-radius: 999px; padding: 11px 17px; color: #555b63; background: white; font-size: 12px; font-weight: 690; transition: background .18s, border-color .18s, color .18s; }
.category:hover { border-color: #aeb3bb; color: #20252d; }
.category.active { background: #22262d; border-color: #22262d; color: white; }
.category .num { margin-left: 6px; opacity: .65; font-weight: 530; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e9e9eb; padding: 25px 0 23px; }
.results-head h2 { margin: 0; font-size: 22px; font-weight: 760; letter-spacing: -.028em; }
.results-head p { margin: 0; color: var(--muted); font-size: 13px; }

.gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 23px; padding-bottom: 86px; }
.tile { display: block; min-width: 0; padding: 0; border: 1px solid #e9eaed; border-radius: 12px; color: var(--text); background: white; text-align: left; overflow: hidden; box-shadow: 0 3px 12px rgba(20,24,30,.035); transition: transform .2s, border-color .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); border-color: #d8dbe0; box-shadow: 0 15px 30px rgba(20,24,30,.1); }
.tile-image { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; background: #f3f4f5; }
.image-fallback { width: 100%; aspect-ratio: 4/5; padding: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; color: #8d929b; background: #f6f7f8; font-size: 12px; text-align: center; }
.image-fallback svg { width: 35px; height: 35px; opacity: .65; }
.tile-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 18px; }
.tile-info strong { display: block; font-size: 15px; font-weight: 740; color: #22252c; overflow-wrap: anywhere; }
.tile-info small { display: block; margin-top: 5px; color: #838994; font-size: 12px; overflow-wrap: anywhere; }
.arrow { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #454b55; background: #f2f3f5; font-size: 20px; }
.empty { grid-column: 1/-1; padding: 70px 25px; border: 1px dashed #dcdfe4; border-radius: 14px; text-align: center; background: #fafafa; color: var(--muted); }
.empty h3 { margin: 0 0 10px; color: var(--text); }
.empty p { margin: 0; line-height: 1.6; }
.error-state { max-width: 750px; margin: 0 0 42px; padding: 26px; border: 1px solid #efc3cc; border-radius: 12px; background: #fff8f9; }
.error-state h2 { margin: 0 0 10px; font-size: 18px; color: #25262b; }
.error-state p { margin: 0 0 18px; color: #79525b; line-height: 1.6; }
.retry { padding: 11px 18px; border: 1px solid #dc99ad; border-radius: 8px; color: #803348; background: white; font-weight: 700; }
.retry:hover { background: #fff0f3; }
.skeleton { pointer-events: none; }
.skeleton-image, .skeleton-text { background: linear-gradient(100deg, #f0f1f3 25%, #e3e5e8 45%, #f0f1f3 65%); background-size: 210% 100%; animation: shimmer 1.5s infinite; }
.skeleton-image { aspect-ratio: 4/5; }
.skeleton-text { height: 16px; margin: 20px; border-radius: 4px; }
@keyframes shimmer { to { background-position-x: -210%; } }

.footer { padding: 29px 0 45px; border-top: 1px solid #e9eaed; color: #7d828b; font-size: 12px; line-height: 1.65; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.overlay { display: grid; place-items: center; position: fixed; inset: 0; z-index: 20; padding: 24px; background: #101116bd; backdrop-filter: blur(9px); }
.overlay[hidden] { display: none; }
.modal { display: flex; flex-direction: column; position: relative; width: min(870px,100%); max-height: calc(100vh - 48px); border: 1px solid #e4e5e9; border-radius: 15px; overflow: hidden; color: var(--text); background: white; box-shadow: 0 25px 90px rgba(0,0,0,.24); }
.modal-image { display: block; align-self: center; max-width: 100%; max-height: min(70vh,720px); object-fit: contain; }
.modal-image[hidden] { display: none; }
.modal-meta { padding: 18px 23px; border-top: 1px solid #e9e9ed; }
.modal-meta h2 { margin: 0 0 4px; font-size: 23px; }
.modal-meta p { margin: 0; color: var(--muted); font-size: 13px; }
.close { position: absolute; right: 13px; top: 13px; z-index: 1; width: 41px; height: 41px; border: 1px solid #dadce0; border-radius: 50%; color: #30343a; background: #ffffffeb; font-size: 25px; line-height: 1; }

@media (max-width: 1050px) { .gallery { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) {
  .container { padding: 0 19px; }
  .header-inner { min-height: 71px; }
  .header-note { font-size: 10px; }
  .hero { padding-top: 49px; }
  .hero-content { flex-direction: column; align-items: flex-start; gap: 24px; }
  .stat { padding: 14px 19px; min-width: 150px; }
  .stat-number { font-size: 29px; }
  .tools { margin-top: 0; }
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .tile-info { padding: 13px 12px 15px; }
  .tile-info strong { font-size: 14px; }
  .tile-info small { font-size: 11px; }
  .arrow { width: 26px; height: 26px; }
}
@media (max-width: 500px) {
  .header-note .long { display: none; }
  .refresh .label { display: none; }
  .refresh { width: 54px; padding: 0; }
  .categories { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 23px; scrollbar-width: thin; }
  .category { flex-shrink: 0; white-space: nowrap; }
  .results-head { flex-wrap: wrap; gap: 7px; }
  .tile-info .arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Sélection de styles — ajout compatible avec le thème blanc. */
.header-actions { display:flex; align-items:center; gap:22px; }
.header-cart { display:inline-flex; align-items:center; gap:9px; padding:11px 14px; border:1px solid #e3e3e8; border-radius:9px; background:#fff; color:#24262c; font-weight:750; font-size:13px; white-space:nowrap; }
.header-cart:hover { border-color:var(--pink); }
.header-cart > span:first-child { font-size:21px; color:var(--pink); line-height:1; }
.cart-count { background:var(--pink); color:white; border-radius:99px; min-width:22px; height:22px; display:grid; place-items:center; font-size:11px; }
.selection-help { margin:7px 0 0; font-size:12px; color:var(--muted); }
.tile { display:flex; flex-direction:column; }
.tile-preview { display:block; padding:0; border:0; background:#fff; color:inherit; text-align:left; width:100%; flex:1; }
.tile-preview:hover .tile-info strong { color:#bc3368; }
.pick-btn { margin:0 14px 14px; min-height:39px; border:1px solid #ebbacd; border-radius:8px; color:#af3265; background:#fff7fa; font-weight:750; font-size:13px; }
.pick-btn:hover { border-color:#d75687; background:#fff0f5; }
.pick-btn.picked, .modal-pick.picked { background:#24262b; color:white; border-color:#24262b; }
.modal-meta { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.modal-pick { padding:12px 16px; border:1px solid #d65287; border-radius:9px; color:white; background:var(--pink); font-weight:730; cursor:pointer; }
.selection-shade { position:fixed; inset:0; z-index:50; background:#1719219e; }
.selection-shade[hidden], .selection-panel[hidden], .floating-selection[hidden] { display:none !important; }
.selection-panel { position:fixed; z-index:51; inset:0 0 0 auto; width:min(500px,100vw); display:flex; flex-direction:column; background:#fff; box-shadow:-18px 0 50px #191d2630; }
.selection-panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:27px 27px 20px; border-bottom:1px solid var(--border); }
.selection-panel-head h2 { font-size:26px; letter-spacing:-.04em; margin:11px 0 0; }
.selection-panel-head h2 span { color:var(--pink); }
.panel-close { border:1px solid #e0e2e6; width:42px; height:42px; border-radius:50%; background:white; color:#1e2126; font-size:27px; }
.selection-panel-body { overflow-y:auto; overscroll-behavior:contain; padding:19px 27px 34px; }
.selection-empty { padding:22px; border:1px dashed #e0e2e5; border-radius:10px; background:#fafafa; color:var(--muted); font-size:14px; line-height:1.55; }
.selected-item { display:flex; align-items:center; gap:13px; padding:12px 0; border-bottom:1px solid #eef0f2; }
.selected-item img { width:62px; height:75px; object-fit:cover; border-radius:7px; background:#f3f3f5; }
.selected-desc { flex:1; min-width:0; }
.selected-desc strong { display:block; font-size:14px; overflow-wrap:anywhere; }
.selected-desc small { display:block; color:var(--muted); font-size:12px; margin-top:4px; }
.remove-selected { width:33px; height:33px; flex:0 0 auto; border-radius:50%; border:1px solid #eee; color:#737780; background:white; font-size:23px; }
.remove-selected:hover { background:#fff0f3; color:#a81c50; }
.selection-form-wrap { border-top:1px solid var(--border); margin-top:27px; padding-top:24px; }
.selection-form-wrap h3 { margin:0 0 8px; font-size:19px; }
.selection-form-wrap > p { margin:0 0 18px; color:var(--muted); font-size:13px; line-height:1.6; }
.form-row { margin:0 0 16px; }
.form-row label { display:block; margin:0 0 6px; font-size:13px; font-weight:730; }
.form-row .optional { color:var(--muted); font-weight:400; }
.form-row input, .form-row textarea { display:block; width:100%; min-height:44px; border:1px solid #dce0e4; background:white; color:#20252a; border-radius:8px; padding:11px 12px; font:inherit; font-size:14px; }
.form-row textarea { resize:vertical; }
.form-row input:focus, .form-row textarea:focus { border-color:#d65287; outline:2px solid #d6528728; }
.privacy-note { font-size:11px !important; }
.website-field { position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }
.send-btn { width:100%; min-height:49px; display:flex; align-items:center; justify-content:space-between; border:0; border-radius:9px; padding:12px 18px; color:white; background:var(--pink); font-weight:760; }
.send-btn:hover:not(:disabled) { background:#ce3d72; }
.send-btn:disabled { opacity:.55; cursor:not-allowed; }
.send-feedback { font-size:13px; line-height:1.6; }
.send-feedback.success { padding:12px; background:#eaf8ef; color:#16643c; border-radius:8px; }
.send-feedback.failure { padding:12px; background:#fff0f1; color:#9d294b; border-radius:8px; }
.floating-selection { position:fixed; bottom:15px; left:50%; transform:translateX(-50%); z-index:15; display:none; align-items:center; justify-content:center; gap:13px; min-height:48px; border:0; border-radius:50px; background:#24262b; color:white; box-shadow:0 10px 32px #18191e42; font-size:14px; font-weight:750; padding:13px 21px; white-space:nowrap; }
.floating-selection span:nth-child(1) { display:inline-grid; place-items:center; min-width:22px; height:22px; background:var(--pink); border-radius:99px; }
@media (max-width:760px) {
  .header-actions { gap:8px; }
  .header-note { display:none; }
  .floating-selection:not([hidden]) { display:flex; }
  .selection-panel-head { padding:21px 19px 16px; }
  .selection-panel-body { padding:17px 19px 30px; }
}
@media (max-width:500px) {
  .header-cart { font-size:12px; padding:8px 9px; }
  .header-cart > span:first-child { display:none; }
  .pick-btn { margin:0 9px 10px; font-size:12px; }
  .modal-meta { align-items:stretch; flex-direction:column; }
  .selection-panel { width:100%; }
}
/* Prix affichés au client : galerie, aperçu, sélection */
.style-price{display:block;font-size:12px;color:#b43d70;font-weight:750;margin-top:6px;letter-spacing:0}
.modal-price{color:#b43d70!important;font-weight:750;font-size:14px;margin-top:6px!important}
.selected-price{display:block;font-size:13px;font-weight:750;color:#b43d70;margin-top:5px}
.selection-total{background:#fff5f9;border:1px solid #f1d3df;border-radius:10px;padding:14px 16px;margin:17px 0 5px;font-size:14px;font-weight:750;color:#84294e;line-height:1.6}

/* V4 — étiquette automatique sur les vignettes des styles tarifés (> 0 €).
   Le reste du catalogue et la gestion des tarifs demeurent inchangés. */
.tile-preview { position: relative; }
.customizable-badge {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 24px);
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f4e4eb;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .13);
  color: #a52f63;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .025em;
  pointer-events: none;
}
@media (max-width: 500px) {
  .customizable-badge { top: 9px; left: 9px; max-width: calc(100% - 18px); padding: 6px 9px; font-size: 10px; }
}
