/* KamaFia Shop · univers fantasy sombre (bois, or, parchemin), sans visuel Ankama. */
@font-face { font-family: Marcellus; src: url("assets/Marcellus-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: Barlow; src: url("assets/Barlow-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: Barlow; src: url("assets/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --nuit: #120d09;
  --bois: #1e150e;
  --bois-clair: #2b1e13;
  --or: #efc479;
  --or-vif: #ffdf9c;
  --or-sombre: #a77a3c;
  --texte: #fbefdb;
  --doux: #cdb898;
  --trait: #9c753652;
  --vert: #8fc25b;
  --parchemin: #ecdcb8;
  --encre: #3a2614;
  font-family: Barlow, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 300px;
  background: var(--nuit);
  color: var(--texte);
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: inherit; }
.shell { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.skip { position: absolute; z-index: 30; left: 1rem; top: 1rem; transform: translateY(-200%); background: var(--or); color: var(--nuit); padding: 10px 14px; }
.skip:focus { transform: none; }
:where(a, summary, button):focus-visible { outline: 2px solid var(--or-vif); outline-offset: 4px; border-radius: 6px; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(#120d09f2, #120d09d9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--trait);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font: 1.3rem Marcellus, Georgia, serif; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.brand img { border-radius: 50%; border: 1px solid var(--or-sombre); box-shadow: 0 0 18px #e6a6503a; }
.brand small { font: 600 .62em Barlow, sans-serif; color: var(--or); letter-spacing: .16em; }
.nav { display: flex; gap: clamp(14px, 2.6vw, 34px); margin-left: auto; }
.nav a { color: var(--doux); font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--or); }

.compte { margin-left: 8px; }
.connexion {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 8px; background: #5865f2; color: #fff; font-weight: 600; text-decoration: none;
}
.connexion svg { width: 20px; height: 20px; fill: currentColor; }
.connexion:hover { background: #6d78f5; }
.profil { position: relative; }
.profil summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; padding: 4px 10px 4px 4px; border: 1px solid var(--trait); border-radius: 99px; background: var(--bois); }
.profil summary::-webkit-details-marker { display: none; }
.profil summary::after { content: "▾"; color: var(--or); font-size: .8rem; }
.avatar { border-radius: 50%; border: 2px solid var(--or-sombre); object-fit: cover; }
.profil-texte { display: grid; line-height: 1.15; }
.profil-texte strong { font-size: .95rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profil-texte small { color: var(--or); font-size: .78rem; font-weight: 600; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 250px; padding: 8px;
  border: 1px solid var(--trait); border-radius: 12px; background: var(--bois); box-shadow: 0 18px 40px #000a;
}
.menu-tete { padding: 10px 10px 12px; border-bottom: 1px solid var(--trait); margin-bottom: 6px; }
.menu-tete span { color: var(--doux); font-size: .8rem; }
.menu-tete strong { display: block; color: var(--or); font-size: 1.25rem; }
.menu-tete small { color: var(--doux); font-size: .78rem; }
.jauge { height: 6px; margin: 6px 0 4px; border-radius: 99px; background: #ffffff14; overflow: hidden; }
.jauge i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--or-sombre), var(--or-vif)); }
.menu a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--texte); text-decoration: none; }
.menu a:hover { background: var(--bois-clair); color: var(--or); }

/* ---------- En-tête illustré ---------- */
.hero { position: relative; overflow: hidden; min-height: clamp(540px, 72vh, 700px); display: flex; align-items: center; isolation: isolate; }
.paysage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.lune { position: absolute; z-index: -1; width: clamp(260px, 34vw, 520px); height: auto; right: 6%; top: 4%; mix-blend-mode: screen; opacity: .9; pointer-events: none;
  /* Fondu centré sur l'éclipse (à 74 % de l'image) : les nuages s'effacent avant le bord droit de l'image au lieu d'être coupés net. */
  -webkit-mask-image: radial-gradient(26% 50% at 74% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(26% 50% at 74% 50%, #000 30%, transparent 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #120d09e6 0%, #120d09a8 38%, transparent 70%), linear-gradient(0deg, var(--nuit), transparent 30%); }
.hero-copy { width: 100%; padding-block: 80px 70px; }
.sur-titre { margin: 0 0 10px; color: var(--or); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; font-size: .85rem; }
h1 { margin: 0; font: 400 clamp(3.4rem, 8.5vw, 7rem) / .98 Marcellus, Georgia, serif; letter-spacing: -.04em; text-shadow: 0 4px 30px #000; }
h1 em { display: block; font-style: normal; background: linear-gradient(180deg, #fff0c4 10%, #f2bf68 55%, #d48d3c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accroche { max-width: 540px; margin: 22px 0 30px; color: var(--doux); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.bouton-or, .bouton-discord {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border-radius: 10px; font-weight: 600; font-size: 1.05rem; text-decoration: none; transition: transform .15s ease, filter .15s ease;
}
.bouton-or { color: #2a1606; background: linear-gradient(160deg, #ffe7b0, #e0a552 60%, #b9772f); border: 1px solid #f7d08c; box-shadow: 0 8px 26px #e4a6543d, inset 0 1px 0 #fff7; }
.bouton-discord { color: var(--texte); border: 1px solid var(--or-sombre); background: #120d0999; }
.bouton-or:hover, .bouton-discord:hover { transform: translateY(-1px); filter: brightness(1.08); }
.atouts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--doux); font-weight: 600; font-size: .95rem; }
.flotte { animation: flotte 7s ease-in-out infinite; }
.flotte.lente { animation-duration: 9s; animation-delay: -3s; }
.lucioles circle { animation: luciole 4s ease-in-out infinite; }
.lucioles circle:nth-child(2n) { animation-delay: -2s; }
@keyframes flotte { 50% { transform: translateY(-10px); } }
@keyframes luciole { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .flotte, .lucioles circle { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Titres de section ---------- */
.section { padding-top: clamp(56px, 7vw, 96px); scroll-margin-top: 70px; }
.titre-section { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 26px; }
.titre-section h2, .appel h2 { margin: 0; font: 400 clamp(1.9rem, 4vw, 2.8rem) / 1.1 Marcellus, Georgia, serif; }
.ornement { flex-basis: 100%; height: 14px; max-width: 160px; background:
  linear-gradient(var(--or), var(--or)) left center / 60px 1px no-repeat,
  linear-gradient(var(--or), var(--or)) right center / 60px 1px no-repeat,
  radial-gradient(circle, var(--or) 0 3px, transparent 3.5px) center / 14px 14px no-repeat; }
.maj { margin: 0 0 0 auto; color: var(--doux); font-size: .92rem; }
.direct::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 8px var(--vert); vertical-align: 1px; }

/* ---------- Étals de la boutique ---------- */
/* Comptes sur la première ligne (3 étals), proxies et kamas sur la seconde (2 étals plus larges). */
.etals { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.etal { grid-column: span 2; }
.etal:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 1000px) { .etals { grid-template-columns: repeat(2, minmax(0, 1fr)); } .etal, .etal:nth-child(n+4) { grid-column: span 1; } .etal:last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .etals { grid-template-columns: 1fr; } .etal:last-child { grid-column: auto; } }
.etal {
  position: relative; display: flex; flex-direction: column; padding: 24px;
  border: 1px solid var(--trait); border-radius: 16px;
  background: linear-gradient(160deg, var(--bois-clair), var(--bois) 70%);
  box-shadow: inset 0 1px 0 #ffffff0d, 0 14px 30px #0006;
}
.etal::before { content: ""; position: absolute; inset: 6px; border: 1px solid #efc47914; border-radius: 11px; pointer-events: none; }
.etal-vedette { border-color: var(--or-sombre); box-shadow: inset 0 1px 0 #ffffff12, 0 0 0 1px #efc4791f, 0 18px 40px #0008; }
.ruban { position: absolute; top: -11px; left: 20px; padding: 3px 12px; border-radius: 99px; background: linear-gradient(160deg, #ffe7b0, #d89c4c); color: #2a1606; font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.etal-tete { display: flex; align-items: center; gap: 14px; }
.etal-tete img { flex: 0 0 auto; object-fit: contain; }
.etal-tete img.argent { filter: grayscale(1) brightness(1.25); }
.etal h3 { margin: 0; font: 400 1.35rem Marcellus, Georgia, serif; }
.etal-tete p { margin: 2px 0 0; color: var(--doux); font-size: .92rem; }
.prix { margin: 20px 0 4px; color: var(--or); line-height: 1.1; }
.prix strong { font-size: clamp(2.3rem, 3.6vw, 2.9rem); font-weight: 600; }
.prix span { color: var(--doux); margin-left: 4px; }
.prix-texte { font-size: 1.55rem; font-weight: 600; min-height: 3.2rem; display: flex; align-items: flex-end; }
.dispo { min-height: 26px; margin: 4px 0 0; }
.duo { margin: 18px 0 4px; display: grid; gap: 10px; }
.duo div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #0000002e; }
.duo dt { color: var(--doux); font-weight: 600; }
.duo dd { margin: 0; color: var(--or); text-align: right; }
.duo strong { font-size: 1.35rem; }
.duo .stock { display: block; margin: 2px 0 0 auto; width: fit-content; }
.details { margin: 14px 0 20px; padding: 0; list-style: none; color: var(--doux); font-size: .95rem; }
.details li { padding: 6px 0 6px 22px; border-top: 1px solid var(--trait); position: relative; }
.details li::before { content: "✦"; position: absolute; left: 2px; color: var(--or-sombre); font-size: .8rem; top: 8px; }
.bouton-etal {
  margin-top: auto; display: flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 10px;
  border: 1px solid var(--or-sombre); color: var(--or); font-weight: 600; text-decoration: none; background: #0000002e;
}
.bouton-etal:hover { background: linear-gradient(160deg, #ffe7b0, #d89c4c); color: #2a1606; border-color: #f7d08c; }
.etal-vedette .bouton-etal { background: linear-gradient(160deg, #ffe7b0, #d89c4c); color: #2a1606; border-color: #f7d08c; }
.stock { display: inline-block; padding: 2px 10px; border: 1px solid #8fc25b66; border-radius: 99px; background: #8fc25b1a; color: #b9e38a; font-size: .8rem; font-weight: 600; }
.stock[hidden] { display: none; }
.stock.vide { border-color: #d9735f66; background: #d9735f1a; color: #f0a596; }
/* Carte Kamas en direct : une tuile par serveur, même fond et mêmes arrondis que les blocs de l'abonnement 7 jours. */
.kamas-serveurs { --colonnes: 3; display: grid; grid-template-columns: repeat(var(--colonnes), minmax(0, 1fr)); gap: 10px; margin: 16px 0 4px; padding: 0; list-style: none; }
.kamas-serveurs[hidden] { display: none; }
.kamas-serveurs li { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; background: #0000002e; border: 1px solid var(--trait); }
.kamas-nom { display: flex; align-items: center; gap: 8px; color: var(--doux); font-weight: 600; font-size: .9rem; }
.kamas-serveurs strong { color: var(--or); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.kamas-serveurs small { color: var(--doux); font-size: .78rem; }
.kamas-out strong { color: var(--doux); text-decoration: line-through; opacity: .6; }
.kamas-out small { color: #f0a596; font-weight: 600; }
.kamas-low small { color: #f5c36a; }
.pastille { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #57d38c; box-shadow: 0 0 8px #57d38c99; }
.kamas-low .pastille { background: #f5a524; box-shadow: 0 0 8px #f5a52499; }
.kamas-out .pastille { background: #ef5f6c; box-shadow: 0 0 8px #ef5f6c99; }
@media (max-width: 420px) { .kamas-serveurs { grid-template-columns: 1fr; } .kamas-serveurs li { flex-direction: row; align-items: baseline; flex-wrap: wrap; column-gap: 10px; } .kamas-nom { flex: 1 0 100%; } }
.sceau { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe7b0, #c8873b 70%); color: #2a1606; font: 1.05rem Marcellus, Georgia, serif; box-shadow: 0 0 0 3px #efc47933; }
.globe { position: relative; flex: 0 0 38px; width: 38px; height: 38px; margin: 4px; border: 2px solid var(--or); border-radius: 50%; }
.globe::before, .globe::after { content: ""; position: absolute; }
.globe::before { inset: -2px 8px; border: 2px solid var(--or); border-radius: 50%; }
.globe::after { inset: 10px 0; border-block: 2px solid var(--or); }

/* ---------- Étapes de commande ---------- */
.parchemin {
  position: relative; padding: clamp(28px, 5vw, 56px); color: var(--encre); border-radius: 6px;
  background:
    radial-gradient(ellipse at 20% 0, #fff6df 0, transparent 55%),
    radial-gradient(ellipse at 100% 100%, #c9a874 0, transparent 50%),
    linear-gradient(170deg, #f3e6c6, #e2cb9c);
  box-shadow: inset 0 0 60px #8a5a2a55, 0 24px 50px #000a;
}
.parchemin::before, .parchemin::after { content: ""; position: absolute; left: -10px; right: -10px; height: 22px; border-radius: 11px; background: linear-gradient(#8a5a2a, #4a2c14 60%, #7a4c22); box-shadow: 0 4px 10px #0007; }
.parchemin::before { top: -11px; }
.parchemin::after { bottom: -11px; }
.titre-section.sombre h2 { color: var(--encre); }
.titre-section.sombre .ornement { filter: brightness(.55) sepia(1); }
.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.etapes li { counter-increment: etape; padding-top: 6px; }
.etapes li::before { content: counter(etape); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 50%; color: #fff3d6; font: 1.3rem Marcellus, Georgia, serif; background: radial-gradient(circle at 35% 30%, #b2452f, #6e1f14); box-shadow: 0 3px 0 #4a140c, 0 6px 12px #0004; }
.etapes h3 { margin: 0 0 6px; font: 400 1.35rem Marcellus, Georgia, serif; }
.etapes p { margin: 0; color: #5a4128; }
.recompense { margin: 28px 0 0; padding-top: 18px; border-top: 1px dashed #8a5a2a66; font-weight: 600; }

/* ---------- FAQ ---------- */
.questions { border-block: 1px solid var(--trait); }
details + details { border-top: 1px solid var(--trait); }
.questions summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding-block: 14px; cursor: pointer; list-style: none; font-size: 1.1rem; font-weight: 600; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; color: var(--or); font-size: 1.5rem; }
.questions details[open] summary::after { content: "−"; }
.questions p { margin: 0 0 18px; max-width: 70ch; color: var(--doux); }

/* ---------- Appel final et pied ---------- */
.appel { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 26px; padding: clamp(22px, 3.5vw, 38px); border: 1px solid var(--or-sombre); border-radius: 18px; background: radial-gradient(ellipse at 0 0, #3a2715, var(--bois) 70%); }
.appel img { border-radius: 50%; }
.appel div { flex: 1 1 300px; }
.appel p { margin: 6px 0 0; color: var(--doux); }
.pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 48px 30px; color: var(--doux); font-size: .9rem; }
.pied a { color: var(--doux); text-decoration: none; }
.pied a:hover { color: var(--or); }
.mention { opacity: .75; }

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
  .topbar-inner { gap: 12px; min-height: 60px; }
  .nav { display: none; }
  .compte { margin-left: auto; }
  .brand { font-size: 1.05rem; }
  .brand img { width: 36px; height: 36px; }
  .profil-texte { display: none; }
  .connexion { padding: 0 12px; }
  .hero { min-height: 640px; align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, var(--nuit) 8%, #120d09d9 45%, #120d0955 75%, transparent); }
  .lune { right: -10%; top: 2%; width: 300px; }
  .hero-copy { padding-block: 220px 48px; }
  .hero-actions a { flex: 1 1 100%; }
  .etapes { grid-template-columns: 1fr; }
  .maj { margin-left: 0; }
  .menu { width: min(280px, calc(100vw - 32px)); }
}
.drapeau { display: inline-block; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
/* Page d'attente de la connexion Discord (retour.php). */
.page-attente { min-height: 100vh; display: grid; place-items: center; }
.attente { display: grid; justify-items: center; gap: 14px; padding: 40px 28px; text-align: center; max-width: 420px; }
.attente img { border-radius: 50%; border: 1px solid var(--or-sombre); box-shadow: 0 0 24px #e6a6503a; }
.attente h1 { margin: 6px 0 0; font: 400 2rem Marcellus, serif; color: var(--texte); }
.attente p { margin: 0; color: var(--doux); }
.attente .bouton-discord[hidden] { display: none; }
.sablier { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #efc47933; border-top-color: var(--or); animation: tourne 0.9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sablier { animation-duration: 3s; } }

/* ---------- Espace membre (compte.html) : fidélité et suivi des commandes ---------- */
.page-compte { background: radial-gradient(1200px 500px at 80% -10%, #4a2c1633, transparent 70%), var(--nuit); }
.espace { padding-block: 44px 80px; }
.espace-chargement { color: var(--doux); text-align: center; padding: 80px 0; }
.espace-invite { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 70px 20px; }
.espace-invite img { border-radius: 50%; border: 1px solid var(--or-sombre); box-shadow: 0 0 24px #e6a6503a; }
.espace-invite h1, .espace-tete h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
.espace-invite p { margin: 0 0 8px; color: var(--doux); }
.connexion.grande { min-height: 50px; padding: 0 24px; font-size: 1.05rem; }
.espace-tete { display: flex; align-items: center; gap: 18px; margin-bottom: 40px; }
.espace-tete .sur-titre { margin-bottom: 4px; }
.bloc { scroll-margin-top: 90px; margin-bottom: 56px; }
.note { color: var(--doux); font-size: .9rem; margin: 14px 0 0; }

/* Sans bon de roue actif, la carte du cumul prend toute la largeur. */
.fidelite { display: flex; gap: 16px; }
.fid-cumul { flex: 2 1 0; min-width: 0; }
/* Colonne de droite : bon de roue actif, puis économies réalisées en dessous. */
.fid-cote { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.fid-cote > * { flex: 1 1 auto; }
.fid-cote:not(:has(> :not([hidden]))) { display: none; }
.fid-cumul, .fid-bon, .fid-eco {
  display: grid; align-content: start; gap: 6px; padding: 24px; border: 1px solid var(--trait); border-radius: 16px;
  background: linear-gradient(160deg, var(--bois-clair), var(--bois) 70%); box-shadow: inset 0 1px 0 #ffffff0d, 0 14px 30px #0006;
}
.fid-etiquette { color: var(--doux); font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.fid-cumul strong { color: var(--or); font-size: clamp(2.4rem, 4vw, 3.1rem); font-weight: 600; line-height: 1.1; }
.fid-palier { color: var(--doux); }
.fid-palier b { color: var(--or-vif); }
.fid-cumul small { color: var(--doux); }
.jauge.grande { height: 10px; margin: 8px 0 2px; }
.fid-bon { border-color: #8fc25b55; background: linear-gradient(160deg, #22301a, var(--bois) 75%); }
.fid-bon strong { color: #b9e38a; font-size: 2.4rem; font-weight: 600; line-height: 1.1; }
.fid-bon small { color: var(--doux); }
.fid-eco { position: relative; overflow: hidden; border-color: #efc47955; background: linear-gradient(160deg, #3a2a12, var(--bois) 75%); }
.fid-eco::after { content: ""; position: absolute; right: -18px; bottom: -22px; width: 96px; height: 96px; opacity: .16;
  background: url("assets/kamapiece.svg") center / contain no-repeat; pointer-events: none; }
.fid-eco strong { color: var(--or-vif); font-size: 2.4rem; font-weight: 600; line-height: 1.1; text-shadow: 0 0 18px #efc47933; }
.fid-eco small { position: relative; color: var(--doux); }

.paliers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.palier { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "marque nom remise" "marque seuil remise" "marque etat etat";
  gap: 2px 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--trait); border-radius: 12px; background: #0000002e; color: var(--doux); }
.palier-marque { grid-area: marque; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--trait); font-size: .9rem; }
.palier-nom { grid-area: nom; color: var(--texte); font: 400 1.1rem Marcellus, Georgia, serif; }
.palier-seuil { grid-area: seuil; font-size: .85rem; }
.palier-remise { grid-area: remise; color: var(--or); font-size: 1.35rem; font-weight: 600; }
.palier-etat { grid-area: etat; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.palier.atteint { border-color: var(--or-sombre); background: linear-gradient(160deg, #3a2814, #1e150e); }
.palier.atteint .palier-marque { background: linear-gradient(160deg, #ffe7b0, #d89c4c); color: #2a1606; border-color: #f7d08c; font-weight: 700; }
.palier.atteint .palier-etat { color: var(--or); }
.palier.prochain { border-style: dashed; border-color: var(--or-sombre); }
.palier.prochain .palier-marque { color: var(--or); border-color: var(--or-sombre); }

.vide { color: var(--doux); padding: 18px 20px; border: 1px dashed var(--trait); border-radius: 12px; }
.vide a { color: var(--or); }
.commandes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.commande {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px 16px 18px;
  border: 1px solid var(--trait); border-left: 3px solid var(--etat, var(--or-sombre)); border-radius: 12px;
  background: linear-gradient(160deg, var(--bois-clair), var(--bois) 80%);
}
.commande-gauche { min-width: 0; display: grid; gap: 4px; }
.commande-tete { display: flex; align-items: center; gap: 10px; }
.commande-icone { font-size: 1.15rem; }
.commande-detail { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commande-infos { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--doux); font-size: .85rem; }
.commande-ref { font-family: ui-monospace, Consolas, monospace; color: var(--or-sombre); }
.commande-droite { display: grid; justify-items: end; gap: 4px; text-align: right; flex: 0 0 auto; }
.commande-montant { color: var(--or); font-size: 1.25rem; font-weight: 600; }
.commande-etat { padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; color: var(--etat, var(--doux)); border: 1px solid currentColor; background: #0003; white-space: nowrap; }
.etat-livree { --etat: #9fd36a; }
.etat-paiement { --etat: #7fc4ff; }
.etat-preparation { --etat: #c9a2ff; }
.etat-attente { --etat: #f2c45a; }
.etat-incident { --etat: #ff8a7a; }
.commandes-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 18px; }
.commandes-pied .note { margin: 0; max-width: 640px; }
@media (max-width: 760px) {
  .fidelite { flex-direction: column; }
  .commande { flex-direction: column; align-items: stretch; }
  .commande-droite { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .page-compte .nav { display: none; }
}

/* ---------- Espace membre : récompenses, parrainage, alertes ---------- */
.sprite { position: absolute; }
.espace-tete { flex-wrap: wrap; }
.espace-identite { flex: 1 1 auto; min-width: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.badge { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--or-sombre); background: #efc4791a; color: var(--or-vif); font-size: .8rem; font-weight: 600; }
.porte-monnaie { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--or-sombre); border-radius: 14px;
  background: linear-gradient(160deg, #3a2814, #1e150e); box-shadow: 0 0 24px #e6a6502a; }
.porte-monnaie .piece { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-weight: 700; font-size: 1.3rem;
  color: #2a1606; background: radial-gradient(circle at 35% 30%, #fff3c9, #e8b45e 55%, #a06a28); box-shadow: inset 0 -3px 0 #0003, 0 2px 8px #0006; }
.porte-monnaie strong { display: block; color: var(--or); font-size: 1.6rem; line-height: 1; }
.porte-monnaie small { color: var(--doux); font-size: .8rem; }
.onglets { position: sticky; top: 68px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; margin: 0 0 34px; padding: 8px 0;
  background: linear-gradient(var(--nuit) 70%, transparent); scrollbar-width: none; }
.onglets a { flex: 0 0 auto; padding: 8px 16px; border: 1px solid var(--trait); border-radius: 99px; color: var(--doux); font-weight: 600; text-decoration: none; background: var(--bois); }
.onglets a:hover { color: var(--or); border-color: var(--or-sombre); }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px));
  padding: 14px 20px; border-radius: 12px; font-weight: 600; box-shadow: 0 18px 40px #000a; animation: monte .25s ease-out; }
.toast.ok { background: #22301a; border: 1px solid #8fc25b; color: #d6f2b5; }
.toast.erreur { background: #3a1814; border: 1px solid #ff8a7a; color: #ffd0c8; }
@keyframes monte { from { opacity: 0; transform: translate(-50%, 12px); } }
body.en-cours button { cursor: progress; }

.jeux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.jeu { display: grid; align-content: start; gap: 16px; padding: 24px; border: 1px solid var(--trait); border-radius: 16px;
  background: linear-gradient(160deg, var(--bois-clair), var(--bois) 70%); box-shadow: inset 0 1px 0 #ffffff0d, 0 14px 30px #0006; }
.jeu h3, .sous-titre { margin: 0; font: 400 1.45rem Marcellus, Georgia, serif; }
.sous-titre { margin: 30px 0 12px; }
.jeu header p { margin: 4px 0 0; color: var(--doux); font-size: .95rem; }
.jeu header b { color: var(--or); }

.coffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; --bois1: #8a5a2b; --bois2: #5d3a1a; --metal: #c9a25a; }
.coffres[data-type="argent"] { --bois1: #8b8f99; --bois2: #50545e; --metal: #e8ecf2; }
.coffres[data-type="or"] { --bois1: #e8b45e; --bois2: #a06a28; --metal: #fff1c4; }
.coffre-btn { display: grid; place-items: center; aspect-ratio: 1.15; padding: 10px; border: 1px solid var(--trait); border-radius: 14px; cursor: pointer;
  background: radial-gradient(circle at 50% 70%, #efc47922, transparent 70%), #0000002e; transition: transform .15s ease, border-color .15s ease; }
/* Coffres illustrés (Figma) : flottent doucement, se soulèvent au survol, tremblent pendant l'ouverture. */
.coffre-btn { position: relative; overflow: visible; }
.coffre-img { width: 92%; height: auto; filter: drop-shadow(0 8px 12px #000b); animation: coffre-respire 3.2s ease-in-out infinite; pointer-events: none; user-select: none; }
.coffre-btn:nth-child(2) .coffre-img { animation-delay: -1s; }
.coffre-btn:nth-child(3) .coffre-img { animation-delay: -2s; }
@keyframes coffre-respire { 50% { translate: 0 -4px; } }
.coffres[data-type="argent"] .coffre-btn { background: radial-gradient(circle at 50% 70%, #9fd0ff26, transparent 70%), #0000002e; }
.coffres[data-type="or"] .coffre-btn { background: radial-gradient(circle at 50% 70%, #ffd36a33, transparent 70%), #0000002e; }
.coffre-btn:not(:disabled):hover { transform: translateY(-4px) scale(1.03); border-color: var(--or-sombre); }
.coffre-btn:not(:disabled):hover .coffre-img { filter: drop-shadow(0 8px 12px #000b) drop-shadow(0 0 14px #efc47966); }
.coffre-btn:disabled { cursor: default; opacity: .4; }
.coffre-btn:disabled .coffre-img { animation: none; }
.coffre-btn.choisi { opacity: 1; border-color: var(--or); box-shadow: 0 0 32px #efc47966; }
.coffre-btn.choisi .coffre-img { filter: drop-shadow(0 0 18px #ffd36a99); }
.coffre-btn.secoue { animation: secoue .35s ease-in-out infinite; }
@keyframes secoue { 25% { transform: rotate(-5deg) scale(1.04); } 75% { transform: rotate(5deg) scale(1.04); } }
/* Ouverture : éclat de lumière derrière le coffre, puis Kamapièces qui jaillissent et retombent. */
.coffre-btn.eclate::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff3c9cc 0%, #ffd36a66 30%, transparent 65%); animation: eclat-coffre 1.1s ease-out forwards; }
@keyframes eclat-coffre { from { opacity: 0; transform: scale(.3); } 25% { opacity: 1; } to { opacity: 0; transform: scale(1.3); } }
.coffre-btn.eclate .coffre-img { animation: coffre-saute .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes coffre-saute { 40% { transform: translateY(-14px) scale(1.12); } }
.piece-volante { position: absolute; left: 50%; top: 45%; width: 30px; height: 30px; margin: -15px 0 0 -15px; pointer-events: none; z-index: 3;
  filter: drop-shadow(0 3px 4px #0009); animation: piece-jaillit 1.1s cubic-bezier(.2, .7, .4, 1) both; }
@keyframes piece-jaillit {
  0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0); }
  15% { opacity: 1; }
  60% { opacity: 1; transform: translate(var(--x), var(--y)) scale(1) rotate(var(--r)); }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 70px)) scale(.8) rotate(var(--r)); }
}
.coffre-resultat:not([hidden]) { animation: resultat-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
/* Montant de chaque coffre une fois ouvert : le choisi en or, les deux autres dévoilés (atténués). */
.coffre-montant { position: absolute; left: 50%; bottom: 6px; translate: -50% 0; padding: 2px 10px; border-radius: 99px; font-weight: 800; font-size: .95rem;
  font-variant-numeric: tabular-nums; white-space: nowrap; color: #2a1606; background: linear-gradient(160deg, #ffe7b0, #d89c4c); box-shadow: 0 4px 12px #0008; z-index: 2; }
.coffre-btn.devoile { opacity: .62; }
.coffre-btn.devoile .coffre-img { filter: grayscale(.55) brightness(.85) drop-shadow(0 8px 12px #000b); }
.coffre-btn.devoile .coffre-montant { color: var(--texte); background: #1e150ee6; border: 1px solid var(--trait); box-shadow: none; }
/* Ouverture en direct : le montant du coffre choisi surgit, puis les deux autres coffres se dévoilent l'un après l'autre. */
.coffre-btn.revele .coffre-montant { animation: montant-pop .5s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0s) both; }
.coffre-btn.devoile.revele .coffre-img { animation: coffre-devoile .5s ease-out var(--d, 0s) both; }
@keyframes montant-pop { from { opacity: 0; transform: translateY(8px) scale(.5); } }
@keyframes coffre-devoile { from { transform: rotateY(90deg) scale(.9); opacity: .2; } }
@keyframes resultat-pop { from { opacity: 0; transform: scale(.6); } }
/* Kamapièce illustrée : porte-monnaie et encart « Tes Kamapièces valent ». */
.piece-img { flex: 0 0 auto; width: 48px; height: 48px; }
.pieces-info .piece-img { width: 58px; height: 58px; }
/* Kamapièce : lueur dorée fixe, reflet qui traverse la pièce toutes les 7 s (découpé sur sa forme exacte),
   et, autour des grandes pièces, un halo de rayons très doux qui tourne lentement. Ni clignotement ni pulsation. */
.piece-eclat { position: relative; display: inline-grid; flex: 0 0 auto; isolation: isolate; }
.piece-eclat > img { display: block; filter: drop-shadow(0 3px 6px #0008) drop-shadow(0 0 10px #efc47933); }
.piece-eclat::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  -webkit-mask: url("assets/kamapiece.svg") center / contain no-repeat; mask: url("assets/kamapiece.svg") center / contain no-repeat;
  background: linear-gradient(115deg, transparent 0 44%, #ffffff00 45.5%, #ffffffdd 50%, #ffffff00 54.5%, transparent 56% 100%) 130% 0 / 250% 100% no-repeat;
  animation: reflet-piece 7s cubic-bezier(.45, 0, .25, 1) infinite; }
.piece-eclat.rayons::before { content: ""; position: absolute; inset: -55%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #ffd36a2e 0deg 6deg, transparent 6deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 28%, transparent 68%); mask: radial-gradient(circle, #000 28%, transparent 68%);
  animation: rayons-piece 28s linear infinite; }
@keyframes reflet-piece { 0%, 72% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@keyframes rayons-piece { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .coffre-img, .coffre-resultat:not([hidden]), .piece-eclat::after, .piece-eclat.rayons::before { animation: none; } }
.coffre-resultat { margin: 0; text-align: center; color: var(--or-vif); font: 600 1.6rem Barlow, sans-serif; text-shadow: 0 0 18px #efc47966; }
.serie { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--doux); font-size: .9rem; }
.serie-jours { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.serie-jours li { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--trait); font-size: .7rem; color: var(--or); }
.serie-jours li.fait { background: linear-gradient(160deg, #ffe7b0, #d89c4c); color: #2a1606; border-color: #f7d08c; }

.choix-serveur, .choix-sens { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-sens { margin-top: 12px; }
.serveur, .sens { min-height: 42px; padding: 0 16px; border: 1px solid var(--trait); border-radius: 10px; background: #0000002e; color: var(--texte); font: 600 .95rem Barlow, sans-serif; cursor: pointer; }
.serveur.actif { border-color: var(--or); color: var(--or-vif); background: #efc4791a; }
.sens { flex: 1 1 0; font-size: 1.05rem; }
.sens.hausse:hover { border-color: #8fc25b; background: #8fc25b1f; }
.sens.baisse:hover { border-color: #ff8a7a; background: #ff8a7a1f; }
.prono-etat, .prono-dernier { margin: 0; padding: 12px 14px; border-radius: 10px; background: #0000002e; color: var(--doux); }
.prono-etat { color: var(--texte); border: 1px dashed var(--or-sombre); }

.echanges { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.echange { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icone nom" "icone prix" "bouton bouton"; gap: 4px 12px; align-items: center;
  padding: 16px; border: 1px solid var(--trait); border-radius: 14px; background: linear-gradient(160deg, var(--bois-clair), var(--bois) 80%); }
.echange-icone { grid-area: icone; font-size: 1.8rem; }
.echange-nom { grid-area: nom; }
.echange-prix { grid-area: prix; color: var(--or); font-weight: 700; }
.echange .bouton-etal { grid-area: bouton; margin-top: 8px; width: 100%; cursor: pointer; font: inherit; font-weight: 600; }
.echange .bouton-etal:disabled { cursor: not-allowed; opacity: .55; background: #0000002e; color: var(--doux); border-color: var(--trait); }
.echange.rupture { opacity: .7; }
.echange:has(.echange-kamas) { grid-template-areas: "icone nom" "icone prix" "kamas kamas" "bouton bouton"; }
.echange-kamas { grid-area: kamas; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; margin-top: 8px; }
.echange-kamas select, .echange-kamas input { min-width: 0; font: inherit; font-size: .92rem; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--trait); background: #0000003d; color: var(--texte); }
.echange-kamas select:focus-visible, .echange-kamas input:focus-visible { outline: 2px solid var(--or); outline-offset: 1px; }

.parrain { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.parrain-lien, .parrain-rang { display: grid; align-content: start; gap: 10px; padding: 24px; border: 1px solid var(--trait); border-radius: 16px;
  background: linear-gradient(160deg, var(--bois-clair), var(--bois) 70%); }
.parrain-lien p { margin: 0; color: var(--doux); }
.parrain-lien b, .parrain-rang b { color: var(--or); }
.parrain-rang strong { color: var(--or-vif); font: 400 1.7rem Marcellus, Georgia, serif; }
.parrain-rang small { color: var(--doux); }
.copie { display: flex; gap: 8px; }
.copie input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--or-sombre); border-radius: 10px; background: #0005; color: var(--or-vif); font: 600 .95rem ui-monospace, Consolas, monospace; }
.bouton-or.petit, .bouton-etal.petit { min-height: 40px; padding: 0 16px; font-size: .92rem; cursor: pointer; border: 1px solid var(--or-sombre); font-family: inherit; }
.interrupteur { display: flex; align-items: flex-start; gap: 10px; color: var(--doux); font-size: .9rem; cursor: pointer; }
.interrupteur input { width: 18px; height: 18px; margin-top: 2px; accent-color: #e0a552; }
.rangs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.rangs li { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--trait); border-radius: 12px; background: #0000002e; }
.rangs span { font-size: 1.5rem; }
.rangs strong { font: 400 1.1rem Marcellus, Georgia, serif; }
.rangs small { color: var(--doux); }

.note.haut { margin: 0 0 14px; }
.alertes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.alerte { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nom bouton" "dispo bouton"; align-items: center; gap: 2px 12px;
  padding: 14px 16px; border: 1px solid var(--trait); border-radius: 12px; background: #0000002e; }
.alerte strong { grid-area: nom; }
.alerte .dispo { grid-area: dispo; font-size: .82rem; font-weight: 600; }
.alerte .dispo.ok { color: #9fd36a; }
.alerte .dispo.out { color: #ff8a7a; }
.alerte button { grid-area: bouton; }
.alerte.active { border-color: var(--or-sombre); }
@media (max-width: 860px) {
  .jeux, .parrain, .rangs { grid-template-columns: 1fr; }
  .porte-monnaie { width: 100%; }
  .onglets { top: 60px; }
}
@media (prefers-reduced-motion: reduce) { .coffre-btn.secoue { animation: none; } .toast { animation: none; } }
/* ---------- Avis du Discord : défilement continu ---------- */
.avis { overflow: hidden; }
.defile { position: relative; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.defile + .defile { margin-top: 14px; }
.defile-piste { display: flex; gap: 16px; width: max-content; margin: 0; padding: 0; list-style: none; animation: defile var(--duree, 60s) linear infinite; }
.defile.inverse .defile-piste { animation-direction: reverse; }
.defile:hover .defile-piste, .defile:focus-within .defile-piste { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(calc(-50% - 8px)); } }
/* Carte d'avis = message Discord (thème sombre de Discord) : photo, pseudo coloré, date, texte, (modifié), réactions. */
.avis-carte { display: flex; align-items: flex-start; gap: 14px; width: 380px; padding: 14px 16px 12px; border: 1px solid #3f4147; border-radius: 10px;
  background: #313338; color: #dbdee1; font-family: "gg sans", "Segoe UI", "Noto Sans", Barlow, sans-serif; box-shadow: 0 10px 24px #0006; }
.avis-carte:hover { background: #2e3035; }
.d-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #1e1f22; }
.d-initiale { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.05rem; }
.d-corps { min-width: 0; flex: 1; }
.d-tete { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.d-nom { color: #f2f3f5; font-weight: 600; font-size: 1rem; }
.d-date { color: #949ba4; font-size: .75rem; }
.d-texte { margin: 2px 0 0; font-size: .97rem; line-height: 1.375; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.d-modifie { color: #949ba4; font-size: .66rem; }
.d-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.d-reaction { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border: 1px solid #5865f2; border-radius: 8px; background: #3c3f6e66; font-size: .9rem; }
.d-reaction img { width: 16px; height: 16px; object-fit: contain; }
.d-reaction b { color: #c9cdfb; font-size: .85rem; font-weight: 600; }
.etoiles { color: #f2c45a; letter-spacing: 2px; font-size: 1.05rem; }
/* Route du butin (fidélité), même dessin que la carte Discord. */
.route { margin: 18px 0 6px; padding: 10px 8px 4px; border: 1px solid rgba(212, 162, 76, .28); border-radius: 18px;
  background: radial-gradient(120% 140% at 50% 0%, #2a1d11 0%, #150f0a 70%); }
.route-butin { display: block; width: 100%; height: auto; overflow: visible; }
.route-butin text { font-family: 'Segoe UI', Barlow, sans-serif; paint-order: stroke; stroke: #100b07; stroke-width: 2px; stroke-linejoin: round; text-anchor: middle; }
.route-butin .route-label { font-size: 23px; font-weight: 700; }
.route-butin .route-detail { font-size: 17px; fill: #e1d2bc; }
.route-butin .route-titre { font-size: 18px; font-weight: 700; fill: #ffdc93; }
.route-butin .route-pied { font-size: 20px; font-weight: 700; fill: #f4deb7; }
.route-butin .jalon:not(.atteint) { opacity: .75; }
.route-coffre { animation: coffre-flotte 2.6s ease-in-out infinite; transform-box: fill-box; }
.route-eclat { animation: eclat 1.8s ease-in-out infinite; }
@keyframes coffre-flotte { 50% { translate: 0 -5px; } }
@keyframes eclat { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .route-coffre, .route-eclat { animation: none; } }

/* Icônes illustrées de l'espace membre (accueil) : sans pastille, l'illustration suffit. */
.avantages span.illu { background: none; box-shadow: none; border: 0; width: auto; height: 50px; justify-content: start; }
.avantages span.illu img { height: 50px; width: auto; filter: drop-shadow(0 4px 8px #0009); transition: transform .25s ease; }
.avantages article:hover span.illu img { transform: translateY(-3px) rotate(-4deg) scale(1.06); }

/* Kamapièces = argent réel au panier. */
.pieces-info { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 18px 20px; border: 1px solid var(--or-sombre); border-radius: 14px;
  background: radial-gradient(ellipse at 0 0, #3a2715, var(--bois) 70%); }
.pieces-info .piece { flex: 0 0 auto; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font: 700 1.6rem Barlow, sans-serif;
  color: #2a1606; background: radial-gradient(circle at 35% 30%, var(--or-vif), var(--or) 55%, var(--or-sombre)); box-shadow: 0 0 18px #efc47955; }
.pieces-info h3 { margin: 0 0 6px; font: 400 1.25rem Marcellus, Georgia, serif; }
.pieces-info h3 span { color: var(--or); }
.pieces-info p { margin: 0; color: var(--doux); }
/* Grade Parrain unique : carte sur toute la largeur. */
.rangs li:only-child { grid-column: 1 / -1; }

/* Remise du client connecté : prix barré + prix remisé, bandeau au-dessus de la boutique. */
.prix-barre { color: var(--doux); font-size: .55em; font-weight: 400; text-decoration-thickness: 1.5px; opacity: .85; }
.remise { color: #9fe0a0; }
.kamas-serveurs strong .prix-barre, .duo .prix-barre { font-size: .6em; }
.calcul-total strong .prix-barre { font-size: .55em; }
.ma-remise { display: flex; align-items: center; gap: 14px; margin: -6px 0 18px; padding: 12px 16px; border: 1px solid #8fc25b66; border-radius: 12px;
  background: linear-gradient(90deg, #8fc25b26, #8fc25b0d); color: var(--texte); }
.ma-remise-taux { flex: 0 0 auto; padding: 6px 12px; border-radius: 10px; background: #8fc25b; color: #10200a; font: 700 1.25rem Barlow, sans-serif; }
.ma-remise-texte { font-size: .95rem; }

/* Ventes réelles par offre (au-dessus du seuil du shop). */
.vendus { display: inline-block; padding: 2px 10px; border: 1px solid #efc47966; border-radius: 99px; background: #efc4791a; color: var(--or-vif); font-size: .8rem; font-weight: 600; }

/* Calculateur kamas. */
.calcul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 14px 0 4px; padding: 14px; border: 1px solid var(--trait); border-radius: 12px; background: #0000003d; }
.calcul label { display: flex; flex-direction: column; gap: 6px; color: var(--doux); font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.calcul select, .calcul input { width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid var(--or-sombre); border-radius: 8px; background: var(--nuit); color: var(--texte); font: 600 1rem Barlow, sans-serif; }
.calcul select:focus, .calcul input:focus { outline: 2px solid var(--or-vif); outline-offset: 1px; }
.calcul-champ { display: flex; align-items: center; gap: 8px; color: var(--texte); font-size: 1rem; }
.calcul-total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--trait); color: var(--doux); }
.calcul-total strong { color: var(--or); font-size: 1.6rem; font-weight: 600; }
.calcul-total strong.erreur { color: #f0a596; font-size: 1rem; }
.calcul small { grid-column: 1 / -1; color: var(--doux); font-size: .78rem; }

/* Achète en sécurité. */
.regles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.regles li { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--trait); border-radius: 14px; background: linear-gradient(160deg, var(--bois-clair), var(--bois) 75%); }
.regles span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 1.35rem; background: #efc4791f; border: 1px solid var(--or-sombre); }
.regles h3 { margin: 0 0 6px; font: 400 1.15rem Marcellus, Georgia, serif; }
.regles p { margin: 0; color: var(--doux); font-size: .92rem; }
.regles b { color: var(--or); }
@media (max-width: 1000px) { .regles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .regles { grid-template-columns: 1fr; } .calcul { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .defile { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .defile-piste { animation: none; }
  .defile-piste [aria-hidden="true"] { display: none; }
}

/* ---------- Accueil : espace membre et Hall des Parrains ---------- */
.avantages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.avantages article { padding: 20px; border: 1px solid var(--trait); border-radius: 14px; background: linear-gradient(160deg, var(--bois-clair), var(--bois) 75%); }
.avantages span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; font-weight: 700; color: #2a1606;
  background: radial-gradient(circle at 35% 30%, #fff3c9, #e8b45e 55%, #a06a28); box-shadow: 0 4px 14px #0007; }
.avantages h3 { margin: 14px 0 6px; font: 400 1.2rem Marcellus, Georgia, serif; }
.avantages p { margin: 0; color: var(--doux); font-size: .92rem; }
.membres-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.membres-action small { color: var(--doux); }
.hall { margin-top: 30px; padding: 22px 24px; border: 1px solid var(--or-sombre); border-radius: 16px; background: linear-gradient(160deg, #3a2814, #1e150e); }
.hall h3 { margin: 0 0 14px; font: 400 1.35rem Marcellus, Georgia, serif; color: var(--or-vif); }
.hall ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hall li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--trait); border-radius: 99px; background: #0003; }
.hall small { color: var(--or); font-weight: 600; }
@media (max-width: 1000px) { .avantages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .avantages { grid-template-columns: 1fr; } .avis-carte { width: 300px; } }

/* ==========================================================================
   Finitions visuelles (06/12/2026) : boutique équilibrée, cartes vivantes, apparitions douces.
   ========================================================================== */

/* Menu : soulignement doré au survol. */
.nav a { position: relative; padding-block: 6px; transition: color .2s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--or), transparent);
  transform: scaleX(0); transition: transform .25s ease; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

/* Engagements du haut : pastilles. */
.atouts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--trait); border-radius: 99px;
  background: #120d0999; backdrop-filter: blur(4px); color: var(--texte); }

/* Boutons dorés : reflet qui traverse au survol. */
.bouton-or { position: relative; overflow: hidden; }
.bouton-or::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, #ffffff8c 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .6s ease; pointer-events: none; }
.bouton-or:hover::after { transform: translateX(120%); }
.bouton-etal { transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.bouton-etal:hover { box-shadow: 0 6px 20px #e4a65433; }

/* Prix : chiffres alignés. */
.prix strong, .duo strong, .kamas-serveurs strong, .calcul-total strong { font-variant-numeric: tabular-nums; }

/* Cartes : légère élévation au survol (boutique, espace membre, sécurité). */
.etal, .avantages article, .regles li { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.etal:hover, .avantages article:hover, .regles li:hover { transform: translateY(-4px); border-color: var(--or-sombre);
  box-shadow: inset 0 1px 0 #ffffff12, 0 0 0 1px #efc4792e, 0 22px 44px #0009; }
.etal-vedette:hover { box-shadow: inset 0 1px 0 #ffffff12, 0 0 0 1px #efc47955, 0 24px 50px #000a, 0 0 40px #efc47922; }

/* Boutique, seconde ligne : proxy plus étroit, kamas plus large avec le calculateur à côté des tarifs (plus de vide). */
@media (min-width: 1001px) {
  .etal-proxy { grid-column: span 2 !important; }
  .etal-kamas { grid-column: span 4 !important; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 26px; align-content: start; }
  .etal-kamas > * { grid-column: 1; }
  .etal-kamas .calcul { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin: 0; }
  .etal-kamas .bouton-etal { grid-column: 1 / -1; margin-top: 6px; }
}

/* Avis : bord des cartes plus chaleureux au survol (le défilement se met déjà en pause). */
.avis-carte { transition: border-color .2s ease, transform .2s ease; }
.avis-carte:hover { border-color: #5865f2; transform: translateY(-2px); }

/* Titres de section : léger halo doré. */
.titre-section h2 { text-shadow: 0 2px 24px #efc4792b; }

/* Apparition douce au défilement (navigateurs compatibles ; sinon tout est affiché normalement). */
@supports (animation-timeline: view()) {
  .etal, .avantages article, .regles li, .etapes li, .titre-section, .parchemin, .appel, .questions details {
    animation: apparaitre linear both; animation-timeline: view(); animation-range: entry 0% entry 30%;
  }
}
@keyframes apparaitre { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .etal, .avantages article, .regles li, .etapes li, .titre-section, .parchemin, .appel, .questions details { animation: none; }
  .etal:hover, .avantages article:hover, .regles li:hover, .avis-carte:hover { transform: none; }
  .bouton-or::after { display: none; }
}

/* ==========================================================================
   Solde, invitation Discord, badges, compte de bienvenue (06/12/2026).
   ========================================================================== */
.compte { position: relative; display: flex; align-items: center; gap: 10px; }

/* Solde de Kamapièces en euros, à droite du profil. */
.solde { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border: 1px solid var(--or-sombre); border-radius: 99px;
  background: linear-gradient(160deg, #3a2814, #1e150e); color: var(--or-vif); font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none;
  box-shadow: 0 0 16px #e6a6502a; transition: transform .2s ease, box-shadow .2s ease; white-space: nowrap; }
.solde img { width: 26px; height: 26px; filter: drop-shadow(0 2px 3px #0008); }
.solde:hover { transform: translateY(-1px); box-shadow: 0 0 22px #efc47955; }

/* Bulle d'invitation sous « Se connecter » : compte certifié offert, connexion rassurante. */
.bulle { --pointe: 46px; position: absolute; top: calc(100% + 14px); right: 0; z-index: 30; width: min(340px, calc(100vw - 24px));
  padding: 16px; border: 1px solid transparent; border-radius: 18px; color: var(--texte);
  background: linear-gradient(170deg, #2e2115, #1a120c) padding-box, linear-gradient(160deg, #f7d08c, #8a6630 45%, #f7d08c55) border-box;
  box-shadow: 0 22px 50px #000c, 0 0 0 1px #00000040, 0 0 40px #efc47926;
  transform-origin: calc(100% - var(--pointe)) 0; animation: bulle-arrive .5s cubic-bezier(.3, 1.5, .5, 1) backwards; }
/* Reflet doré discret le long du bord haut. */
.bulle::after { content: ""; position: absolute; inset: 0 22px auto; height: 1px; background: linear-gradient(90deg, transparent, #ffe7b8cc, transparent); }
.bulle::before { content: ""; position: absolute; top: -7px; right: var(--pointe); width: 13px; height: 13px; rotate: 45deg; border-radius: 3px 0 0 0;
  background: #2e2115; border-left: 1px solid #f7d08c; border-top: 1px solid #f7d08c; }
.bulle-corps { display: flex; gap: 14px; align-items: center; padding-right: 18px; }
.bulle-visuel { flex: 0 0 auto; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 16px;
  background: radial-gradient(circle at 50% 60%, #efc47955, #efc47910 60%, transparent 72%), #00000033; border: 1px solid #efc47926; }
.bulle-visuel img { width: 54px; height: auto; filter: drop-shadow(0 4px 6px #0008); animation: bulle-coffre 2.6s ease-in-out infinite; }
.bulle-texte { display: grid; gap: 3px; min-width: 0; }
.bulle-etiquette { justify-self: start; padding: 2px 8px; border-radius: 99px; background: #efc4791f; color: var(--or); font-size: .68rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; }
.bulle-texte strong { color: var(--or-vif); font: 400 1.14rem/1.2 Marcellus, Georgia, serif; }
.bulle-texte > span:last-child { color: #d9ccb8; font-size: .86rem; line-height: 1.35; }
.bulle-action { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; min-height: 42px; border-radius: 11px;
  background: linear-gradient(180deg, #6873f5, #5865f2 55%, #4a55d6); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none;
  box-shadow: 0 6px 16px #5865f240, inset 0 1px 0 #ffffff33; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.bulle-action svg { width: 19px; height: 19px; fill: currentColor; }
.bulle-action:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 22px #5865f259, inset 0 1px 0 #ffffff40; }
.bulle-rassure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 11px 0 0; padding-top: 10px; border-top: 1px solid #ffffff12;
  color: var(--doux); font-size: .74rem; line-height: 1.3; text-align: center; }
.bulle-rassure svg { flex: 0 0 auto; width: 14px; height: 14px; fill: #7fd18b; }
.bulle-fermer { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: #ffffff0d; color: var(--doux); font-size: 1rem; line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
.bulle-fermer:hover { color: var(--texte); background: #ffffff1f; }
.bulle.part { animation: bulle-part .25s ease-in forwards; }
@keyframes bulle-arrive { from { opacity: 0; transform: translateY(-10px) scale(.9); } }
@keyframes bulle-part { to { opacity: 0; transform: translateY(-8px) scale(.95); } }
@keyframes bulle-coffre { 50% { transform: translateY(-3px) rotate(-3deg); } }
@media (max-width: 760px) { .bulle { position: fixed; top: 70px; right: 12px; } }

/* Invitation de l'espace membre (non connecté). */
.cadeau-invite { margin: 0; padding: 10px 16px; border: 1px solid #f7d08c88; border-radius: 99px; background: #efc4791a; color: var(--texte); }
.cadeau-invite strong { color: var(--or-vif); }
.rassure { max-width: 520px; margin: 4px 0 0; color: var(--doux); font-size: .85rem; }

/* Compte de bienvenue : message du shop. */
.bienvenue { margin: -14px 0 24px; padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.bienvenue.ok { border: 1px solid #8fc25b; background: #22301a; color: #d6f2b5; }
.bienvenue.attente { border: 1px solid var(--or-sombre); background: #efc4791a; color: var(--texte); }

/* Tableau des badges à obtenir. */
/* Tableau des badges compact : une ligne par badge (icône · nom et condition · récompense · état). */
.tableau-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.carte-badge { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 12px;
  border: 1px solid var(--trait); border-radius: 10px; background: #0000002e; transition: border-color .2s ease, background .2s ease; }
.carte-badge:hover { border-color: var(--or-sombre); }
.badge-icone { font-size: 1.35rem; line-height: 1; filter: grayscale(1) brightness(.75); opacity: .6; }
.badge-texte { display: grid; min-width: 0; }
.badge-nom { font-weight: 600; font-size: .95rem; }
.badge-condition { color: var(--doux); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-gain { padding: 1px 8px; border-radius: 99px; border: 1px solid #efc47955; background: #efc4791a; color: var(--or-vif); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-etat { width: 1.3em; text-align: center; color: var(--doux); font-size: .85rem; }
.carte-badge.obtenu { border-color: var(--or-sombre); background: #efc47912; }
.carte-badge.obtenu .badge-icone { filter: none; opacity: 1; }
.carte-badge.obtenu .badge-etat { color: #b9e38a; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .bulle, .bulle img, .bulle.part { animation: none; } .carte-badge:hover, .solde:hover { transform: none; } }

/* ==========================================================================
   Améliorations générales (06/12/2026, 2e passe) : détails de finition sur l'accueil et l'espace membre.
   ========================================================================== */
html { scrollbar-color: var(--or-sombre) var(--nuit); }
::selection { background: #efc47955; color: #fff; }

/* Chapeau sous un titre de section (aligné à gauche, pleine largeur). */
.chapeau { flex-basis: 100%; max-width: 72ch; margin: 2px 0 0; color: var(--doux); font-size: 1rem; }

/* Bulle d'invitation : s'efface quand on quitte le haut de page. */
/* Défilement : la bulle remonte vers le bouton en rétrécissant et s'efface en douceur, puis revient de même en haut de page.
   L'arrivée n'est pas figée (backwards, pas both) : sinon l'animation garde la main sur l'opacité et la bulle disparaît d'un coup. */
.bulle { transition: opacity .45s ease, translate .45s cubic-bezier(.4, 0, .2, 1), scale .45s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
.bulle.hors-vue { opacity: 0; translate: 0 -14px; scale: .92; visibility: hidden; pointer-events: none;
  transition: opacity .45s ease, translate .45s cubic-bezier(.4, 0, .2, 1), scale .45s cubic-bezier(.4, 0, .2, 1), visibility 0s .45s; }

/* Avis : lien vers le salon complet. */
.avis-suite { display: flex; justify-content: center; margin: 26px auto 0; }
.avis-suite .bouton-discord { min-height: 46px; font-size: .98rem; }

/* Encart membre de l'accueil : cadeau en avant, rassurance dessous. */
.membres-note { display: grid; gap: 3px; margin: 0; flex: 1 1 320px; }
.membres-note strong { color: var(--or-vif); font-size: 1rem; }
.membres-note span { color: var(--doux); font-size: .85rem; }

/* FAQ : question mise en avant au survol, réponse qui se déplie en douceur. */
.questions summary { transition: color .2s ease, padding-left .2s ease; }
.questions summary:hover, .questions details[open] summary { color: var(--or-vif); padding-left: 6px; }
.questions summary::after { transition: rotate .25s ease; }
.questions details[open] summary::after { rotate: 180deg; }
.questions details[open] p { animation: reponse .3s ease-out; }
@keyframes reponse { from { opacity: 0; translate: 0 -6px; } }

/* Pied de page : marque, liens, mention. */
footer.pied { display: block; margin-top: clamp(56px, 7vw, 96px); padding: 0; border-top: 1px solid var(--trait); background: linear-gradient(var(--nuit), #0b0806); }
.pied-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; padding-block: 34px 22px; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.pied-liens a { color: var(--texte); font-weight: 600; font-size: .98rem; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 28px; border-top: 1px solid #9c753626; }

/* Espace membre : onglet de la section affichée. */
.onglets a { transition: color .2s ease, border-color .2s ease, background .2s ease; }
.onglets a.actif { color: #2a1606; border-color: #f7d08c; background: linear-gradient(160deg, #ffe7b0, #d89c4c); }

/* Compte de bienvenue : message refermable. */
.bienvenue { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bienvenue-fermer { flex: 0 0 auto; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #ffffff14; color: inherit; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.bienvenue-fermer:hover { background: #ffffff29; }

/* Badges : trois colonnes, le texte tient sans être coupé. */
.tableau-badges { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* Grade Parrain : bandeau unique (couronne, titre, avantages). */
.grade-parrain { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 16px; padding: 16px 20px; border: 1px solid var(--or-sombre); border-radius: 14px;
  background: radial-gradient(ellipse at 0 0, #3a2715, var(--bois) 70%); }
.grade-parrain img { flex: 0 0 auto; width: 56px; height: 56px; filter: drop-shadow(0 4px 8px #0009); }
.grade-parrain > div { display: grid; gap: 2px; margin-right: auto; }
.grade-parrain strong { font: 400 1.3rem Marcellus, Georgia, serif; color: var(--or-vif); }
.grade-parrain small { color: var(--doux); }
.grade-parrain ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.grade-parrain li { padding: 6px 12px; border: 1px solid var(--trait); border-radius: 99px; background: #0000003d; font-size: .88rem; font-weight: 600; white-space: nowrap; }

/* Alertes : trois colonnes, le nom tient sur une ligne. */
.alertes { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.alerte strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 560px) { .pied-haut { flex-direction: column; align-items: flex-start; } .grade-parrain > div { margin-right: 0; } }
@media (prefers-reduced-motion: reduce) { .questions details[open] p { animation: none; } .bulle { transition: none; } }
/* ---------- Tableau de bord du propriétaire (admin.html) : grand format PC ---------- */
.admin-shell { max-width: 1440px; }
.admin { padding-block: 36px 70px; --s1: #c9922f; --s2: #3d8fd1; }
.admin-refus { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 70px 20px; }
.admin-refus img { border-radius: 50%; border: 1px solid var(--or-sombre); }
.admin-refus p { margin: 0 0 8px; max-width: 520px; color: var(--doux); }
.admin-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.admin-tete h1 { margin: 0; font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.02em; }
.admin-maj { margin: 6px 0 0; color: var(--doux); font-size: .9rem; }
.admin-periode { display: flex; gap: 8px; }
.admin-kpis, .admin-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 0 0 18px; padding: 0; list-style: none; }
.admin-tuiles { margin: 18px 0 0; }
.admin-tuiles.serrees { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.admin-kpi { display: grid; align-content: start; gap: 4px; padding: 16px 18px; border: 1px solid var(--trait); border-radius: 14px;
  background: linear-gradient(160deg, var(--bois-clair), var(--bois) 75%); box-shadow: inset 0 1px 0 #ffffff0d; }
.admin-kpis .admin-kpi { padding: 18px 20px; box-shadow: inset 0 1px 0 #ffffff0d, 0 12px 26px #0005; }
.admin-kpi-libelle { color: var(--doux); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.admin-kpi-valeur { color: var(--or-vif); font: 600 1.9rem/1.1 Barlow, sans-serif; font-variant-numeric: tabular-nums; }
.admin-tuiles.serrees .admin-kpi-valeur { font-size: 1.45rem; }
.admin-kpi small { color: var(--doux); font-size: .82rem; }
.admin-ecart { justify-self: start; padding: 1px 8px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: #ffffff10; color: var(--doux); }
.admin-ecart.hausse { color: #a5dd7c; background: #6fb04a22; }
.admin-ecart.baisse { color: #ff9a8a; background: #e5484d22; }
.admin-bloc { margin-bottom: 18px; }
.admin-grille { display: grid; gap: 18px; margin-bottom: 18px; }
.admin-grille.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-grille.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-carte { min-width: 0; padding: 22px 24px; border: 1px solid var(--trait); border-radius: 16px;
  background: linear-gradient(160deg, var(--bois-clair), var(--bois) 70%); box-shadow: inset 0 1px 0 #ffffff0d, 0 14px 30px #0005; }
.admin-carte h2 { margin: 0 0 4px; font-size: 1.3rem; }
.admin-carte-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 8px; }
.admin-note { margin: 0 0 12px; color: var(--doux); font-size: .85rem; }
.admin-pied { margin-top: 8px; text-align: center; }
.admin-legende { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; color: var(--doux); font-size: .88rem; }
.admin-legende li { display: flex; align-items: center; gap: 8px; }
.admin-legende i { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--s1); border-radius: 2px; }
.admin-legende i.s2 { border-top-color: var(--s2); }
.admin-legende i.tirets { border-top-style: dashed; }
.admin-graphe svg { display: block; width: 100%; height: auto; overflow: visible; }
.admin-graphe .grille { stroke: #ffffff12; stroke-width: 1; }
.admin-graphe .axe { fill: #b9a582; font: 500 12px Barlow, sans-serif; }
.admin-graphe .trait { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.admin-graphe .trait.s1 { stroke: var(--s1); stroke-width: 2.5; }
.admin-graphe .trait.s2 { stroke: var(--s2); }
.admin-graphe .trait.tirets { stroke-dasharray: 6 5; }
.admin-graphe .aire.s1 { fill: #c9922f24; stroke: none; }
.admin-graphe .point { stroke: var(--bois); stroke-width: 2; }
.admin-graphe .point.s1 { fill: var(--s1); }
.admin-graphe .point.s2 { fill: var(--s2); }
.admin-graphe .repere { stroke: #ffffff40; stroke-width: 1; }
.admin-graphe .zone { fill: transparent; cursor: crosshair; }
.admin-graphe .barre { fill: var(--s1); }
.admin-graphe .zone:hover + .barre, .admin-graphe .barre:hover { fill: #e0ab4a; }
.admin-barres, .admin-entonnoir { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.admin-barres li, .admin-entonnoir li { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 4px 12px; align-items: center; }
.admin-barre-nom { color: var(--texte); font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-piste { height: 12px; border-radius: 6px; background: #ffffff0d; overflow: hidden; }
.admin-piste i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #a8771f, var(--s1)); }
.admin-barre-val { grid-column: 2; color: var(--doux); font-size: .82rem; font-variant-numeric: tabular-nums; white-space: pre; }
.admin-entonnoir li.admin-note { display: block; margin: 4px 0 0; }
.admin-vide { display: block !important; color: var(--doux); padding: 14px; border: 1px dashed var(--trait); border-radius: 10px; }
.admin-tableau { margin-top: 12px; }
.admin-tableau summary { cursor: pointer; color: var(--or); font-weight: 600; font-size: .9rem; }
.admin-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.admin-table th, .admin-table td { padding: 8px 12px; border-bottom: 1px solid #ffffff10; text-align: right; }
.admin-table th:first-child, .admin-table td:first-child { text-align: left; }
.admin-table th { color: var(--doux); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.admin-bulle { position: fixed; z-index: 60; padding: 8px 12px; border: 1px solid var(--trait); border-radius: 10px; background: #120d09f2; color: var(--texte);
  font-size: .85rem; line-height: 1.45; white-space: pre-line; pointer-events: none; box-shadow: 0 10px 24px #000a; }
@media (max-width: 1100px) { .admin-grille.trois { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .admin-grille.deux, .admin-grille.trois { grid-template-columns: 1fr; } .page-admin .nav { display: none; } }

/* Compte offert déjà reçu sur cet appareil (compte.js) : plus d'invitation au cadeau. */
.kf-deja-offert .cadeau-invite, .kf-deja-offert .membres-note > strong { display: none; }
