/*
Theme Name: VIVRE de Bon'Heur — Inscription
Theme URI: https://sakomgn.com
Author: saKom
Author URI: https://sakomgn.com
Description: Thème de la billetterie en ligne de la conférence VIVRE de Bon'Heur (inscription.atexperiences.com). Reprend la charte de conference.atexperiences.com et accueille l'extension « VIVRE de Bon'Heur — Inscriptions & billetterie » : formules Premium et Business, réservation, paiement Chap Chap Pay, billet nominatif à QR code et contrôle à l'entrée.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vivre-inscription
Tags: one-column, custom-menu, custom-logo
*/

/* ==========================================================================
   Jetons — palette, typographies et effets de conference.atexperiences.com
   ========================================================================== */
:root {
  --vb-ink: #0a1d38;
  --vb-navy: #12305a;
  --vb-navy-deep: #06142a;
  --vb-navy-mid: #173d70;
  --vb-blue: #1f68b0;
  --vb-sky: #e8f0f9;
  --vb-orange: #f2662a;
  --vb-orange-deep: #e2551a;
  --vb-sun: #f5a719;
  --vb-gold: #c9971c;
  --vb-gold-light: #f7d77e;
  --vb-cream: #faf7f1;
  --vb-line: #dde4ee;
  --vb-text: #40506b;
  --vb-white: #ffffff;
  --vb-success: #128c4a;
  --vb-error: #d13c2c;
  --vb-font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --vb-font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --vb-radius: 1.25rem;
  --vb-shadow: 0 24px 60px -28px rgba(10, 29, 56, 0.65);
  --vb-shadow-soft: 0 10px 30px -12px rgba(10, 29, 56, 0.18);
  --vb-shadow-orange: 0 10px 30px -10px rgba(242, 102, 42, 0.8);
  --vb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --vb-header-h: 72px;
  --vb-container: 1200px;
  --vb-gutter: clamp(1rem, 4vw, 2.5rem);
}
@media (min-width: 640px) {
  :root { --vb-header-h: 88px; }
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--vb-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--vb-ink);
  background: var(--vb-cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--vb-blue); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--vb-navy); }

h1, h2, h3, h4 { margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; color: var(--vb-navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

button, input, select, textarea { font: inherit; color: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.container { width: min(var(--vb-container), 100% - 2 * var(--vb-gutter)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--ink { background: var(--vb-ink); color: var(--vb-white); }
.section--ink h2, .section--ink h3 { color: var(--vb-white); }
.section--sky { background: var(--vb-sky); }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--vb-text); font-size: 1.1rem; }
.section--ink .section-head p { color: rgba(255, 255, 255, 0.75); }

/* ==========================================================================
   Composants partagés avec l'extension (boutons, kicker, titres)
   ========================================================================== */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vb-orange);
}
.kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.kicker--center { justify-content: center; width: 100%; }
.kicker--light { color: var(--vb-sun); }

.display-1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.display-2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.lead { font-size: 1.1rem; line-height: 1.65; color: var(--vb-text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--vb-font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--vb-ease), box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.btn:focus-visible { outline: 3px solid rgba(31, 104, 176, 0.35); outline-offset: 2px; }
.btn--primary { background: var(--vb-orange); color: var(--vb-white); box-shadow: var(--vb-shadow-orange); }
.btn--primary:hover { background: var(--vb-orange-deep); color: var(--vb-white); transform: translateY(-1px); }
.btn--sun { background: var(--vb-sun); color: var(--vb-ink); }
.btn--sun:hover { background: #e59a12; color: var(--vb-ink); }
.btn--navy { background: var(--vb-navy); color: var(--vb-white); }
.btn--navy:hover { background: var(--vb-ink); color: var(--vb-white); }
.btn--ghost { background: transparent; color: var(--vb-navy); border-color: var(--vb-line); }
.btn--ghost:hover { border-color: var(--vb-navy); color: var(--vb-navy); }
.btn--outline-navy { background: transparent; color: var(--vb-navy); border-color: var(--vb-navy); }
.btn--outline-navy:hover { background: var(--vb-navy); color: var(--vb-white); }
.btn--outline-light { background: transparent; color: var(--vb-white); border-color: rgba(255, 255, 255, 0.5); }
.btn--outline-light:hover { background: var(--vb-white); color: var(--vb-navy); border-color: var(--vb-white); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn--block { display: flex; width: 100%; }
.btn-arrow { transition: transform 0.25s var(--vb-ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn.is-busy { opacity: 0.7; pointer-events: none; }
.btn.is-disabled, .btn[disabled] { opacity: 0.55; pointer-events: none; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--vb-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--vb-orange); }

/* ==========================================================================
   En-tête
   ========================================================================== */
.vi-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(6, 20, 42, 0.98), rgba(10, 29, 56, 0.94));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--vb-white);
}
.vi-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--vb-header-h);
  padding: 0 var(--vb-gutter);
}
.vi-brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; }
.vi-brand img { display: block; width: auto; }
.vi-brand-vivre { height: 44px; }
.vi-brand-at { height: 36px; }
.vi-brand-sep { width: 1px; height: 36px; background: rgba(255, 255, 255, 0.3); }
@media (min-width: 640px) {
  .vi-brand-vivre { height: 56px; }
  .vi-brand-at { height: 44px; }
}

.vi-nav { display: none; align-items: center; gap: clamp(1.4rem, 2.5vw, 2.25rem); }
.vi-nav ul { display: contents; list-style: none; margin: 0; padding: 0; }
.vi-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.vi-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--vb-sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--vb-ease);
}
.vi-nav a:hover, .vi-nav .current-menu-item > a { color: var(--vb-white); }
.vi-nav a:hover::after, .vi-nav .current-menu-item > a::after { transform: scaleX(1); }
@media (min-width: 1024px) { .vi-nav { display: flex; } }

.vi-header-actions { display: flex; align-items: center; gap: 0.75rem; }
.vi-header-cta { display: none; }
@media (min-width: 640px) { .vi-header-cta { display: inline-flex; } }
.vi-burger {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--vb-white);
  cursor: pointer;
}
.vi-burger span { display: flex; flex-direction: column; gap: 5px; width: 20px; }
.vi-burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s, opacity 0.25s; }
@media (min-width: 1024px) { .vi-burger { display: none; } }
.vi-nav-open .vi-burger i:first-child { transform: translateY(7px) rotate(45deg); }
.vi-nav-open .vi-burger i:last-child { transform: translateY(-7px) rotate(-45deg); }

.vi-drawer {
  display: none;
  background: var(--vb-navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem var(--vb-gutter) 1.5rem;
}
.vi-nav-open .vi-drawer { display: block; }
.vi-drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.vi-drawer ul a { display: block; padding: 0.75rem 0; color: var(--vb-white); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.vi-drawer .btn { margin-top: 1.2rem; justify-content: center; text-align: center; }
@media (min-width: 1024px) { .vi-drawer { display: none !important; } }

/* ==========================================================================
   Héros et bandeaux de page
   ========================================================================== */
.vi-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  color: var(--vb-white);
  background: var(--vb-ink);
}
.vi-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--vi-hero-image, none);
  background-size: cover;
  background-position: center 30%;
  opacity: 0.35;
}
.vi-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 85% 10%, rgba(242, 102, 42, 0.28) 0%, transparent 60%),
    linear-gradient(160deg, rgba(6, 20, 42, 0.95) 0%, rgba(10, 29, 56, 0.85) 60%, rgba(18, 48, 90, 0.75) 100%);
}
.vi-page-hero > .container { position: relative; z-index: 1; }
.vi-page-hero h1 { color: var(--vb-white); margin: 0.6rem 0 0.8rem; }
.vi-page-hero .lead { color: rgba(255, 255, 255, 0.8); max-width: 640px; }
.vi-page-hero--compact { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.vi-hero-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.4rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.vi-hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.vi-hero-meta svg { color: var(--vb-sun); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 0.5rem; }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--vb-sun); }

/* ==========================================================================
   Page d'accueil — formulaire de réservation puis compléments
   ========================================================================== */
.vi-apply-section { background: var(--vb-cream); }
.vi-apply-section .vb-apply .apply-layout { min-height: calc(100svh - var(--vb-header-h)); }

.vi-team {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 2rem;
  background: linear-gradient(135deg, var(--vb-navy) 0%, var(--vb-navy-mid) 55%, var(--vb-blue) 100%);
  color: var(--vb-white);
}
@media (min-width: 900px) { .vi-team { grid-template-columns: 1.3fr 1fr; } }
.vi-team h2 { color: var(--vb-white); }
.vi-team p { color: rgba(255, 255, 255, 0.82); }
.vi-team-offer {
  display: grid;
  gap: 0.6rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.vi-team-discount { font-family: var(--vb-font-mono); font-size: 2.6rem; font-weight: 700; color: var(--vb-sun); line-height: 1; }
.vi-team-offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; font-size: 0.95rem; }
.vi-team-offer li { display: flex; gap: 0.6rem; align-items: flex-start; }
.vi-team-offer li::before { content: '✓'; color: var(--vb-sun); font-weight: 800; }

.vi-steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.vi-step { padding: 1.5rem; border-radius: 1.25rem; background: var(--vb-white); border: 1px solid var(--vb-line); box-shadow: var(--vb-shadow-soft); }
.vi-step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--vb-sky);
  color: var(--vb-blue);
  font-family: var(--vb-font-mono);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.vi-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.vi-step p { margin: 0; font-size: 0.92rem; color: var(--vb-text); }

.vi-faq { max-width: 800px; margin: 0 auto; display: grid; gap: 0.75rem; }
.vi-faq details { border-radius: 1rem; background: var(--vb-white); border: 1px solid var(--vb-line); padding: 0 1.25rem; }
.vi-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--vb-navy);
  list-style: none;
}
.vi-faq summary::-webkit-details-marker { display: none; }
.vi-faq summary::after { content: '+'; font-size: 1.4rem; color: var(--vb-orange); font-weight: 400; transition: transform 0.2s; }
.vi-faq details[open] summary::after { transform: rotate(45deg); }
.vi-faq details p { margin: 0 0 1.1rem; color: var(--vb-text); }

/* ==========================================================================
   Pages standard
   ========================================================================== */
.vi-content { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.vi-content .entry { max-width: 820px; margin: 0 auto; }
.vi-content .entry > :first-child { margin-top: 0; }
.vi-content h2 { font-size: 1.5rem; margin-top: 2rem; }
.vi-content h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.vi-content ul, .vi-content ol { padding-left: 1.3rem; }
.vi-content li { margin-bottom: 0.4rem; }
.vi-content--flow { padding: 0; }
.vi-content--flow .entry { max-width: none; }
.vi-content .entry--wide { max-width: none; }

/* La page Paiement et les pages du parcours livrent leur propre mise en page. */
.page-template-flow .vi-content { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }

/* Pages autonomes de l'extension (billet, contrôle) */
body.vb-badge-page { background: var(--vb-cream); }

.vi-404 { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.vi-404 .display-1 { color: var(--vb-navy); }
.vi-404 .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.vi-footer { background: var(--vb-navy-deep); color: rgba(255, 255, 255, 0.7); padding: 3.5rem 0 2rem; font-size: 0.95rem; }
.vi-footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .vi-footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.vi-footer-brand { display: flex; align-items: center; gap: 1rem; }
.vi-footer-brand img { width: auto; display: block; }
.vi-footer-brand .vi-brand-vivre { height: 48px; }
.vi-footer-brand .vi-brand-at { height: 40px; }
.vi-footer p { margin: 1rem 0 0; max-width: 320px; line-height: 1.6; }
.vi-footer-title { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vb-sun); margin-bottom: 0.9rem; }
.vi-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.vi-footer a { color: inherit; text-decoration: none; }
.vi-footer a:hover { color: var(--vb-white); }
.vi-footer-links a { color: var(--vb-white); font-weight: 600; }
.vi-footer-links a:hover { color: var(--vb-sun); }
.vi-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}
.vi-footer-sakom { display: inline-flex; align-items: center; gap: 0.4rem; }
.vi-footer-sakom a { color: rgba(255, 255, 255, 0.75); font-weight: 700; text-decoration: underline; text-decoration-color: var(--vb-orange); text-underline-offset: 0.2em; }
.vi-footer-sakom a:hover { color: var(--vb-sun); }

/* Bandeau mobile fixe : prix et bouton (comme sur le site de la conférence) */
.vi-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--vb-gutter);
  background: rgba(6, 20, 42, 0.96);
  backdrop-filter: blur(10px);
  color: var(--vb-white);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.vi-sticky-cta small { display: block; font-size: 0.72rem; color: rgba(255, 255, 255, 0.6); }
.vi-sticky-cta strong { font-family: var(--vb-font-mono); font-size: 0.95rem; }
body.has-sticky-cta .vi-footer { padding-bottom: 6rem; }
@media (min-width: 640px) { .vi-sticky-cta { display: none; } body.has-sticky-cta .vi-footer { padding-bottom: 2rem; } }

/* Les pages autonomes de l'extension n'ont ni en-tête ni pied de page. */
body.vb-checkin .vi-header, body.vb-checkin .vi-footer { display: none; }

/* Impression du billet */
@media print {
  .vi-header, .vi-footer, .vi-sticky-cta { display: none !important; }
  body { background: #fff; }
}
