/* ─────────────────────────────────────────────────────────────
   Kaye Cosplay — thème violet pastel, boutons lapin
   ───────────────────────────────────────────────────────────── */
:root {
  --bg:        #f4eeff;
  --bg-2:      #ebe1ff;
  --paper:     #fffbff;
  --violet:    #8a6bd1;
  --violet-d:  #6b4fa8;
  --ink:       #3f3163;
  --muted:     #8a7fa8;
  --pink:      #f9c9de;
  --mint:      #b9e4cf;
  --butter:    #fff1b8;
  --line:      #ddd0f7;
  --glow:      0 0 0 3px rgba(138,107,209,.25), 0 14px 34px rgba(138,107,209,.45);
  --radius:    22px;
  --side:      20%;
  --font-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%,  rgba(249,201,222,.45) 0 120px, transparent 121px),
    radial-gradient(circle at 92% 30%, rgba(185,228,207,.40) 0 90px,  transparent 91px),
    radial-gradient(circle at 70% 96%, rgba(255,241,184,.55) 0 110px, transparent 111px),
    var(--bg);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* Scrollbars violettes */
html, .side { scrollbar-color: var(--violet) var(--bg-2); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 999px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--violet-d); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--violet-d); margin: 0; }
a { color: var(--violet-d); }
.muted { color: var(--muted); }

/* Lueur au survol (version violette de l'effet du site manga) */
.glow { transition: transform .3s ease, box-shadow .3s ease; }
.glow:hover, .glow:focus-visible { transform: translateY(-10px); box-shadow: -5px 5px 14px rgba(138,107,209,.55); outline: none; }
.glow img { transition: transform .3s ease; }
.glow:hover img { transform: scale(1.05); }

/* ── Boutons lapin ───────────────────────────────────────── */
.bunny-btn {
  --btn: var(--violet);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 14px 30px;
  margin-top: 30px;               /* place pour les oreilles */
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--violet-d);
  transition: transform .25s ease, box-shadow .25s ease, background .25s;
}
.bunny-btn span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; }
/* les oreilles : fond violet + intérieur rose */
.bunny-btn::before, .bunny-btn::after {
  content: '';
  position: absolute;
  bottom: 62%;
  width: 22px;
  height: 44px;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background:
    radial-gradient(ellipse 30% 38% at 50% 48%, var(--pink) 98%, transparent 100%),
    var(--btn);
  transform-origin: 50% 100%;
  transition: transform .3s ease, background .25s;
  z-index: 0;
}
.bunny-btn::before { left: calc(50% - 30px); transform: rotate(-12deg); }
.bunny-btn::after  { left: calc(50% + 8px);  transform: rotate(12deg); }
.bunny-btn:hover, .bunny-btn:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 6px 0 var(--violet-d), var(--glow);
  --btn: #9b7de0;
}
.bunny-btn:hover::before { animation: wiggle-l .6s ease; }
.bunny-btn:hover::after  { animation: wiggle-r .6s ease .08s; }
.bunny-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--violet-d); }
.bunny-btn.small { min-width: 0; padding: 11px 20px; font-size: .95rem; }
.bunny-btn.small::before, .bunny-btn.small::after { width: 16px; height: 32px; }
.bunny-btn.small::before { left: calc(50% - 22px); }
.bunny-btn.small::after  { left: calc(50% + 6px); }

@keyframes wiggle-l { 0%,100% { transform: rotate(-12deg); } 30% { transform: rotate(-26deg); } 60% { transform: rotate(-4deg); } }
@keyframes wiggle-r { 0%,100% { transform: rotate(12deg); }  30% { transform: rotate(26deg); }  60% { transform: rotate(4deg); } }

/* Bouton home : tête ronde avec oreilles */
.home-bunny {
  --btn: var(--violet);
  position: relative;
  flex: none;
  width: 52px; height: 52px;
  margin-top: 24px;
  border-radius: 50%;
  background: var(--btn);
  display: grid; place-items: center;
  box-shadow: 0 4px 0 var(--violet-d);
  transition: transform .25s, box-shadow .25s;
}
.home-bunny .icon { width: 24px; height: 24px; fill: #fff; position: relative; z-index: 1; }
.home-bunny::before, .home-bunny::after {
  content: ''; position: absolute; bottom: 70%;
  width: 15px; height: 30px;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse 30% 38% at 50% 48%, var(--pink) 98%, transparent 100%), var(--btn);
  transform-origin: 50% 100%;
}
.home-bunny::before { left: 9px;  transform: rotate(-14deg); }
.home-bunny::after  { right: 9px; transform: rotate(14deg); }
.home-bunny:hover { transform: translateY(-5px); box-shadow: 0 4px 0 var(--violet-d), var(--glow); }
.home-bunny:hover::before { animation: wiggle-l .6s; }
.home-bunny:hover::after  { animation: wiggle-r .6s .08s; }

.icon { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.icon-mail rect, .icon-mail path, .icon-insta rect, .icon-insta circle[r="3.8"], .icon-back path { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-mail rect { fill: none; }

/* ── Accueil ─────────────────────────────────────────────── */
.home { flex: 1; display: flex; flex-direction: column; }
.home-hero {
  position: relative;
  height: 75vh;
  min-height: 340px;
  margin: 16px 16px 0;
  border-radius: 0 0 48px 48px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 10px 40px rgba(107,79,168,.18);
}
.home-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-empty { height: 100%; display: grid; place-items: center; }
.hero-bunny { width: min(220px, 40vw); }
.hero-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 60px 24px 26px;
  text-align: center;
  background: linear-gradient(transparent, rgba(63,49,99,.55));
  color: #fff;
}
.hero-title h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.6rem); text-shadow: 0 3px 0 rgba(107,79,168,.6); }
.hero-title p { margin: 4px 0 0; font-weight: 600; letter-spacing: .08em; opacity: .95; }
.home-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px 34px;
  padding: 14px 16px 40px;
}

/* ── Mise en page 20 / 80 ───────────────────────────────── */
.split { flex: 1; display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--paper);
  border-right: 3px dashed var(--line);
}
.side-photo img { width: 100%; height: 100%; object-fit: cover; }
.side-empty { height: 100%; display: grid; place-items: center; background: var(--bg-2); }
.side-bunny { width: 60%; }
.side-info { padding: 28px 22px; }
.side-info h1 { font-size: 1.8rem; line-height: 1.15; margin: 14px 0 10px; }
.side-info blockquote {
  margin: 0 0 18px; padding: 12px 14px;
  background: var(--bg); border-radius: 14px;
  font-style: italic; color: var(--violet-d);
}
.side-info dl { margin: 0; }
.side-info dt { font-family: var(--font-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 14px; }
.side-info dd { margin: 2px 0 0; font-weight: 700; }
.side-sub { font-size: 1.1rem; margin: 10px 0 8px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; font-size: .9rem; }
.back-link .icon { stroke-width: 2.4; fill: none; }

.main { padding: 8px 32px 40px; min-width: 0; }
.wrap { flex: 1; width: min(1200px, 100%); margin: 0 auto; padding: 8px 24px 40px; }
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.page-top.end { justify-content: flex-end; }
.page-top h1 { font-size: 2.2rem; margin-top: 24px; }

/* ── About ───────────────────────────────────────────────── */
.about-main { display: flex; flex-direction: column; }
.card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 22px;
}
.card h2 { font-size: 1.3rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.intro p { margin: 0; font-size: 1.08rem; line-height: 1.7; }
.calendar { width: min(560px, 100%); align-self: center; background: linear-gradient(var(--paper), var(--paper)) padding-box, linear-gradient(135deg, var(--pink), var(--violet), var(--mint)) border-box; border-color: transparent; }
.chip { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: var(--violet-d); font-size: .95rem; }
.cute-list { list-style: none; margin: 0; padding: 0; }
.cute-list li { position: relative; padding: 7px 0 7px 30px; border-bottom: 1px dashed var(--line); }
.cute-list li:last-child { border-bottom: 0; }
.cute-list li::before { content: '♡'; position: absolute; left: 4px; color: var(--violet); font-weight: 700; }
.socials { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding-top: 10px; }

/* ── Grille des albums ──────────────────────────────────── */
.search { margin: 0 0 22px; }
.search input {
  width: 100%; padding: 13px 20px;
  border-radius: 999px; border: 2px solid var(--line);
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 1rem;
}
.search input:focus { outline: none; border-color: var(--violet); box-shadow: var(--glow); }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px; }
.album-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 10px;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--line);
}
.album-card .cover { aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.album-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-empty { height: 100%; display: grid; place-items: center; }
.mini-bunny { width: 45%; max-width: 110px; }
.card-label { padding: 10px 6px 4px; text-align: center; }
.card-label strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--violet-d); }
.card-label span { font-size: .88rem; color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); }
.empty-bunny { width: 120px; margin: 20px auto 6px; }

/* ── Photos d'un album (masonry) ────────────────────────── */
.masonry { columns: 3 260px; column-gap: 18px; }
.photo {
  display: block; margin: 0 0 18px; break-inside: avoid;
  border-radius: 18px; overflow: hidden;
  isolation: isolate; /* coins arrondis nets pendant le zoom */
}
.photo img { width: 100%; height: auto; backface-visibility: hidden; }

/* ── Merch ───────────────────────────────────────────────── */
.merch-section { margin-bottom: 34px; }
.specs { list-style: none; margin: -4px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.specs li {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 5px 13px; font-size: .88rem; font-weight: 700; color: var(--ink);
}
.specs li span { color: var(--muted); font-weight: 600; margin-right: 2px; }
.specs li span::after { content: ':'; }
.promo {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 30px; padding: 16px 22px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--pink), #e6dcff 55%, var(--mint));
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--violet-d);
  box-shadow: -5px 5px 14px rgba(138,107,209,.25);
}
.promo-tag {
  background: var(--violet); color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.merch-section h2, .coming-soon h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.merch-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px;
  padding: 14px 0 10px;
}
.merch-item {
  position: relative; flex: none; width: max-content;
  display: flex; flex-direction: column; align-items: center;
  background: var(--paper); border: 2px solid var(--line);
  border-radius: 18px; padding: 8px; text-decoration: none; color: var(--ink);
}
.merch-item img { height: 240px; width: auto; max-width: 80vw; object-fit: contain; border-radius: 12px; }
.merch-label { width: 0; min-width: 100%; text-align: center; font-weight: 700; font-size: .9rem; padding: 8px 4px 2px; }
.merch-label em { font-style: normal; color: var(--violet); }

.coming-soon {
  margin-top: 60px; padding: 34px 26px;
  border-radius: 32px;
  background: repeating-linear-gradient(45deg, var(--bg-2) 0 16px, var(--bg) 16px 32px);
  border: 3px dashed var(--line);
  text-align: center;
}
.coming-soon h2 { justify-content: center; }
.soon-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.soon-card {
  width: 210px; padding: 18px 14px;
  background: var(--paper); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.soon-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; filter: saturate(.7); }
.soon-card strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--violet-d); }
.soon-tag { background: var(--butter); padding: 3px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; }

/* ── Pied de page ───────────────────────────────────────── */
.site-foot { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; color: var(--muted); font-size: .85rem; }
.foot-bunny { width: 26px; }
.split + .site-foot { display: none; }

/* ── Lightbox ───────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(46,34,77,.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 14px; box-shadow: 0 10px 50px rgba(0,0,0,.4); }
.lightbox figcaption { color: #fff; font-family: var(--font-head); margin-top: 10px; }
.lightbox button {
  position: absolute; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1;
  transition: background .2s;
}
.lightbox button:hover { background: var(--violet); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 3px dashed var(--line); }
  .side-photo { height: 46vh; }
  .side-info { padding: 20px 18px; }
  .main { padding: 4px 16px 32px; }
  .page-top h1 { font-size: 1.8rem; }
  .page-album .side-info dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: baseline; }
  .page-album .side-info dt { margin-top: 0; }
  .page-album .side-info dd { margin: 0; }
  .page-album .page-top.end, .page-merch .page-top.end { position: fixed; top: 6px; right: 12px; z-index: 5; margin: 0; }
  .split + .site-foot { display: flex; }
  .home-hero { height: 70vh; margin: 0; border-radius: 0 0 36px 36px; }
  .home-nav { gap: 6px 18px; }
  .bunny-btn { min-width: 130px; padding: 12px 22px; font-size: 1rem; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .photo { margin-bottom: 10px; border-radius: 12px; }
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .merch-item img { height: 180px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Protection des images ──────────────────────────────── */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
/* calque transparent : « Enregistrer l'image » ne récupère rien */
.photo, .merch-item, .album-card .cover, .soon-card, .lightbox figure { position: relative; }
.photo::after, .merch-item::after, .album-card .cover::after, .home-hero::before, .side-photo::after, .soon-card::after, .lightbox figure::after {
  content: ''; position: absolute; inset: 0; z-index: 1; background: transparent;
}
.home-hero .hero-title { z-index: 2; }
.lightbox button { z-index: 3; }
