/* ============================================
   EXPERIENCE.CSS — Globe IT/Tech
   Portfolio Maxime Meriot
   ============================================ */

/* ── SECTION décalée à droite pour centrer le globe ── */
.page-header {
  padding-left: 60px;   /* décalage du titre "My Career" */
}

/* ── LAYOUT : globe centré horizontalement ── */
.globe-wrap {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 580px 380px;
  gap: 48px;
  margin: 24px auto 0;
  align-items: start;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.3s;
  justify-content: center;
}

/* ── STAGE ── */
.globe-stage {
  position: relative;
  width: 580px;
  height: 580px;
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(circle at 50% 50%, rgba(74,158,255,0.04) 0%, transparent 70%),
    #02050c;
  overflow: hidden;
}

#globe-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
#globe-canvas:active { cursor: grabbing; }

/* Hint */
.globe-hint {
  position: absolute;
  bottom: 16px;
  left: 18px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 4;
}

/* Deco */
.globe-deco {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--green);
  z-index: 4;
  opacity: 0.6;
  animation: blink 2.5s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 8px;
}

.globe-deco::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.5s ease-in-out infinite;
}

/* ── LABELS VILLES — SANS FOND ── */
.globe-labels {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.globe-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity 0.3s ease, color 0.3s, transform 0.3s ease, font-size 0.3s, text-shadow 0.3s;
  opacity: 0;
  text-shadow:
    0 0 4px rgba(0,0,0,0.9),
    0 0 2px rgba(0,0,0,1),
    1px 1px 0 rgba(0,0,0,0.9),
    -1px -1px 0 rgba(0,0,0,0.9);
}

.globe-label::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 1px;
  height: 8px;
  background: rgba(74,158,255,0.4);
}

.globe-label-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.globe-label--active {
  color: #fff;
  transform: translate(-50%, calc(-100% - 18px));
  font-size: 11px;
  font-weight: 500;
  text-shadow:
    0 0 8px rgba(74,158,255,0.8),
    0 0 4px rgba(0,0,0,1),
    0 0 2px rgba(0,0,0,1),
    1px 1px 0 rgba(0,0,0,0.9);
}

.globe-label--active::after {
  background: #4a9eff;
  box-shadow: 0 0 4px #4a9eff;
  height: 12px;
}

.globe-label--future.globe-label--active {
  text-shadow:
    0 0 8px rgba(255,215,0,0.9),
    0 0 4px rgba(0,0,0,1),
    0 0 2px rgba(0,0,0,1),
    1px 1px 0 rgba(0,0,0,0.9);
}

.globe-label--future.globe-label--active::after {
  background: #ffd700;
  box-shadow: 0 0 4px #ffd700;
}

/* ── PANEL ── */
.globe-panel {
  padding: 28px 26px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(0,230,118,0.03) 0%, rgba(0,230,118,0.008) 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 480px;
}

.globe-panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.globe-panel-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 12px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 24px;
  opacity: 0.5;
  animation: globePulse 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(74,158,255,0.3));
}

@keyframes globePulse {
  0%,100% { opacity: 0.45; transform: scale(1); }
  50%     { opacity: 0.8; transform: scale(1.08); }
}

.empty-text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 32px;
  font-weight: 300;
}

.empty-text-sub {
  opacity: 0.6;
}

.btn-tour {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(0,230,118,0.08);
  border: 1px solid var(--green);
  padding: 13px 30px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.btn-tour::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn-tour:hover { color: var(--bg); box-shadow: 0 0 24px rgba(0,230,118,0.4); }
.btn-tour:hover::before { transform: scaleX(1); }

.globe-panel-content { display: none; flex: 1; flex-direction: column; }
.globe-panel-content.active { display: flex; animation: fadeIn 0.35s ease; }

.step-progress { display: flex; gap: 3px; margin-bottom: 18px; }

.progress-dot {
  flex: 1;
  height: 2px;
  background: rgba(238,243,239,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}

.progress-dot.done { background: var(--green); opacity: 0.5; }
.progress-dot.current { background: var(--green); box-shadow: 0 0 6px var(--green); }

.step-counter {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.step-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.step-flag { font-size: 16px; }

.step-company {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  line-height: 1.25;
}

.step-role {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.step-dates {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.step-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 22px;
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 26px;
}

.step-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(238,243,239,0.04);
  border: 1px solid var(--border-soft);
  padding: 4px 10px;
  border-radius: 2px;
  transition: all 0.2s;
}
.step-tag:hover { color: var(--green); border-color: rgba(0,230,118,0.25); }

.step-nav { display: flex; gap: 10px; margin-top: auto; }

.step-nav button {
  flex: 1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-soft);
  padding: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.step-nav button:hover:not(:disabled) {
  color: var(--green);
  border-color: var(--green);
  background: rgba(0,230,118,0.04);
}

.step-nav button:disabled { opacity: 0.25; cursor: not-allowed; }

.step-nav button.primary {
  color: var(--green);
  border-color: var(--green);
  background: rgba(0,230,118,0.06);
}

.step-nav button.primary:hover:not(:disabled) {
  background: rgba(0,230,118,0.18);
  box-shadow: 0 0 14px rgba(0,230,118,0.2);
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .page-header { padding-left: 0; }
  .globe-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 580px;
  }
  .globe-stage, .globe-panel { width: 100%; }
}

@media (max-width: 700px) {
  .globe-stage { width: 100%; height: 90vw; max-height: 500px; }
  .globe-panel { padding: 24px 22px; }
  .step-company { font-size: 19px; }
  .globe-deco { display: none; }
}
