@import url('couleur.css');
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

/* --- GLOBALE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Share Tech Mono', monospace;
  background: linear-gradient(135deg, #001a00, #000000, #002200);
  background-size: 400% 400%;
  animation: bgMove 12s ease infinite;
  color: var(--color-neon);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: 50px !important;
}

@keyframes bgMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* --- FENÊTRE PRINCIPALE --- */
.vm-window {
  background: rgba(5, 10, 5, 0.8);
  border: 1px solid var(--color-neon);
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.2);
  border-radius: 10px;
  max-width: 1000px;
  width: 100%;
  overflow: hidden;
  transition: all 0.5s ease;
  backdrop-filter: blur(4px);
  animation: appear 1s ease forwards;
}

.vm-window:hover {
  transform: scale(1.02);
  box-shadow: 0 0 60px rgba(57, 255, 20, 0.4);
}

@keyframes appear {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- EN-TÊTE --- */
.vm-header {
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--color-neon);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-neon);
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  text-shadow: 0 0 8px var(--color-neon);
}

.vm-header .dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-neon);
  opacity: 0.7;
  box-shadow: 0 0 8px var(--color-neon);
  transition: opacity 0.3s;
}

.dot:hover {
  opacity: 1;
}

/* --- CORPS --- */
.vm-body {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.text-section {
  flex: 2 1 400px;
  position: relative;
}

.terminal-text {
  background-color: rgba(0, 0, 0, 0.85);
  border: 1px dashed var(--color-neon);
  padding: 1.2rem;
  border-radius: 6px;
  min-height: 320px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  box-shadow: inset 0 0 15px var(--color-card);
  animation: flicker 1.5s infinite alternate;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
}

.terminal-text::after {
  content: "_";
  animation: blink 0.8s infinite;
  color: var(--color-neon);
}

@keyframes blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes flicker {
  0%   { box-shadow: inset 0 0 10px var(--color-card); }
  100% { box-shadow: inset 0 0 20px #005500; }
}

/* --- PHOTO --- */
.photo-section {
  flex: 1.2;
  min-width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.photo-section img {
  display: block;
  margin: auto;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-neon);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.photo-section img:hover {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 0 50px rgba(57, 255, 20, 0.6);
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.9);
  color: var(--color-neon);
  border-top: 1px solid var(--color-neon);
  text-shadow: 0 0 8px var(--color-neon);
  letter-spacing: 1px;
}

/* --- BOUTON SKIP --- */
.skip-button {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(57, 255, 20, 0.2);
  border: 1px solid var(--color-neon);
  color: var(--color-neon);
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 5px;
  text-shadow: 0 0 6px var(--color-neon);
  backdrop-filter: blur(3px);
  transition: 0.3s;
}

.skip-button:hover {
  background: rgba(26, 255, 122, 0.4);
  transform: scale(1.05);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .vm-body { gap: 1rem; padding: 1.5rem; }
}

@media (max-width: 768px) {
  .vm-body { flex-direction: column; padding: 1rem; }
  .text-section, .photo-section { flex: 1 1 100%; text-align: center; }
  .terminal-text { min-height: 250px; font-size: 0.9rem; }
  .photo-section img { max-width: 150px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .terminal-text { font-size: 0.85rem; min-height: 200px; }
  .photo-section img { max-width: 120px; }
  .vm-window { margin: 10px; border-radius: 6px; padding: 0; }
  .skip-button { bottom: 5px; right: 5px; padding: 5px 10px; }
}