/*
Theme Name: Vĩnh Xuân
Theme URI: https://vinhxuan.fr
Author: Sutunam
Description: Thème officiel Vĩnh Xuân Quyền Paris
Version: 1.0.0
Text Domain: vinhxuan
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:     #0a0a0a;
  --dark:      #141414;
  --mid:       #3a3a3a;
  --muted:     #6b6b6b;
  --faint:     #a0a0a0;
  --light:     #e8e8e8;
  --off-white: #f2f0ed;
  --white:     #ffffff;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
  --max:       1240px;
  --pad:       clamp(20px, 5vw, 48px);
  --radius:    16px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--sans); background: var(--off-white); color: var(--black); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad);
  background: rgba(10,10,10,0.95); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 36px; height: 36px; object-fit: contain; filter: invert(1); }
.nav-logo-text { font-family: var(--serif); font-size: 1rem; color: #fff; letter-spacing: 0.04em; line-height: 1.2; }
.nav-logo-sub { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.4); display: block; font-family: var(--sans); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.55); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-cta-item { margin-left: 8px; }
.nav-cta { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--black); background: #fff; padding: 9px 20px; border-radius: 100px; text-decoration: none; font-weight: 600; transition: background 0.2s; white-space: nowrap; }
.nav-cta:hover { background: var(--light); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: #fff; margin: 5px 0; }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; flex-shrink: 0; }
  .nav-logo { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .nav-logo-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-logo-sub { display: none; }
  nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); padding: 24px var(--pad); gap: 20px; }
  nav.open .nav-cta-item { margin-left: 0; }
  nav.open .nav-cta { display: block; text-align: center; background: #fff; color: var(--black); border-radius: 100px; padding: 12px 20px; }
}

/* ─── SHARED ─── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section-eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.section-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--muted); }
h2.display { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 300; line-height: 1.08; color: var(--black); }
h2.display em { font-style: italic; }
h2.display.light { color: #fff; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; padding: 13px 26px; border-radius: 100px; text-decoration: none; transition: all 0.22s; white-space: nowrap; }
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { background: var(--mid); }
.btn-white { background: #fff; color: var(--black); }
.btn-white:hover { background: var(--light); }
.btn-outline-white { border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-black { border: 1px solid var(--black); color: var(--black); }
.btn-outline-black:hover { background: var(--black); color: #fff; }
.btn-ghost { color: var(--muted); border-bottom: 1px solid var(--light); padding-bottom: 2px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; text-decoration: none; transition: all 0.2s; }
.btn-ghost:hover { color: var(--black); border-color: var(--black); }

/* ─── HERO ─── */
#hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 100px var(--pad) 80px;
  background: var(--black);
}
.hero-img {
  position: absolute; inset: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  opacity: 0.35;
}
.hero-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 60%, rgba(10,10,10,0.2) 100%); }
.hero-logo-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  opacity: 0.04; pointer-events: none;
}
.hero-logo-center img { width: clamp(300px, 50vw, 600px); filter: invert(1); }
.hero-content { position: relative; max-width: 720px; }
.hero-tag { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.7); font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.hero-tag::before { content: ''; width: 32px; height: 1px; background: rgba(255,255,255,0.5); }
h1.hero-h1 { font-family: var(--serif); font-size: clamp(3.2rem, 9vw, 7rem); font-weight: 300; line-height: 0.95; color: #fff; letter-spacing: -0.02em; margin-bottom: 6px; }
h1.hero-h1 em { font-style: italic; color: rgba(255,255,255,0.75); }
.hero-desc { font-size: clamp(0.9rem, 2vw, 1.05rem); color: rgba(255,255,255,0.7); line-height: 1.75; max-width: 500px; margin: 28px 0 36px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-sidebar {
  position: absolute; right: var(--pad); bottom: 80px;
  display: flex; flex-direction: column; gap: 24px; align-items: flex-end;
}
.hero-stat { text-align: right; }
.hero-stat-n { font-family: var(--serif); font-size: 2.2rem; color: #fff; line-height: 1; }
.hero-stat-l { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255,255,255,0.55); margin-top: 3px; }
.hero-scroll { position: absolute; bottom: 36px; right: var(--pad); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255,255,255,0.5); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll::after { content: ''; width: 1px; height: 44px; background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.3} 50%{opacity:1} }
@media (max-width: 600px) {
  .hero-sidebar { display: none; }
  .hero-img { background-position: 35% center; }
}

/* ─── PILLARS ─── */
#pillars { background: var(--white); border-bottom: 1px solid var(--light); }
.pillars-grid { display: grid; grid-template-columns: repeat(4,1fr); }
@media (max-width: 700px) { .pillars-grid { grid-template-columns: repeat(2,1fr); } }
.pillar { padding: 40px 32px; border-right: 1px solid var(--light); }
.pillar:last-child { border-right: none; }
.pillar-icon { font-size: 1.4rem; margin-bottom: 14px; color: var(--mid); }
.pillar h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: var(--black); margin-bottom: 8px; }
.pillar p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }

/* ─── ABOUT ─── */
#about { padding: 120px 0; background: var(--off-white); }
.about-2col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 80px; align-items: start; }
@media (max-width: 860px) { .about-2col { grid-template-columns: minmax(0,1fr); gap: 48px; } }
.about-text p { font-size: 1rem; color: var(--mid); line-height: 1.85; margin-bottom: 18px; }
.about-text strong { color: var(--black); }
.about-text em { font-style: italic; }
.about-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.about-pull {
  background: var(--black); color: #fff; padding: 48px; border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.about-pull::before { content: '\201C'; font-family: var(--serif); font-size: 14rem; line-height: 0.75; color: rgba(255,255,255,0.05); position: absolute; top: 10px; left: 16px; pointer-events: none; }
.about-pull-quote { font-family: var(--serif); font-size: 1.3rem; font-weight: 300; line-height: 1.55; font-style: italic; color: rgba(255,255,255,0.85); margin-bottom: 28px; position: relative; }
.about-pull-rule { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.about-pull-rule-line { flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.about-pull-rule-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255,255,255,0.5); }
.about-pull-sub { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.8; }

/* ─── GALLERY ─── */
#gallery { padding: 0; background: var(--black); overflow: hidden; }
.gallery-header { padding: 64px var(--pad) 40px; }
.gallery-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 3px;
}
@media (max-width: 700px) { .gallery-strip { grid-template-columns: 1fr 1fr; } }
.gallery-item { position: relative; overflow: hidden; aspect-ratio: 4/5; }
.gallery-item.wide { aspect-ratio: 3/2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(30%) contrast(1.05); transition: transform 0.6s ease, filter 0.4s; }
.gallery-item:hover img { transform: scale(1.04); filter: grayscale(0%) contrast(1.1); }
.gallery-item-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.3s; }
.gallery-footer { padding: 32px var(--pad) 56px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.gallery-footer p { font-size: 0.875rem; color: rgba(255,255,255,0.3); font-style: italic; }

/* ─── LINEAGE BANNER ─── */
#lineage-banner {
  background: var(--black); padding: 72px 0;
  position: relative; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
}
#lineage-banner::before {
  content: 'LIGNAGE'; font-family: var(--serif); font-size: clamp(5rem,14vw,13rem);
  font-weight: 300; color: rgba(255,255,255,0.025);
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  white-space: nowrap; pointer-events: none;
}
.lineage-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; position: relative; }
.lineage-left h2 { font-family: var(--serif); font-size: clamp(1.7rem,3vw,2.4rem); font-weight: 300; color: #fff; margin-bottom: 8px; }
.lineage-left p { font-size: 0.875rem; color: rgba(255,255,255,0.35); max-width: 440px; }
.lineage-chain { display: flex; align-items: center; gap: 0; }
.lc-step { display: flex; align-items: center; }
.lc-name { text-align: center; padding: 0 10px; }
.lc-name strong { display: block; font-family: var(--serif); font-size: 0.9rem; color: rgba(255,255,255,0.9); font-weight: 400; }
.lc-name span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); }
.lc-arrow { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
@media (max-width: 860px) { .lineage-chain { display: none; } }

/* ─── PROGRAMME ─── */
#programme { padding: 120px 0; background: var(--white); }
.prog-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 56px; align-items: end; }
@media (max-width: 760px) { .prog-intro { grid-template-columns: 1fr; gap: 24px; } }
.prog-intro p { font-size: 1rem; color: var(--muted); line-height: 1.8; }
.prog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; background: var(--light); border: 2px solid var(--light); border-radius: var(--radius); overflow: hidden; }
.prog-card { background: var(--white); padding: 36px 32px; transition: background 0.2s; }
.prog-card:hover { background: var(--black); }
.prog-card:hover .prog-n { color: rgba(255,255,255,0.1); }
.prog-card:hover h3 { color: #fff; }
.prog-card:hover p { color: rgba(255,255,255,0.45); }
.prog-n { font-family: var(--serif); font-size: 3rem; font-weight: 300; color: var(--light); line-height: 1; margin-bottom: 18px; transition: color 0.2s; }
.prog-card h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; color: var(--black); margin-bottom: 8px; transition: color 0.2s; }
.prog-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; transition: color 0.2s; }
.prog-cta { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 36px 40px; background: var(--off-white); border-radius: var(--radius); }
.prog-cta p { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--mid); }

/* ─── SCHEDULE ─── */
#schedule { padding: 120px 0; background: var(--black); }
.sched-hd { margin-bottom: 56px; }
.sched-hd .section-eyebrow { color: rgba(255,255,255,0.6); }
.sched-hd .section-eyebrow::before { background: rgba(255,255,255,0.4); }
.sched-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 2px; }
.sched-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 36px; }
.sched-day { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.7); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.sched-day::before { content: ''; width: 16px; height: 1px; background: rgba(255,255,255,0.4); }
.sched-time { font-family: var(--serif); font-size: 2.4rem; font-weight: 300; color: #fff; line-height: 1; margin-bottom: 24px; }
.sched-sep { height: 1px; background: rgba(255,255,255,0.12); margin: 0 0 20px; }
.sched-place { color: #fff; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.sched-addr { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.75; }
.sched-note { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-top: 12px; }
.sched-contact { background: #fff; border-color: transparent; }
.sched-contact .sched-day { color: var(--mid); }
.sched-contact .sched-day::before { background: var(--light); }
.sched-contact .sched-time { color: var(--black); font-size: 1.8rem; }
.sched-contact .sched-sep { background: var(--light); }
.sched-contact .sched-place { color: var(--black); }
.sched-contact .sched-addr { color: var(--mid); }
.sched-contact-btns { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

/* ─── TEAM ─── */
#team { padding: 120px 0; background: var(--off-white); }
.team-tier { margin-top: 56px; }
.team-tier:first-of-type { margin-top: 0; }
.team-tier-hd { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.team-tier-hd h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--black); }
.team-tier-hd-line { flex: 1; height: 1px; background: var(--light); }
.team-tier-sub { font-size: 0.875rem; color: var(--faint); font-style: italic; margin-bottom: 28px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 20px; }
.team-card { background: var(--white); border: 1px solid var(--light); border-radius: var(--radius); overflow: hidden; display: flex; flex-wrap: wrap; transition: box-shadow 0.3s; }
.team-card:hover { box-shadow: 0 12px 48px rgba(0,0,0,0.08); }
.team-photo { width: 140px; min-height: 200px; flex-shrink: 0; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(20%); transition: transform 0.5s, filter 0.4s; }
.team-card:hover .team-photo img { transform: scale(1.05); filter: grayscale(0%); }
.team-body { flex: 1; padding: 28px; min-width: 180px; }
.team-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; color: var(--black); margin-bottom: 3px; }
.team-role { font-size: 0.72rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.team-badge { display: inline-block; font-size: 0.72rem; background: var(--black); color: #fff; padding: 3px 10px; border-radius: 100px; letter-spacing: 0.06em; margin-bottom: 14px; }
.team-badge.soft { background: var(--mid); }
.team-rule { width: 24px; height: 1px; background: var(--light); margin-bottom: 12px; }
.team-bio { font-size: 0.875rem; color: var(--muted); line-height: 1.8; }
.team-cta { text-align: center; margin-top: 44px; }

/* ─── VIETNAM ─── */
#vietnam {
  position: relative; overflow: hidden; padding: 120px var(--pad);
  background: var(--black); text-align: center;
}
#vietnam::before {
  content: ''; position: absolute; inset: 0;
  background: var(--vietnam-bg, url('https://vinhxuan.fr/wp-content/uploads/2026/03/vx-festival-hanoi.jpg')) center/cover no-repeat;
  opacity: 0.18; filter: grayscale(40%);
}
#vietnam::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.6), rgba(10,10,10,0.4)); }
.vietnam-inner { position: relative; z-index: 1; max-width: 580px; margin: 0 auto; }
.vietnam-inner .section-eyebrow { color: rgba(255,255,255,0.6); justify-content: center; }
.vietnam-inner .section-eyebrow::before { background: rgba(255,255,255,0.4); }
.vietnam-inner h2 { color: #fff; margin-bottom: 20px; }
.vietnam-inner p { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.85; margin-bottom: 36px; }

/* ─── FAQ ─── */
#faq { padding: 120px 0; background: var(--white); }
.faq-cols { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; }
@media (max-width: 760px) { .faq-cols { grid-template-columns: 1fr; gap: 48px; } }
.faq-sticky { position: sticky; top: 100px; }
.faq-sticky p { font-size: 0.9rem; color: var(--muted); line-height: 1.8; margin-top: 20px; }
details { border-bottom: 1px solid var(--light); }
summary { padding: 20px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--serif); font-size: 1rem; color: var(--black); }
summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--faint); font-size: 1.1rem; font-family: var(--sans); transition: transform 0.3s; flex-shrink: 0; }
details[open] .faq-plus { transform: rotate(45deg); color: var(--black); }
.faq-body { padding: 0 0 24px; font-size: 0.9rem; color: var(--muted); line-height: 1.85; }
.faq-body p { margin-bottom: 10px; }
.faq-body p:last-child { margin: 0; }
.faq-body ul { padding-left: 16px; display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.faq-body strong { color: var(--black); font-weight: 600; }
.faq-body em { font-style: italic; }
.faq-body a { color: var(--black); }

/* ─── FOOTER ─── */
footer { background: var(--black); padding: 72px var(--pad) 32px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-logo img { width: 44px; height: 44px; object-fit: contain; filter: invert(1); opacity: 0.85; }
.footer-logo-name { font-family: var(--serif); font-size: 1.1rem; color: #fff; }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.8; max-width: 320px; }
.footer-col h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.45); margin-bottom: 18px; font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.footer-sutunam { font-size: 0.8rem; font-style: italic; color: rgba(255,255,255,0.45); }
.footer-sutunam a { color: rgba(255,255,255,0.65); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 1px; transition: all 0.2s; }
.footer-sutunam a:hover { color: #fff; border-color: rgba(255,255,255,0.7); }

/* ─── ANIMATIONS ─── */
.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.js-ready .reveal.visible { opacity: 1; transform: none; }
.js-ready .reveal:nth-child(2) { transition-delay: 0.08s; }
.js-ready .reveal:nth-child(3) { transition-delay: 0.16s; }
.js-ready .reveal:nth-child(4) { transition-delay: 0.24s; }
