/* --- VARIABLES & RESET --- */
:root
{
  --primary-color: #A61817; /* Couleur Terre Battue */
  --secondary-color: #291E63; /* Bleu Club Profond */
  --accent-color: #19915f; /* Jaune Balle Tennis */
  --text-color: #412f99;
  --light-bg: #f4f4f4;
  --white: #ffffff;
  --shadow: 0 4px 15px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
  --bg-color-0: #412f99;
  --bg-color-1: #291E63;
  --bg-color-2: #3E564E;
  --bg-color-3: #0b422b;
  --bg-color-4: #19915f;
  --main-color: #00abf0;
  --terrebattue: #912F00;
  --terrebattue2: #A61817;
  --radius: 10px;
}

*
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body
{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

a
{
  text-decoration: none;
  color: inherit;
}

ul
{
  list-style: none;
}

/* --- HEADER & NAVIGATION --- */
header
{
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 1rem 5%;
}

header.scrolled
{
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 0.5rem 5%;
}

nav
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo
{
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo span
{
  color: var(--bg-color-0);
}

header.scrolled .logo
{
  color: var(--secondary-color);
}

.nav-links
{
  display: flex;
  gap: 2rem;
}

.nav-links a
{
  color: var(--white);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after
{
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--bg-color-0);
  bottom: 0;
  left: 0;
  transition: var(--transition);
}

.nav-links a:hover::after
{
  width: 100%;
}

header.scrolled .nav-links a
{
  color: var(--secondary-color);
}

.btn-contact
{
  background: var(--bg-color-0);
  color: var(--white) !important;
  padding: 0.4rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-contact:hover
{
  background: var(--primary-color);
  transform: translateY(-2px);
}

.nav-links .btn-contact:hover::after
{
  width: 0%;
}

/* Mobile Menu Toggle */
.hamburger
{
  display: none;
  cursor: pointer;
  color: var(--white);
  font-size: 1.5rem;
}

header.scrolled .hamburger
{
  color: var(--secondary-color);
}

/* --- HERO SECTION --- */
.hero
{
  height: 100vh;
  background: linear-gradient(rgba(37, 36, 48, 0.6), rgba(36, 33, 63, 0.6)), url("../SRC/Background/index.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 1rem;
}

.hero-le-club
{
  height: 20vh;
  background: var(--secondary-color);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 1rem;
}

.hero-le-club .hero-content h1
{
  margin-top: 50px;
  padding: 0;
}

.hero-content h1
{
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero-content p
{
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-btns
{
  animation: fadeInUp 1s ease 0.4s backwards;
}

.btn
{
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: bold;
  margin: 0 0.5rem;
  transition: var(--transition);
}

.btn-primary
{
  background: var(--bg-color-0);
  color: var(--white);
  border: 2px solid var(--bg-color-0);
}

.btn-primary:hover
{
  background: transparent;
  color: var(--white); /* Reste blanc sur fond sombre */
}

.btn-outline
{
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover
{
  background: var(--white);
  color: var(--secondary-color);
}

/* club */
.page-header {
    background: linear-gradient(rgba(37, 36, 48, 0.6), rgba(36, 33, 63, 0.6)), url("../SRC/Background/le-club.jpg");
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}
.page-header h1 { font-size: 3.5rem; margin-bottom: 1rem; animation: fadeInDown 1s ease; }
.page-header p { font-size: 1.4rem; font-weight: 300; opacity: 0.9; animation: fadeInUp 1s ease; }

/* --- SECTIONS GENERIQUES --- */
section
{
  padding: 5rem 5%;
}

.section-title
{
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2
{
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after
{
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--bg-color-0);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* --- SERVICES / ACTIVITES --- */
.services-grid
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card
{
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.card.visible
{
  opacity: 1;
  transform: translateY(0);
}

.card:hover
{
  transform: translateY(-10px);
}

.card-icon
{
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.card h3
{
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* --- INFRASTRUCTURES (Chiffres) --- */
.stats
{
  background: var(--secondary-color);
  color: var(--white);
  text-align: center;
}

.stats h2
{
  margin-top: -40px;
  padding: 0;
  margin-bottom: 15px;
  font-size: 34px;
}

.stats h3
{
  margin-top: -10px;
  padding: 0;
  margin-bottom: 40px;
  font-size: 24px;
}

.stats-grid
{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
}

.stat-item h3
{
  font-size: 3rem;
  color: var(--primary-color);
}

.stat-item p
{
  font-size: 1.2rem;
  opacity: 0.9;
}

/* --- RESTAURANT & CLUB HOUSE --- */
.club-section
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.club-text
{
  flex: 1;
  min-width: 300px;
}

.club-image100
{
  flex: 1;
  min-width: 300px;
  height: 400px;
  background: url('../SRC/le-club/home.png') center/cover;
  /*box-shadow: var(--shadow);*/
}

.club-image
{
  flex: 1;
  min-width: 300px;
  height: 400px;
  background: url('../SRC/le-club/restau.png') center/cover;
  /*box-shadow: var(--shadow);*/
}

/* --- FOOTER --- */
footer
{
  background: #111;
  color: #aaa;
  padding: 3rem 5% 1rem;
}

.footer-grid
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-col h4
{
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.contact-info li
{
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a
{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.social-links a:hover
{
  background: var(--primary-color);
  color: var(--white);
}

.copyright
{
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.9rem;
}

/* --- HERO --- */
.page-header2 {
    background: linear-gradient(rgba(26, 43, 76, 0.7), rgba(227, 94, 54, 0.7)), url('../SRC/le-club/offres.png');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
}
.page-header2 h1 { font-size: 3.5rem; margin-bottom: 1rem; text-transform: uppercase; animation: fadeInDown 1s ease; }
.page-header2 p { font-size: 1.3rem; font-weight: 300; max-width: 700px; animation: fadeInUp 1s ease; }

/* --- HERO --- */
.page-header3 {
    background: linear-gradient(rgba(26, 43, 76, 0.8), rgba(26, 43, 76, 0.8)), url('../SRC/le-club/offres.png');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
}
.page-header3 h1 { font-size: 3.5rem; margin-bottom: 1rem; text-transform: uppercase; animation: fadeInDown 1s ease; }
.page-header3 p { font-size: 1.3rem; font-weight: 300; max-width: 700px; animation: fadeInUp 1s ease; }

/* --- RESPONSIVE --- */
@media (max-width: 768px)
{
  .nav-links
  {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: var(--secondary-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    color: white;
  }
  .nav-links.active
  {
    right: 0;
  }
  header.scrolled .nav-links a
  {
    color: white;
  }
  .hamburger
  {
    display: block;
    z-index: 1001;
  }
  .hero-content h1
  {
    font-size: 2.5rem;
  }
  .stats-grid
  {
    flex-direction: column;
    gap: 2rem;
  }
  .zig-zag
  {
    flex-direction: column !important;
  }
  .zig-zag-img
  {
    height: 250px; width: 100%;
  }
  .page-header h1
  {
    font-size: 2rem;
  }
  .page-header2 h1
  {
    font-size: 2rem;
  }
  .page-header3 h1
  {
    font-size: 2rem;
  }
  .container
  {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .container2
  {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .competition-container
  {
    grid-template-columns: 1fr;
  }
  .info-image
  {
    display: none; /* L'image est masquée sur mobile */
    visibility: hidden;
  }
  .photo-container img
  {
    visibility: hidden;
  }
  .encadre-plus-cent-ans
  {
    visibility: hidden;
  }
  .club-image
  {
    visibility: hidden;
  }
  .club-text
  {
    margin-top: -450px;
  }
  .club-image100
  {
    visibility: hidden;
  }
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp
{
  from
  {
    opacity: 0;
    transform: translateY(30px);
  }
  to
  {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown
{
  from
  {
    opacity: 0;
    transform: translateY(-30px);
  }
  to
  {
    opacity: 1;
    transform: translateY(0);
  }
}

.club-historique-section .texte-container p
{
  color: var(--text-color);
}

/* CONTAINER PRINCIPAL */
.team-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto;
    border-radius: 2px;
}

/* GRILLE RESPONSIVE */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* STYLE DE LA CARTE */
.member-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Effet rebond léger */
    box-shadow: var(--shadow);
    border-bottom: 4px solid transparent;
    overflow: hidden;
}

/* EFFETS AU SURVOL (HOVER) */
.member-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom: 4px solid var(--primary);
}

/* CERCLE PHOTO AVEC EFFET ZOOM */
.img-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-light);
    position: relative;
}

.member-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-card:hover img {
    transform: scale(1.15); /* Zoom sur la photo */
}

/* TEXTE */
.member-role {
    display: inline-block;
    background: rgba(227, 94, 54, 0.1);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.member-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

/* ICONES DECORATIVES */
.card-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #eee;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.member-card:hover .card-icon {
    color: var(--primary); /* L'icône s'allume au survol */
}

/* MISE EN PAGE SPECIFIQUE BUREAU (Centré si 3 personnes) */
.bureau-grid {
    justify-content: center;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Plus large sur mobile */
    }
    iframe { width: 100%; height: 100%; border: 0; }
}

.btn-back
{
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 20px;
  background: var(--bg-color-0);
  color: white;
  border-radius: 30px;
}

.btn-back:hover
{
  background: var(--terrebattue2);
}

iframe { width: 100%; height: 100%; border: 0; }

/* --- ANIMATIONS --- */
.scroll-animate { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.scroll-animate.visible { opacity: 1; transform: translateY(0); }

