/*
Theme Name: BDA On Fire
Theme URI: http://example.com/bdaonfire
Author: Louise Peridy
Description: Thème enfant de Twenty Twenty-Five pour le site BDA ESIEE
Template: twentytwentyfive
Version: 1.0
Text Domain: bdaonfire
*/

/* --- GLOBAUX --- */
p {
  text-align: justify;
}

.h3-home {
  text-align: center;
  margin-bottom: 1rem;
  margin-top: 3rem;
}

/* --- TITLE HOMEPAGE --- */
body.home h1.wp-block-post-title {
  display: none;
}

/* --- HEADER --- */
header {
	padding-top: 25px;
}

/* --- CHECKOUT --- */
#wc-guest-checkout-notice {
    display: none !important;
}

.wc-block-components-address-form__email {
    margin-bottom: -30px !important;
}


/* --- BANNIÈRE PRINCIPALE --- */
.bda-banner-wrapper {
  overflow: visible;
  max-width: 1200px;
  border-radius: 30px;
}

.bda-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 30px;
  padding-left: 30px;
}

.bda-banner-content h1 {
  margin-bottom: 20px;
}

.bda-banner-content p {
  font-weight: 500;
  margin-bottom: 25px;
}

/* --- CLUB GRID --- */
.club-grid {
	display: flex;
    flex-wrap: wrap;
  max-width: 1000px;
  padding: 10px 20px;
	gap: 12px;
	justify-content: center;
}

.club-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.club-card {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1 / 1;
  perspective: 1200px;
  transition: transform 0.3s ease;
}

.club-card:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.club-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  border-radius: 50%;
}

/* Faces des cartes */
.club-front,
.club-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.club-front img {
  width: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.club-back {
  background: #071836;
  color: #F4F2F3;
  transform: rotateY(180deg);
  text-align: center;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  padding: 5px;
}

@media (hover: hover) and (pointer: fine) {
  .club-card:hover .club-inner {
    transform: rotateY(180deg);
  }
}

.club-inner.flipped {
  transform: rotateY(180deg);
}

/* --- SECTION INTRO --- */
.bda-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 80px;
  flex-wrap: wrap;
  max-width: 1200px;
}

.bda-text {
  flex: 1;
  line-height: 1.6;
  background: #FAFAFA;
  padding: 20px;
  border-radius: 30px;
}

/* --- CARROUSEL --- */
.bda-carousel {
  flex: 1;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-track {
  display: flex;
  animation: slide 20s linear infinite;
  align-items: center;
}

.carousel-track img {
  width: 250px;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}

@keyframes slide {
  0% { transform: translateX(0); }
  25% { transform: translateX(-25%); }
  50% { transform: translateX(-50%); }
  75% { transform: translateX(-75%); }
  100% { transform: translateX(0); }
}


/* --- SECTION COTISATION & RÉSEAUX --- */
.bda-support-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem auto;
  flex-wrap: wrap;
  max-width: 1200px;
}

/* Cotisation homepage */
.bda-cotisation {
  flex: 1 1 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 30px;
  max-width: 480px;
  background: #fff;
	justify-content: center;
}

.bda-cotisation img {
  max-width: 300px;
  height: auto;
  margin-bottom: 15px;
}

.bda-cotisation h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.bda-cotisation p {
  max-width: 90%;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.5;
}

/* Cotisation pages club */
.social-club {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 25px;
  gap: 15px;
}

.bda-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #4100F5;
  color: #fff;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(65, 0, 245, 0.2);
  transition: all 0.25s ease;
}

.bda-btn:hover {
  background-color: #2e00b8;
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(65, 0, 245, 0.3);
}

/* Bouton cotisation */
.bda-cotisation a {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 8px;
  background: #0073e6;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease-in-out;
}

.bda-cotisation a:hover {
  background: #005bb5;
}

/* Réseaux sociaux */
.bda-socials {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 30px;
  padding: 20px;
  background: #fff;
  max-width: 550px;
	justify-content: center;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.social-icons a img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s;
}

.social-icons a img:hover {
  transform: scale(1.1);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .club-card {
    max-width: 150px;
  }
}

@media (max-width: 768px) {
  .bda-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bda-carousel {
    max-width: 90%;
  }

  .carousel-track img {
    width: 100%;
    height: auto;
  }

  .club-grid {
	  display: flex;
    flex-wrap: wrap;
    justify-content: center;
	  gap: 12px;
  }

  .club-card {
    width: 100px;
    height: 100px;
    max-width: 100%;
  }

  .bda-support-social {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .bda-cotisation,
  .bda-socials {
    max-width: 95%;
    padding: 15px;
  }
}

@media (max-width: 600px) {
  .club-grid {
	  display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .club-card {
    width: 100px;
    height: 100px;
    max-width: 100%;
  }

  .bda-cotisation,
  .bda-socials {
    max-width: 100%;
    padding: 12px;
    border-radius: 20px;
  }

  .bda-cotisation h2,
  .bda-socials h2 {
    font-size: 1.2rem;
  }

  .bda-cotisation p {
    font-size: 0.9rem;
  }
}
