@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

/* --- Variables de Couleurs --- */
:root {
  --purple-dark: #310046;
  --purple-main: #3f035b;
  --purple-light: #8e44ad;
  --yellow: #ffd700;
  --yellow-light: #fff59d;
  --white: #ffffff;
  --light-blue: #87ceeb;
}

/* --- Styles Généraux --- */
body {
  font-family: "Bebas Neue", Arial, sans-serif;
  background: linear-gradient(
    180deg,
    var(--purple-light) 5%,
    var(--purple-main) 50%,
    var(--purple-dark) 70%
  );
  min-height: 100vh;
  color: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* --- Section Header et Titres --- */
.header {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 12px 0 24px 0;
}

h1 {
  font-size: 7rem;
  letter-spacing: 0.08em;
  text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4);
  line-height: 0.85;
  margin-bottom: 20px;
  animation: glow 2s ease-in-out infinite alternate;
  position: relative;
  z-index: 20;
}

@keyframes glow {
  from {
    text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.3);
  }
  to {
    text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.5);
  }
}

h1 .yellow {
  color: var(--yellow);
}

.subtitle {
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 20;
}

.dates {
  font-size: 2.8rem;
  color: var(--yellow);
  margin-bottom: 10px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 20;
}

/* --- Robots Mascottes --- */
.robot-mascot {
  position: absolute;
  left: 50px;
  top: 20px;
  width: 150px;
  height: 150px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23ffd700"/><rect x="30" y="20" width="10" height="20" fill="%233d1e6d"/><rect x="60" y="20" width="10" height="20" fill="%233d1e6d"/><path d="M40 70 Q50 85 60 70" stroke="%233d1e6d" fill="none" stroke-width="5" stroke-linecap="round"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 10;
  animation: float 4s ease-in-out infinite alternate-reverse;
}

.robot-3d-right {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><rect x="50" y="50" width="100" height="100" fill="%2387CEEB" rx="20"/><circle cx="80" cy="80" r="10" fill="%23333"/><circle cx="120" cy="80" r="10" fill="%23333"/><path d="M70 120 Q100 140 130 120" stroke="%23333" fill="none" stroke-width="3"/></svg>')
    no-repeat center;
  opacity: 0.5;
  animation: float 4s ease-in-out infinite;
  z-index: 10;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* --- Popover pour le choix du Campus --- */
campus-selection {
  background: var(--white);
  color: var(--purple-main);
  border-radius: 30px;
  padding: 50px;
  max-width: 700px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: none;
  position: fixed;
  z-index: 1000;
}

[popover]::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.popup-content {
  text-align: center;
}

.popup-content h2 {
  font-size: 3rem;
  color: var(--purple-dark);
  margin-bottom: 20px;
}

.popup-content p {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 40px;
}

.campus-buttons {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.campus-btn {
  background: linear-gradient(
    135deg,
    var(--yellow) 0%,
    var(--yellow-light) 100%
  );
  color: var(--purple-dark);
  border: none;
  padding: 25px 50px;
  font-size: 1.6rem;
  font-family: inherit;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
  font-weight: bold;
}

.campus-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6);
}

/* --- Bouton CTA Principal --- */
.main-cta {
  text-align: center;
  margin: 60px 0;
}

.cta-button {
  background: linear-gradient(
    135deg,
    var(--yellow) 0%,
    var(--yellow-light) 100%
  );
  color: var(--purple-dark);
  border: none;
  padding: 30px 60px;
  font-size: 2rem;
  font-family: inherit;
  font-weight: bold;
  border-radius: 60px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.7);
  animation: none;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 60px 0;
  margin-top: 100px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 30px 30px 0 0;
}

.inscription-text {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--yellow);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.inscription-link {
  color: var(--yellow);
  text-decoration: none;
  font-size: 1.8rem;
  border-bottom: 4px solid var(--yellow);
  transition: all 0.3s ease;
  display: inline-block;
  padding: 5px 10px;
}

.inscription-link:hover {
  background: var(--yellow);
  color: var(--purple-dark);
  border-radius: 10px;
}

/* --- Section Formulaire HubSpot --- */
.hubspot-form-section {
  transition: opacity 0.7s ease-in-out;
  animation: slideInUp 0.8s ease forwards;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 {
    font-size: 4.5rem;
  }
  .subtitle {
    font-size: 1.4rem;
  }
  .dates {
    font-size: 2.2rem;
  }
  .campus-buttons {
    flex-direction: column;
  }
  .robot-mascot,
  .robot-3d-right {
    display: none;
  }
  .cta-button {
    font-size: 1.5rem;
    padding: 20px 40px;
  }
  #campus-selection {
    padding: 30px;
    width: 95%;
  }
  .popup-content h2 {
    font-size: 2.5rem;
  }
  .popup-content p {
    font-size: 1.1rem;
  }
  .campus-btn {
    font-size: 1.3rem;
    padding: 20px 30px;
  }
}
.campus-btn {
  transition: all 0.3s ease;
}
.campus-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
