/* Variables de charte communes : voir css/theme.css (chargé avant ce fichier) */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--off-white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy); }
h3 { font-size: 1.15rem; color: var(--navy); }
p { margin: 0 0 12px; color: var(--gray-600); }

a { color: inherit; text-decoration: none; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(var(--brand-rgb), 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.brand-text { font-size: 1rem; line-height: 1.1; }
.brand-text small { font-weight: 500; color: var(--gray-600); font-size: 0.75rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a { color: var(--navy); transition: color 0.2s; }
.main-nav a:hover { color: var(--lime-dark); }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--navy-soft); color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  background: var(--navy) url("../Salle_interieur.jpg") center / cover;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: rgba(12, 25, 42, 0.78);
}

.hero-inner { position: relative; z-index: 1; max-width: 720px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--lime);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
  font-weight: 800;
}
.hero h1 span { color: var(--lime); }

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--lime);
  color: var(--navy-dark);
  box-shadow: 0 10px 24px rgba(var(--lime-rgb), 0.4);
}
.btn-primary:hover { background: var(--lime-dark); }

.btn-outline {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--white); }

.btn-light {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.hero-highlight p { margin: 0; color: rgba(255, 255, 255, 0.9); }
.hero-highlight strong { color: var(--white); }

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(var(--turquoise-rgb), 0.25);
  flex-shrink: 0;
}

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--white); }

.section-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(var(--lime-rgb), 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-tag-light { background: rgba(255, 255, 255, 0.15); color: var(--lime); }

/* Club */
.club-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.club-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 8px;
}

.club-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.club-stats li {
  display: flex;
  gap: 16px;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(var(--turquoise-rgb), 0.12);
  color: var(--navy-soft);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.stat-icon svg { width: 1.5rem; height: 1.5rem; }
.club-stats strong { color: var(--navy); font-family: var(--font-heading); }
.club-stats p { margin: 4px 0 0; font-size: 0.92rem; }

/* Activités */
.activities-intro { max-width: 680px; margin-bottom: 28px; }
.schedule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.schedule-card {
  background: var(--off-white);
  border: 1px solid rgba(var(--brand-rgb), 0.08);
  border-top: 5px solid var(--navy-soft);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.schedule-card-accent { border-top-color: var(--pink); }
.schedule-label {
  display: block;
  color: var(--navy-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.schedule-card-accent .schedule-label { color: var(--pink); }
.schedule-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.schedule-card p { margin: 0; }
.section-footnote { margin-top: 24px; font-style: italic; }

/* Infos pratiques */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: left;
}
.info-icon {
  font-size: 1.8rem;
  width: 2.2rem;
  height: 2.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}
.info-icon-svg { color: var(--navy-soft); }
.info-icon-img { width: 1.8rem; height: 1.8rem; object-fit: contain; }
.info-detail { font-size: 0.88rem; font-style: italic; margin-top: 10px; }

/* Contact */
.section-contact {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
  color: var(--white);
  text-align: center;
}
.section-contact h2 { color: var(--white); }
.section-contact p { color: rgba(255, 255, 255, 0.85); max-width: 480px; margin-inline: auto; }
.contact-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.contact-inner .btn-light { margin-top: 16px; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; }

.flash-infos { padding: 18px 0; background: #fff3bd; border-bottom: 1px solid #d7ad30; color: var(--navy); }
.flash-infos[hidden] { display: none; }
.flash-infos h2 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 8px; }
.flash-info-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #f6d565; color: #705300; }
.flash-info-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flash-infos ul { margin: 0; padding-left: 20px; }
.flash-infos li { white-space: pre-line; overflow-wrap: anywhere; }
.flash-infos li + li { margin-top: 8px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .club-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 16px;
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-cta { width: 100%; text-align: center; }
  .schedule-grid { grid-template-columns: 1fr; }
  .event-date { flex-direction: row; width: 100%; height: auto; padding: 10px; gap: 8px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .brand { min-width: 0; gap: 8px; }
  .brand-logo { width: 52px; height: 52px; }
  .brand-text { font-size: 0.9rem; }
  .brand-text small { font-size: 0.68rem; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2.2rem; }
  .hero-highlight { border-radius: 8px; }
}
