



/*  Corps */
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #2c3e50;
  min-height: 100vh;
  background: linear-gradient(120deg, #a1c4fd, #c2e9fb, #fef9c3, #ffe5d9);
  background-size: 600% 600%;
  animation: gradientBG 10s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}



/*  Fond SVG style routage  */
/* ---------------------------------------------------------------------------------------------------------------------  */
.background-svg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.25;
}
.trace {
  stroke-dasharray: 10 14;
  animation: signalFlow 6s linear infinite;
}
.nodes circle {
  fill: #34a853;
  animation: blinkNode 2.5s infinite alternate;
}
@keyframes signalFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -300; }
}
@keyframes blinkNode {
  from { opacity: 0.3; r: 3; }
  to { opacity: 1; r: 6; }
}
/* ---------------------------------------------------------------------------------------------------------------------  */



/*  Boutons  */
/* ---------------------------------------------------------------------------------------------------------------------  */
.menu {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 12px;
}
.menu .btn {
  padding: 10px 18px;
  background-color: #1a73e8;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
}
.menu .btn:hover {
  background-color: #1557b0;
  transform: scale(1.05);
}
/* ---------------------------------------------------------------------------------------------------------------------  */



/*  Titre  */
.typing-title {
  font-size: 3em;
  color: #1a73e8;
  white-space: nowrap;
  overflow: hidden;
  border-right: .15em solid #1a73e8;
  width: 0;
  margin: 100px auto 40px auto;
  text-align: center;
  animation: typing 2.5s steps(20, end) forwards, blink 0.7s step-end infinite alternate;
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink {
  50% { border-color: transparent; }
}



/*  Bulles  */
/* ---------------------------------------------------------------------------------------------------------------------  */
.bulles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
}

.bulle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8, #8dc69d);
  background-size: 200% 200%;
  animation: float 3s ease-in-out infinite, gradientShift 6s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2), inset 0 0 10px rgba(255,255,255,0.2);
}

.bulle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(26,115,232,0.6);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* ---------------------------------------------------------------------------------------------------------------------  */



/*  Bulles deroulante */
#details {
  margin-top: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  background: rgba(255,255,255,0.95);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: none;
  animation: slideDown 0.6s ease-out;
}

#details h2 {
  color: #1a73e8;
  margin-top: 0;
}

.intro {
  font-size: 1.2em;
  line-height: 1.8;
  color: #2c3e50;
  text-align: justify; 
  margin: 0 auto;
  max-width: 800px;
  padding: 15px 20px;
}
@keyframes slideDown {
  from { 
    opacity: 0; 
    transform: translateY(-20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0);     
  }
}

/* ------------------------------------------------------------------------------------------------ */
/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.85);
    text-align: center;
    padding: 8px 0;
    font-size: 0.9em;
    color: #333;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

footer a {
    color: #1a73e8;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
