/* ======================================================
   SHARE CARD EXPORT — CSS ISOLÉ (AUCUN EFFET DE BORD)
====================================================== */

/* =========================
   RACINE & VARIABLES LOCALES
========================= */
.share-card-export {
  --font-title: 'Bungee', system-ui, sans-serif;
  --font-text: 'Asap', system-ui, sans-serif;

  position: relative;
  width: 600px;
  height: 926px;

  background: #ffffff;
  color: #2e2e2e;
  padding: 12px;

  border-radius: 18px;
  overflow: hidden;

  font-family: var(--font-text);
}

/* =========================
   RESET LOCAL UNIQUEMENT
========================= */
.share-card-export *,
.share-card-export *::before,
.share-card-export *::after {
  box-sizing: border-box;
}

/* =========================
   TYPOGRAPHIE GLOBALE CARTE
========================= */
.share-card-export h1,
.share-card-export h2,
.share-card-export h3,
.share-card-export p,
.share-card-export li,
.share-card-export span,
.share-card-export a {
  font-family: var(--font-text);
}

/* =========================
   LOGO / SVG
========================= */
.share-card-export .share-logo {
  width: 100%;
  max-width: 480px;
  padding: 0 6px 0 6px;
  margin-top: -6px;
  height: 120px;
}

.share-card-export .share-logo svg {
  display: block;
  width: 520px;
  height: 140px;
}

.share-logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* =========================
   HEADER
========================= */
.share-card-export .share-header {
  position: relative;
  height: 175px;
  padding: 18px 24px;

  background: #1d6b59;
  color: #ffffff;
  border-radius: 12px 12px 0 0;
}

.share-card-export .share-session {
  font-size: 16px;
  opacity: 0.9;
}

.share-card-export .share-session .player-name {
  font-weight: 700;
}

.share-card-export .share-date {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 14px;
  opacity: 0.9;
}

.share-card-export .share-title {
  margin-top: 18px;
  line-height: 1;
}

.share-card-export .share-title h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 1px;
}

.share-card-export .share-title h2 {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* =========================
   PROGRESSION
========================= */
.share-card-export .share-progress {
  height: 60px;
  padding: 14px 24px 0;
  background: #ffffff;
}

.share-card-export .progress-bar {
  width: 100%;
  height: 12px;
  background: #d6e6df;
  border-radius: 999px;
  overflow: hidden;
}

.share-card-export .progress-fill {
  height: 100%;
  background: rgba(0, 160, 166, 0.75);
  border-radius: 999px;
}

.share-card-export .progress-label {
  margin-top: 8px;
  font-size: 15px;
}

/* =========================
   SCORE
========================= */
.share-card-export .share-score {
  height: 90px;
  padding: 0 24px 14px;
  display: flex;
  justify-content: space-around;

  background: #ffffff;
  color: #1d6b59;
}

.share-card-export .score-item {
  text-align: center;
}

.share-card-export .score-value {
  display: block;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.share-card-export .score-label {
  font-size: 18px;
  opacity: 0.85;
}

/* =========================
   CONTENU PRINCIPAL
========================= */
.share-card-export .share-content {
  position: absolute;
  top: 335px;
  left: 12px;
  right: 12px;
  height: 578px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;

  padding: 16px 24px;
  background: #eaf3ef;

  overflow-x: hidden;
  overflow-y: visible;

  border-radius: 0 0 18px 18px;
}

/* =========================
   FAMILLES & SUCCÈS
========================= */
.share-card-export h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 800;
  color: #1d6b59;
}

.share-card-export ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.share-card-export .share-families li {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  margin-bottom: 6px;
}

.share-card-export .share-achievements li {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.25;
}

.share-card-export .share-achievements strong {
  font-size: 18px;
  font-weight: 700;
}

/* =========================
   DERNIÈRE CARTE
========================= */

/* 🔹 Zone globale dernière carte */
.share-card-export .share-last-card {
  margin-top: 20px;
  max-width: 180px;
}

/* Wrapper pour la rotation / shadow */
.share-card-export .last-card-wrapper {
  position: relative;
  overflow: visible;
  z-index: 5;
}

/* Conteneur image + meta */
.share-card-export .last-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

/* Carte graphique */
.share-card-export .last-card-image {
  width: 150px;
  height: 230px;
  background: #ffffff;
  border-radius: 8px;
  border: 4px solid #ffffff;
  box-sizing: content-box;
  transform: rotate(-3deg);
  transform-origin: center;
}

/* Image interne */
.share-card-export .last-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* =========================
   MÉTADONNÉES (CLAMP)
========================= */

.share-card-export .last-card-meta {
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  max-width: 550px;
  overflow: hidden;
}

.share-card-export .last-card-meta .card-title {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-card-export .card-author-year {
  display: block;
  font-size: 14px;
  opacity: 0.85;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}