@import "https://fonts.googleapis.com/css?family=Montserrat:400,700";

/* Styles de la page d'accueil */
.home-page {
    background-image: url("../images/ffbadminton/4924_mondiaux2025_3emetour_gicqueldelrue.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 100vh;
  }

  .home-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Couleur bleue avec une opacité de 0.3 */
  }

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
  }

  .icon {
    max-height: 60px; /* Définissez la hauteur maximale souhaitée */
    width: auto;
    height: auto;
    position: relative;
    z-index: 1;
    margin: 25px 10px 0px 10px;
  }

  .header-icons {
    text-align: center !important;
    position: relative !important;
    z-index: 1 !important;
  }
  
/* Centrer le lien horizontalement et limiter la largeur à son contenu */
.header-icons-gamecenter {
    display: inline-block;
    text-align: center !important;
    position: relative !important;
    z-index: 1 !important;
    transform-origin: center; /* Définit le point central pour l'effet de zoom */
    transition: transform 0.3s ease-in-out; /* Transition pour l'effet de zoom */
}

/* Appliquer l'effet de zoom au survol */
.header-icons-gamecenter:hover {
    text-decoration: none !important;
    transform: scale(1.1); /* Effet de zoom */
}

/* Style pour l'image et le texte */
.header-icons-gamecenter img,
.header-icons-gamecenter h2 {
    transition: transform 0.3s ease-in-out; /* Transition pour le zoom sur les éléments individuels */
}

/* Effet de zoom spécifique à l'image et au texte */
.header-icons-gamecenter:hover img,
.header-icons-gamecenter:hover h2 {
    transform: scale(1.1); /* Effet de zoom */
}
  
.header {
  text-align: center !important;
  margin-bottom: 40px !important;
  position: relative !important;
  z-index: 1 !important;
  margin-top: 40px !important;
}

.title-big {
  font-size: 60px !important;
  color: white !important;
}

.title-small {
  font-size: 42px !important;
  color: white !important;
}

.welcome-small {
  font-size: 30px !important;
  color: white !important;
}

/* Hero section */
.hero-section{
  align-items: flex-start !important;
  display: flex !important;
  min-height: 100% !important;
  justify-content: center !important;
  padding: var(--spacing-xl) var(--spacing-l) !important;
}

/* Styles des cartes */
.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-column-gap: var(--spacing-xl);
  grid-row-gap: var(--spacing-xl);
  max-width: var(--width-container);
  width: 100%;
}

.card-grid-gamecenter{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
  grid-column-gap: var(--spacing-xxl);
  grid-row-gap: var(--spacing-xl);
  max-width: var(--width-container);
  width: 100%;
  justify-content: center;
}

.custom-card{
  list-style: none;
  position: relative;
}

.custom-card:before{
  content: '';
  display: block;
  padding-bottom: 150%;
  width: 100%;
}

.card__background{
  background-size: cover;
  background-position: center;
  border-radius: var(--spacing-l);
  bottom: 0;
  filter: brightness(0.6) saturate(1.5) contrast(0.85);
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform-origin: center;
  transition: 
    filter 200ms linear,
    transform 200ms linear;
}

.card__content{
  left: 0 !important;
  /* font-family:fantasy !important; */
  padding: var(--spacing-l) !important;
  position: absolute !important;
  top: 0 !important;
  transform-origin: center !important;
  transition: 
    filter 200ms linear,
    transform 200ms linear !important;
}

.card__category{
  color: var(--text-light) !important;
  font-size: 0.9rem !important;
  margin-bottom: var(--spacing-s) !important;
  text-transform: uppercase !important;
}

.custom-card:hover .card__content{
  transform: scale(1.05) translateZ(0);
}


.gamecenter-header {
    margin: 30px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 1 !important;
}

.gamecenter-header:hover {
  cursor: pointer !important; /* Change le curseur pour pointer */
  text-decoration: none !important; /* Supprime le soulignement du texte */
  transform: scale(1.1); /* Ajoute un effet de zoom léger */
  transition: transform 0.3s ease-in-out; /* Ajoute une transition pour le zoom */
}

.logo-image {
    display: block; /* Évite les espaces liés au display inline */
    margin: 0 auto; /* Centre l'image horizontalement */
    padding: 0; /* Supprime tout éventuel espace interne */
    border: none; /* Supprime tout éventuel contour */
    width: 50%;
    max-width: 700px; /* Assure la responsivité */
    height: auto; /* Maintient les proportions */
}

.custom-card:hover .card__background{
  transform: scale(1.05) translateZ(0);
}

.card-grid:hover > .custom-card:not(:hover) .card__background{
  filter: brightness(0.5) saturate(0) contrast(1.2) blur(20px);
}

.card-grid-gamecenter:hover > .custom-card:not(:hover) .card__background{
  filter: brightness(0.5) saturate(0) contrast(1.2) blur(20px);
}

.card-grid:hover > .custom-card:not(:hover) .card__heading {
    opacity: 0.25;
}

.card__heading{
  color: var(--text-lighter) !important;
  font-size: 1.9rem !important;
  /* font-family:fantasy !important; */
  text-shadow: 2px 2px 20px rgba(0,0,0,0.2) !important;
  line-height: 1.4 !important;
  word-spacing: 0vw !important;
  text-transform: uppercase !important;

  /* needed so ::before aligns left relative to the heading block */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card__heading:before {
    background-color: var(--ffbad-red) !important;
    border-radius: 0.25rem !important;
    content: '' !important;
    display: block !important;
    height: 0.25rem !important;
    width: 42px !important;
    margin-bottom: .25rem !important;
}

/* .card__heading::before {
  content: "";
  display: block;
  height: 1rem;
  width: 2rem;
  margin-bottom: .25rem;

  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 21'%3E%3Cpath fill='%23d52b1e' d='M55.92,4.96v13.73C5.15,20.73.05,14.86.05,14.86-1.42-4.76,29.37-1.42,55.92,4.96Z'/%3E%3C/svg%3E");
} */

.card__heading--white::before {
  background-color: var(--ffbad-white) !important;
  /* background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 21'%3E%3Cpath fill='%23ffffff' d='M55.92,4.96v13.73C5.15,20.73.05,14.86.05,14.86-1.42-4.76,29.37-1.42,55.92,4.96Z'/%3E%3C/svg%3E"); */
}

/* All SVGs turn white on hover of the container */
.card-grid:hover .custom-card .card__heading::before {
  background-color: var(--ffbad-white) !important;
  /* background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 21'%3E%3Cpath fill='%23ffffff' d='M55.92,4.96v13.73C5.15,20.73.05,14.86.05,14.86-1.42-4.76,29.37-1.42,55.92,4.96Z'/%3E%3C/svg%3E"); */
}

/* BUT the hovered card keeps the red icon */
.card-grid:hover .custom-card:hover .card__heading::before {
  background-color: var(--ffbad-red) !important;
  /* background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 21'%3E%3Cpath fill='%23d52b1e' d='M55.92,4.96v13.73C5.15,20.73.05,14.86.05,14.86-1.42-4.76,29.37-1.42,55.92,4.96Z'/%3E%3C/svg%3E"); */
}


/* ── Hovered card: full opacity, text turns red ── */
/* .card-grid:hover > .custom-card:hover .card__heading {
    opacity: 1;
    color: var(--ffbad-red) !important;
} */

/* .card__heading:before {
    background-color: var(--ffbad-red, #D52B1E) !important;
    border-radius: 0.25rem !important;
    content: '' !important;
    display: block !important;
    height: 0.25rem !important;
    width: 42px !important;
    margin-bottom: .25rem !important;
} */

