/* ======== GLOBAL ======== */
body {
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #eeeeee;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
}

/* ======== HEADER ======== */
.main-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  margin: 2rem auto;
  max-width: 850px;
  background-color: #1c1c1c;
  border-radius: 50px;
  z-index: 0;
  overflow: hidden;
  border: 1px solid #00ffff55;
  box-shadow: 0 0 12px #00ffff44;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 12px;
  padding: 0.2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.logo img {
  height: 100%;
  width: auto;
  border-radius: 8px;
}

.logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px #00ffff, 0 0 16px #00ffff88;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #eeeeee;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00ffff;
}

.contact-btn {
  background-color: #00ffff;
  color: #000;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  box-shadow: 0 0 20px #00ffff88, 0 0 28px #00ffff55;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: #00e0e0;
}

/* Balle animée */
.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #00ffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ffff, 0 0 18px #00ffffaa;
  animation: circuitPath 4s linear infinite;
  z-index: 2;
}

@keyframes circuitPath {
  0%   { top: 0; left: 0; transform: translate(0, 0); }
  25%  { top: 0; left: 100%; transform: translate(-100%, 0); }
  50%  { top: 100%; left: 100%; transform: translate(-100%, -100%); }
  75%  { top: 100%; left: 0; transform: translate(0, -100%); }
  100% { top: 0; left: 0; transform: translate(0, 0); }
}

/* ====== Effet machine à écrire ====== */
.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #00ffff;
  width: 0;
  animation: typing 3s steps(44, end) forwards, blink 0.75s step-end infinite;
}

.typewriter-placeholder {
  visibility: hidden;
  font-size: 2rem;
  font-weight: 700;
  height: 0;
  margin-bottom: -2rem;
}

@keyframes typing {
  from { width: 0 }
  to { width: 33.5ch; }
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #00ffff; }
}

/* ======== MAIN ======== */
.main-presentation {
  padding: 4rem 1rem;
  display: flex;
  justify-content: center;
  background-color: #121212;
}

.presentation-container {
  max-width: 800px;
  color: #eeeeee;
  text-align: center;
  padding: 2rem;
}

.presentation-photo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  border: 4px solid #00ffff;
  box-shadow: 0 0 14px #00ffff88;
  transition: transform 0.6s ease;
}

.presentation-photo:hover {
  transform: rotate(360deg);
}

.presentation-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2rem;
}

.presentation-text {
  font-size: 1.05rem;
  color: #bbbbbb;
  margin-bottom: 2rem;
}

.presentation-quote {
  background-color: #1e1e1e;
  border-left: 5px solid #00ffff;
  padding: 1rem 1.5rem;
  font-style: italic;
  font-size: 0.95rem;
  color: #00c0c0;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 0 10px #00ffff33;
}

/* ======== FOOTER ======== */
.site-footer {
  padding: 2rem 1rem;
  background-color: #1c1c1c;
  text-align: center;
  border-top: 1px solid #2e2e2e;
  box-shadow: 0 -4px 12px #00ffff33;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.social-icons a img {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px #00ffffcc);
}

.copyright {
  color: #aeaeae;
  font-size: 0.875rem;
}

/* ======== RESPONSIVE ======== */
@media screen and (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    max-width: 95%;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
  }

  .contact-btn {
    align-self: stretch;
    text-align: center;
    width: 100%;
  }

  .spark {
    display: none;
  }
}
