/* ==========================================================
   🎨 PALETTE BIZCREATOR – OR PREMIUM (UNIQUE)
========================================================== */
:root{
  --bg-main:#f7efe2;
  --bg-panel:#fbf3e6;
  --gold:#e0b76f;
  --gold-deep:#c6943a;
  --accent:#ff7a25;
  --accent-soft:#ffb36b;
  --ink:#111315;
  --ink-soft:#5c5a55;
}

/* ==========================================================
   RESET (UNIQUE)
========================================================== */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

/* ==========================================================
   BASE VIEWER COMMUNE (UNIQUE)
========================================================== */
body{
  min-height:100vh;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(circle at 85% 90%, rgba(255,226,195,.8), transparent 55%),
    linear-gradient(160deg,#fdf7ed,#f0e2cb);
  padding:26px 14px 120px;
  overflow-x:hidden;
}

.view{
  max-width:980px;
  margin:0 auto;
  animation:fadeUp .45s ease;
}

@keyframes fadeUp{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}

h1{
  text-align:center;
  font-size:2rem;
  letter-spacing:.12em;
  margin-bottom:20px;
}

.meta{
  text-align:center;
  font-size:.85rem;
  color:var(--ink-soft);
  margin-bottom:10px;
}

.price{
  text-align:center;
  font-size:1.6rem;
  font-weight:800;
  color:var(--accent);
  margin-bottom:18px;
}

/* ==========================================================
   SECTIONS
========================================================== */
.section{
  margin-top:26px;
  background:var(--bg-panel);
  padding:18px 20px;
  border-radius:20px;
  border:1px solid rgba(224,183,111,.55);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  animation:sectionPop .45s ease;
}

@keyframes sectionPop{
  from{opacity:0;transform:scale(.97)}
  to{opacity:1;transform:none}
}

.section h3{
  margin-bottom:10px;
  color:var(--gold-deep);
}

/* ==========================================================
   GALERIE
========================================================== */
.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:12px;
  margin-bottom:18px;
}

.gallery img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:16px;
  cursor:pointer;
  transition:transform .35s ease, box-shadow .35s ease;
}

.gallery img:hover{
  transform:scale(1.04);
  box-shadow:0 14px 30px rgba(0,0,0,.35);
}

/* ==========================================================
   ACTIONS
========================================================== */
.view-actions{
  margin-top:30px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.bm-btn{
  flex:1;
  padding:12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.75);
  background:rgba(255,255,255,.65);
  text-align:center;
  text-decoration:none;
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  cursor:pointer;
  transition:.25s ease;
  color:var(--ink);
}

.bm-btn:hover{
  background:linear-gradient(135deg,var(--accent-soft),var(--accent));
  color:#3b2108;
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(0,0,0,.25);
}

.bm-primary{
  background:linear-gradient(135deg,var(--accent-soft),var(--accent));
  color:#3b2108;
  font-weight:700;
}

/* ==========================================================
   LIGHTBOX
========================================================== */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(12px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:999;
}
.lightbox.hidden{display:none}

.lightbox img{
  max-width:92%;
  max-height:88vh;
  border-radius:22px;
  animation:zoomIn .35s ease;
}

@keyframes zoomIn{
  from{transform:scale(.9);opacity:0}
  to{transform:none;opacity:1}
}

.lightbox-close{
  position:absolute;
  top:18px;
  right:22px;
  font-size:26px;
  color:#fff;
  cursor:pointer;
}

/* ==========================================================
   🎛 SELECTEUR DE STYLE
========================================================== */
.view-style-selector{
  position:fixed;
  top:14px;
  right:14px;
  background:#fff;
  border-radius:16px;
  padding:6px 10px;
  box-shadow:0 10px 24px rgba(0,0,0,.25);
  z-index:1000;
}
.view-style-selector select{
  border:none;
  background:none;
  font-size:.85rem;
  outline:none;
}

/* ==========================================================
   🎭 STYLES D’AFFICHAGE (VARIANTES)
========================================================== */

/* 1️⃣ CLASSIC */
body[data-view-style="classic"] .section{
  background:#ffffff;
}

/* 2️⃣ MODERN */
body[data-view-style="modern"] h1{
  font-size:2.3rem;
}
body[data-view-style="modern"] .section{
  border-radius:28px;
  box-shadow:0 18px 40px rgba(0,0,0,.18);
}
body[data-view-style="modern"] .gallery img{
  height:220px;
}

/* 3️⃣ MINIMAL */
body[data-view-style="minimal"]{
  background:#ffffff;
}
body[data-view-style="minimal"] .section{
  background:none;
  border:none;
  box-shadow:none;
  padding:10px 0;
}
body[data-view-style="minimal"] .gallery img{
  border-radius:0;
}
body[data-view-style="minimal"] .meta,
body[data-view-style="minimal"] .price{
  text-align:left;
}

/* 4️⃣ DARK */
body[data-view-style="dark"]{
  background:#0f1116;
  color:#eaeaea;
}
body[data-view-style="dark"] .section{
  background:#16181f;
  border-color:#2a2d38;
}
body[data-view-style="dark"] .meta{color:#aaa}
body[data-view-style="dark"] .bm-btn{
  background:#222;
  color:#eee;
}

/* 5️⃣ GOLD PREMIUM */
body[data-view-style="gold"]{
  background:linear-gradient(160deg,#fff6dc,#f0dfb9);
}
body[data-view-style="gold"] .section{
  border:1px solid var(--gold);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.7) inset,
    0 18px 38px rgba(224,183,111,.45);
}

/* 6️⃣ MAGAZINE */
body[data-view-style="magazine"] .section{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
body[data-view-style="magazine"] .section h3{
  grid-column:1 / -1;
}

/* 7️⃣ TIMELINE */
body[data-view-style="timeline"] .section{
  position:relative;
  padding-left:40px;
}
body[data-view-style="timeline"] .section::before{
  content:"";
  position:absolute;
  left:16px;
  top:16px;
  bottom:16px;
  width:4px;
  background:linear-gradient(var(--accent-soft),var(--accent));
  border-radius:999px;
}

/* 8️⃣ COMPACT */
body[data-view-style="compact"] .section{
  padding:12px;
  font-size:.85rem;
}
body[data-view-style="compact"] .gallery img{
  height:110px;
}
