/* =========================================================
   Mémoire du Globe — portail d'accueil de la collection
   (s'ajoute à pages.css : couleurs, lettre, pied de page)
   Le globe en fond est le seul élément coloré : le reste reste sobre.
   ========================================================= */
body.portal { --ease: cubic-bezier(.22, 1, .36, 1); --surface: rgba(10, 14, 25, .86); padding: 0 20px 48px; background: var(--bg); overflow-x: hidden; }

/* Globe en fond, décalé à droite sur grand écran */
.pg-globe { position: fixed; inset: 0; z-index: 0; overflow: hidden; opacity: 0; transition: opacity 1.2s var(--ease); }
.pg-globe.is-ready { opacity: 1; }
.pg-globe canvas { display: block; }
.pg-veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 5, 11, .92) 0%, rgba(3, 5, 11, .55) 36%, transparent 62%),
    linear-gradient(0deg, rgba(3, 5, 11, .85), transparent 30%);
}
@media (max-width: 899px) {
  .pg-veil { background: linear-gradient(0deg, rgba(3, 5, 11, .96) 30%, rgba(3, 5, 11, .55) 70%, rgba(3, 5, 11, .3)); }
}

/* Barre de navigation */
.pg-nav {
  position: relative; z-index: 3; max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px; padding: 20px 0;
}
.pg-links { display: flex; gap: 24px; margin-right: auto; }
.pg-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s var(--ease); }
.pg-links a:hover { color: var(--ink); }
.pg-right { display: flex; align-items: center; gap: 12px; }
.pg-support { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s var(--ease); }
.pg-support svg { width: 16px; height: 16px; fill: none; stroke: var(--ember); stroke-width: 1.5; }
.pg-support:hover { color: var(--ink); }
.pg-nav .lang-switch {
  display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 12px; border-radius: 16px;
  border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; font: 500 12px/1 var(--f-display);
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.pg-nav .lang-switch:hover { color: var(--ink); border-color: rgba(255, 255, 255, .3); }
@media (max-width: 899px) {
  .pg-nav { flex-wrap: wrap; gap: 12px 20px; }
  .pg-links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; gap: 20px; }
  .pg-links::-webkit-scrollbar { display: none; }
  .pg-links a { white-space: nowrap; }
  .pg-right { margin-left: auto; }
}

.pg-wrap { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; }

/* En-tête de présentation */
.pg-hero { min-height: min(78vh, 720px); display: flex; flex-direction: column; justify-content: center; max-width: 600px; padding: 40px 0 56px; }
/* Signature : le point du logo, qui marque « le lieu » */
.pg-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0; color: var(--ink-2); font: 500 14px/1.4 var(--f-body); }
.pg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }
.pg-hero h1 { margin: 16px 0 20px; font: 500 clamp(48px, 8vw, 88px)/1 var(--f-display); letter-spacing: -.03em; }
.pg-hero h1 em { display: block; font-style: normal; font-weight: 400; color: var(--ink-2); }
.pg-lede { margin: 0; max-width: 520px; font-size: clamp(16px, 1.8vw, 18px); line-height: 1.6; color: var(--ink-2); }
.pg-stats { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 32px 0 0; padding: 0; list-style: none; }
.pg-stats strong { display: block; font: 500 28px/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pg-stats span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.pg-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.pg-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 24px;
  background: var(--ink); color: #0a0d16; text-decoration: none; font: 500 15px/1 var(--f-display);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.pg-btn:hover { background: #fff; }
.pg-btn:active { transform: scale(.98); }
.pg-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.pg-btn.alt { background: rgba(255, 255, 255, .06); color: var(--ink); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.pg-btn.alt:hover { background: rgba(255, 255, 255, .1); }

/* Choix du globe */
.pg-globes, .pg-about { scroll-margin-top: 24px; padding: 40px 0; }
.pg-globes h2, .pg-about h2 { display: block; margin: 0; font: 500 clamp(28px, 4vw, 40px)/1.1 var(--f-display); letter-spacing: -.02em; text-transform: none; color: var(--ink); }
.pg-globes h2::before, .pg-about h2::before { display: none; }
.pg-sub { margin: 12px 0 0; max-width: 620px; color: var(--ink-2); }
.pg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
@media (max-width: 1023px) { .pg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .pg-cards { grid-template-columns: 1fr; } }
.pg-card {
  --ga: var(--neon);
  display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.pg-card:hover, .pg-card:focus-visible { background: rgba(16, 21, 36, .92); border-color: var(--line-2); }
.pg-card-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.pg-card-n { color: var(--ga); font-weight: 500; }
.pg-card-count { font-variant-numeric: tabular-nums; }
.pg-card-name { font: 500 24px/1.15 var(--f-display); letter-spacing: -.02em; }
.pg-card-lede { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
/* Légende d'atlas : un point de la couleur du type sur le globe, sans pastille ni lueur */
.pg-card-types { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 4px; }
.pg-card-types i { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1.3 var(--f-body); font-style: normal; color: var(--ink-2); }
.pg-card-types i::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); }
.pg-card-ex { font-size: 13px; color: var(--muted); }
.pg-card-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; color: var(--ga); font: 500 15px/1 var(--f-display); }
.pg-card-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .18s var(--ease); }
.pg-card:hover .pg-card-cta svg { transform: translateX(4px); }
.pg-hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@media (hover: none) { .pg-hint { display: none; } }

/* Globes à venir : une ligne discrète sous la grille, plutôt qu'une carte orpheline */
.pg-soon {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  margin-top: 24px; padding: 16px 24px; border-radius: 16px; border: 1px dashed var(--line-2);
  background: rgba(10, 14, 25, .6); color: var(--ink-2); text-decoration: none; font-size: 14px;
  transition: border-color .18s var(--ease);
}
.pg-soon:hover { border-color: rgba(255, 255, 255, .3); }
.pg-soon-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; max-width: 760px; }
.pg-soon-tag { color: var(--muted); font-size: 13px; }
.pg-soon b { color: var(--ink); font: 500 16px/1.3 var(--f-display); }
.pg-soon-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 500 15px/1 var(--f-display); }
.pg-soon-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .18s var(--ease); }
.pg-soon:hover .pg-soon-cta svg { transform: translateX(4px); }

/* Qui sommes-nous */
.pg-about-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; margin-top: 16px; max-width: 980px; }
.pg-about-text p { margin: 0; color: var(--ink-2); }
@media (max-width: 799px) { .pg-about-text { grid-template-columns: 1fr; gap: 12px; } }
.pg-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
@media (max-width: 799px) { .pg-pillars { grid-template-columns: 1fr; } }
.pg-pillar { padding: 20px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.pg-pillar h3 { margin: 0 0 8px; font: 500 19px/1.2 var(--f-display); }
.pg-pillar p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.pg-pillar .pg-pillar-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.pg-pillar-links a { color: var(--neon); text-decoration: none; font-weight: 500; font-size: 14px; }
.pg-pillar-links a:hover { text-decoration: underline; }

.portal .nl { position: relative; z-index: 2; background: var(--surface); }
.portal .nl-row button { background: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); font-weight: 500; }
.portal footer { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .pg-globe, .pg-card, .pg-btn, .pg-card-cta svg, .pg-soon-cta svg { transition: none; }
}
