/* =========================================================
   Pacific Fitness & Stamina — public stylesheet
   Colour tokens on :root (dark = brand default) and [data-theme="light"].
   Accent per page: .theme-pacific / .theme-home (yellow), .theme-stamina (red).
   Blocks laid over photos (hero, course panels, home cards) stay dark in both themes.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    color-scheme: dark;
    --bg: #111; --bg-alt: #151515; --surface: rgba(255,255,255,0.025); --surface-2: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.07); --line: rgba(255,255,255,0.05);
    --text: #f5f5f5; --text-2: #bdbdbd; --text-3: #8f8f8f; --text-4: #666;
    --nav-bg: rgba(17,17,17,0.86); --dots: rgba(255,255,255,0.04); --shadow: none; --shadow-hover: 0 18px 40px rgba(0,0,0,0.35);
    --accent-soft-text: rgba(255,255,255,0.3);
}
[data-theme="light"] {
    color-scheme: light;
    --bg: #f6f5f1; --bg-alt: #eeece6; --surface: #ffffff; --surface-2: #f4f3ef;
    --border: rgba(20,20,20,0.09); --line: rgba(20,20,20,0.07);
    --text: #16181b; --text-2: #3c4046; --text-3: #676c73; --text-4: #8b9096;
    --nav-bg: rgba(246,245,241,0.9); --dots: rgba(0,0,0,0.045);
    --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 6px 20px rgba(0,0,0,0.05); --shadow-hover: 0 18px 40px rgba(0,0,0,0.1);
    --accent-soft-text: rgba(22,24,27,0.35);
}
.theme-pacific, .theme-home { --a: #f0c932; --a-text: #f0c932; --a-hover: #ffd94e; --a-ink: #111; --a2: rgba(240,201,50,0.1); --a3: rgba(240,201,50,0.28); --a5: rgba(240,201,50,0.5); }
.theme-stamina { --a: #c8102e; --a-text: #e3263f; --a-hover: #e0193a; --a-ink: #fff; --a2: rgba(200,16,46,0.1); --a3: rgba(200,16,46,0.28); --a5: rgba(200,16,46,0.5); }
[data-theme="light"] .theme-pacific, [data-theme="light"] .theme-home { --a-text: #8f7200; --a2: rgba(240,201,50,0.16); --a3: rgba(201,160,0,0.45); }
[data-theme="light"] .theme-stamina { --a-text: #b10d27; --a2: rgba(200,16,46,0.07); --a3: rgba(200,16,46,0.35); }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.5; transition: background-color .3s, color .3s; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4; background-image: radial-gradient(circle, var(--dots) 1px, transparent 1px); background-size: 24px 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--a); color: var(--a-ink); padding: .6rem 1rem; z-index: 300; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; }

/* Theme-dependent logos */
.logo-light { display: none !important; }
[data-theme="light"] .logo-dark { display: none !important; }
[data-theme="light"] .logo-light { display: block !important; }

/* Theme switch */
.theme-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); display: inline-grid; place-items: center; cursor: pointer; transition: color .3s, border-color .3s, background .3s; flex-shrink: 0; }
.theme-btn:hover { color: var(--a-text); border-color: var(--a3); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
[data-theme="light"] .theme-btn .i-sun { display: block; }
[data-theme="light"] .theme-btn .i-moon { display: none; }

/* ===== NAV (sub-pages: links split around a centred logo) ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 3rem; height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); transition: background .3s; }
.nav-logo { justify-self: center; display: block; }
.nav-logo img { height: 44px; width: auto; }
.theme-stamina .nav-logo img { height: 54px; }
.nav-side { display: flex; gap: 1.9rem; align-items: center; }
.nav-side.right { justify-self: end; }
.nav-side a, .nav-mobile a { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); transition: color 0.3s; position: relative; white-space: nowrap; }
.nav-side a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: var(--a); transition: width 0.3s; }
.nav-side a:hover, .nav-side a.is-current { color: var(--text); }
.nav-side a:hover::after, .nav-side a.is-current::after { width: 100%; }
.nav-side a.nav-back { display: flex; align-items: center; gap: 0.4rem; text-transform: none; letter-spacing: 0; font-size: 0.85rem; }
.nav-side a.nav-back::after { display: none; }
.nav-side a.nav-back:hover { color: var(--a-text); }
.nav-back svg { width: 15px; height: 15px; }
.nav-side a.nav-cta, .nav-mobile a.nav-cta { background: var(--a); color: var(--a-ink); padding: 0.6rem 1.2rem; border-radius: 9px; font-weight: 700; letter-spacing: 0.08em; transition: background 0.3s, box-shadow 0.3s, transform 0.3s; }
.nav-side a.nav-cta::after { display: none; }
.nav-side a.nav-cta:hover { background: var(--a-hover); color: var(--a-ink); box-shadow: 0 6px 20px var(--a3); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; justify-self: end; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-theme-m { display: none; }
.nav-mobile { display: none; }
@media (max-width: 1180px) {
    .nav { padding: 0 1.25rem; grid-template-columns: 44px 1fr 44px; height: 70px; }
    .nav-side { display: none; }
    .nav-theme-m { display: inline-grid; grid-column: 1; grid-row: 1; }
    .nav-toggle { display: block; grid-column: 3; grid-row: 1; }
    .nav-logo { grid-column: 2; grid-row: 1; }
    .nav-logo img { height: 38px; }
    .theme-stamina .nav-logo img { height: 46px; }
    .nav-mobile { position: absolute; top: 70px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 0.6rem 1.5rem 1.5rem; border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
    .nav-mobile a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
    .nav-mobile a:last-child { border-bottom: none; }
    .nav-mobile a.nav-cta { text-align: center; margin-top: 0.8rem; border-bottom: none; }
    .nav.open .nav-mobile { display: flex; }
}

/* ===== MARQUEE ===== */
.marquee { overflow: hidden; white-space: nowrap; padding: 0.8rem 0; border-bottom: 1px solid var(--border); position: relative; z-index: 1; }
.page .marquee { margin-top: 76px; }
.marquee-inner { display: inline-flex; animation: marquee 34s linear infinite; }
.marquee-text { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-4); padding: 0 1rem; flex-shrink: 0; }
.marquee-text .dot { color: var(--a5); margin: 0 0.8rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== HERO (sub-pages, always dark over the photo) ===== */
.hero { height: 88vh; min-height: 560px; max-height: 960px; position: relative; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: #111; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: slowZoom 25s ease-in-out infinite alternate; }
@keyframes slowZoom { 0% { transform: scale(1); } 100% { transform: scale(1.04); } }
.hero-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,0.35) 0%, rgba(17,17,17,0.55) 50%, #111 100%); }
[data-theme="light"] .hero-grad { background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.78) 100%); }
.hero-content { position: relative; z-index: 1; padding: 0 3rem 4.5rem; max-width: 820px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(0,0,0,0.35); border: 1px solid var(--a5); color: var(--a); padding: 0.5rem 1.2rem; border-radius: 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.5rem; backdrop-filter: blur(6px); }
.hero-badge svg { width: 12px; height: 12px; }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 900; line-height: 1; margin-bottom: 1.1rem; letter-spacing: -0.03em; }
.hero .accent { color: rgba(255,255,255,0.38); }
.hero p { font-size: 1.12rem; font-weight: 400; color: rgba(255,255,255,0.75); line-height: 1.7; max-width: 620px; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.btn-a { display: inline-flex; align-items: center; gap: .55rem; background: var(--a); color: var(--a-ink); padding: .85rem 1.6rem; border-radius: 10px; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; transition: background .3s, transform .3s, box-shadow .3s; border: 0; cursor: pointer; font-family: inherit; }
.btn-a:hover { background: var(--a-hover); transform: translateY(-2px); box-shadow: 0 10px 26px var(--a3); }
.btn-a svg { width: 16px; height: 16px; }
.btn-ghost { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.6rem; border-radius: 10px; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.3); color: #fff; transition: border-color .3s, background .3s; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ===== SECTIONS ===== */
section { padding: 5.5rem 3rem; position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; }
.alt { background: var(--bg-alt); }
.sh { margin-bottom: 3rem; }
.sh-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--a-text); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.8rem; }
.sh-label::before { content: ''; width: 24px; height: 2px; background: var(--a); }
.sh-title { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 900; line-height: 1.08; margin-bottom: 0.8rem; letter-spacing: -0.02em; }
.sh-title .accent, .values-title .accent { color: var(--a-text); }
.sh-desc { font-size: 1.05rem; font-weight: 400; color: var(--text-3); line-height: 1.7; max-width: 620px; }
.sub-block { margin-top: 4rem; }
.sub-block .sh-title { font-size: 1.8rem; }
.card, .conds, .nutri, .hb, .val-card, .ci, .og, .partner { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.nutri, .partner { border-radius: 20px; }
.ci, .og { border-radius: 14px; }

/* ===== QUALITY BAND (health insurers) ===== */
.quality-wrap { padding: 0 3rem; margin-top: -2.2rem; position: relative; z-index: 2; }
.quality { display: flex; align-items: center; gap: 1.6rem; padding: 1.6rem 2rem; border-radius: 18px; background: var(--bg); border: 1px solid var(--a3); box-shadow: 0 20px 50px rgba(0,0,0,0.25); position: relative; overflow: hidden; }
.quality::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, var(--a2), transparent 70%); pointer-events: none; }
.quality > * { position: relative; }
.quality-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--a); color: var(--a-ink); display: grid; place-items: center; flex-shrink: 0; }
.quality-icon svg { width: 32px; height: 32px; }
.quality-stars { display: flex; gap: 4px; color: var(--a); margin-bottom: 0.35rem; }
.quality-stars svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.quality h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.25rem; }
.quality p { color: var(--text-2); font-size: 0.98rem; line-height: 1.6; max-width: 760px; }

/* ===== SERVICES ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.svc { border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 4/3; border: 1px solid var(--border); background: #1a1a1a; color: #fff; transition: border-color 0.4s, transform 0.5s cubic-bezier(.22,1,.36,1), box-shadow .4s; box-shadow: var(--shadow); }
.svc:hover { transform: translateY(-5px); border-color: var(--a3); box-shadow: var(--shadow-hover); }
.svc img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.svc:hover img { transform: scale(1.05); }
.svc-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; z-index: 2; background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 60%, transparent 100%); }
.svc-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.svc-info p { font-size: 0.9rem; color: rgba(255,255,255,0.72); }

/* ===== PRICING ===== */
.grid-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; align-items: stretch; }
.pc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 2.2rem 1.5rem 1.8rem; text-align: center; transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s; position: relative; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--a); opacity: 0; transition: opacity 0.4s; }
.pc:hover { border-color: var(--a3); transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.pc:hover::before, .pc.ft::before { opacity: 1; }
.pc.ft { border-color: var(--a3); background: linear-gradient(180deg, var(--a2), var(--surface) 70%); }
.pc-best { position: absolute; top: 10px; right: 10px; background: var(--a); color: var(--a-ink); font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .22rem .5rem; border-radius: 999px; }
.pc.ft .pc-tag { margin-top: .4rem; }
.pc-tag { display: inline-block; align-self: center; padding: 0.3rem 0.8rem; border-radius: 5px; margin-bottom: 1rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--a2); color: var(--a-text); }
.pc.ft .pc-tag { background: var(--a); color: var(--a-ink); }
.pc-price { font-size: 2.4rem; font-weight: 900; margin-bottom: 0.1rem; letter-spacing: -0.02em; white-space: nowrap; }
.pc-price span, .offer-price b span { color: var(--a-text); font-size: 0.55em; vertical-align: 0.4em; margin-right: 0.2em; }
.pc-per { font-size: 0.86rem; color: var(--text-3); margin-bottom: 1.2rem; min-height: 1.3em; }
.check-list { list-style: none; text-align: left; }
.check-list li { padding: 0.5rem 0; font-size: 0.9rem; color: var(--text-2); border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 0.55rem; line-height: 1.45; }
.check-list li:last-child { border: none; }
.check-list svg { width: 14px; height: 14px; color: var(--a-text); flex-shrink: 0; margin-top: 0.2em; stroke-width: 2.5; }

.conds { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 2rem; }
.conds h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 1rem; }
.conds .check-list { columns: 2; column-gap: 2.5rem; }
.conds .check-list li { break-inside: avoid; }
.badge-3s { text-align: center; padding: 1.3rem 1.5rem; border: 1px solid var(--a3); border-radius: 14px; background: var(--a2); min-width: 200px; }
.badge-3s .quality-stars { justify-content: center; }
.badge-3s strong { display: block; font-size: 0.95rem; }
.badge-3s small { color: var(--text-3); font-size: 0.8rem; }

/* ===== REFERRAL ===== */
.referral { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; border: 1px solid var(--a3); border-radius: 20px; padding: 3rem; background: radial-gradient(circle at 0% 50%, var(--a2), transparent 60%), var(--surface); box-shadow: var(--shadow); }
.referral-big { text-align: center; min-width: 220px; }
.referral-big svg { width: 40px; height: 40px; color: var(--a-text); margin: 0 auto 0.6rem; }
.referral-big strong { display: block; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 900; color: var(--a-text); line-height: 1; letter-spacing: -0.03em; }
.referral-big span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-3); font-weight: 700; }
.referral h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.referral p { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; }
.referral .small { margin-top: 0.8rem; font-size: 0.85rem; color: var(--text-3); }

/* ===== COACHING OFFERS ===== */
.grid-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.offer { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 2.2rem; position: relative; overflow: hidden; transition: border-color .4s, transform .4s, box-shadow .4s; box-shadow: var(--shadow); }
.offer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--a); }
.offer:hover { border-color: var(--a3); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.offer.ft { background: linear-gradient(180deg, var(--a2), var(--surface) 60%); border-color: var(--a3); }
.offer h3 { font-size: 1.4rem; font-weight: 800; margin: 0.6rem 0 1.2rem; }
.offer-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.4rem; }
.offer-price { border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1rem; background: var(--surface-2); }
.offer-price small { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); font-weight: 700; margin-bottom: 0.2rem; }
.offer-price b { font-size: 1.5rem; font-weight: 900; }
.offer-price.member { border-color: var(--a3); }
.offer-note { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border); font-size: 0.9rem; color: var(--text-2); }
.offer-note::before { content: '+ '; color: var(--a-text); font-weight: 800; }

/* ===== NUTRITION ===== */
.nutri { display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; }
.nutri.has-img { grid-template-columns: 0.9fr 1.3fr 1fr; }
.nutri-img img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.nutri-body { padding: 2.4rem; display: grid; grid-template-columns: auto 1fr; gap: 0 1.4rem; align-items: start; }
.nutri-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--a2); color: var(--a-text); display: grid; place-items: center; grid-row: span 3; }
.nutri-icon svg { width: 28px; height: 28px; }
.nutri-body h3 { font-size: 1.5rem; font-weight: 800; }
.nutri-body .who { color: var(--a-text); font-weight: 600; margin-bottom: 1rem; }
.nutri-contact { padding: 2.4rem; display: flex; flex-direction: column; gap: 0.6rem; justify-content: center; background: var(--surface-2); border-left: 1px solid var(--border); }
.nutri-contact a, .nutri-contact span { display: flex; align-items: center; gap: 0.8rem; color: var(--text-2); font-size: 0.95rem; word-break: break-word; padding: .35rem 0; }
.nutri-contact a:hover { color: var(--a-text); }
.nutri-contact svg { width: 18px; height: 18px; color: var(--a-text); flex-shrink: 0; }

/* ===== HOURS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.hb { padding: 2rem; position: relative; overflow: hidden; transition: border-color 0.3s; }
.hb:hover { border-color: var(--a3); }
.hb::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--a); }
.hb h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.hb-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--a2); display: flex; align-items: center; justify-content: center; }
.hb-icon svg { width: 17px; height: 17px; color: var(--a-text); }
.hr { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0.7rem; margin: 0 -0.7rem; font-size: 0.95rem; border-bottom: 1px solid var(--line); border-radius: 8px; }
.hr:last-child { border-bottom: none; }
.hr-d { color: var(--text-3); }
.hr-t { color: var(--text); font-weight: 600; text-align: right; }
.hr.is-today { background: var(--a2); border-bottom-color: transparent; }
.hr.is-today .hr-d { color: var(--text); font-weight: 600; }
.hr.is-today .hr-d::after { content: "Aujourd'hui"; margin-left: .6rem; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--a); color: var(--a-ink); padding: .15rem .45rem; border-radius: 4px; vertical-align: 1px; }

/* ===== TEAM / COACHES ===== */
.grid-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem; }
.grid-team.two { grid-template-columns: repeat(2, 1fr); max-width: 700px; }
.tm { text-align: center; }
.tm-wrap { border-radius: 16px; overflow: hidden; margin-bottom: 1.1rem; border: 1px solid var(--border); transition: border-color 0.4s, box-shadow .4s; background: var(--surface-2); box-shadow: var(--shadow); }
.tm:hover .tm-wrap { border-color: var(--a3); box-shadow: var(--shadow-hover); }
.tm img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(20%); transition: filter 0.4s, transform 0.5s; }
.tm:hover img { filter: grayscale(0%); transform: scale(1.03); }
.tm h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.15rem; }
.tm p { font-size: 0.92rem; color: var(--text-3); }

/* ===== VALUES ===== */
.values { text-align: center; }
.values-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 2.5rem; line-height: 1.2; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.val-card { padding: 2rem 1.8rem; text-align: left; transition: border-color 0.3s, transform 0.3s; }
.val-card.wide { grid-column: span 2; }
.val-card:hover { border-color: var(--a3); transform: translateY(-3px); }
.val-card h3 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--a-text); margin-bottom: 0.9rem; }
.val-card p { font-size: 1rem; color: var(--text-2); line-height: 1.7; }

/* ===== CONTACT ===== */
.grid-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.ci { display: flex; align-items: center; gap: 1rem; padding: 1.4rem; transition: border-color 0.3s, transform 0.3s, box-shadow .3s; }
.ci:hover { border-color: var(--a3); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.ci-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--a2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-icon svg { width: 22px; height: 22px; color: var(--a-text); }
.ci h3 { font-size: 0.74rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.ci p { font-size: 0.98rem; color: var(--text); word-break: break-word; }

/* ===== STAMINA — COURSES CAROUSEL (dark over photos) ===== */
.cours-section { padding: 0; }
.cours-header { padding: 5rem 3rem 2rem; max-width: calc(1200px + 6rem); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.cours-header .sh { margin-bottom: 1rem; }
.hscroll-wrap { position: relative; }
.hscroll { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem 3rem 2.5rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.hscroll:active { cursor: grabbing; }
.hscroll::-webkit-scrollbar { display: none; }
.cpanel { flex: 0 0 78vw; max-width: 1100px; height: 68vh; min-height: 420px; max-height: 620px; position: relative; border-radius: 20px; overflow: hidden; scroll-snap-align: center; border: 1px solid var(--border); transition: border-color 0.5s; background: #1a1a1a; color: #fff; }
.cpanel:hover { border-color: var(--a3); }
.cpanel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22,1,.36,1), filter 0.8s; filter: brightness(0.45) saturate(0.9); pointer-events: none; }
.cpanel:hover .cpanel-img { transform: scale(1.05); filter: brightness(0.55) saturate(1); }
.cpanel::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(135deg, transparent 30%, var(--a3) 100%); opacity: 0; transition: opacity 0.6s; }
.cpanel:hover::after { opacity: .5; }
.cpanel-num { position: absolute; bottom: -0.15em; right: 0.05em; z-index: 1; font-size: clamp(10rem, 22vw, 20rem); font-weight: 900; line-height: 0.8; color: rgba(255,255,255,0.04); pointer-events: none; user-select: none; transition: color 0.5s; }
.cpanel:hover .cpanel-num { color: rgba(200,16,46,0.12); }
.cpanel-counter { position: absolute; top: 2rem; left: 2.5rem; z-index: 2; font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; }
.cpanel-counter span { color: #fff; font-weight: 800; }
.cpanel-content { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 3rem 3.5rem; background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 55%, transparent 100%); display: flex; flex-direction: column; gap: 0.6rem; }
.cpanel-tag { display: inline-flex; width: fit-content; background: var(--a); color: var(--a-ink); padding: 0.4rem 1rem; border-radius: 5px; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.cpanel-content h3 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.cpanel-desc { font-size: 1.05rem; color: rgba(255,255,255,0.72); line-height: 1.6; max-width: 540px; transform: translateY(10px); opacity: 0; transition: transform 0.6s cubic-bezier(.22,1,.36,1), opacity 0.5s 0.1s; }
.cpanel:hover .cpanel-desc, .cpanel.is-active .cpanel-desc { transform: translateY(0); opacity: 1; }
.hscroll-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 52px; height: 52px; border-radius: 50%; background: rgba(17,17,17,0.8); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; }
.hscroll-nav:hover { background: var(--a); border-color: var(--a); transform: translateY(-50%) scale(1.08); }
.hscroll-nav svg { width: 20px; height: 20px; color: #fff; }
.hscroll-prev { left: 1rem; } .hscroll-next { right: 1rem; }
.hscroll-progress { height: 3px; background: var(--border); margin: 0 3rem 1rem; border-radius: 3px; overflow: hidden; }
.hscroll-progress-bar { height: 100%; width: 16.66%; background: var(--a); border-radius: 3px; transition: width 0.4s cubic-bezier(.22,1,.36,1); }
.hscroll-dots { display: flex; justify-content: center; gap: 0.6rem; padding-bottom: 2.5rem; }
.hscroll-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; transition: all 0.3s; }
.hscroll-dot.active { background: var(--a); width: 28px; border-radius: 4px; }

/* ===== STAMINA — SCHEDULE ===== */
.planning-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.planning-head .sh { margin-bottom: 0; }
.sched-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.sched { width: 100%; border-collapse: collapse; min-width: 680px; table-layout: fixed; }
.sched thead th { background: var(--a); color: var(--a-ink); padding: 1rem 1.1rem; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; text-align: center; }
.sched thead th.is-today { background: #8f0b20; }
.sched thead th.is-today::after { content: ' · auj.'; font-weight: 600; opacity: .8; text-transform: none; letter-spacing: 0; }
.sched td { padding: 1rem 1.1rem; text-align: center; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.sched td.is-today { background: var(--a2); }
.sched tr:last-child td { border-bottom: none; }
.st { font-weight: 700; color: var(--a-text); font-size: 0.9rem; display: block; }
.sn { font-weight: 600; display: block; margin-top: 0.15rem; font-size: 0.95rem; }
.se { color: var(--text-4); opacity: .5; }
.grid-og { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.og { padding: 1.8rem 1.5rem; text-align: center; transition: border-color 0.3s, transform 0.3s; }
.og:hover { border-color: var(--a3); transform: translateY(-3px); }
.og.is-today { border-color: var(--a3); background: var(--a2); }
.og-d { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--a-text); }
.og-t { font-size: 1rem; color: var(--text-2); line-height: 1.6; }

/* ===== PARTNERS ===== */
.page-head { padding-top: 9rem; padding-bottom: 3rem; }
.grid-partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.partner { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; transition: border-color .3s, transform .3s, box-shadow .3s; }
.partner:hover { border-color: var(--a3); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.partner-logo { height: 140px; border-radius: 12px; background: #fff; display: grid; place-items: center; padding: 1rem 1.4rem; border: 1px solid var(--border); }
.partner-logo img { max-height: 104px; max-width: 100%; width: auto; object-fit: contain; }
.partner-logo.mono { background: var(--a2); border-color: var(--a3); color: var(--a-text); font-size: 2.4rem; font-weight: 900; }
.partner h2 { font-size: 1.25rem; font-weight: 800; }
.partner p { color: var(--text-2); font-size: 0.95rem; line-height: 1.6; }
.partner-links { display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; }
.partner-links a { display: flex; align-items: center; gap: 0.6rem; color: var(--text-2); font-size: 0.92rem; word-break: break-all; }
.partner-links a:hover { color: var(--a-text); }
.partner-links svg { width: 16px; height: 16px; color: var(--a-text); flex-shrink: 0; }

/* Partner strip (footer of every page) */
.partners-strip { padding: 2.5rem 3rem; border-top: 1px solid var(--border); position: relative; z-index: 1; text-align: center; }
.partners-strip p { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text-4); margin-bottom: 1.2rem; }
.partners-strip ul { list-style: none; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1rem; }
.partners-strip a { display: grid; place-items: center; height: 64px; min-width: 120px; padding: .6rem 1.2rem; background: #fff; border-radius: 10px; border: 1px solid var(--border); opacity: .8; filter: grayscale(1); transition: opacity .3s, filter .3s, transform .3s; }
.partners-strip a:hover { opacity: 1; filter: none; transform: translateY(-2px); }
.partners-strip img { max-height: 44px; max-width: 130px; width: auto; }
.partners-strip .txt { font-weight: 800; color: #333; font-size: .85rem; }

/* ===== FOOTER ===== */
.ft-bar { padding: 2.2rem 3rem; text-align: center; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.ft-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin-bottom: 0.8rem; }
.ft-links a { color: var(--text-3); font-size: 0.88rem; transition: color 0.3s; display: inline-flex; align-items: center; gap: 0.4rem; }
.ft-links a:hover { color: var(--a-text); }
.ft-links svg { width: 15px; height: 15px; }
.ft-bar p { font-size: 0.8rem; color: var(--text-4); }

/* ===== HOME (landing) ===== */
.topbar { padding: 1.3rem 3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); position: relative; z-index: 1; }
.topbar-logo { height: 46px; width: auto; }
.topbar-right { display: flex; align-items: center; gap: 1.6rem; }
.topbar-info { display: flex; gap: 1.8rem; }
.topbar-info a { font-size: 0.86rem; font-weight: 500; color: var(--text-3); letter-spacing: 0.04em; transition: color 0.3s; display: flex; align-items: center; gap: 0.5rem; }
.topbar-info a:hover { color: var(--text); }
.topbar-info svg { width: 16px; height: 16px; }
.landing { min-height: calc(100vh - 140px); display: flex; flex-direction: column; position: relative; z-index: 1; padding: 0; overflow-x: clip; }
.hero-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem 3rem; position: relative; }
.hero-bg-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: clamp(6rem, 18vw, 16rem); font-weight: 900; color: var(--dots); white-space: nowrap; pointer-events: none; user-select: none; letter-spacing: -0.02em; }
.hero-label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-4); margin-bottom: 2rem; position: relative; }
.hero-label::before, .hero-label::after { content: ''; width: 30px; height: 1px; background: var(--border); display: inline-block; vertical-align: middle; margin: 0 1rem; }
.hero-title { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; line-height: 1; margin-bottom: 1rem; letter-spacing: -0.03em; position: relative; }
.hero-title .accent { color: var(--accent-soft-text); }
.hero-sub { font-size: 1.15rem; color: var(--text-3); letter-spacing: 0.02em; margin-bottom: 3.5rem; position: relative; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 1100px; width: 100%; position: relative; }
.choice-card { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16/10; border: 1px solid var(--border); transition: border-color 0.4s, transform 0.5s cubic-bezier(.22,1,.36,1), box-shadow .5s; background: #1a1a1a; color: #fff; box-shadow: var(--shadow); }
.choice-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.choice-card > .card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.22,1,.36,1), filter .8s; filter: brightness(0.42); }
.choice-card:hover > .card-bg { transform: scale(1.06); filter: brightness(0.52); }
.choice-card::after { content: ''; position: absolute; inset: 0; z-index: 1; transition: background 0.4s; }
.choice-card.pacific:hover { border-color: rgba(240,201,50,0.4); }
.choice-card.pacific:hover::after { background: rgba(240,201,50,0.08); }
.choice-card.stamina:hover { border-color: rgba(200,16,46,0.4); }
.choice-card.stamina:hover::after { background: rgba(200,16,46,0.08); }
.choice-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; }
.choice-logo { height: 66px; width: auto; object-fit: contain; margin-bottom: 1.2rem; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6)); transition: transform 0.4s; }
.stamina .choice-logo { height: 92px; }
.choice-card:hover .choice-logo { transform: scale(1.05); }
.choice-line { width: 35px; height: 3px; margin-bottom: 1rem; transition: width 0.4s; }
.pacific .choice-line { background: #f0c932; }
.stamina .choice-line { background: #c8102e; }
.choice-card:hover .choice-line { width: 60px; }
.choice-desc { font-size: 1rem; color: rgba(255,255,255,0.82); line-height: 1.5; margin-bottom: 0.8rem; text-align: center; max-width: 380px; }
.choice-location { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.55); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.4rem; }
.choice-location svg { width: 14px; height: 14px; }
.choice-btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 2rem; border-radius: 10px; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; transition: all 0.3s; }
.pacific .choice-btn { background: #f0c932; color: #111; }
.choice-card.pacific:hover .choice-btn { background: #ffd94e; box-shadow: 0 8px 25px rgba(240,201,50,0.3); }
.stamina .choice-btn { background: #c8102e; color: #fff; }
.choice-card.stamina:hover .choice-btn { background: #e0193a; box-shadow: 0 8px 25px rgba(200,16,46,0.3); }
.choice-btn svg { width: 16px; height: 16px; transition: transform 0.3s; }
.choice-card:hover .choice-btn svg { transform: translateX(3px); }
.home-badge { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2.5rem; padding: 0.7rem 1.3rem; border: 1px solid var(--a3); background: var(--a2); border-radius: 999px; font-size: 0.88rem; color: var(--text-2); position: relative; transition: border-color .3s; }
.home-badge:hover { border-color: var(--a); }
.home-badge .quality-stars { margin: 0; }
.home-badge .quality-stars svg { width: 14px; height: 14px; }
.stats-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 2.5rem 5rem; padding: 3.5rem 2rem; border-top: 1px solid var(--border); }
.stat { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.02em; }
.stat-label { font-size: 0.78rem; font-weight: 600; color: var(--text-4); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.4rem; }

/* ===== POP-UP ===== */
.popup { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.popup.open { display: flex; }
.popup.show { opacity: 1; }
.popup-box { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 20px; width: 100%; max-width: 520px; max-height: calc(100vh - 2.5rem); overflow-y: auto; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.45); transform: translateY(16px) scale(.98); transition: transform .35s cubic-bezier(.22,1,.36,1); }
.popup.show .popup-box { transform: none; }
.popup-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--a); z-index: 1; }
.popup-img img { width: 100%; max-height: 300px; object-fit: cover; }
.popup-body { padding: 2rem 2rem 1.8rem; }
.popup-body h2 { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: .8rem; padding-right: 2rem; }
.popup-body p { color: var(--text-2); line-height: 1.7; }
.popup-body .btn-a { margin-top: 1.4rem; }
.popup-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.55); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.popup-close:hover { background: var(--a); color: var(--a-ink); }

/* ===== REVEAL ===== */
.rv { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,1,.36,1); }
.rv.vis, .no-js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .rv { opacity: 1; transform: none; transition: none; }
    .hero-img, .marquee-inner { animation: none; }
    html { scroll-behavior: auto; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .cpanel { flex: 0 0 85vw; height: 60vh; }
    .nutri, .nutri.has-img { grid-template-columns: 1fr; }
    .nutri-img img { min-height: 220px; max-height: 320px; }
    .nutri-contact { border-left: none; border-top: 1px solid var(--border); }
}
@media (max-width: 768px) {
    section { padding: 4rem 1.25rem; }
    .page .marquee { margin-top: 70px; }
    .hero { height: 80vh; min-height: 500px; }
    .hero-content { padding: 0 1.25rem 3.5rem; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .svc { aspect-ratio: 16/10; }
    .grid-team, .grid-team.two { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .tm h3 { font-size: 1.05rem; }
    .values-grid { grid-template-columns: 1fr; }
    .val-card.wide { grid-column: span 1; }
    .quality-wrap { padding: 0 1.25rem; margin-top: -1.5rem; }
    .quality { flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 1rem; }
    .conds { grid-template-columns: 1fr; padding: 1.5rem; }
    .conds .check-list { columns: 1; }
    .referral { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 1.5rem; text-align: center; }
    .grid-offers { grid-template-columns: 1fr; }
    .offer { padding: 1.6rem; }
    .nutri-body, .nutri-contact { padding: 1.6rem; }
    .nutri-body { grid-template-columns: 1fr; }
    .nutri-icon { grid-row: auto; margin-bottom: 1rem; }
    .cpanel { flex: 0 0 88vw; height: 55vh; min-height: 380px; }
    .cpanel-content { padding: 2rem 1.5rem; }
    .cpanel-content h3 { font-size: 1.8rem; }
    .cpanel-num { font-size: 8rem; }
    .cpanel-desc { transform: none; opacity: 0.85; }
    .hscroll { padding: 1rem 1.25rem 2rem; }
    .hscroll-progress { margin: 0 1.25rem 0.8rem; }
    .hscroll-nav { display: none; }
    .cours-header { padding: 4rem 1.25rem 1.5rem; }
    .page-head { padding-top: 7rem; }
    .grid-partners { grid-template-columns: 1fr; }
    .partners-strip { padding: 2rem 1.25rem; }
    .partners-strip a { min-width: 0; height: 56px; padding: .5rem .9rem; }
    .partners-strip img { max-height: 38px; max-width: 100px; }
    .ft-bar { padding: 2rem 1.25rem; }
    .topbar { padding: 1rem 1.25rem; }
    .topbar-logo { height: 38px; }
    .topbar-right, .topbar-info { gap: 1rem; }
    .topbar-info .lbl { display: none; }
    .choices { grid-template-columns: 1fr; max-width: 520px; }
    .choice-card { aspect-ratio: auto; min-height: 360px; }
    .stats-bar { gap: 2rem; }
    .grid-prices { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .pc { padding: 1.6rem 0.9rem 1.2rem; }
    .pc-price { font-size: 1.8rem; }
    .pc .check-list li { font-size: 0.8rem; }
    .popup-body { padding: 1.6rem 1.4rem 1.4rem; }
}
@media (max-width: 480px) {
    .stat-number { font-size: 1.8rem; }
    .offer-prices { grid-template-columns: 1fr; }
    .hero-label::before, .hero-label::after { width: 16px; margin: 0 .6rem; }
}
