/* Hub Vincula — /videos-et-livres/
   Mode clair (charte officielle), pleine largeur, rails horizontaux Netflix-style */

:root {
  --vap-h-primary: #020706;
  --vap-h-text:    #66716E;
  --vap-h-text-2:  #4a5350;
  --vap-h-accent:  #00603C;
  --vap-h-accent-2:#0a4d33;
  --vap-h-accent-soft: #e6f1ec;
  --vap-h-bg:      #FAFAF7;
  --vap-h-bg-warm: #f3efe6;
  --vap-h-card:    #ffffff;
  --vap-h-line:    #E8E5DD;
  --vap-h-line-2:  #f1ede4;
  --vap-h-radius:  14px;
  --vap-h-radius-lg: 22px;
  --vap-h-shadow:  0 1px 2px rgba(2,7,6,.04), 0 8px 24px -6px rgba(2,7,6,.08);
  --vap-h-shadow-lg: 0 22px 60px -22px rgba(2,7,6,.18);
  --vap-h-font:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --vap-h-serif:   'Playfair Display', 'Times New Roman', serif;
  --vap-h-pad-x:   clamp(20px, 4vw, 60px);
}

.vapro-hub, .vapro-hub * { box-sizing: border-box; }
.vapro-hub {
  background: var(--vap-h-bg);
  color: var(--vap-h-text);
  font-family: var(--vap-h-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0; padding: 0;
}
/* Force le fond clair + suppression des max-width parents pour la pleine largeur */
body.vapro-hub-active { background: var(--vap-h-bg); }
body.vapro-hub-active main,
body.vapro-hub-active .site-content,
body.vapro-hub-active .entry-content,
body.vapro-hub-active .page-content,
body.vapro-hub-active .elementor { background: var(--vap-h-bg); }

body.vapro-hub-active .site-main,
body.vapro-hub-active .site-content,
body.vapro-hub-active main,
body.vapro-hub-active article,
body.vapro-hub-active .entry-content,
body.vapro-hub-active .page-content,
body.vapro-hub-active .elementor,
body.vapro-hub-active .elementor-section,
body.vapro-hub-active .elementor-section .elementor-container,
body.vapro-hub-active .e-con,
body.vapro-hub-active .e-con-inner,
body.vapro-hub-active .elementor-widget-shortcode,
body.vapro-hub-active .elementor-widget-shortcode .elementor-widget-container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Pleine largeur : pas de max-width, juste un padding latéral */
.vapro-container { width: 100%; padding: 0 var(--vap-h-pad-x); }

/* ── Hero pleine largeur ───────────────────────────────── */
.vapro-hub-hero {
  position: relative;
  padding: clamp(56px, 8vw, 100px) 0 clamp(36px, 6vw, 70px);
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 90% 0%, rgba(0,96,60,.08), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(0,96,60,.06), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--vap-h-bg) 100%);
  border-bottom: 1px solid var(--vap-h-line);
}
.vapro-hub-hero-inner { max-width: 880px; }
.vapro-hub-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--vap-h-accent-soft);
  border: 1px solid rgba(0,96,60,.2);
  color: var(--vap-h-accent);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 18px;
}
.vapro-hub-title {
  margin: 0 0 16px;
  font-family: var(--vap-h-serif);
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 600; letter-spacing: -.018em; line-height: 1.05;
  color: var(--vap-h-primary);
}
.vapro-hub-sub {
  margin: 0 0 28px;
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55;
  color: var(--vap-h-text-2);
  max-width: 60ch;
}
.vapro-hub-hint { font-size: 14px; color: var(--vap-h-text); margin: 0; }

.vapro-hub-resume {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 18px;
  background: var(--vap-h-card);
  border: 1px solid var(--vap-h-line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--vap-h-primary);
  box-shadow: var(--vap-h-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.vapro-hub-resume:hover {
  transform: translateY(-2px);
  box-shadow: var(--vap-h-shadow-lg);
  border-color: var(--vap-h-accent);
}
.vapro-hub-resume-ico {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--vap-h-accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vapro-hub-resume-ico svg { transform: translateX(1px); }
.vapro-hub-resume-label { display: grid; gap: 2px; }
.vapro-hub-resume-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--vap-h-accent);
}
.vapro-hub-resume-label strong { font-weight: 600; font-size: 15px; color: var(--vap-h-primary); }

/* ── Sections ─────────────────────────────────────────── */
.vapro-hub-section { padding: clamp(36px, 5vw, 64px) 0; }
.vapro-hub-section + .vapro-hub-section { border-top: 1px solid var(--vap-h-line); }
.vapro-hub-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
.vapro-hub-section-title {
  margin: 0;
  font-family: var(--vap-h-serif);
  font-size: clamp(24px, 2.8vw, 36px); font-weight: 600;
  color: var(--vap-h-primary); letter-spacing: -.01em;
}
.vapro-hub-section-sub {
  font-size: 13px;
  color: var(--vap-h-text);
  font-weight: 500; letter-spacing: .04em;
  font-style: italic;
}

/* ── Feature (pack mis en avant — bandeau pleine largeur) ── */
.vapro-feature {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--vap-h-card);
  border: 1px solid var(--vap-h-line);
  border-radius: var(--vap-h-radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--vap-h-shadow);
  min-height: 340px;
}
@media (min-width: 760px) {
  .vapro-feature { grid-template-columns: 1.3fr 1fr; }
}
.vapro-feature-media {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, #112d22, #00603C);
  background-size: cover; background-position: center;
}
.vapro-feature-pill, .vapro-feature-badge {
  position: absolute; top: 22px; left: 22px; z-index: 2;
  display: inline-flex; padding: 7px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.vapro-feature-pill { background: #fff; color: var(--vap-h-accent); }
.vapro-feature-badge { background: var(--vap-h-accent); color: #fff; }
.vapro-feature-body { padding: clamp(28px, 4vw, 48px); display: grid; gap: 16px; align-content: center; }
.vapro-feature-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--vap-h-accent);
}
.vapro-feature-title {
  margin: 0; font-family: var(--vap-h-serif);
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; line-height: 1.12;
  color: var(--vap-h-primary);
}
.vapro-feature-desc { margin: 0; font-size: 16px; line-height: 1.65; color: var(--vap-h-text-2); }

.vapro-feature-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  background: var(--vap-h-accent); color: #fff;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  align-self: start;
  transition: all .25s ease;
  box-shadow: 0 12px 24px -10px rgba(0,96,60,.45);
}
.vapro-feature-cta:hover {
  background: var(--vap-h-accent-2);
  transform: translateY(-2px); color: #fff;
  box-shadow: 0 16px 32px -10px rgba(0,96,60,.6);
}
.vapro-feature-cta.is-owned {
  background: #fff; color: var(--vap-h-accent);
  border: 1px solid var(--vap-h-accent);
  box-shadow: none;
}
.vapro-feature-cta.is-owned:hover { background: var(--vap-h-accent); color: #fff; }

/* ── Rail Netflix horizontal en pleine largeur ──────────── */
.vapro-hub-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 22vw, 320px);
  gap: 22px;
  overflow-x: auto;
  padding: 6px 0 22px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--vap-h-pad-x);
  scrollbar-width: thin;
  scrollbar-color: rgba(2,7,6,.18) transparent;
  /* Le rail s'étend jusqu'au bord de la page (effet Netflix) */
  margin-inline: calc(var(--vap-h-pad-x) * -1);
  padding-inline: var(--vap-h-pad-x);
}
.vapro-hub-grid::-webkit-scrollbar { height: 8px; }
.vapro-hub-grid::-webkit-scrollbar-track { background: transparent; }
.vapro-hub-grid::-webkit-scrollbar-thumb { background: rgba(2,7,6,.15); border-radius: 4px; }
.vapro-hub-grid::-webkit-scrollbar-thumb:hover { background: rgba(0,96,60,.5); }

@media (max-width: 720px) {
  .vapro-hub-grid { grid-auto-columns: minmax(240px, 78vw); }
}

/* ── Card produit ──────────────────────────────────────── */
.vapro-card {
  display: grid; grid-template-rows: auto 1fr;
  background: var(--vap-h-card);
  border: 1px solid var(--vap-h-line);
  border-radius: var(--vap-h-radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  scroll-snap-align: start;
  box-shadow: var(--vap-h-shadow);
}
.vapro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vap-h-shadow-lg);
  border-color: var(--vap-h-accent);
}
.vapro-card-media {
  display: block; position: relative;
  aspect-ratio: 4/3; overflow: hidden;
  background: var(--vap-h-bg-warm);
}
.vapro-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.vapro-card:hover .vapro-card-media img { transform: scale(1.05); }
.vapro-card-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #f3efe6, #e6e0d0);
}
.vapro-card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--vap-h-accent); color: #fff;
  padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

.vapro-card-body { padding: 18px 20px 22px; display: grid; gap: 8px; }
.vapro-card-subtitle {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--vap-h-accent);
}
.vapro-card-title {
  margin: 0;
  font-family: var(--vap-h-serif);
  font-size: 19px; font-weight: 600; line-height: 1.3;
  color: var(--vap-h-primary);
}
.vapro-card-title a { color: inherit; text-decoration: none; }
.vapro-card-title a:hover { color: var(--vap-h-accent); }
.vapro-card-desc {
  margin: 0;
  font-size: 14px; line-height: 1.55;
  color: var(--vap-h-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.vapro-card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600; font-size: 13px;
  text-decoration: none;
  align-self: start;
  transition: all .25s ease;
}
.vapro-card-cta.is-buy {
  background: var(--vap-h-accent); color: #fff;
  box-shadow: 0 6px 16px -8px rgba(0,96,60,.4);
}
.vapro-card-cta.is-buy:hover { background: var(--vap-h-accent-2); transform: translateY(-1px); color: #fff; }
.vapro-card-cta.is-owned {
  background: transparent; color: var(--vap-h-accent);
  border: 1px solid var(--vap-h-accent);
}
.vapro-card-cta.is-owned:hover { background: var(--vap-h-accent); color: #fff; }

/* ── Modal (claire pour confort de lecture) ──────────── */
.vapro-modal {
  position: fixed; inset: 0; z-index: 999999;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  font-family: var(--vap-h-font);
}
.vapro-modal.is-open { display: flex; }
.vapro-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2,7,6,.55);
  backdrop-filter: blur(6px);
}
.vapro-modal-window {
  position: relative; z-index: 1;
  background: #fff; color: var(--vap-h-primary);
  border-radius: var(--vap-h-radius-lg);
  width: 100%; max-width: 480px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 50px 100px -20px rgba(0,0,0,.6);
  max-height: 90vh; overflow-y: auto;
}
.vapro-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 0;
  background: var(--vap-h-line-2); color: var(--vap-h-text);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.vapro-modal-close:hover { background: var(--vap-h-line); color: var(--vap-h-primary); }

.vapro-modal-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--vap-h-accent); margin-bottom: 8px;
}
.vapro-modal-title {
  margin: 0 0 8px; font-family: var(--vap-h-serif);
  font-size: 26px; font-weight: 600; line-height: 1.2;
  color: var(--vap-h-primary);
}
.vapro-modal-sub { margin: 0 0 18px; color: var(--vap-h-text); font-size: 14px; line-height: 1.55; }
.vapro-modal-price {
  font-family: var(--vap-h-serif);
  font-size: 32px; font-weight: 600;
  color: var(--vap-h-primary); margin-bottom: 18px;
}

.vapro-modal-features {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: grid; gap: 8px;
  border-top: 1px solid var(--vap-h-line);
  padding-top: 18px;
}
.vapro-modal-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--vap-h-text);
}
.vapro-modal-features svg { color: var(--vap-h-accent); flex-shrink: 0; }

.vapro-modal-fineprint { font-size: 12px; color: var(--vap-h-text); text-align: center; margin: 12px 0 0; }
.vapro-modal-loading-msg { text-align: center; color: var(--vap-h-text); margin: 16px 0 0; }

/* Stripe Embedded Checkout dans la modal ──────────────── */
.vapro-stripe-mount {
  min-height: 380px;
  margin: 0 -8px 8px;
  border-radius: 14px;
  overflow: hidden;
}
.vapro-modal-window:has(.vapro-modal-pane[data-pane="stripe"]:not([hidden])) {
  max-width: 580px;
  padding: clamp(20px, 3vw, 30px);
}

/* Boutons (modal) ────────────────────────────────────── */
.vapro-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer;
  font-family: var(--vap-h-font); font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: all .25s ease;
}
.vapro-btn-lg { padding: 16px 28px; font-size: 15px; width: 100%; }
.vapro-btn-primary {
  background: var(--vap-h-accent); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(0,96,60,.45);
}
.vapro-btn-primary:hover { background: var(--vap-h-accent-2); transform: translateY(-1px); color: #fff; }

/* Tabs auth ────────────────────────────────────────── */
.vapro-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--vap-h-line-2);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 22px;
}
.vapro-tab {
  padding: 10px 14px;
  border: 0; background: transparent;
  font-family: var(--vap-h-font); font-weight: 600; font-size: 13px;
  color: var(--vap-h-text); cursor: pointer;
  border-radius: 999px;
  transition: all .25s ease;
}
.vapro-tab.is-active { background: #fff; color: var(--vap-h-primary); box-shadow: 0 1px 3px rgba(2,7,6,.08); }

/* Forms ──────────────────────────────────────────── */
.vapro-form { display: grid; gap: 14px; }
.vapro-form label { display: grid; gap: 6px; }
.vapro-form label > span {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--vap-h-primary);
}
.vapro-form input {
  border: 1px solid var(--vap-h-line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--vap-h-font); font-size: 14px;
  background: var(--vap-h-bg);
  color: var(--vap-h-primary);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.vapro-form input:focus {
  outline: none;
  border-color: var(--vap-h-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,96,60,.12);
}
.vapro-form-link { color: var(--vap-h-accent); font-size: 13px; text-decoration: none; text-align: center; }
.vapro-form-link:hover { text-decoration: underline; }
.vapro-form-fineprint { font-size: 12px; color: var(--vap-h-text); margin: 0; text-align: center; }

/* Spinner ────────────────────────────────────────── */
.vapro-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--vap-h-line);
  border-top-color: var(--vap-h-accent);
  border-radius: 50%;
  margin: 8px auto;
  animation: vapro-spin 1s linear infinite;
}
@keyframes vapro-spin { to { transform: rotate(360deg); } }

/* Confettis ──────────────────────────────────────── */
@keyframes vapro-confetti {
  to { transform: translate3d(var(--dx, 0), 100vh, 0) rotate(720deg); opacity: 0; }
}
.vapro-confetti { position: fixed; top: -20px; width: 10px; height: 14px; pointer-events: none; z-index: 999998; animation: vapro-confetti 3s ease-out forwards; }

@media (prefers-reduced-motion: reduce) {
  .vapro-card, .vapro-feature-cta, .vapro-card-cta, .vapro-hub-resume, .vapro-modal-window { transition: none !important; }
  .vapro-confetti { display: none !important; }
}
