/* ======== 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); }
}

/* === Section principale === */
.main-contact {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  color: #eeeeee;
}

.contact-container {
  text-align: center;
}

.contact-title {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 0 8px #00ffff88;
}

.contact-description {
  font-size: 1.2rem;
  color: #cccccc;
  margin-bottom: 3rem;
}

/* === Cartes de contact === */
.contact-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-card {
  background-color: #1c1c1c;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  width: 280px;
  border: 1px solid #00ffff55;
  box-shadow: 0 0 15px #00ffff44;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00ffff88, 0 0 30px #00ffff55;
}

.contact-card img {
  height: 50px;
  margin-bottom: 1rem;
}

.contact-card h3 {
  color: #00ffff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-card .contact-btn {
  background-color: #00ffff;
  color: #000;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 15px #00ffffaa;
  transition: background-color 0.3s ease;
}

.contact-card .contact-btn:hover {
  background-color: #00e0e0;
}

/* === Localisation (carte) === */
.contact-location {
  margin-top: 5rem;
}

.contact-location h3 {
  color: #00ffff;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 6px #00ffffaa;
}

.contact-location p {
  font-size: 1.1rem;
  color: #cccccc;
  margin-bottom: 2rem;
}

.contact-map {
  width: 100%;
  max-width: 600px;
  height: 350px;
  border: none;
  border-radius: 20px;
  box-shadow: 0 0 20px #00ffff55;
}

/* === Responsive === */
@media screen and (max-width: 768px) {
  .contact-cards {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 90%;
  }

  .contact-map {
    width: 90%;
  }
}

/* ======== 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;
  }
}