/* ══════════════════════════════════════════════
   PIANO COVERS CHRÉTIENS — Shared Stylesheet
   Dark mode (default) + Light mode toggle
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Montserrat:wght@300;400;500;600;700&display=swap');


/* Prevent horizontal scroll on mobile */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ─── DESIGN TOKENS ─── */
:root {
  --bg:         #080608;
  --surface:    #111011;
  --surface2:   #1a171a;
  --surface3:   #211e21;
  --border:     #2a2529;
  --border-sub: #1e1b1e;
  --text:       #F4EDDF;
  --text-muted: #8a8490;
  --text-sub:   #b0acb6;
  --or:         #C9973C;
  --or-light:   #E3B55A;
  --or-dim:     rgba(201,151,60,0.12);
  --rouge:      #B91C2C;
  --rouge-vif:  #D42235;
  --rouge-dim:  rgba(185,28,44,0.12);
  --shadow:     0 4px 32px rgba(0,0,0,0.5);
  --shadow-sm:  0 2px 16px rgba(0,0,0,0.35);
  --radius:     4px;
  --radius-lg:  8px;
  --nav-h:      68px;
}

[data-theme="light"] {
  --bg:         #FAFAF7;
  --surface:    #F2EDE4;
  --surface2:   #E8E1D6;
  --surface3:   #DDD6C8;
  --border:     #D4CBBD;
  --border-sub: #E4DDD2;
  --text:       #1A1518;
  --text-muted: #6B6268;
  --text-sub:   #4A4348;
  --or:         #A87020;
  --or-light:   #C08828;
  --or-dim:     rgba(168,112,32,0.1);
  --rouge:      #B91C2C;
  --rouge-vif:  #D42235;
  --rouge-dim:  rgba(185,28,44,0.08);
  --shadow:     0 4px 32px rgba(0,0,0,0.08);
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.06);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(40px, 5.5vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }

.serif { font-family: 'Cormorant Garamond', serif; }
.gold  { color: var(--or-light); }
.rouge { color: var(--rouge-vif); }
em     { font-style: italic; }

/* ─── UTILITY ─── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 16px;
}
.tag::before, .tag::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--or);
  opacity: 0.45;
}
.tag.no-lines::before, .tag.no-lines::after { display: none; }
.tag.rouge-tag { color: var(--rouge-vif); }
.tag.rouge-tag::before, .tag.rouge-tag::after { background: var(--rouge-vif); }

.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--or), transparent);
  margin: 18px 0 32px;
}
.divider.center { margin-left: auto; margin-right: auto; }
.divider.full { width: 100%; background: var(--border); height: 1px; }

.section {
  padding: 96px 48px;
  max-width: 100%;
}
.section-inner {
  max-width: 1020px;
  margin: 0 auto;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-title { margin-bottom: 10px; }
.section-sub {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.8;
  max-width: 520px;
}
.section-header.center .section-sub { margin: 0 auto; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--or);
  color: #080608;
}
.btn-primary:hover { background: var(--or-light); transform: translateY(-1px); }

.btn-rouge {
  background: var(--rouge);
  color: #fff;
}
.btn-rouge:hover { background: var(--rouge-vif); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--or); color: var(--or); }

.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  padding: 14px 0;
  letter-spacing: 0.1em;
}
.btn-ghost:hover { color: var(--or-light); }
.btn-ghost::after { content: ' →'; }

.btn-sm { padding: 10px 22px; font-size: 10.5px; }
.btn-lg { padding: 18px 40px; font-size: 12.5px; }

/* ─── TOP BAR ─── */
.topbar {
  background: var(--rouge);
  text-align: center;
  padding: 9px 24px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.topbar span { opacity: 0.6; margin: 0 10px; }

/* ─── NAVIGATION ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8, 6, 8, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 48px;
  gap: 48px;
  transition: background 0.3s;
}
[data-theme="light"] .nav {
  background: rgba(250, 250, 247, 0.97);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}
.nav-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rouge) 0%, #850d18 60%, #1a0508 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.nav-badge::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.5) 0px,
    rgba(255,255,255,0.5) 2px,
    rgba(0,0,0,0.3) 2px,
    rgba(0,0,0,0.3) 4px
  );
  opacity: 0.35;
}
.nav-badge-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--or-light);
  letter-spacing: 0.04em;
  z-index: 1;
}
.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-logo-words { line-height: 1.15; }
.nav-logo-words strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.nav-logo-words em {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  font-style: normal;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--or);
  transition: width 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--or-light); }
.nav-links a.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Dark/Light toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--or); background: var(--or-dim); }
.theme-toggle .icon-dark  { display: block; }
.theme-toggle .icon-light { display: none; }
[data-theme="light"] .theme-toggle .icon-dark  { display: none; }
[data-theme="light"] .theme-toggle .icon-light { display: block; }

/* ─── PAGE HERO (pages intérieures) ─── */
.page-hero {
  padding: 80px 48px 72px;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, var(--or-dim) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .tag { justify-content: center; }
.page-hero h1 { font-weight: 300; margin-bottom: 16px; }
.page-hero h1 em { color: var(--or-light); }
.page-hero p {
  font-size: 15px;
  color: var(--text-sub);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ─── CARDS ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(201,151,60,0.35);
  box-shadow: var(--shadow-sm);
}
.card-body { padding: 32px 28px; }
.card-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
}

/* ─── GRID ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* ─── FOOTER ─── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 48px 36px;
}
.footer-inner {
  max-width: 1020px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 2px;
}
.footer-brand-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or);
  display: block;
  margin-bottom: 14px;
}
.footer-brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 8px; }
.social-pill {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
  letter-spacing: 0.06em;
}
.social-pill:hover { border-color: var(--or); color: var(--or); }

.footer-col h4 {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--or-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--or); }
.breadcrumb span { opacity: 0.4; }

/* ─── TESTIMONIAL CARDS ─── */
.temo-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}
.temo-quote-mark {
  position: absolute;
  top: 14px;
  left: 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  color: var(--or);
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.temo-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  margin-top: 10px;
}
.temo-stars span { color: var(--or); font-size: 12px; }
.temo-text {
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.temo-author { display: flex; align-items: center; gap: 12px; }
.temo-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--or) 0%, var(--rouge) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.temo-author-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.temo-author-role {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ─── PAIN ITEM ─── */
.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--rouge-dim);
  border-color: rgba(185,28,44,0.2);
}
.pain-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(185,28,44,0.2);
  border: 1px solid rgba(185,28,44,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--rouge-vif);
}
.pain-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.pain-text span { font-size: 13px; color: var(--text-muted); }

/* ─── BENEFIT ITEM ─── */
.benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-sub);
}
.benefit::before {
  content: '✦';
  color: var(--or);
  font-size: 10px;
  margin-top: 5px;
  flex-shrink: 0;
}
.benefit strong { color: var(--text); display: block; margin-bottom: 2px; }

/* ─── PIANO DECO ─── */
.piano-keys-deco {
  display: flex;
  gap: 2px;
  align-items: flex-start;
  justify-content: center;
}
.pk-white {
  width: 22px;
  height: 80px;
  background: linear-gradient(180deg, #ddd8cc 0%, #b8b0a0 100%);
  border-radius: 0 0 3px 3px;
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
}
.pk-black {
  width: 14px;
  height: 50px;
  background: linear-gradient(180deg, #1a1518 0%, #0a0808 100%);
  border-radius: 0 0 2px 2px;
  margin: 0 -7px;
  z-index: 2;
  position: relative;
}

/* ─── BADGE / PILL ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.badge-gold {
  background: var(--or-dim);
  border: 1px solid rgba(201,151,60,0.3);
  color: var(--or);
}
.badge-rouge {
  background: var(--rouge-dim);
  border: 1px solid rgba(185,28,44,0.3);
  color: var(--rouge-vif);
}
.badge-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #4ade80;
}

/* ─── FORM ─── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--or);
  box-shadow: 0 0 0 3px var(--or-dim);
}
.form-textarea { resize: vertical; min-height: 140px; }

/* ─── PRICE BLOCK ─── */
.price-large {
  font-family: 'Cormorant Garamond', serif;
  font-size: 60px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.price-large sup { font-size: 30px; font-weight: 400; vertical-align: top; margin-top: 8px; }
.price-old {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-save {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rouge-vif);
}

/* ─── AVATAR FRAME ─── */
.avatar-frame {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface2) 0%, var(--surface3) 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 35%, var(--or-dim) 0%, transparent 65%);
}
.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.avatar-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 18px;
  background: linear-gradient(transparent, rgba(8,6,8,0.88));
  text-align: center;
}
[data-theme="light"] .avatar-caption {
  background: linear-gradient(transparent, rgba(26,21,24,0.85));
}
.avatar-caption strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.avatar-caption em {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  font-style: normal;
}
.frame-corner-br {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 48px;
  height: 48px;
  border-right: 2px solid var(--or);
  border-bottom: 2px solid var(--or);
  border-radius: 0 0 3px 0;
}
.frame-corner-tl {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 48px;
  height: 48px;
  border-left: 2px solid var(--rouge);
  border-top: 2px solid var(--rouge);
  border-radius: 3px 0 0 0;
}

/* ─── PROCESS STEP ─── */
.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--or-dim);
  border: 1px solid rgba(201,151,60,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--or);
  flex-shrink: 0;
}
.step-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  font-family: 'Montserrat', sans-serif;
}
.step-body p { font-size: 13px; color: var(--text-muted); }

/* ─── CHECK LIST ─── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-sub);
}
.check-list li::before {
  content: '✓';
  color: var(--or);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── THEME SCRIPT VARS ─── */
.section-dark  { background: var(--bg); }
.section-alt   { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-alt2  { background: var(--surface2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ─── CTA BANNER ─── */
.cta-banner {
  text-align: center;
  padding: 96px 48px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, var(--or-dim) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner h2 {
  font-weight: 300;
  font-style: italic;
  max-width: 640px;
  margin: 0 auto 16px;
}
.cta-banner h2 em { color: var(--or-light); font-style: italic; }
.cta-banner p {
  font-size: 15px;
  color: var(--text-sub);
  max-width: 420px;
  margin: 0 auto 40px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── MOCKUP BADGE ─── */
.mockup-badge {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: var(--or);
  color: #080608;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 999;
  box-shadow: var(--shadow);
}

/* ─── THEME TRANSITION ─── */
body, .nav, .card, .temo-card, .pain-item, .form-input, .form-textarea {
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE & RESPONSIVE STYLES
   Breakpoints: 768px (tablet), 480px (phone)
   ══════════════════════════════════════════════════════════════════ */

/* ─── NAV MOBILE ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── TABLET (≤ 900px) ─── */
@media (max-width: 900px) {
  /* Nav: collapse links */
  .nav-hamburger { display: flex; }

  /* Nav */
  .nav { padding: 0 20px !important; gap: 20px !important; }
  .nav-logo-words strong { font-size: 13px !important; }


  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 0;
    z-index: 150;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: none; }
  .nav-links li a {
    display: block;
    padding: 13px 28px;
    font-size: 13px;
    letter-spacing: 0.08em;
  }
  .nav-links li a:hover,
  .nav-links li a.active { color: var(--or); background: var(--or-dim); }

  .nav-actions .btn-sm { display: none; }
  /* Push theme toggle + hamburger to the right */
  .nav-actions { margin-left: auto; }
}

/* ─── MOBILE (≤ 768px) ─── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Global section padding */
  .section { padding: 60px 24px; }
  .section-inner { padding: 0; }

  /* Topbar */
  .topbar { font-size: 10px; padding: 8px 16px; flex-wrap: wrap; gap: 4px; justify-content: center; }

  /* Typography */
  h1 { font-size: clamp(32px, 8vw, 56px) !important; }
  h2.section-title { font-size: clamp(26px, 6vw, 40px) !important; }
  h2 { font-size: clamp(24px, 6vw, 36px) !important; }
  h3 { font-size: clamp(18px, 5vw, 26px) !important; }

  /* Hero */
  .hero { padding: 80px 24px 60px; min-height: 85vh; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Stats bar */
  .stats-bar { padding: 32px 24px; }
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0;
  }
  .stat-item {
    padding: 20px 16px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }
  .stat-nb { font-size: 36px !important; }

  /* Problem section 2-col → 1-col */
  .problem-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .problem-hook { font-size: 24px; }

  /* Formation grid → stacked */
  .formation-grid {
    grid-template-columns: 1fr !important;
  }
  .formation-content { padding: 32px 24px; }
  .formation-visual { min-height: 200px; }
  .price-row { flex-wrap: wrap; gap: 12px; }

  /* À propos grid → stacked */
  .apropos-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Temos: 3-col → 1-col */
  .grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* Coaching main → stacked */
  .coaching-main {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .price-card-vip { position: static !important; }

  /* Contact grid → stacked */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Footer */
  .footer-top { grid-template-columns: 1fr !important; gap: 32px !important; }
  .footer-inner { padding: 48px 24px 24px; }
  .footer-socials { flex-direction: column; align-items: flex-start; }

  /* Breadcrumb */
  .breadcrumb { flex-wrap: wrap; gap: 4px; }

  /* Page hero */
  .page-hero { padding: 80px 24px 52px; }
  .page-hero h1 { font-size: clamp(28px, 7vw, 48px) !important; }

  /* Section header */
  .section-header { padding: 0 8px; }

  /* Cards */
  .card { padding: 24px !important; }

  /* Compare table: hide on very small */
  .compare-table { font-size: 12px; }
  .ct-col-head, .ct-cell { padding: 10px 12px; }

  /* Process steps */
  .process-step { gap: 16px; }

  /* Video grid → 2-col */
  .video-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Buttons */
  .btn-lg { padding: 14px 24px; font-size: 12px; }

  /* CTA banner */
  .cta-banner { padding: 64px 24px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Temo featured */
  .temo-featured { padding: 28px 24px; }
  .temo-featured-text { font-size: 20px; }

  /* YT CTA */
  .yt-cta {
    flex-direction: column !important;
    text-align: center;
    gap: 20px;
  }

  /* Location / contact options */
  .contact-option { padding: 16px; }

  /* Mockup badge */
  .mockup-badge { bottom: 12px; right: 12px; font-size: 9px; padding: 7px 12px; }

  /* Featured info */
  .featured-info {
    flex-direction: column !important;
    gap: 16px;
    align-items: flex-start;
  }
}

/* ─── SMALL PHONE (≤ 480px) ─── */
@media (max-width: 480px) {
  /* Video grid → 1-col */
  .video-grid {
    grid-template-columns: 1fr !important;
  }

  /* Compare table → scroll */
  .compare-table { overflow-x: auto; display: block; }

  /* Formation image hide */
  .formation-visual { display: none; }

  /* Nav logo */
  .nav-logo-words em { display: none; }

  /* Stats: keep 2-col but smaller text */
  .stat-nb { font-size: 28px !important; }

  /* Section inner padding */
  .section { padding: 48px 16px; }
  .contact-form-card { padding: 24px 16px !important; }
}

/* ─── NAV HAMBURGER JS HOOK ─── */
/* Applied by inline script in each page */

/* ══════════════════════════════════════════════════════════════════
   MOBILE FIXES — PAGE-SPECIFIC CLASSES (with !important to override
   page-level <style> blocks that load after this stylesheet)
   ══════════════════════════════════════════════════════════════════ */

/* ─── 768px FIXES ─── */
@media (max-width: 768px) {

  /* Global section & nav */
  .section { padding: 56px 20px !important; }
  .section-inner { padding: 0 !important; }

  /* ─ INDEX: Hero ─ */
  .hero { padding: 76px 20px 56px !important; min-height: 80vh !important; }
  .hero h1 { font-size: clamp(26px, 8vw, 48px) !important; }
  .hero-sub { font-size: 14px !important; margin-bottom: 36px !important; }
  .hero-overtitle { font-size: 9px !important; letter-spacing: 0.18em !important; }

  /* ─ INDEX: Stats ─ */
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stats-bar { padding: 28px 20px !important; }
  .stat-nb { font-size: 34px !important; }
  .stat-label { font-size: 9px !important; }

  /* ─ INDEX: Coaching teaser inline grid ─ */
  .coaching-teaser-inner {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* ─ APROPOS: Story block ─ */
  .story-block {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 0 !important;
  }
  .values-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* ─ FORMATIONS: Main grid ─ */
  .formation-main {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .fm-title { font-size: 30px !important; }
  .for-who {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .price-card {
    position: static !important;
    top: auto !important;
  }
  .coming-soon-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* ─ COACHING: Main & table ─ */
  .coaching-main {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .price-card-vip { position: static !important; top: auto !important; }
  .compare-table { overflow-x: auto; display: block; white-space: nowrap; }
  .ct-header, .ct-row {
    min-width: 560px;
    white-space: normal;
  }
  .coaching-h2-override { font-size: 26px !important; }

  /* ─ CONTACT: Form name row ─ */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .form-name-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .contact-form-card { padding: 24px 20px !important; }

  /* ─ PORTFOLIO: Video grid ─ */
  .video-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .featured-info { flex-direction: column !important; gap: 16px !important; align-items: flex-start !important; }

  /* ─ GLOBAL: Grid-3 / Grid-2 ─ */
  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }

  /* ─ GLOBAL: CTA banner ─ */
  .cta-banner { padding: 56px 20px !important; }
  .cta-actions { flex-direction: column !important; align-items: center !important; }
  .cta-actions .btn { width: 100% !important; max-width: 320px !important; justify-content: center !important; }

  /* ─ FOOTER ─ */
  .footer-inner { padding: 48px 20px 24px !important; }
  .footer-top { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* ─ PAGE HERO ─ */
  .page-hero { padding: 72px 20px 48px !important; }
  .page-hero h1 { font-size: clamp(26px, 7.5vw, 44px) !important; }
  .page-hero p { font-size: 13.5px !important; }

  /* ─ TOPBAR ─ */
  .topbar {
    font-size: 10px !important;
    padding: 7px 16px !important;
    flex-wrap: wrap !important;
    gap: 4px 8px !important;
    justify-content: center !important;
    line-height: 1.5 !important;
  }

  /* ─ BTN SIZES ─ */
  .btn-lg { padding: 13px 22px !important; font-size: 11.5px !important; }

  /* ─ APROPOS: photo col ─ */
  .photo-col .frame-corner-tl,
  .photo-col .frame-corner-br { display: none !important; }
  .avatar-frame { width: 100% !important; max-width: 280px !important; margin: 0 auto !important; }

  /* ─ YT CTA ─ */
  .yt-cta { flex-direction: column !important; text-align: center !important; gap: 20px !important; padding: 28px 20px !important; }

  /* ─ TEMO featured ─ */
  .temo-featured { padding: 24px 20px !important; }
  .temo-featured-text { font-size: 18px !important; }

  /* ─ PROCESS STEPS ─ */
  .process { gap: 16px !important; }
  .process-step { gap: 14px !important; }

  /* ─ SECTION TITLES ─ */
  .section-title { font-size: clamp(22px, 6vw, 36px) !important; }
}

/* ─── 480px FIXES ─── */
@media (max-width: 480px) {

  :root { --nav-h: 56px !important; }

  .nav { padding: 0 14px !important; gap: 10px !important; }
  .nav-logo-img { width: 32px !important; height: 32px !important; }
  .nav-logo-words strong { font-size: 12px !important; }


  /* Section padding */
  .section { padding: 44px 16px !important; }
  .page-hero { padding: 64px 16px 40px !important; }

  /* Hero */
  .hero { padding: 64px 16px 44px !important; }
  .hero h1 { font-size: clamp(24px, 9vw, 36px) !important; line-height: 1.2 !important; }
  .hero-sub { font-size: 13.5px !important; max-width: 100% !important; }
  .hero-ctas { flex-direction: column !important; align-items: stretch !important; }
  .hero-ctas .btn { text-align: center !important; justify-content: center !important; }

  /* Stats: 2-col on small phones */
  .stat-nb { font-size: 28px !important; }
  .stats-bar { padding: 20px 16px !important; }

  /* Video grid: single col */
  .video-grid { grid-template-columns: 1fr !important; }

  /* Nav logo shrink */
  .nav-logo-words em { display: none !important; }
  .nav-logo-words strong { font-size: 12px !important; }

  /* Contact form */
  .contact-form-card { padding: 20px 16px !important; border-radius: 8px !important; }
  .form-name-row { grid-template-columns: 1fr !important; }

  /* Topbar: hide middle items */
  .topbar span { display: none !important; }

  /* Section title */
  .section-title { font-size: clamp(20px, 7vw, 30px) !important; }

  /* Price large */
  .price-large { font-size: 56px !important; }

  /* CTA banner */
  .cta-banner { padding: 44px 16px !important; }

  /* Formation content */
  .formation-content { padding: 28px 20px !important; }

  /* Compare table */
  .compare-table { font-size: 11px !important; }
  .ct-col-head, .ct-cell { padding: 10px !important; font-size: 11px !important; }
}
