/* Le conteneur qui gère le plein écran */
.hero-section {
  display: flex;
  justify-content: center; /* Centrage horizontal */
  align-items: center;     /* Centrage vertical */
  min-height: 100vh;       /* Prend toute la hauteur de la fenêtre */
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
}

/* Ton H1 mis à jour */
h1 {
  font-family: 'UnifrakturCook', cursive;
  /* IMPORTANT : on enlève les marges vh qui vont fausser le centrage Flexbox */
  margin: 0; 
  font-size: clamp(3rem, 12vw, 20rem);
  text-align: center;
  color: var(--neon);
  text-shadow: var(--shadow);
  animation: neonPulse 2s infinite alternate;
}

.container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-left: var(--side-margin);
  margin-right: var(--side-margin);
}

.container .card {
  position: relative;
  width: 280px;
  height: 400px;
  margin: 30px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.container .card .content {
  padding: 20px;
  text-align: center;
  transform: translateY(50px);
  transition: 0.5s;
}

.container .card:hover .content {
  transform: translateY(0);
  transition: 0.5s;
}

.container .card .content h2 {
  position: absolute;
  top: -40px;
  right: 30px;
  font-size: 8em;
  color: var(--txt-back);
  pointer-events: none;
  font-family: 'UnifrakturCook', cursive;
}

.container .card .content h3 {
  font-size: 1.8em;
  color: var(--font);
  pointer-events: none;
  z-index: 1;
  font-family: 'Momo Trust Display', sans-serif;
}

.container .card .content p {
  font-size: 1em;
  color: var(--font);
  font-weight: 300;
  font-family: 'Momo Trust Display', sans-serif;
  text-align: left;
  text-justify: inter-word;
}

.container .card .content a {
  position: relative;
  display: inline-block;
  padding: 8px 20px;
  margin-top: 20px;
  background: var(--font);
  color: var(--card-t);
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  font-family: 'Momo Trust Display', sans-serif;
}
.container-h {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 40px 60px;
  position: relative;
}

.container-h::-webkit-scrollbar {display: none;}

.container-h::before,
.container-h::after {
  content: "";
  position: fixed;
  top: 0;
  height: 100vh;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}

.container-h::before {left: 0;background: linear-gradient(to right, var(--main-bg) 0%, rgba(0,0,0,0) 100%);}
.container-h::after {right: 0;background: linear-gradient(to left, var(--main-bg) 0%, rgba(0,0,0,0) 100%);}

.container-h .card {
  position: relative;
  width: 400px;
  height: 280px;
  border-radius: 15px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  margin: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.container-h .card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transition: opacity 0.4s ease;
  border-radius: 15px;
}

.container-h .card:hover .card-bg {opacity: 0.9;}

.container-h .card .content {
  width: 55%;
  padding: 20px;
  text-align: left;
  transform: translateY(40px);
  transition: 0.5s;
  margin-right: 0;
}

.container-h .card:hover .content {transform: translateY(0);}

.container-h .card .content h3 {
  font-size: 1.6em;
  color: var(--font);
  pointer-events: none;
  font-family: 'Momo Trust Display', sans-serif;
  margin-bottom: 8px;
}

.container-h .card .content a {
  display: inline-block;
  padding: 6px 16px;
  margin-top: 14px;
  background: var(--font);
  color: var(--card-t);
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  font-family: 'Momo Trust Display', sans-serif;
}

.container-h .card .content p {
  font-size: 1em;
  color: var(--font);
  font-weight: 300;
  font-family: 'Montserrat', sans-serif;
  text-align: left;
  text-justify: inter-word;
}

/* Style de base du point LED */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px; /* Espace entre le point et le texte */
  vertical-align: middle;
}

/* Couleur Orange (En cours) */
.status-dot.orange {
  background-color: #ff9800;
  box-shadow: 0 0 8px #ff9800;
  animation: pulse-orange 1.5s infinite;
}

/* Couleur Verte (Achevé) */
.status-dot.green {
  background-color: #4caf50;
  box-shadow: 0 0 8px #4caf50;
  animation: pulse-green 1.5s infinite;
}

/* Animations de clignotement */
@keyframes pulse-orange {
  0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* Ajustement pour aligner le texte du paragraphe */
.container-h .card .content p {
  display: flex;
  align-items: center;
  margin-top: 5px;
}