/* ============================================================
   Bridge Club Porto-Vecchio — design.css
   Palette : dark forest #0f1f16 | vert #1e4a35 | or #c4a265 | crème #f5f0e8
   ============================================================ */

:root {
  --dark:        #0f1f16;
  --primary:     #1e4a35;
  --primary-mid: #26603f;
  --gold:        #c4a265;
  --gold-light:  #d6b87e;
  --cream:       #f5f0e8;
  --white:       #ffffff;
  --text:        #2a2a2a;
  --text-muted:  #666666;
  --border:      rgba(196,162,101,.25);

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Lato', sans-serif;

  --nav-h:  80px;
  --pad-xl: 110px;
  --pad-md: 72px;
  --pad-sm: 48px;
  --ease:   cubic-bezier(.25,.46,.45,.94);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ================================================================
   NAVIGATION
   ================================================================ */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease);
}
#mainNav.scrolled {
  background: rgba(255,255,255,.97);
  height: 64px;
  box-shadow: 0 2px 24px rgba(0,0,0,.08);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo img {
  height: 54px;
  width: auto;
  transition: height .4s var(--ease), filter .4s var(--ease);
  filter: brightness(0) invert(1);
}
#mainNav.scrolled .nav-logo img { height: 44px; filter: none; }

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  transition: color .3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a:focus::after { width: 100%; }
.nav-links a:hover { color: var(--gold); }
#mainNav.scrolled .nav-links a { color: var(--text); }
#mainNav.scrolled .nav-links a:hover { color: var(--gold); }

/* CTA button */
.nav-cta {
  padding: 10px 26px !important;
  background: var(--gold) !important;
  color: #fff !important;
  border-radius: 2px;
  transition: background .3s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-light) !important; color: #fff !important; }
#mainNav.scrolled .nav-cta { color: #fff !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transform-origin: center;
  transition: background .3s;
}
#mainNav.scrolled .nav-toggle span { background: var(--text); }

/* Mobile overlay menu */
#mobileMenu {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
#mobileMenu.open { opacity: 1; visibility: visible; }
#mobileMenu a {
  font-family: var(--font-serif);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  color: white;
  transition: color .3s;
}
#mobileMenu a:hover { color: var(--gold); }
#mobileMenu .mobile-cta {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold) !important;
  border: 2px solid var(--gold);
  padding: 14px 40px;
}

/* ================================================================
   HERO
   ================================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translateZ(0);
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 44%;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(10,20,14,.15) 0%,
    rgba(10,25,16,.6) 55%,
    rgba(8,18,12,.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 960px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '—';
  display: inline-block;
  margin: 0 10px;
  opacity: .6;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  color: white;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(40px);
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,.9);
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  margin-bottom: 52px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(24px);
}
.btn-outline {
  display: inline-block;
  padding: 16px 48px;
  border: 2px solid rgba(255,255,255,.7);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: border-color .3s, background .3s;
}
.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,.1);
}
.btn-gold {
  display: inline-block;
  padding: 16px 48px;
  background: var(--gold);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: background .3s;
}
.btn-gold:hover { background: var(--gold-light); }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}
.hero-scroll-text {
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(.7); }
}

/* ================================================================
   STATS BAND
   ================================================================ */
#stats {
  background: var(--dark);
  padding: 64px 48px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  text-align: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(32px);
}
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-suffix {
  font-size: 0.55em;
  font-weight: 400;
  opacity: .8;
}
.stat-divider {
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: .5;
}
.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* ================================================================
   SECTION COMMONS
   ================================================================ */
.s-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.s-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--dark);
  margin-bottom: 20px;
}
.s-lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 620px;
}
.s-header-center { text-align: center; }
.s-header-center .s-lead { margin: 0 auto; }

/* ================================================================
   LE CLUB — Features
   ================================================================ */
#leclub {
  padding: var(--pad-xl) 48px;
  background: var(--cream);
}

.leclub-header {
  max-width: 780px;
  margin: 0 auto 88px;
}

.cards-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: white;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(0,0,0,.06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  opacity: 0;
  transform: translateY(50px);
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 56px rgba(0,0,0,.13);
}
.card-img {
  height: 260px;
  overflow: hidden;
  position: relative;
}
.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.15));
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.card:hover .card-img img { transform: scale(1.07); }
.card-body {
  padding: 28px 32px 36px;
  border-top: 3px solid var(--gold);
}
.card-body h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}
.card-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ================================================================
   PARALLAX BANNER — Notre Équipe
   ================================================================ */
#equipe-banner {
  position: relative;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translateZ(0);
}
.parallax-bg {
  position: absolute;
  top: -20%;
  right: 0;
  bottom: -20%;
  left: 0;
}
.parallax-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,18,12,.5),
    rgba(8,18,12,.75)
  );
}
.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  opacity: 0;
  transform: translateY(28px);
}
.parallax-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
}
.parallax-gold-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 16px;
}
.parallax-content p {
  font-size: clamp(15px, 2vw, 18px);
  font-style: italic;
  color: rgba(255,255,255,.75);
  letter-spacing: 1px;
}

/* ================================================================
   ÉQUIPE
   ================================================================ */
#notreequipe {
  padding: 0;
  background: var(--dark);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--dark);
}

.team-card {
  position: relative;
  height: 420px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: scale(.96);
}
.team-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.team-card:hover img { transform: scale(1.08); }

/* Static name bar — always visible */
.team-name-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 64px 24px 22px;
  background: linear-gradient(to top, rgba(8,18,12,.9) 0%, transparent 100%);
  z-index: 2;
  transition: opacity .35s;
}
.team-name-bar h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}
.team-name-bar p {
  font-size: 12px;
  color: rgba(255,255,255,.0);
  font-style: italic;
  line-height: 1.4;
  transition: color .3s, opacity .3s;
  opacity: 0;
}

/* Hover overlay */
.team-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,30,18,.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  opacity: 0;
  transition: opacity .35s var(--ease);
  z-index: 3;
}
.team-card:hover .team-overlay { opacity: 1; }
.team-card:hover .team-name-bar { opacity: 0; }

.team-overlay h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}
.team-overlay-line {
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin: 10px auto;
}
.team-overlay p {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  font-style: italic;
  line-height: 1.55;
}

/* CTA card — "Et vous ?" */
.team-card-cta .team-overlay {
  opacity: 1 !important;
  background: rgba(12,40,24,.82);
}
.team-card-cta:hover .team-name-bar { opacity: 0; }
.team-card-cta .team-overlay h4 { color: var(--gold); font-size: 26px; }

/* ================================================================
   CONTACT
   ================================================================ */
#nousjoindre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.contact-map {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.contact-info {
  background: var(--primary);
  padding: 88px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.contact-info .s-label { color: var(--gold); margin-bottom: 14px; }
.contact-info .s-title { color: white; margin-bottom: 8px; }

.contact-address {
  font-size: 17px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(196,162,101,.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 15px;
}
.contact-row span {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.contact-row a {
  color: rgba(255,255,255,.85);
  transition: color .3s;
}
.contact-row a:hover { color: var(--gold); }

.contact-cta {
  display: inline-block;
  align-self: flex-start;
  padding: 14px 36px;
  background: var(--gold);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: background .3s;
  border-radius: 2px;
}
.contact-cta:hover { background: var(--gold-light); }

/* ================================================================
   FOOTER
   ================================================================ */
#mainFooter {
  background: var(--dark);
  padding: 48px 48px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.footer-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .55;
  transition: opacity .3s;
}
.footer-logo:hover img { opacity: .85; }

.footer-nav {
  display: flex;
  gap: 32px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  transition: color .3s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.3);
}
.footer-copy a { color: rgba(255,255,255,.4); transition: color .3s; }
.footer-copy a:hover { color: var(--gold); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  #nousjoindre { grid-template-columns: 1fr; }
  .contact-info { padding: 64px 40px; }
}

@media (max-width: 768px) {
  :root { --pad-xl: 72px; --nav-h: 68px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { padding: 0 24px; }
  .nav-logo img { height: 46px; }
  #mainNav.scrolled .nav-logo img { height: 38px; }

  #hero { min-height: 100svh; }

  #stats { padding: 48px 24px; }
  .stats-grid { gap: 24px; }

  #leclub { padding: var(--pad-xl) 24px; }
  .leclub-header { margin-bottom: 56px; }
  .cards-grid { grid-template-columns: 1fr; gap: 20px; }

  #equipe-banner { height: 320px; }

  .team-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .team-card { height: 300px; }
  /* On mobile, always show the overlay */
  .team-card .team-overlay { opacity: 1; background: rgba(10,30,18,.65); }
  .team-card .team-name-bar { opacity: 0; }
  /* Tap to reveal: overlay disparaît, prénom visible en bas */
  .team-card.revealed .team-overlay { opacity: 0 !important; }
  .team-card.revealed .team-name-bar { opacity: 1 !important; }

  .contact-info { padding: 48px 28px; }

  #mainFooter { padding: 40px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-nav { gap: 20px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card { height: 280px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
  #stats { padding: 40px 20px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-outline, .btn-gold { width: 100%; max-width: 280px; text-align: center; }
}

/* ================================================================
   UTILITIES
   ================================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.in-page-link {
  display: block;
  height: 0;
  overflow: hidden;
}

/* ================================================================
   COOKIE BANNER (existing script compatibility)
   ================================================================ */
.awc-cookie-banner {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
}
