/* =========================================================
   AnimeYaoi — feuille de style du site
   ========================================================= */
:root {
  /* Couleur principale : remplacée par la couleur choisie (admin / visiteur) */
  --red: #d8111f;
  --red-dark: color-mix(in srgb, var(--red) 78%, #000);
  --red-soft: color-mix(in srgb, var(--red) 9%, var(--surface));
  --red-line: color-mix(in srgb, var(--red) 24%, var(--surface));
  --red-glow: color-mix(in srgb, var(--red) 24%, transparent);

  /* Thème clair */
  --bg: #ffffff;
  --bg-2: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --ink: #1c1c1e;
  --grey: #6b6b70;
  --line: #ececec;
  --input-border: #dddddf;
  --header-bg: rgba(255,255,255,.94);
  --footer-bg: #1c1c1e;
  --shadow: rgba(0,0,0,.12);
  --radius: 16px;
  color-scheme: light;
}

/* Thème sombre */
:root[data-theme="dark"] {
  --bg: #121014;
  --bg-2: #1a171d;
  --surface: #1d1a20;
  --surface-2: #231f26;
  --ink: #f1edf3;
  --grey: #a7a0ab;
  --line: #2f2a33;
  --input-border: #3a343f;
  --header-bg: rgba(18,16,20,.92);
  --footer-bg: #0b0a0c;
  --shadow: rgba(0,0,0,.45);
  color-scheme: dark;
}
/* Sans JavaScript : on suit quand même le réglage du PC */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #121014; --bg-2: #1a171d; --surface: #1d1a20; --surface-2: #231f26;
    --ink: #f1edf3; --grey: #a7a0ab; --line: #2f2a33; --input-border: #3a343f;
    --header-bg: rgba(18,16,20,.92); --footer-bg: #0b0a0c; --shadow: rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--bg); color: var(--ink); transition: background .3s, color .3s;
  line-height: 1.65; overflow-x: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; position: relative; z-index: 2; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.script { font-family: "Dancing Script", cursive; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.sakura { width: 22px; height: 22px; }
.center { text-align: center; }
.muted { color: var(--grey); }

/* ---------- Pétales ---------- */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.petal {
  position: absolute; top: -40px; background: var(--red); opacity: .5;
  border-radius: 14px 0 14px 0; animation: fall linear infinite;
}
@keyframes fall {
  0%   { transform: translate(0, -40px) rotate(0deg); }
  100% { transform: translate(120px, 110vh) rotate(540deg); }
}
@media (prefers-reduced-motion: reduce) { .petals { display: none; } }

/* ---------- En-tête / navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 22px; height: 76px; }
.nav #menu { margin-left: auto; }
.brand img { height: 60px; width: auto; }
.nav #menu { display: flex; align-items: center; gap: 32px; list-style: none; font-weight: 500; font-size: .95rem; }
.nav #menu a { position: relative; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.nav #menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--red); transition: width .25s;
}
.nav #menu a:hover::after, .nav #menu a.active::after { width: 100%; }
.nav #menu a.active, .nav #menu a:hover { color: var(--red); }
.cart-link .icon { width: 20px; height: 20px; }
.cart-badge {
  background: var(--red); color: #fff; font-size: .7rem; font-weight: 600;
  min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px;
}
.nav > nav { display: contents; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--ink); }

/* ---------- Sélecteur d'apparence ---------- */
.theme-wrap { position: relative; }
.theme-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, color .2s;
}
.theme-btn:hover, .theme-btn[aria-expanded="true"] { border-color: var(--red); color: var(--red); }
.theme-btn .icon { width: 19px; height: 19px; }
.when-dark { display: none; }
:root[data-theme="dark"] .when-dark { display: grid; }
:root[data-theme="dark"] .when-light { display: none; }
.when-light, .when-dark { place-items: center; }
.when-light { display: grid; }
.theme-pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 270px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  box-shadow: 0 18px 40px var(--shadow);
}
.theme-pop[hidden] { display: none; }
.theme-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--grey); margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 10px; margin-bottom: 16px; }
.seg button {
  font: inherit; font-size: .8rem; border: 0; background: none; color: var(--ink); cursor: pointer;
  padding: 7px 4px; border-radius: 7px; display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.seg button .icon { width: 16px; height: 16px; }
.seg button.on { background: var(--surface); color: var(--red); box-shadow: 0 1px 4px var(--shadow); font-weight: 600; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.swatches button {
  width: 30px; height: 30px; border-radius: 50%; background: var(--sw); cursor: pointer;
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform .15s;
}
.swatches button:hover { transform: scale(1.12); }
.swatches button.on { box-shadow: 0 0 0 2px var(--sw); }
.theme-reset { font-size: .8rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap;
  padding: 12px 28px; border-radius: 999px; border: 2px solid var(--red);
  transition: all .25s;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 22px var(--red-glow); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }
.btn-outline { color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--red); color: var(--red); }
.btn-small { padding: 7px 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Alertes ---------- */
.flashes { padding-top: 20px; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 10px; font-weight: 500; }
.alert-success { background: color-mix(in srgb, #17a34a 12%, var(--surface)); color: color-mix(in srgb, #17a34a 70%, var(--ink)); border: 1px solid color-mix(in srgb, #17a34a 30%, var(--surface)); }
.alert-error   { background: var(--red-soft); color: var(--red-dark); border: 1px solid var(--red-line); }
.alert-info    { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }

/* ---------- Bannières ---------- */
.hero {
  text-align: center; padding: 40px 0 70px;
  background: radial-gradient(ellipse at center, var(--bg) 40%, var(--bg-2) 100%);
}
.hero .logo-big { width: min(620px, 92%); margin: 0 auto; }
.hero .tagline { color: var(--grey); font-size: 1.1rem; max-width: 560px; margin: 4px auto 30px; }
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.page-hero {
  text-align: center; padding: 60px 0 40px;
  background: radial-gradient(ellipse at top, var(--bg) 30%, var(--bg-2) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-family: "Dancing Script", cursive; font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 1.1; }
.page-hero h1 span { color: var(--red); }
.page-hero p { color: var(--grey); margin-top: 8px; }

.divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--red); margin: 0 auto 10px; }
.divider::before, .divider::after { content: ""; height: 2px; width: 90px; background: linear-gradient(90deg, transparent, var(--red)); }
.divider::after { transform: scaleX(-1); }

/* ---------- Sections ---------- */
section { padding: 80px 0; position: relative; }
.section-tight { padding: 50px 0; }
.title { text-align: center; margin-bottom: 44px; }
.title h2 { font-family: "Dancing Script", cursive; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.1; }
.title h2 span { color: var(--red); }
.title p { color: var(--grey); margin-top: 6px; }
.more { text-align: center; margin-top: 40px; }

/* ---------- Galerie ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filters button {
  font: inherit; font-size: .9rem; cursor: pointer; padding: 8px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: all .2s;
}
.filters button:hover { border-color: var(--red); color: var(--red); }
.filters button.active { background: var(--red); border-color: var(--red); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.item {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  background: var(--bg-2); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; outline: none;
}
.item:hover, .item:focus-visible { transform: translateY(-6px); box-shadow: 0 16px 34px var(--shadow); }
.item:focus-visible { box-shadow: 0 0 0 3px var(--red); }
.item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.item:hover img { transform: scale(1.05); }
.item .info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 16px 14px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transform: translateY(10px); transition: all .3s;
}
.item:hover .info, .item:focus-visible .info { opacity: 1; transform: none; }
.item .info h3 { font-family: "Dancing Script", cursive; font-size: 1.5rem; line-height: 1.2; }
.item .info span { font-size: .8rem; opacity: .85; }
.price-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--red); color: #fff;
  font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.empty {
  text-align: center; padding: 60px 20px; border: 2px dashed var(--red-line); border-radius: var(--radius);
  color: var(--grey); background: var(--red-soft);
}
.empty .sakura { width: 48px; height: 48px; color: var(--red); opacity: .45; margin: 0 auto 12px; }

/* ---------- Visionneuse ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(12,10,12,.93);
  display: flex; align-items: center; justify-content: center; padding: 30px 70px;
}
.lightbox[hidden] { display: none; }
.lb-inner { display: flex; gap: 0; max-width: 1200px; width: 100%; max-height: 90vh; background: var(--surface); border-radius: 14px; overflow: hidden; }
.lb-media { flex: 1; background: #0f0d10; display: grid; place-items: center; min-width: 0; }
.lb-media img { max-height: 90vh; width: auto; max-width: 100%; object-fit: contain; }
.lb-panel { width: 320px; flex-shrink: 0; padding: 30px 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.lb-cat { color: var(--red); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.lb-title { font-family: "Dancing Script", cursive; font-size: 2.2rem; line-height: 1.1; }
.lb-desc { color: var(--grey); font-size: .93rem; white-space: pre-line; }
.lb-buy { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.lb-buy label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 500; }
.lb-price { font-size: 1.6rem; font-weight: 600; color: var(--red); }
.lb-soon { color: var(--grey); font-size: .88rem; margin-top: auto; }
.lb-soon a { color: var(--red); font-weight: 500; }
.lb-btn { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; line-height: 1; opacity: .8; }
.lb-btn:hover { opacity: 1; }
.lb-close { top: 14px; right: 22px; font-size: 2.6rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 3.5rem; padding: 10px; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }

/* ---------- Formulaires ---------- */
input[type=text], input[type=email], input[type=number], input[type=url], input[type=password], select, textarea {
  font: inherit; font-size: .95rem; width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--input-border); background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
textarea { resize: vertical; min-height: 90px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Boutique ---------- */
.shop-soon { background: var(--red-soft); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.shop-card { background: var(--surface); border-radius: var(--radius); padding: 34px 26px; text-align: center; border: 1px solid var(--red-line); position: relative; }
.shop-card .ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.shop-card .ico .icon { width: 30px; height: 30px; }
.shop-card h3 { font-weight: 600; margin-bottom: 6px; }
.shop-card p { color: var(--grey); font-size: .92rem; }
.badge { position: absolute; top: 14px; right: 14px; font-size: .7rem; font-weight: 600; background: var(--red); color: #fff; padding: 3px 10px; border-radius: 999px; letter-spacing: .5px; }

.notify { text-align: center; margin-top: 44px; }
.notify form { display: flex; max-width: 480px; margin: 16px auto 0; gap: 8px; background: var(--surface); padding: 6px; border-radius: 999px; border: 1px solid var(--red-line); }
.notify input[type=email] { border: 0; box-shadow: none; background: none; border-radius: 999px; }
.notify .btn { padding: 10px 22px; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s; }
.product:hover { box-shadow: 0 14px 32px var(--shadow); }
.product .item { border: 0; border-radius: 0; }
.product .item:hover { transform: none; box-shadow: none; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { font-family: "Dancing Script", cursive; font-size: 1.7rem; line-height: 1.1; }
.product-body .from { color: var(--red); font-weight: 600; }
.buy-form { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.buy-row { display: flex; gap: 8px; }
.buy-row input { width: 76px; }
.buy-row .btn { flex: 1; padding: 10px 14px; }
.shop-info { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; color: var(--grey); font-size: .92rem; }
.shop-info span { display: inline-flex; align-items: center; gap: 8px; }
.shop-info .icon { color: var(--red); }

/* ---------- Panier ---------- */
.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--grey); padding: 10px 8px; border-bottom: 2px solid var(--line); }
.cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-prod { display: flex; align-items: center; gap: 14px; }
.cart-prod img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; }
.cart-prod strong { display: block; }
.cart-prod small { color: var(--grey); }
.cart-table input[type=number] { width: 70px; padding: 7px 10px; }
.link-btn { background: none; border: 0; color: var(--grey); cursor: pointer; font: inherit; font-size: .85rem; text-decoration: underline; }
.link-btn:hover { color: var(--red); }
.cart-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.box h3 { margin-bottom: 14px; }
.totals { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 1.25rem; font-weight: 600; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.totals .grand span:last-child { color: var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { font-size: .85rem; font-weight: 500; display: flex; flex-direction: column; gap: 4px; }
.pay-note { font-size: .85rem; color: var(--grey); margin: 14px 0; }

/* ---------- Page liens ---------- */
.links-page { background: radial-gradient(ellipse at top, var(--bg) 30%, var(--bg-2) 100%); }
.links-wrap { max-width: 520px; margin: 0 auto; padding: 40px 0 70px; text-align: center; }
.links-wrap .logo-mid { width: 340px; max-width: 90%; margin: 0 auto; }
.links-wrap p.lead { color: var(--grey); margin: 0 0 30px; }
.links { display: flex; flex-direction: column; gap: 14px; }
.link-card {
  display: flex; align-items: center; gap: 16px; padding: 16px 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; font-weight: 500; text-align: left;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.link-card:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 10px 24px var(--red-glow); }
.link-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); flex-shrink: 0; }
.link-card .ic .icon { width: 22px; height: 22px; }
.link-card .txt { flex: 1; }
.link-card small { display: block; color: var(--grey); font-weight: 400; font-size: .82rem; }
.link-card .arrow { color: var(--red); font-size: 1.3rem; }
.link-card.off { opacity: .55; pointer-events: none; }
.links-sep { margin: 24px 0 6px; color: var(--grey); font-size: .85rem; display: flex; align-items: center; gap: 12px; }
.links-sep::before, .links-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- À propos / texte ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about img { width: 100%; max-width: 480px; margin: 0 auto; }
.about h2 { font-family: "Dancing Script", cursive; font-size: 3rem; line-height: 1.1; margin-bottom: 16px; }
.about h2 span { color: var(--red); }
.about p { color: var(--grey); margin-bottom: 16px; white-space: pre-line; }
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.25rem; margin: 30px 0 8px; color: var(--red); }
.prose p { color: var(--ink); opacity: .85; margin-bottom: 10px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--footer-bg); color: #cfcfd4; padding: 50px 0 26px; position: relative; z-index: 2; margin-top: 40px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; align-items: center; }
.foot-brand { font-size: 2.2rem; color: #fff; line-height: 1.2; }
.foot-brand span { color: var(--red); }
.foot-socials { display: flex; gap: 14px; margin-top: 8px; }
.foot-socials a { color: #cfcfd4; transition: color .2s; }
.foot-socials a:hover { color: var(--red); }
.foot-socials .icon { width: 20px; height: 20px; }
.foot-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: .92rem; }
.foot-nav a:hover { color: var(--red); }
.copy { border-top: 1px solid #333; margin-top: 30px; padding-top: 20px; font-size: .82rem; color: #8a8a90; text-align: center; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .lightbox { padding: 50px 10px 10px; }
  .lb-inner { flex-direction: column; max-height: none; height: 100%; overflow-y: auto; }
  .lb-media img { max-height: 60vh; }
  .lb-panel { width: 100%; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; font-size: 2.6rem; z-index: 2; }
}
@media (max-width: 800px) {
  .menu-btn { display: block; }
  .theme-wrap { margin-left: auto; }
  .nav #menu {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px var(--shadow);
  }
  .nav #menu.open { display: flex; }
  .nav #menu li a { display: flex; padding: 14px 6%; }
  .nav #menu a::after { display: none; }
  .about { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  section { padding: 60px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 4px 0; }
  .cart-table td:first-child { grid-column: 1 / -1; }
}

/* =========================================================
   Lot 1 : comptes, VIP, articles, stock
   ========================================================= */
.account-link .icon { width: 19px; height: 19px; }
.vip-pill {
  display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; font-weight: 700;
  background: linear-gradient(135deg, #f6c453, #d89b1d); color: #3a2600; padding: 2px 8px; border-radius: 999px;
}
.vip-pill .icon { width: 12px; height: 12px; }

/* Badges sur les images */
.vip-tag {
  position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(20,16,10,.72); color: #f6c453; backdrop-filter: blur(4px);
}
.vip-tag.on { background: linear-gradient(135deg, #f6c453, #d89b1d); color: #3a2600; }
.vip-tag .icon { width: 13px; height: 13px; }

/* Visionneuse : VIP + offres */
.lb-vip {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  background: color-mix(in srgb, #f6c453 14%, var(--surface)); border: 1px solid color-mix(in srgb, #f6c453 45%, var(--surface));
  font-size: .88rem;
}
.lb-vip[hidden] { display: none; }
.lb-vip .icon { width: 22px; height: 22px; color: #d89b1d; flex-shrink: 0; margin-top: 2px; }
.lb-vip a { color: var(--red); font-weight: 600; }
.lb-offers { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.lb-offers[hidden] { display: none; }
.lb-offers-title { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--grey); }
.lb-offer { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.lb-offer strong { display: block; font-size: .92rem; }
.lb-offer small { color: var(--grey); font-size: .78rem; }
.lb-offer-price { font-weight: 700; color: var(--red); }
.lb-offer .btn, .lb-offer .lb-out { grid-column: 1 / -1; }
.lb-offer.out { opacity: .6; }
.lb-out { text-align: center; font-size: .82rem; font-weight: 600; color: var(--grey); padding: 6px; border: 1px dashed var(--line); border-radius: 8px; }

/* Articles */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.product-media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.product .product-media.item { border: 0; border-radius: 0; }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product:hover .product-media img { transform: scale(1.04); }
.type-tag {
  position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--ink);
  box-shadow: 0 2px 8px var(--shadow);
}
.type-tag .icon { width: 13px; height: 13px; color: var(--red); }
.product .desc { color: var(--grey); font-size: .88rem; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price-row .price { font-size: 1.3rem; font-weight: 700; color: var(--red); }
.stock { font-size: .78rem; font-weight: 600; color: #17a34a; }
.stock.low { color: #d97706; }
.stock.out { color: var(--grey); }

/* Tampon "Rupture de stock" en filigrane sur la photo */
.stamp {
  position: absolute; top: 50%; left: 50%; z-index: 3; transform: translate(-50%, -50%) rotate(-24deg);
  padding: 10px 26px; white-space: nowrap; font-weight: 800; font-size: 1.15rem; letter-spacing: 2px; text-transform: uppercase;
  color: #fff; background: color-mix(in srgb, var(--red) 82%, transparent); border: 3px solid rgba(255,255,255,.85);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.35); pointer-events: none;
}
.product.is-out .product-media img { filter: grayscale(.85) brightness(.85); }

/* Compte client */
.auth-card { max-width: 480px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px 30px; box-shadow: 0 18px 40px var(--shadow); }
.auth-card h1 { text-align: center; font-size: 2.8rem; line-height: 1.1; margin-bottom: 16px; }
.auth-card .form-grid { margin-top: 10px; }
.auth-links { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 18px; font-size: .9rem; color: var(--grey); }
.auth-links a { color: var(--red); font-weight: 500; }
.check-line { flex-direction: row !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.check-line a { color: var(--red); }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.vip-box.is-vip { background: color-mix(in srgb, #f6c453 12%, var(--surface)); border-color: color-mix(in srgb, #f6c453 50%, var(--surface)); }
.vip-box h3 { display: flex; align-items: center; gap: 8px; }
.vip-box h3 .icon { color: #d89b1d; }
.vip-box p { margin-bottom: 10px; }
.vip-box a:not(.btn) { color: var(--red); }
.order-list { display: flex; flex-direction: column; gap: 8px; }
.order-line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.order-line small { display: block; color: var(--grey); font-size: .78rem; }
.order-status { font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); }
.order-status.s-nouvelle { background: var(--red); color: #fff; }
.order-status.s-payee, .order-status.s-terminee, .order-status.s-expediee { background: color-mix(in srgb, #17a34a 15%, var(--surface)); color: #17a34a; }
.account-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.danger-zone summary { cursor: pointer; color: var(--grey); font-size: .88rem; }
.danger-zone form { margin-top: 10px; max-width: 360px; }
@media (max-width: 800px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-link span:not(.vip-pill) { display: inline; }
}

.legal-id { font-size: .78rem; color: var(--grey) !important; }

/* =========================================================
   Multilingue
   ========================================================= */
#langBtn { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; border-radius: 999px; }
.lang-code { font-size: .75rem; font-weight: 700; letter-spacing: .5px; }
.lang-pop { width: 300px; }
.lang-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; max-height: 60vh; overflow-y: auto; }
.lang-list a { display: block; padding: 7px 10px; border-radius: 8px; font-size: .9rem; color: var(--ink); }
.lang-list a:hover { background: var(--bg-2); }
.lang-list a.on { background: var(--red-soft); color: var(--red); font-weight: 600; }
.nav { gap: 14px; }

/* Langues écrites de droite à gauche (arabe) */
[dir="rtl"] .nav #menu { margin-left: 0; margin-right: auto; }
[dir="rtl"] .theme-pop { right: auto; left: 0; }
[dir="rtl"] .price-tag, [dir="rtl"] .type-tag { left: auto; right: 12px; }
[dir="rtl"] .vip-tag { right: auto; left: 12px; }
[dir="rtl"] .divider::after { transform: none; }
[dir="rtl"] .divider::before { transform: scaleX(-1); }
[dir="rtl"] .lb-prev { left: auto; right: 10px; }
[dir="rtl"] .lb-next { right: auto; left: 10px; }
[dir="rtl"] .cart-table th { text-align: right; }
@media (max-width: 800px) {
  [dir="rtl"] .theme-wrap.lang-wrap { margin-left: 0; margin-right: auto; }
  .theme-wrap.lang-wrap { margin-left: auto; }
  .theme-wrap.lang-wrap + .theme-wrap { margin-left: 0; }
  .lang-pop { width: 260px; }
}

/* =========================================================
   Contact, CGV, confidentialité
   ========================================================= */
.contact-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-card, .contact-form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow-sm, 0 4px 18px rgba(0,0,0,.04)); }
.contact-form-card { padding: 28px; }
.contact-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; margin: 0 0 10px; }
.contact-card h3 .icon { width: 20px; height: 20px; color: var(--red); }
.contact-card p { margin: 0 0 6px; }
.contact-card a { color: var(--red); word-break: break-all; }
.contact-socials { margin-top: 4px; }
.contact-socials a { color: var(--ink) !important; background: var(--surface-2); }
.contact-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.contact-links a::before { content: "›  "; }
.contact-form-card select { width: 100%; }
.contact-form-card .btn .icon { width: 18px; height: 18px; }
.contact-thanks { text-align: center; padding: 30px 10px; }
.contact-thanks h2 { font-size: 2.4rem; color: var(--red); margin: 6px 0 10px; }
.small { font-size: .86rem; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } .contact-info { order: 2; } }

.consents { display: grid; gap: 10px; padding: 14px 16px; background: var(--surface-2); border-radius: 14px; }
.consents .check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .92rem; line-height: 1.5; }
.consents .check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--red); }
.consents a { color: var(--red); text-decoration: underline; }

.essentials-title { text-align: center; font-size: 1.5rem; margin: 0 0 22px; }
.essentials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.essential { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.essential-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--red-soft); color: var(--red); margin-bottom: 10px; }
.essential-ic .icon { width: 22px; height: 22px; }
.essential h3 { margin: 0 0 6px; font-size: 1.05rem; }
.essential p { margin: 0; color: var(--grey); font-size: .93rem; line-height: 1.55; }
.essentials-more { text-align: center; margin-top: 22px; color: var(--grey); }
.essentials-more .btn { margin-left: 8px; }
.essentials-more .icon { width: 16px; height: 16px; }
@media (max-width: 860px) { .essentials { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .essentials { grid-template-columns: 1fr; } }

.legal-section { padding-top: 0; }
.legal { max-width: 860px; }
.legal h2 { margin-top: 2em; scroll-margin-top: 90px; }
.legal h3 { margin: 1.3em 0 .4em; font-size: 1.05rem; }
.legal ul { padding-left: 1.3em; }
.legal li { margin: .3em 0; }
.legal a { color: var(--red); }
.legal-date { color: var(--grey); font-size: .9rem; }
.legal-notice { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: .9rem; }
.legal-box { background: var(--red-soft); border-left: 4px solid var(--red); border-radius: 12px; padding: 14px 18px; margin: 14px 0; }
.legal-box p:last-child { margin-bottom: 0; }
.legal-form { background: var(--surface-2); border-left-color: var(--grey); font-family: Georgia, serif; }
.table-scroll { overflow-x: auto; margin: 12px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 9px 11px; text-align: start; vertical-align: top; }
.legal-table th { background: var(--surface-2); }
.foot-legal { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.foot-legal a { opacity: .8; }
.foot-legal a:hover { opacity: 1; color: var(--red); }
.contact-form-card a { color: var(--red); }
.secure-note { display: flex; gap: 8px; align-items: flex-start; }
.secure-note .icon, .btn .icon { width: 17px; height: 17px; flex: none; }

/* =========================================================
   VIP, paiement, téléchargements
   ========================================================= */
.nav-vip { color: #b8860b !important; font-weight: 700 !important; }
.nav-vip .icon { width: 17px; height: 17px; }
.vip-hero .divider .icon { width: 30px; height: 30px; color: #c99a1d; }
.vip-hero h1 em, .vip-hero h1 .accent { color: #c99a1d; }
.vip-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: start; }
.vip-benefits, .vip-plans, .vip-status, .vip-welcome { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; }
.vip-plans { border-color: color-mix(in srgb, #c99a1d 45%, var(--line)); box-shadow: 0 10px 34px color-mix(in srgb, #c99a1d 14%, transparent); }
.vip-status { border: 0; padding: 0; background: none; text-align: center; }
.vip-status h2 { display: flex; justify-content: center; gap: 8px; align-items: center; }
.vip-status .icon { width: 24px; height: 24px; color: #c99a1d; }
.vip-welcome { text-align: center; margin-bottom: 26px; background: linear-gradient(135deg, color-mix(in srgb, #c99a1d 14%, var(--surface)), var(--surface)); }
.vip-welcome h2 { font-size: 2.4rem; color: #b8860b; margin: 0 0 6px; }
.vip-benefits h2, .vip-faq h2 { margin: 0 0 16px; font-size: 1.35rem; }
.vip-benefits ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.vip-benefits li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.vip-benefits li .icon { width: 18px; height: 18px; color: #c99a1d; flex: none; margin-top: 3px; }
.vip-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vip-thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; display: block; }
.vip-thumb img { width: 100%; height: 100%; object-fit: cover; filter: blur(3px) brightness(.85); transform: scale(1.06); transition: filter .3s; }
.vip-thumb:hover img { filter: blur(1px); }
.vip-thumb .tag-vip { position: absolute; left: 8px; top: 8px; background: rgba(20,16,10,.75); color: #f3cf62; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; }
.vip-thumb .tag-vip .icon { width: 12px; height: 12px; }
.plan-cards { display: grid; gap: 12px; margin-bottom: 16px; }
.plan-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; border: 2px solid var(--line); border-radius: 16px; padding: 16px 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.plan-card input { grid-row: span 2; width: 20px; height: 20px; accent-color: #c99a1d; }
.plan-card:has(input:checked) { border-color: #c99a1d; background: color-mix(in srgb, #c99a1d 8%, var(--surface)); }
.plan-name { font-weight: 700; font-size: 1.05rem; }
.plan-price { grid-row: span 2; font-weight: 800; font-size: 1.35rem; text-align: end; }
.plan-price small { display: block; font-size: .78rem; font-weight: 500; color: var(--grey); }
.plan-sub { font-size: .85rem; color: var(--grey); }
.plan-badge { position: absolute; top: -11px; right: 16px; background: #c99a1d; color: #fff; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.vip-plans .consents { margin-bottom: 16px; }
.vip-plans .btn-red .icon { width: 17px; height: 17px; }
.vip-secure { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .82rem; color: var(--grey); margin: 14px 0 0; }
.vip-secure .icon { width: 15px; height: 15px; }
.center { text-align: center; }
.vip-faq { max-width: 760px; margin: 40px auto 0; }
.vip-faq details { border-bottom: 1px solid var(--line); padding: 14px 4px; }
.vip-faq summary { cursor: pointer; font-weight: 600; }
.vip-faq p { margin: 10px 0 0; color: var(--grey); }
@media (max-width: 900px) { .vip-grid { grid-template-columns: 1fr; } .vip-plans { order: -1; } }

.thanks-card { max-width: 640px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 36px 30px; }
.thanks-card h1 { font-size: 3rem; color: var(--red); margin: 6px 0 10px; }
.thanks-card .lead { font-size: 1.12rem; }
.dl-list { margin: 24px 0 8px; padding: 20px; background: var(--surface-2); border-radius: 16px; display: grid; gap: 10px; }
.dl-list h2 { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 1.2rem; margin: 0 0 6px; }
.dl-list h2 .icon, .dl-list .btn .icon, .order-dl .icon { width: 17px; height: 17px; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.order-dl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.order-wait { grid-column: 1 / -1; }
.vip-actions form { display: flex; flex-wrap: wrap; gap: 8px; }
.discord-box h3 .icon { width: 20px; height: 20px; color: #5865f2; vertical-align: -3px; }
.discord-code { display: flex; align-items: center; gap: 8px; }
.discord-code code { font-size: 1.15rem; font-weight: 700; letter-spacing: .06em; background: var(--surface-2); border: 1px dashed var(--line); padding: 8px 14px; border-radius: 10px; }

/* ===== Fenêtre « réservé aux adultes » à l'entrée du site ===== */
html.age-lock, html.age-lock body { overflow: hidden; }
.age-gate { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px;
  background: rgba(10, 6, 8, .72); backdrop-filter: blur(22px) saturate(.6); -webkit-backdrop-filter: blur(22px) saturate(.6);
  animation: ageIn .35s ease; transition: opacity .3s; }
.age-gate.age-out { opacity: 0; }
@keyframes ageIn { from { opacity: 0; } to { opacity: 1; } }
.age-box { position: relative; width: min(460px, 100%); background: #fff; color: #1c1c1e; border-radius: 22px; padding: 34px 30px 24px; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: ageUp .45s cubic-bezier(.2,.9,.3,1.2); }
@keyframes ageUp { from { transform: translateY(24px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.age-logo { height: 70px; width: auto; margin: 0 auto 12px; }
.age-badge { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 4px solid #d8111f; color: #d8111f;
  font-weight: 800; font-size: 1.35rem; margin-bottom: 10px; letter-spacing: -.5px; }
.age-box h2 { font-size: 1.45rem; margin: 0 0 10px; }
.age-box > p { color: #555; line-height: 1.55; margin: 0 0 20px; }
.age-actions { display: grid; gap: 10px; }
.age-actions .btn { width: 100%; justify-content: center; padding: 13px 16px; font-size: 1rem; }
.age-small { margin: 16px 0 0 !important; font-size: .78rem; color: #888 !important; }
.age-small a { color: #d8111f; text-decoration: underline; }
@media (prefers-color-scheme: dark) { html[data-theme=auto] .age-box { background: #1d1a1c; color: #f2f2f2; } }
html[data-theme=dark] .age-box { background: #1d1a1c; color: #f2f2f2; }
html[data-theme=dark] .age-box > p { color: #bbb; }

/* Mention 18+ dans le pied de page */
.foot-18 { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0; font-size: .82rem; opacity: .85; }
.foot-18 span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; font-weight: 800; font-size: .66rem; }
