/*
 * PokeChunk : îles flottantes, cristaux violets et cascades cyan.
 * Papier lavande, texte prune, boutons en relief (bord inférieur foncé),
 * Lilita One pour les titres, Nunito pour le reste. Polices servies par le
 * site : aucune requête vers Google Fonts.
 */

@font-face {
  font-family: "Lilita One";
  src: url("/assets/fonts/lilita-one.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --papier: #f0ebfa;
  --lavande: #ded3f2;
  --lavande-claire: #f7f3fd;
  --prune: #35204d;
  --prune-douce: #5d4a78;
  --violet: #8c44d5;
  --violet-clair: #a46cf0;
  --violet-profond: #59239b;
  --nuit: #241338;
  --cyan: #72e1ed;
  --rose: #ff8fc8;
  --blanc: #ffffff;
  --ombre: 0 18px 40px -18px rgba(53, 32, 77, 0.45);
  --relief: 0 5px 0 0;
  --rayon: 9px;
  --titres: "Lilita One", "Nunito", system-ui, sans-serif;
  --texte: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --largeur: 1230px;
  --marge: 35px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--prune);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--titres); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: 0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 em, h1 em { font-style: normal; color: var(--violet); }
p { margin: 0 0 0.9em; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blanc); color: var(--prune); padding: 10px 16px; border-radius: var(--rayon);
  font-weight: 800; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.section { width: min(var(--largeur), 100% - 2 * var(--marge)); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-weight: 900; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 12px;
}

/* ------------------------------------------------------------------ */
/* Boutons en relief                                                   */
/* ------------------------------------------------------------------ */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border: 0; border-radius: var(--rayon);
  font-family: var(--titres); font-size: 1.15rem; letter-spacing: 0.03em; text-decoration: none; text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button:active { transform: translateY(4px); }
.button.primary { background: var(--violet); color: var(--blanc); box-shadow: var(--relief) var(--violet-profond), 0 12px 24px -10px rgba(89, 35, 155, 0.6); }
.button.primary:active { box-shadow: 0 1px 0 0 var(--violet-profond); }
.button.white { background: var(--blanc); color: var(--violet-profond); box-shadow: var(--relief) #c7b4ea; }
.button.white:active { box-shadow: 0 1px 0 0 #c7b4ea; }
.button.outline { background: transparent; color: var(--violet-profond); box-shadow: inset 0 0 0 2px var(--violet); }
.button span { font-size: 1.1em; }

.text-link {
  background: none; border: 0; padding: 0; color: var(--violet); font-weight: 800; text-decoration: underline; text-underline-offset: 3px;
}

/* ------------------------------------------------------------------ */
/* En-tête flottant                                                    */
/* ------------------------------------------------------------------ */

.header { position: fixed; inset: 18px 3% auto; z-index: 50; }
.header-bar {
  display: flex; align-items: center; gap: 18px;
  min-height: 76px; padding: 8px 14px 8px 16px;
  background: rgba(78, 37, 128, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 5px 0 0 rgba(40, 16, 72, 0.75), 0 22px 40px -20px rgba(20, 8, 40, 0.8);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
.brand { flex: 0 0 auto; display: block; border-radius: 10px; }
.brand img { width: 206px; height: 74px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); }

.nav { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; }
.nav a,
.nav button {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: none;
  color: var(--blanc); font-family: var(--texte); font-size: 0.8rem; font-weight: 900; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none; transition: color 0.15s, background-color 0.15s;
}
.nav a:hover,
.nav button:hover { background: rgba(255, 255, 255, 0.08); }
.nav a.active { color: #d2b3ff; }
.nav .nav-shop {
  margin-left: 10px; padding: 10px 20px;
  background: var(--violet-clair); color: var(--blanc);
  box-shadow: 0 4px 0 0 #6930b7;
}
.nav .nav-shop:hover { background: #b17ff5; }
.nav .nav-shop.active { color: var(--blanc); }
.nav .nav-shop span { font-size: 0.7rem; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 8px 10px 8px 14px; border: 0; border-radius: 10px;
  background: #2b1349; color: var(--blanc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.cart-button svg { width: 20px; height: 20px; }
#cart-count {
  min-width: 26px; padding: 2px 7px; border-radius: 6px;
  background: var(--violet-clair); color: var(--blanc); font-weight: 900; font-size: 0.85rem; text-align: center;
}
.menu-toggle { display: none; }

/* ------------------------------------------------------------------ */
/* Le grand décor                                                      */
/* ------------------------------------------------------------------ */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 790px);
  display: grid; place-items: center;
  padding: 120px 20px 110px;
  color: var(--blanc); text-align: center;
}
.hero-image {
  position: absolute; inset: 0; z-index: -3;
  background: #7d64c9 url("/assets/iles-2170.webp") center 40% / cover no-repeat;
  transform: scale(1.04);
  animation: derive 30s ease-in-out infinite alternate;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 55% 45% at 50% 52%, rgba(35, 14, 66, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(36, 14, 70, 0.45) 0%, transparent 22%, transparent 70%, rgba(36, 14, 70, 0.35) 100%);
}
.hero-clouds {
  position: absolute; inset: auto 0 -1px; height: 90px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--papier) 92%);
}
.hero-content { display: flex; flex-direction: column; align-items: center; max-width: 760px; }
.hero-kicker {
  font-family: var(--texte); font-size: clamp(0.78rem, 1.3vw, 0.95rem); font-weight: 900; letter-spacing: 0.3em;
  text-shadow: 0 2px 8px rgba(30, 10, 60, 0.7);
}
.hero-kicker span { color: var(--cyan); }
.hero-logo {
  width: clamp(250px, 36vw, 470px); margin: 14px 0 22px;
  filter: drop-shadow(0 18px 30px rgba(40, 12, 80, 0.55));
  animation: flotte 6s ease-in-out infinite;
}
.hero-buttons { display: flex; gap: 14px; align-items: stretch; }
.server-ip {
  min-height: 74px; padding: 10px 26px; gap: 22px;
  background: #5a2a9b; color: var(--blanc);
  border-radius: 10px; box-shadow: 0 7px 0 0 #36146b, 0 20px 40px -14px rgba(30, 10, 60, 0.8);
  text-transform: none;
}
.server-ip:active { box-shadow: 0 2px 0 0 #36146b; transform: translateY(5px); }
.server-ip > span:nth-child(2) { display: flex; flex-direction: column; align-items: flex-start; font-size: 1.65rem; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.server-ip small { margin-top: 8px; font-family: var(--texte); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.18em; color: #c9b3f1; }
.server-ip .ip-icon { font-size: 1.6rem; color: #c9a8ff; }
.server-ip > span:last-child { font-size: 1.5rem; color: #b897ee; }
.discord-square {
  width: 74px; min-height: 74px; padding: 0; border: 0; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--violet-clair); color: var(--blanc);
  box-shadow: 0 7px 0 0 #6930b7, 0 20px 40px -14px rgba(30, 10, 60, 0.8);
  transition: transform 0.15s, filter 0.15s;
}
.discord-square:hover { filter: brightness(1.08); transform: translateY(-1px); }
.discord-square:active { transform: translateY(5px); box-shadow: 0 2px 0 0 #6930b7; }
.discord-square svg { width: 36px; height: 28px; }
.hero-guide {
  margin-top: 22px; color: var(--blanc); font-weight: 800; font-size: 0.9rem; text-decoration: none;
  text-shadow: 0 2px 6px rgba(30, 10, 60, 0.8);
}
.hero-guide:hover { text-decoration: underline; }
.hero-guide span { margin-left: 8px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--blanc); text-decoration: none; font-size: 1.1rem; line-height: 1;
}
.scroll-cue span {
  width: 22px; height: 34px; border: 2px solid rgba(255, 255, 255, 0.9); border-radius: 12px; position: relative;
}
.scroll-cue span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--blanc); animation: molette 1.8s ease-in-out infinite;
}

@keyframes flotte { 50% { transform: translateY(-10px); } }
@keyframes derive { to { transform: scale(1.09) translateX(-1.5%); } }
@keyframes molette { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------------------------ */
/* Bienvenue et panneau « Comment nous rejoindre ? »                    */
/* ------------------------------------------------------------------ */

.welcome-section { position: relative; padding: 70px 0 90px; }
.welcome-deco { position: absolute; right: 6%; top: 30px; font-size: 3rem; color: var(--lavande); }
.welcome { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; align-items: center; }
.welcome-copy h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 22px; }
.welcome-copy p { max-width: 520px; color: var(--prune-douce); font-size: 1.12rem; }
.welcome-copy .button { margin-top: 12px; }

.join-board {
  position: relative; padding: 34px 32px 30px;
  background: var(--blanc); border-radius: 16px;
  box-shadow: 0 8px 0 0 var(--lavande), var(--ombre);
  transform: rotate(1.2deg);
}
.board-pin { position: absolute; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--violet); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.18); }
.board-pin.left { left: 16px; }
.board-pin.right { right: 16px; }
.board-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.board-heading h3 { font-size: 1.6rem; }
.mini-ball {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: linear-gradient(180deg, var(--violet) 0 46%, var(--prune) 46% 54%, var(--blanc) 54%);
  box-shadow: inset 0 0 0 2px var(--prune);
  position: relative;
}
.mini-ball::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--blanc); box-shadow: 0 0 0 2px var(--prune); }
.board-step { display: flex; gap: 14px; padding: 12px 0; border-top: 2px dashed var(--lavande); }
.board-step b {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 9px; background: var(--lavande); color: var(--violet-profond); font-family: var(--titres); font-weight: 400; font-size: 1.15rem;
}
.board-step strong { display: block; font-size: 1.05rem; }
.board-step p { margin: 2px 0 0; color: var(--prune-douce); font-size: 0.95rem; }
.board-address {
  text-decoration: none;
  margin-top: 6px; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; min-height: 44px; border: 0; border-radius: 8px;
  background: var(--prune); color: var(--blanc); font-family: ui-monospace, "Cascadia Code", Menlo, monospace; font-weight: 700;
  box-shadow: 0 4px 0 0 var(--nuit);
}
.board-address:active { transform: translateY(3px); box-shadow: 0 1px 0 0 var(--nuit); }
.board-link { display: inline-block; margin-top: 10px; font-weight: 900; text-decoration: none; }
.board-link:hover { text-decoration: underline; }
.board-sticker {
  position: absolute; right: -18px; bottom: -22px;
  padding: 14px 16px; border-radius: 50%;
  background: var(--cyan); color: var(--nuit);
  font-family: var(--titres); font-size: 1.05rem; line-height: 1; text-align: center;
  transform: rotate(-12deg); box-shadow: 0 5px 0 0 #3fb6c4;
}

/* ------------------------------------------------------------------ */
/* Carrousel « Et si on partait à l'aventure ? »                       */
/* ------------------------------------------------------------------ */

.discovery-section { padding: 30px 0 90px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.slider-controls { display: flex; gap: 10px; }
.slider-controls button {
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: var(--blanc); color: var(--violet-profond); font-size: 1.3rem; font-weight: 900;
  box-shadow: 0 4px 0 0 var(--lavande);
}
.slider-controls button:active { transform: translateY(3px); box-shadow: 0 1px 0 0 var(--lavande); }
.discovery-window { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--ombre); }
.discovery-slide { position: relative; min-height: 470px; display: flex; align-items: flex-end; animation: apparait 0.5s ease; }
.discovery-slide[hidden] { display: none; }
.discovery-landscape {
  position: absolute; inset: 0;
  background: url("/assets/iles-2170.webp") 30% 60% / cover no-repeat;
}
.discovery-landscape.encounter { background-position: 85% 30%; filter: hue-rotate(-12deg) saturate(1.1); }
.discovery-landscape.together { background-position: 55% 100%; filter: hue-rotate(14deg); }
.discovery-landscape::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36, 14, 70, 0.82) 0%, rgba(36, 14, 70, 0.4) 45%, transparent 75%); }
.discovery-caption { position: relative; padding: 48px 52px 64px; max-width: 560px; color: var(--blanc); }
.discovery-caption h3 { font-size: clamp(2rem, 4vw, 3rem); margin: 6px 0 12px; }
.discovery-caption p { color: rgba(255, 255, 255, 0.86); margin-bottom: 22px; }
.chapter { font-weight: 900; font-size: 0.78rem; letter-spacing: 0.22em; color: var(--cyan); }
.slide-dots { position: absolute; left: 52px; bottom: 26px; display: flex; gap: 4px; }
.slide-dots button { width: 34px; height: 24px; border: 0; padding: 0; background: none; position: relative; }
.slide-dots button::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 3px; background: rgba(255, 255, 255, 0.4); transition: background 0.2s; }
.slide-dots button[aria-pressed="true"]::before { background: var(--cyan); }

@keyframes apparait { from { opacity: 0.4; } }

/* ------------------------------------------------------------------ */
/* Gems : aperçu, boutique, grades                                     */
/* ------------------------------------------------------------------ */

.gems-section { padding: 80px 0 90px; background: linear-gradient(180deg, var(--papier), var(--lavande-claire) 30%, var(--papier)); }
.demo-note {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 24px; padding: 12px 18px; border-radius: 10px;
  background: var(--blanc); color: var(--violet-profond); font-weight: 800; font-size: 0.95rem;
  box-shadow: inset 0 0 0 2px var(--lavande);
}
.demo-note span { color: var(--violet); }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.shop-page .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--blanc); border-radius: 16px; box-shadow: 0 6px 0 0 var(--lavande), var(--ombre);
  transition: transform 0.2s ease;
}
.product:hover { transform: translateY(-4px); }
.product-visual {
  position: relative; height: 246px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 75%, #fbf6ff 0%, #e9dcff 60%, #d6c0f3 100%);
}
.product.cyan .product-visual { background: radial-gradient(ellipse at 50% 75%, #fbf9ff 0%, #e9e3ff 70%, #d4ccf3 100%); }
.product.pink .product-visual { background: radial-gradient(ellipse at 50% 75%, #fff8ed 0%, #f6e4ff 60%, #e3c6f8 100%); }
.product-visual::after { content: ''; position: absolute; bottom: 30px; width: 150px; height: 16px; border-radius: 50%; background: #6d379a1a; filter: blur(8px); }
.product-type {
  position: absolute; left: 14px; top: 14px; padding: 3px 10px; border-radius: 6px;
  z-index: 2; background: rgba(255, 255, 255, 0.94); color: var(--violet-profond); font-weight: 900; font-size: 0.67rem; letter-spacing: 0.06em;
}
.item-art { position: relative; z-index: 1; display: block; width: 218px; filter: drop-shadow(0 10px 8px rgba(65, 23, 94, 0.16)); animation: flotte 5s ease-in-out infinite; }
.item-art img { width: 100%; height: auto; display: block; }
.gem-spark { position: absolute; color: #ac78dc; font-size: 1.4rem; }
.gem-spark.one { left: 15%; top: 37%; transform: rotate(-12deg); }
.gem-spark.two { right: 13%; bottom: 20%; font-size: 1.8rem; }
.grand-bonus { outline: 2px solid #b991df; outline-offset: 2px; }
.grand-bonus .product-type { color: #614080; background: #fff1c6; }
.orbit { position: absolute; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 50%; }
.orbit.one { width: 170px; height: 170px; }
.orbit.two { width: 250px; height: 250px; border-style: dashed; border-color: rgba(255, 255, 255, 0.2); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 18px; }
.product-tag { font-weight: 900; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); }
.gem-quantity { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 5px; }
.product-body h3 { font-size: 1.9rem; margin: 0; line-height: 1.2; white-space: nowrap; }
.product-body h3 span { font: 800 0.83rem var(--texte); color: var(--prune-douce); }
.base-gems { color: #81738b; font-size: 0.94rem; font-weight: 800; }
.gem-bonus { display: inline-flex; align-items: center; border-radius: 6px; padding: 3px 6px; background: #f0e5ff; color: #6629a1; font-size: 0.73rem; font-weight: 900; white-space: nowrap; }
.product-body .details-button { font-size: 0.8rem; }
.product-body p { color: var(--prune-douce); font-size: 0.97rem; }
.product-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.product-bottom strong { font-family: var(--titres); font-weight: 400; font-size: 1.7rem; color: var(--violet-profond); }
.price-offer { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.price-before { color: var(--prune-douce); font-size: 0.9rem; }
.price-discount { display: inline-block; padding: 3px 7px; border-radius: 6px; background: #f7e4ff; color: #70238d; font-size: 0.76rem; font-weight: 900; white-space: nowrap; }
.cart-item .price-offer { margin-top: 3px; }
.cart-item .price-offer > strong { color: var(--violet-profond); }
.add-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 8px;
  background: var(--violet); color: var(--blanc); font-weight: 900; box-shadow: 0 4px 0 0 var(--violet-profond);
}
.add-button:active { transform: translateY(3px); box-shadow: 0 1px 0 0 var(--violet-profond); }
.details-button {
  align-self: flex-start; margin-top: 12px; padding: 6px 0; min-height: 36px; border: 0; background: none;
  color: var(--prune-douce); font-weight: 800; font-size: 0.9rem;
}
.details-button:hover { color: var(--violet); }
.gem-exchange {
  display: flex; align-items: center; gap: 18px; margin-top: 30px; padding: 18px 24px; border-radius: 14px;
  background: var(--prune); color: var(--blanc);
}
.gem-exchange > span { font-size: 1.6rem; color: var(--cyan); }
.gem-exchange p { margin: 0; flex: 1; display: flex; flex-direction: column; }
.gem-exchange p span { color: rgba(255, 255, 255, 0.75); font-size: 0.93rem; }
.gem-exchange a { color: var(--blanc); font-weight: 900; text-decoration: none; white-space: nowrap; }
.gem-exchange a:hover { text-decoration: underline; }

.page-intro {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 170px 20px 80px; text-align: center; color: var(--blanc);
}
.page-intro::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: #7d64c9 url("/assets/iles-2170.webp") center 35% / cover no-repeat;
}
.page-intro::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(36, 14, 70, 0.55), rgba(36, 14, 70, 0.35) 60%, var(--papier) 100%);
}
.page-intro .eyebrow { color: var(--cyan); text-shadow: 0 2px 6px rgba(30, 10, 60, 0.6); }
.page-intro h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); text-shadow: 0 4px 16px rgba(30, 10, 60, 0.6); }
.page-intro h1 em { color: #d6bbff; }
.page-intro p { margin: 14px auto 0; max-width: 560px; font-weight: 700; text-shadow: 0 2px 8px rgba(30, 10, 60, 0.8); }

.shop-page { padding: 10px 0 90px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; color: var(--prune-douce); font-weight: 700; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px;
  background: var(--blanc); color: var(--prune); font-weight: 900; box-shadow: inset 0 0 0 2px var(--lavande);
}
.filters button.selected { background: var(--violet); color: var(--blanc); box-shadow: 0 4px 0 0 var(--violet-profond); }

.rank-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  margin-top: 60px; padding: 40px; border-radius: 20px;
  background: linear-gradient(135deg, var(--violet-profond), #7a35c7); color: var(--blanc);
}
.rank-section .eyebrow { color: var(--cyan); }
.rank-section h2 { margin-bottom: 14px; }
.rank-section p { color: rgba(255, 255, 255, 0.85); }
.rank-options { display: grid; gap: 14px; }
.rank-card {
  display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.rank-card > span { font-size: 1.8rem; color: var(--cyan); }
.rank-card h3 { font-size: 1.5rem; }
.rank-card small { font-family: var(--texte); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-left: 6px; }
.rank-card strong { font-size: 1.1rem; }
.rank-card p { margin: 0; font-size: 0.9rem; }
.store-info {
  display: flex; gap: 18px; margin-top: 30px; padding: 22px 24px; border-radius: 14px;
  background: var(--blanc); box-shadow: inset 0 0 0 2px var(--lavande);
}
.store-info > span { font-size: 1.6rem; color: var(--violet); }
.store-info h3 { font-size: 1.3rem; margin-bottom: 6px; }
.store-info p { margin: 0; color: var(--prune-douce); }

/* ------------------------------------------------------------------ */
/* Communauté et questions                                             */
/* ------------------------------------------------------------------ */

.community {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 50px; align-items: center;
  width: min(var(--largeur), 100% - 2 * var(--marge)); margin: 0 auto 90px; padding: 56px 60px;
  border-radius: 24px; background: linear-gradient(120deg, var(--violet-profond), #8a4ad9 70%, #9d68ef); color: var(--blanc);
  box-shadow: 0 8px 0 0 #3e1673, var(--ombre);
}
.community .eyebrow { color: var(--cyan); }
.community h2 { margin-bottom: 14px; }
.community h2 em { color: #e0c8ff; }
.community p { color: rgba(255, 255, 255, 0.86); margin-bottom: 22px; }
.community-symbol { width: 170px; height: 170px; display: grid; place-items: center; border-radius: 40px; background: rgba(255, 255, 255, 0.12); transform: rotate(-6deg); }
.community-symbol svg { width: 100px; height: 76px; }
.community-spark { position: absolute; right: 40px; top: 26px; font-size: 2.6rem; color: rgba(255, 255, 255, 0.35); }

.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; padding: 0 0 100px; }
.faq h2 { margin-bottom: 30px; }
.faq-ball {
  width: 120px; height: 120px; border-radius: 50%; position: relative;
  background: linear-gradient(180deg, var(--violet) 0 46%, var(--prune) 46% 54%, var(--blanc) 54%);
  box-shadow: inset 0 0 0 5px var(--prune), 0 14px 26px -12px rgba(53, 32, 77, 0.6);
  animation: flotte 6s ease-in-out infinite;
}
.faq-ball i { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; background: var(--blanc); box-shadow: 0 0 0 6px var(--prune); }
.faq-list { display: grid; gap: 14px; align-content: start; }
.faq-list details { background: var(--blanc); border-radius: 14px; box-shadow: 0 5px 0 0 var(--lavande); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none; font-weight: 900; font-size: 1.08rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--lavande); color: var(--violet-profond); transition: transform 0.2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details > p,
.faq-list details > button { margin: 0 24px 20px; color: var(--prune-douce); }

/* ------------------------------------------------------------------ */
/* Page « Nous rejoindre »                                             */
/* ------------------------------------------------------------------ */

.launcher-section { padding: 10px 0 90px; }
.launcher-heading { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin-bottom: 34px; }
.launcher-heading p { color: var(--prune-douce); margin-top: 14px; }
.launcher-heading img { width: 220px; filter: drop-shadow(0 14px 24px rgba(53, 32, 77, 0.35)); }
.launcher-downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.download-card {
  display: flex; flex-direction: column; align-items: flex-start; padding: 32px;
  background: var(--blanc); border-radius: 18px; box-shadow: 0 6px 0 0 var(--lavande), var(--ombre);
}
.download-card h3 { font-size: 2rem; margin-bottom: 8px; }
.download-card p { color: var(--prune-douce); }
.download-card small { margin-top: 14px; color: var(--prune-douce); font-size: 0.85rem; }
.download-link { margin-top: 6px; }
.download-link.is-disabled { background: #b8a8d4; box-shadow: 0 5px 0 0 #9483b5; cursor: not-allowed; pointer-events: none; }
.os-icon { width: 56px; height: 56px; margin-bottom: 18px; }
.windows-icon { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; transform: perspective(200px) rotateY(-12deg); }
.windows-icon i { background: linear-gradient(135deg, #64c7ff, #2a7bf0); border-radius: 3px; }
.mac-icon { display: grid; place-items: center; border-radius: 14px; background: var(--prune); color: var(--blanc); }
.mac-icon svg { width: 28px; height: 32px; }
.checksum { margin-top: 14px; font-size: 0.85rem; color: var(--prune-douce); max-width: 100%; }
.checksum summary { cursor: pointer; font-weight: 800; }
.checksum code { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--papier); font-size: 0.75rem; word-break: break-all; }
.launcher-tip { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--papier); font-size: 0.85rem; color: var(--prune-douce); }
.launcher-instructions { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; margin-top: 60px; align-items: start; }
.launcher-instructions ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: etape; }
.launcher-instructions li {
  counter-increment: etape; position: relative; padding: 18px 20px 18px 74px;
  background: var(--blanc); border-radius: 14px; box-shadow: 0 5px 0 0 var(--lavande);
}
.launcher-instructions li::before {
  content: counter(etape); position: absolute; left: 20px; top: 18px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 10px; background: var(--violet); color: var(--blanc); font-family: var(--titres); font-size: 1.2rem;
}
.launcher-instructions li b { font-size: 1.1rem; }
.launcher-instructions li p { margin: 2px 0 0; color: var(--prune-douce); }
.launcher-instructions li button {
  margin-left: 4px; padding: 4px 10px; min-height: 36px; border: 0; border-radius: 6px; background: var(--prune); color: var(--blanc);
  font-family: ui-monospace, "Cascadia Code", Menlo, monospace; font-weight: 700;
}
.launcher-help {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding: 26px 30px;
  border-radius: 16px; background: var(--lavande);
}
.launcher-help h3 { font-size: 1.5rem; margin-bottom: 6px; }
.launcher-help p { margin: 0; color: var(--prune-douce); }

/* ------------------------------------------------------------------ */
/* Pages légales et page introuvable                                   */
/* ------------------------------------------------------------------ */

.legal { max-width: 780px; padding: 150px 0 90px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 24px; }
.legal h2 { font-size: 1.5rem; margin: 30px 0 10px; }
.legal p,
.legal li { color: var(--prune-douce); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 18px; }
.legal dt { font-weight: 900; color: var(--prune); }
.legal dd { margin: 0; color: var(--prune-douce); }
.a-completer { color: #b4236b; font-style: italic; }
.not-found { text-align: center; padding-top: 180px; }
.not-found .button { margin-top: 18px; }

/* ------------------------------------------------------------------ */
/* Pied de page                                                        */
/* ------------------------------------------------------------------ */

.footer { background: var(--nuit); color: rgba(255, 255, 255, 0.82); padding: 50px var(--marge) 30px; }
.footer-inner { width: min(var(--largeur), 100%); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 30px 60px; align-items: flex-start; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-right: auto; }
.footer-brand strong { font-family: var(--titres); font-weight: 400; font-size: 1.6rem; color: var(--blanc); }
.footer-brand p { margin: 0; font-size: 0.95rem; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-links a,
.footer-links button {
  padding: 6px 0; min-height: 36px; border: 0; background: none; color: rgba(255, 255, 255, 0.82);
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--blanc); text-decoration: underline; }
.footer-note { width: min(var(--largeur), 100%); margin: 34px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }

/* ------------------------------------------------------------------ */
/* Panier, fenêtres, message                                           */
/* ------------------------------------------------------------------ */

dialog {
  width: min(480px, 100% - 32px); max-height: min(86vh, 760px); padding: 0; border: 0; border-radius: 18px;
  background: var(--papier); color: var(--prune); box-shadow: 0 30px 80px -20px rgba(20, 8, 40, 0.7);
}
dialog::backdrop { background: rgba(24, 10, 44, 0.6); backdrop-filter: blur(3px); }
dialog[open] { animation: ouvre 0.22s ease; }
dialog.drawer[open] { margin-right: 16px; }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; background: var(--papier); }
.dialog-head h2 { font-size: 1.7rem; }
.dialog-close { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--blanc); font-size: 1.1rem; box-shadow: 0 3px 0 0 var(--lavande); }
#cart-content,
#info-content { padding: 0 20px 22px; }
#info-content ul { padding-left: 20px; color: var(--prune-douce); }
.empty-cart { text-align: center; padding: 20px 0 10px; }
.empty-cart > span { font-size: 2.4rem; color: var(--violet); }
.empty-cart h3 { font-size: 1.5rem; margin: 6px 0 8px; }
.empty-cart p { color: var(--prune-douce); }
.cart-items { display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--blanc); }
.cart-item .item-art { width: 40px; animation: none; filter: none; justify-self: center; }
.cart-item strong { display: block; }
.cart-item span { color: var(--prune-douce); font-size: 0.92rem; }
.quantity { display: flex; align-items: center; gap: 8px; }
.quantity button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: var(--lavande); font-weight: 900; }
.quantity span { min-width: 20px; text-align: center; font-weight: 900; color: var(--prune); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 6px; padding-top: 14px; border-top: 2px dashed var(--lavande); font-weight: 800; }
.cart-total strong { font-family: var(--titres); font-weight: 400; font-size: 1.8rem; color: var(--violet-profond); }
.checkout-note { color: var(--prune-douce); font-size: 0.9rem; }
.checkout-field { display: grid; gap: 6px; margin: 10px 0 12px; font-weight: 800; font-size: 0.95rem; }
.checkout-field input {
  min-height: 48px; padding: 10px 14px; border: 2px solid var(--lavande); border-radius: 10px; background: var(--blanc);
  font: inherit; font-weight: 700; color: var(--prune);
}
.checkout-field input:focus { border-color: var(--violet); outline: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-size: 0.88rem; color: var(--prune-douce); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--violet); }
.checkout { width: 100%; margin-top: 10px; }
.checkout:disabled { background: #b8a8d4; box-shadow: 0 5px 0 0 #9483b5; cursor: not-allowed; transform: none; filter: none; }

#toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 140%);
  padding: 12px 20px; border-radius: 12px; background: var(--prune); color: var(--blanc); font-weight: 800;
  box-shadow: 0 14px 30px -12px rgba(20, 8, 40, 0.7); transition: transform 0.25s ease; max-width: calc(100% - 32px);
}
#toast.show { transform: translate(-50%, 0); }
#toast:empty { visibility: hidden; }

@keyframes ouvre { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

/* ------------------------------------------------------------------ */
/* Tablette et téléphone                                               */
/* ------------------------------------------------------------------ */

@media (max-width: 1080px) {
  .shop-page .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a,
  .nav button { padding: 8px 8px; font-size: 0.74rem; }
  .welcome { gap: 40px; }
}

@media (max-width: 900px) {
  .welcome,
  .faq,
  .rank-section,
  .launcher-instructions { grid-template-columns: 1fr; }
  .join-board { transform: none; max-width: 560px; }
  .community { grid-template-columns: 1fr; padding: 44px 32px; gap: 24px; }
  .community-symbol { width: 110px; height: 110px; border-radius: 28px; }
  .community-symbol svg { width: 64px; height: 48px; }
}

@media (max-width: 760px) {
  :root { --marge: 24px; }
  body { font-size: 1rem; }
  .header { inset: 10px 10px auto; }
  .header-bar { min-height: 64px; gap: 10px; padding: 6px 8px 6px 10px; flex-wrap: wrap; }
  .brand img { width: 170px; height: 61px; }
  .header-actions { margin-left: auto; }
  .menu-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 10px; background: #2b1349;
  }
  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--blanc); position: relative; transition: transform 0.2s, background 0.2s; }
  .menu-toggle span::before,
  .menu-toggle span::after { content: ""; position: absolute; left: 0; }
  .menu-toggle span::before { top: -7px; }
  .menu-toggle span::after { top: 7px; }
  .menu-open .menu-toggle span { background: transparent; }
  .menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
  .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0 8px; }
  .menu-open .nav { display: flex; }
  .nav a,
  .nav button { justify-content: flex-start; font-size: 0.9rem; padding: 10px 12px; }
  .nav .nav-shop { margin: 6px 0 0; justify-content: center; }

  .hero { min-height: 100svh; padding: 100px 16px 120px; }
  .hero-image { background-image: url("/assets/iles-1200.webp"); background-position: 38% 50%; }
  .hero-kicker { letter-spacing: 0.2em; }
  .hero-logo { width: min(74vw, 320px); }
  .hero-buttons { width: 100%; max-width: 380px; }
  .server-ip { flex: 1; min-height: 68px; padding: 10px 16px; gap: 12px; justify-content: space-between; }
  .server-ip .ip-icon { display: none; }
  .server-ip > span:nth-child(2) { font-size: 1.35rem; }
  .server-ip small { font-size: 0.6rem; letter-spacing: 0.12em; }
  .discord-square { width: 68px; min-height: 68px; }

  .welcome-section { padding: 40px 0 70px; }
  .board-sticker { right: -6px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .discovery-slide { min-height: 440px; }
  .discovery-landscape::after { background: linear-gradient(0deg, rgba(36, 14, 70, 0.9) 0%, rgba(36, 14, 70, 0.55) 55%, transparent 90%); }
  .discovery-caption { padding: 28px 24px 62px; }
  .slide-dots { left: 24px; }
  .products, .shop-page .products { grid-template-columns: 1fr; }
  .gem-exchange { flex-wrap: wrap; gap: 10px 16px; }
  .gem-exchange p { flex: 1 1 calc(100% - 50px); }
  .gem-exchange a { margin-left: 44px; }
  /* Les retours à la ligne voulus sur ordinateur coupent mal les phrases sur un petit écran. */
  .community p br,
  .discovery-caption p br,
  .launcher-heading p br { display: none; }
  .product-visual { height: 238px; }
  .page-intro { padding: 130px 16px 60px; }
  .launcher-heading { grid-template-columns: 1fr; }
  .launcher-heading img { width: 160px; order: -1; }
  .launcher-downloads { grid-template-columns: 1fr; }
  .download-card { padding: 26px 22px; }
  .launcher-help { flex-direction: column; align-items: flex-start; }
  .rank-section { padding: 30px 22px; }
  .community { padding: 36px 24px; }
  .legal { padding-top: 120px; }
  .legal dl { grid-template-columns: 1fr; gap: 0 0; }
  .legal dd { margin-bottom: 10px; }
  dialog.drawer[open] { margin: auto; }
}

@media (max-width: 360px) {
  :root { --marge: 16px; }
  .server-ip > span:nth-child(2) { font-size: 1.2rem; }
  .cart-button { padding: 8px; }
  .cart-button svg { display: none; }
}

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


/* Navigation sans logo, liens à gauche et accès au commerce à droite. */
.header-bar { min-height:80px; padding:12px 18px; gap:16px; }
.nav { justify-content:flex-start; }
.header-actions { flex-shrink:0; }
.header-actions a,.player-button,.header-discord { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; border:0; border-radius:9px; padding:10px 16px; font:inherit; font-size:.88rem; font-weight:900; text-transform:uppercase; color:white; text-decoration:none; }
.header-discord { background:#6758eb; width:52px; padding:12px; box-shadow:0 4px 0 #4135a8; }
.header-discord svg { width:26px; height:22px; }
.header-shop { background:var(--violet-clair); box-shadow:0 4px 0 #6930b7; }
.player-button { background:#371854; box-shadow:0 4px 0 #251037; max-width:210px; }
#session-pseudo { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cart-button { min-height:48px; }
.account-actions { display:flex; flex-wrap:wrap; gap:12px; }
.shop-login { padding:150px 0 80px; max-width:620px; }
.shop-login-form { display:grid; gap:12px; padding:26px; margin-top:24px; border-radius:18px; background:white; box-shadow:0 5px 0 var(--lavande); }
.shop-login-form .checkout-field { margin:0; }
.privacy-help { margin:0; font-size:.88rem; color:var(--prune-douce); }
.login-message { color:#a91d5e; font-weight:800; margin:0; }
.purchase-history article { padding:18px 0; border-bottom:1px solid var(--lavande); }
.recipient { padding:14px; background:var(--lavande); border-radius:10px; }
.recipient button { margin-left:8px; }
@media(max-width:1080px) { .header-bar { gap:10px; padding:10px; } .header-actions { gap:7px; } .header-actions a,.player-button { padding:10px; font-size:.78rem; } .header-discord { width:44px; } }
@media(max-width:900px) and (min-width:761px) { .nav { gap:0; } .nav a,.nav button { padding:8px 5px; font-size:.68rem; } .cart-button { padding:8px; gap:5px; } }
@media(max-width:760px) { .header-bar { min-height:70px; } .header-actions { width:100%; margin:0; gap:8px; } .header-discord { display:none; } .header-shop { margin-right:auto; } .player-button { max-width:165px; } .header-actions a,.player-button { min-height:44px; padding:8px 10px; font-size:.76rem; } .cart-button { padding:8px; gap:5px; min-height:44px; } .cart-button svg { width:17px; } #cart-count { min-width:22px; padding:2px 5px; } .menu-toggle { flex:none; width:40px; height:44px; } .shop-login-form { padding:20px; } }
@media(max-width:370px) { .player-button { max-width:112px; } .header-actions { gap:5px; } }

.header-shop svg { width:20px; height:20px; }
.checkout-field select,.checkout-field textarea { width:100%; padding:12px; border:2px solid var(--lavande); border-radius:10px; font:inherit; background:white; color:var(--prune); }
.checkout-field textarea { min-height:120px; }
.purchase-history button { display:block; margin-top:8px; }
