/* Corps de la page */
body {
  font-family: Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  margin: 0;
  padding: 0;
  
}

/* Conteneur principal de la page */
.container {
  width: 70%;
  margin: auto;
  overflow: hidden;
  margin-top: 50px;
  position: relative;
  box-shadow: 0 0 4px 8px rgba(0, 0, 0, 0.2), 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 1px;
  background-color: #fff;
}

/* Image d'arrière-plan avec transparence réduite */
.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(images/EMGA_insigne.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 300px;
  opacity: 0.2;
  z-index: 0;
}

/* Conteneur des logos avec grille 3 colonnes */
.logo-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-left: 120px;
}

/* From Uiverse.io by Gautammsharma */ 
.circuit-wrapper {
  min-height: 100%;
  width: 100%;
  position: relative;
  background-color: white;
  padding-bottom: 20vh;
  padding-top: 10vh;
}

.circuit-background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 19px,
      rgba(75, 85, 99, 0.08) 19px,
      rgba(75, 85, 99, 0.08) 20px,
      transparent 20px,
      transparent 39px,
      rgba(75, 85, 99, 0.08) 39px,
      rgba(75, 85, 99, 0.08) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 19px,
      rgba(75, 85, 99, 0.08) 19px,
      rgba(75, 85, 99, 0.08) 20px,
      transparent 20px,
      transparent 39px,
      rgba(75, 85, 99, 0.08) 39px,
      rgba(75, 85, 99, 0.08) 40px
    ),
    radial-gradient(
      circle at 20px 20px,
      rgba(55, 65, 81, 0.12) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 40px 40px,
      rgba(55, 65, 81, 0.12) 2px,
      transparent 2px
    );
  background-size:
    40px 40px,
    40px 40px,
    40px 40px,
    40px 40px;
}

/* Responsive : logos sur petits écrans */
@media (max-width: 768px) {
  .logo-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-left: 120px;
  }
}

/* En-tête avec gradient animé */
.header-card {
  text-align: center;
  background: linear-gradient(256deg, #47d677, #cae1d2, #2edd59);
  background-size: 600% 600%;
  -webkit-animation: AnimationName 17s ease infinite;
  -moz-animation: AnimationName 17s ease infinite;
  animation: AnimationName 17s ease infinite;
  height: 7vh;
}

/* Contenu principal de l'invitation */
.content {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  text-align: center;
}

/* Style de l'en-tête du contenu */
.content-header {
  line-height: 1.2;
  color: hsl(116, 74%, 5%);
}

/* Badge pour le type de tribune */
.badge {
  width: 120px;
  height: 20px;
  text-align: center;
  background: #2e7d32;
  color: white;
  padding: 10px 25px;
  border-radius: 20px;
  font-weight: bold;
}

/* Conteneur des détails avec grille 3 colonnes */
.details {
  width: 80%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: center;
  margin: auto;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Footer avec gradient animé */
.footer {
  color: hsl(115, 94%, 41%);
  height: 3vh;
  text-align: center;
  background: linear-gradient(256deg, #47d677, #cae1d2, #2edd59);
  background-size: 600% 600%;
  -webkit-animation: AnimationName 17s ease infinite;
  -moz-animation: AnimationName 17s ease infinite;
  animation: AnimationName 17s ease infinite;
}

/* Animation du gradient pour Webkit */
@-webkit-keyframes AnimationName {
  0% {
    background-position: 0% 67%;
  }
  50% {
    background-position: 100% 34%;
  }
  100% {
    background-position: 0% 67%;
  }
}

/* Animation du gradient pour Mozilla */
@-moz-keyframes AnimationName {
  0% {
    background-position: 0% 67%;
  }
  50% {
    background-position: 100% 34%;
  }
  100% {
    background-position: 0% 67%;
  }
}

/* Animation du gradient standard */
@keyframes AnimationName {
  0% {
    background-position: 0% 67%;
  }
  50% {
    background-position: 100% 34%;
  }
  100% {
    background-position: 0% 67%;
  }
}

/* Style du badge avec marges */
.badge {
  margin-left: 50px;
  margin-right: 70px;
}

/* Titre principal */
h1 {
  font-size: 300%;
  text-shadow: #ffcc00 2px 0 10px;
  text-align: center;
  color: hsl(115, 94%, 41%);
  margin-bottom: auto;
}

/* Sous-titre */
h4 {
  text-align: center;
  color: hsl(116, 74%, 5%);
  margin-top: 0px;
}

/* Images */
img {
  width: 25%;
  height: auto;
}

/* Responsive : images sur petits écrans */
@media (max-width: 768px) {
  .img {
    width: auto;
    height: auto;
  }
}

/* Responsive : rotation de la page sur petits écrans */
@media (max-width: 768px) {
  .container {
    transform: rotate(90deg);
    transform-origin: center;
    width: 100vh;
  }
}