/* ======== 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); }
}

/* ======== MAIN ======== */
.main-veille {
  padding: 4rem 1rem;
  background-color: #121212;
  color: #eeeeee;
}

.veille-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.veille-title {
  font-size: 2.5rem;
  color: #00ffff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.veille-intro {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #cccccc;
  margin-bottom: 3rem;
  text-align: center;
}

/* ====== Présentation Linkwarden ====== */
.linkwarden-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4rem;
}

.linkwarden-logo img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background-color: #1c1c1c;
  border: 3px solid #ffffff;
  padding: 0.5rem;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.linkwarden-logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.4);
}

.linkwarden-text {
  max-width: 550px;
}

.linkwarden-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.highlight {
  color: #00ffff;
}

/* ====== Image principale (tableau de bord) ====== */
.veille-img-full {
  text-align: center;
  margin-bottom: 3rem;
}

.veille-img-full img {
  width: 100%;
  max-width: 1100px;
  border-radius: 12px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.veille-img-full img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}

/* ====== Galerie des autres images ====== */
.veille-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}

.veille-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.veille-card img {
  width: 100%;
  height: 200px; /* hauteur fixe pour tout aligner */
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.veille-card img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.3), 0 0 28px rgba(0, 255, 255, 0.15);
}

.img-caption {
  font-style: italic;
  color: #aaaaaa;
  margin-top: 0.7rem;
  font-size: 1rem;
  padding: 0 0.5rem;
  text-align: center;
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid white;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
  transition: transform 0.3s ease;
}


/* ======== 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;
  }
}
