/* ==========================================================================
   DA C (Sport Santé & Vitalité Active) — Feuille de style principale
   Direction Artistique : Énergie, Santé en Entreprise, Vert Émeraude & Bleu Océan
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');
@import url('./tokens.css');

/* --- DEMO SWITCHER BAR ---
   SAW-REV-31 (C1) : règles EXTRAITES dans ./demo-switcher.css
   (harnais de démo exclu du paquet client — voir projects/SAW/scripts/README-deploiement.md) */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--saw-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--saw-text-main);
  background-color: var(--saw-bg-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--saw-transition);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- TYPOGRAPHIE --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--saw-font-heading);
  color: var(--saw-secondary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.3rem, 4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--saw-text-main); }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--saw-text-muted); }
.text-white { color: var(--saw-text-white); }
.text-green { color: var(--saw-primary); }

/* --- CONTENEURS & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow { max-width: 960px; }

.section {
  padding: 5rem 0;
  position: relative;
}
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }
.section-subtle { background-color: var(--saw-bg-subtle); }

.section-dark {
  background-color: var(--saw-secondary-dark);
  color: var(--saw-text-white);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--saw-text-white); }
.section-dark p { color: #FDD9C4; }

/* --- BADGES --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--saw-radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-federation { background: #FFF4EC; color: #047857; border: 1px solid #FDD9C4; }
.badge-programmes { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; } /* SAW-REV-31/R1 : AA 6.8:1 (était 3.07) */
.badge-evenements { background: #F5F3FF; color: #7C3AED; border: 1px solid #DDD6FE; }
.badge-membership { background: var(--saw-primary-light); color: var(--saw-primary); border: 1px solid var(--saw-primary-border); }
.badge-ressources { background: #F0F9FF; color: #0369A1; border: 1px solid #BAE6FD; } /* SAW-REV-31/R1 : AA 5.6:1 (était 3.84) */
.badge-membres { background: #FFF4EC; color: #C2410C; border: 1px solid #FDD9C4; }
.badge-swiss {
  background: var(--saw-primary-light);
  color: var(--saw-primary);
  border: 1px solid var(--saw-primary-border);
}

/* --- BOUTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--saw-radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--saw-transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #F97316 0%, #C2410C 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194, 65, 12, 0.45);
}

.btn-secondary {
  background-color: var(--saw-secondary);
  color: #FFFFFF;
}
.btn-secondary:hover {
  background-color: var(--saw-secondary-surface);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.3);
}

.btn-outline-white {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--saw-secondary);
  border-color: var(--saw-secondary-border);
}
.btn-outline-navy:hover {
  background-color: var(--saw-secondary-light);
  border-color: var(--saw-secondary);
}

.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.85rem; border-radius: var(--saw-radius-sm); }
.btn-lg { padding: 1.05rem 2.4rem; font-size: 1.05rem; border-radius: var(--saw-radius-lg); }

/* --- HEADER & TOPBAR --- */
.topbar {
  background-color: var(--saw-secondary-dark);
  color: #FDD9C4;
  font-size: 0.825rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.topbar-item a:hover { color: #FFFFFF; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.4rem;
  border-radius: var(--saw-radius-sm);
}
.lang-link {
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.775rem;
  color: #FDD9C4;
  transition: all var(--saw-transition);
}
.lang-link.active, .lang-link:hover {
  color: #FFFFFF;
  background-color: var(--saw-primary);
}

.topbar-btn-member {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--saw-radius-sm);
  background: rgba(16, 185, 129, 0.2);
  color: #FDD9C4;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 600;
  font-size: 0.775rem;
}
.topbar-btn-member:hover {
  background: var(--saw-primary);
  color: #FFFFFF;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.06);
  border-bottom: 1px solid var(--saw-border-subtle);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.logo-shield {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
}
.logo-cross {
  position: relative;
  width: 22px;
  height: 22px;
}
.logo-cross::before, .logo-cross::after {
  content: '';
  position: absolute;
  background: #FFFFFF;
  border-radius: 2px;
}
.logo-cross::before {
  top: 0;
  left: 7.5px;
  width: 7px;
  height: 22px;
}
.logo-cross::after {
  top: 7.5px;
  left: 0;
  width: 22px;
  height: 7px;
}
.logo-text-group { display: flex; flex-direction: column; }
.logo-brand {
  font-family: var(--saw-font-heading);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--saw-secondary);
  line-height: 1;
  letter-spacing: -0.03em;
}
.logo-brand span { color: var(--saw-primary); }
.logo-sub {
  font-size: 0.685rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--saw-text-muted);
  line-height: 1.2;
  margin-top: 2px;
}

/* --- NAV & MEGA MENU --- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
}
.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--saw-secondary);
  border-radius: var(--saw-radius-sm);
  transition: all var(--saw-transition);
}
.nav-link:hover, .nav-item.active .nav-link {
  color: var(--saw-primary);
  background-color: var(--saw-primary-light);
}
.nav-link svg.chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.nav-item:hover .nav-link svg.chevron { transform: rotate(180deg); }

.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 680px;
  background: #FFFFFF;
  border-radius: var(--saw-radius-lg);
  box-shadow: var(--saw-shadow-xl);
  border: 1px solid var(--saw-border-subtle);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--saw-transition);
  z-index: 999;
}
.nav-item:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.mega-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: var(--saw-radius-md);
  transition: background-color var(--saw-transition);
  text-decoration: none;
}
.mega-card:hover { background-color: var(--saw-bg-subtle); }
.mega-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--saw-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.mega-card-content h4 {
  font-size: 0.95rem;
  color: var(--saw-secondary);
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mega-card:hover .mega-card-content h4 { color: var(--saw-primary); }
.mega-card-content p {
  font-size: 0.8rem;
  color: var(--saw-text-muted);
  line-height: 1.35;
  margin-bottom: 0;
}
.mega-footer {
  margin: 1.25rem -1.5rem -1.5rem -1.5rem;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--saw-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--saw-bg-subtle);
  border-bottom-left-radius: var(--saw-radius-lg);
  border-bottom-right-radius: var(--saw-radius-lg);
}
.mega-footer-text { font-size: 0.8rem; color: var(--saw-text-muted); }
.mega-footer-link {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--saw-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--saw-secondary);
}

/* --- HERO BANNER --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #022C22 0%, #064E3B 60%, #065F46 100%);
  color: #FFFFFF;
  padding: 6rem 0 5.5rem 0;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(2, 132, 199, 0.2) 0%, transparent 45%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.hero-content h1 span { color: #FDBA74; }
.hero-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #D1FAE5;
  margin-bottom: 2rem;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.85rem;
  color: #FDD9C4;
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(167, 243, 208, 0.3);
  border-radius: var(--saw-radius-xl);
  padding: 2.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-card-title { font-size: 1.1rem; font-weight: 700; color: #FFFFFF; }
.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.hero-stat-box {
  background: rgba(0, 0, 0, 0.25);
  padding: 1.25rem;
  border-radius: var(--saw-radius-md);
  border-left: 3px solid #EA580C;
}
.hero-stat-value {
  font-family: var(--saw-font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}
.hero-stat-label { font-size: 0.8rem; color: #FDD9C4; margin-top: 0.35rem; }

/* --- SECTIONS & GRILLES --- */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}
.section-header.text-left { text-align: left; margin-left: 0; }
.section-tag { margin-bottom: 0.85rem; }
.section-title { margin-bottom: 1rem; }
.section-subtitle {
  font-size: 1.15rem;
  color: var(--saw-text-muted);
  line-height: 1.6;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.card {
  background: var(--saw-bg-card);
  border-radius: var(--saw-radius-lg);
  border: 1px solid var(--saw-border-subtle);
  padding: 2.25rem;
  box-shadow: var(--saw-shadow-sm);
  transition: all var(--saw-transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--saw-shadow-lg);
  border-color: var(--saw-primary);
}
.card-pole-border { border-top-width: 4px; }
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--saw-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.card-title { margin-bottom: 0.75rem; font-size: 1.25rem; }
.card-text {
  color: var(--saw-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}
.card-link {
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--saw-primary);
}

/* --- TARIFS & SIMULATEUR --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}
.pricing-card {
  background: #FFFFFF;
  border: 2px solid var(--saw-border-subtle);
  border-radius: var(--saw-radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--saw-transition);
}
.pricing-card:hover {
  border-color: var(--saw-primary);
  box-shadow: var(--saw-shadow-xl);
  transform: translateY(-4px);
}
.pricing-card.featured {
  border-color: var(--saw-primary);
  box-shadow: var(--saw-shadow-lg);
  background: linear-gradient(180deg, var(--saw-primary-light) 0%, #FFFFFF 20%);
}
.pricing-featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--saw-primary);
  color: #FFFFFF;
  padding: 0.25rem 1rem;
  border-radius: var(--saw-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-head {
  border-bottom: 1px solid var(--saw-border-subtle);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.pricing-tranche {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--saw-secondary);
  margin-bottom: 0.35rem;
}
.pricing-amount {
  font-family: var(--saw-font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--saw-secondary);
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.pricing-currency { font-size: 1.25rem; font-weight: 700; }
.pricing-period { font-size: 0.9rem; font-weight: 500; color: var(--saw-text-muted); }
.pricing-rate {
  font-size: 0.85rem;
  color: var(--saw-primary);
  font-weight: 600;
  margin-top: 0.25rem;
}
.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--saw-text-main);
  margin-bottom: 0.75rem;
}
.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--saw-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.calc-box {
  background: var(--saw-secondary-dark);
  color: #FFFFFF;
  border-radius: var(--saw-radius-xl);
  padding: 3.5rem;
  margin-top: 4rem;
  box-shadow: var(--saw-shadow-xl);
  border: 1px solid rgba(167, 243, 208, 0.2);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.calc-input-group { margin-top: 1.5rem; }
.calc-range-wrapper { margin: 1.5rem 0; }
.calc-range {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  -webkit-appearance: none;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #EA580C;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}
.calc-result-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(167, 243, 208, 0.25);
  border-radius: var(--saw-radius-lg);
  padding: 2.25rem;
  text-align: center;
}
.calc-result-val {
  font-family: var(--saw-font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  margin: 1rem 0 0.5rem 0;
}
.calc-result-val span { color: #FDBA74; }

/* --- ÉVÉNEMENTS --- */
.event-card {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.75rem;
  align-items: center;
  background: #FFFFFF;
  border-radius: var(--saw-radius-lg);
  border: 1px solid var(--saw-border-subtle);
  padding: 1.5rem;
  transition: all var(--saw-transition);
  margin-bottom: 1.25rem;
}
.event-card:hover {
  border-color: #8B5CF6;
  box-shadow: var(--saw-shadow-md);
  transform: translateX(4px);
}
.event-date-badge {
  background: #F5F3FF;
  border: 1px solid #DDD6FE;
  border-radius: var(--saw-radius-md);
  padding: 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-day {
  font-family: var(--saw-font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #7C3AED;
  line-height: 1;
}
.event-month {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #7C3AED;
  margin-top: 0.2rem;
}
.event-details h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.event-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--saw-text-muted);
}
.event-meta span { display: flex; align-items: center; gap: 0.35rem; }

/* --- FOOTER NORAPILOT --- */
.site-footer {
  background-color: var(--saw-secondary-dark);
  color: #FDD9C4;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(167, 243, 208, 0.15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-col h4,
.footer-col h3 {  /* SAW-REV-31/R3 : titres harmonisés h4→h3 — rendu strictement identique */
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a { color: #FDD9C4; font-size: 0.9rem; }
.footer-links a:hover { color: #FFFFFF; padding-left: 4px; }
.footer-newsletter input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--saw-radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  outline: none;
}
.footer-newsletter input:focus { border-color: var(--saw-primary); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
}
.footer-legal-links { display: flex; align-items: center; gap: 1.5rem; }
.footer-legal-links a:hover { color: #FFFFFF; }
.footer-propulsion {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.45rem 0.9rem;
  border-radius: var(--saw-radius-full);
  border: 1px solid rgba(167, 243, 208, 0.3);
  color: #E2E8F0;
  font-weight: 600;
  font-size: 0.825rem;
}
.footer-propulsion strong { color: #FDBA74; }

/* --- CHATBOT WIDGET --- */
.saw-chatbot-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
}
.saw-chatbot-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--saw-secondary);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  padding: 0.75rem 1.25rem;
  border-radius: var(--saw-radius-full);
  box-shadow: var(--saw-shadow-xl);
  cursor: pointer;
  transition: all var(--saw-transition);
}
.saw-chatbot-trigger:hover { background: var(--saw-secondary-surface); transform: scale(1.04); }
.bot-avatar {
  width: 32px;
  height: 32px;
  background: var(--saw-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.bot-trigger-text { font-size: 0.9rem; font-weight: 700; }
.bot-pulse {
  width: 8px;
  height: 8px;
  background: #F97316;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.4);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
/* SAW-REV-31 (R2) : WCAG 2.2.2/2.3.3 — stopper le pouls sous préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
  .bot-pulse { animation: none; }
}

.saw-chatbot-modal {
  position: absolute;
  bottom: calc(100% + 1rem);
  right: 0;
  width: 380px;
  height: 520px;
  background: #FFFFFF;
  border-radius: var(--saw-radius-lg);
  box-shadow: var(--saw-shadow-xl);
  border: 1px solid var(--saw-border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.96);
  transition: all var(--saw-transition);
}
.saw-chatbot-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.bot-modal-header {
  background: var(--saw-secondary);
  color: #FFFFFF;
  padding: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bot-modal-header-info { display: flex; align-items: center; gap: 0.75rem; }
.bot-modal-header h4 { color: #FFFFFF; font-size: 1rem; margin-bottom: 0.1rem; }
.bot-modal-header p { font-size: 0.75rem; color: #FDD9C4; margin: 0; }
.bot-close-btn { background: transparent; border: none; color: #CBD5E1; cursor: pointer; font-size: 1.25rem; }
.bot-close-btn:hover { color: #FFFFFF; }
.bot-messages-area {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: var(--saw-bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.bot-msg {
  max-width: 85%;
  padding: 0.75rem 0.95rem;
  border-radius: var(--saw-radius-md);
  font-size: 0.875rem;
  line-height: 1.45;
}
.bot-msg-received {
  align-self: flex-start;
  background: #FFFFFF;
  color: var(--saw-text-main);
  border: 1px solid var(--saw-border-subtle);
  box-shadow: var(--saw-shadow-sm);
  border-bottom-left-radius: 2px;
}
.bot-msg-sent {
  align-self: flex-end;
  background: var(--saw-secondary);
  color: #FFFFFF;
  border-bottom-right-radius: 2px;
}
.bot-quick-prompts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.bot-prompt-chip {
  background: #FFFFFF;
  border: 1px solid var(--saw-primary-border);
  color: var(--saw-primary);
  padding: 0.3rem 0.65rem;
  border-radius: var(--saw-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--saw-transition);
}
.bot-prompt-chip:hover { background: var(--saw-primary); color: #FFFFFF; }
.bot-input-bar {
  padding: 0.75rem;
  background: #FFFFFF;
  border-top: 1px solid var(--saw-border-subtle);
  display: flex;
  gap: 0.5rem;
}
.bot-input-bar input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border-radius: var(--saw-radius-sm);
  border: 1px solid var(--saw-border-subtle);
  font-size: 0.85rem;
  outline: none;
}
.bot-input-bar input:focus { border-color: var(--saw-primary); }
.bot-input-bar button {
  background: var(--saw-primary);
  color: #FFFFFF;
  border: none;
  padding: 0 0.85rem;
  border-radius: var(--saw-radius-sm);
  cursor: pointer;
  font-weight: 600;
}
.bot-modal-footer {
  padding: 0.4rem 0.75rem;
  background: #FFFFFF;
  border-top: 1px solid var(--saw-border-subtle);
  text-align: center;
  font-size: 0.7rem;
  color: var(--saw-text-light);
}









/* --- RESPONSIVE MOBILE COMPLET (360px - 992px) --- */
.btn-text-short { display: none !important; }

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

.badge {
  max-width: 100%;
  white-space: normal !important;
  line-height: 1.35;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; gap: 1.5rem !important; }
  .grid-2 { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 1.25rem !important; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1.5rem !important; }
  .calc-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 2rem !important; }
  .mega-dropdown { width: 560px; }
}

@media (max-width: 992px) {
  /* Navigation Mobile */
  .mobile-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;  /* SAW-IMG-016 : cible tactile >= 44px (Apple HIG) */
    height: 44px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    background: var(--saw-bg-subtle, #F1F5F9) !important;
    border: 1px solid var(--saw-border-subtle, #CBD5E1) !important;
    color: var(--saw-secondary, #0D324D) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
  }

  .main-nav {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #FFFFFF !important;
    flex-direction: column !important;
    align-items: stretch !important;
    height: auto !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    padding: 1rem 1.25rem 2rem 1.25rem !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
    border-bottom: 2px solid var(--saw-primary, #C2410C) !important;
    z-index: 1000 !important;
  }

  .main-nav.mobile-open {
    display: flex !important;
  }

  .nav-item {
    height: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    border-bottom: 1px solid var(--saw-border-subtle, rgba(0,0,0,0.06)) !important;
    padding: 0.35rem 0 !important;
  }

  .nav-link {
    width: 100% !important;
    justify-content: space-between !important;
    padding: 0.75rem 0.5rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
  }

  .mega-dropdown {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0.5rem 0 0.75rem 0 !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: none !important;
  }

  .nav-item.open-sub .mega-dropdown {
    display: block !important;
  }

  .nav-item.open-sub .nav-link svg.chevron {
    transform: rotate(180deg) !important;
  }

  .mega-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  .mega-card {
    padding: 0.6rem !important;
    background: var(--saw-bg-subtle, #F8FAFC) !important;
    border-radius: var(--saw-radius-sm, 6px) !important;
  }

  .mega-footer {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* Textes dynamiques pour boutons header */
  .btn-text-full { display: none !important; }
  .btn-text-short { display: inline !important; }

  /* Typographie fluide */
  h1 {
    font-size: clamp(1.5rem, 6vw, 2.1rem) !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  h2 {
    font-size: clamp(1.35rem, 5vw, 1.85rem) !important;
  }
  /* SAW-REV-31 (R3) : cartes harmonisées h3→h2 — garder la taille historique (1.25rem) */
  h2.card-title { font-size: 1.25rem !important; }
  .btn-lg {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.92rem !important;
  }

  /* Conteneurs et espacements */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .section {
    padding: 3.5rem 0 !important;
  }
  .section-sm { padding: 2rem 0 !important; }
  .section-lg { padding: 4.5rem 0 !important; }

  /* Demo Switcher Bar → ./demo-switcher.css (SAW-REV-31/C1) */

  /* Topbar fédérale */
  .topbar {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.75rem;
  }
  .topbar-left {
    display: none !important;
  }
  .topbar-container {
    justify-content: space-between !important;
  }
  .topbar-right {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
  }
  .topbar-btn-member {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    white-space: nowrap;
  }

  /* Header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFFFFF;
    width: 100%;
  }
  .site-header .header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 56px;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    box-sizing: border-box;
    width: 100%;
  }
  .site-header .site-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }
  .site-header .header-container > div:last-child {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }
  .site-header .btn {
    padding: 0.32rem 0.55rem !important;
    font-size: 0.76rem !important;
    white-space: nowrap !important;
  }
  .logo-shield {
    width: 30px !important;
    height: 30px !important;
    flex-shrink: 0 !important;
  }
  .logo-cross {
    width: 15px !important;
    height: 15px !important;
  }
  .logo-cross::before {
    left: 5px !important;
    width: 5px !important;
    height: 15px !important;
  }
  .logo-cross::after {
    top: 5px !important;
    width: 15px !important;
    height: 5px !important;
  }
  .logo-brand {
    font-size: 1.15rem !important;
  }
  .logo-sub {
    display: none !important;
  }

  /* Hero Section */
  .hero {
    padding: 3.5rem 0 3rem 0 !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .hero-content h1 {
    font-size: clamp(1.65rem, 6vw, 2.1rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }
  .hero-lead {
    font-size: 0.98rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.5rem !important;
  }
  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .hero-trust {
    margin-top: 1.75rem !important;
    padding-top: 1.25rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  .trust-logos {
    flex-wrap: wrap !important;
    gap: 0.5rem 0.85rem !important;
    font-size: 0.78rem !important;
  }
  .hero-card {
    padding: 1.25rem !important;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }
  .hero-stat-box {
    padding: 0.85rem !important;
  }
  .hero-stat-value {
    font-size: 1.6rem !important;
  }

  /* Grilles, Cards & Tarifs */
  .grid-3, .grid-2, .grid-4, .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .card {
    padding: 1.35rem 1.15rem !important;
  }
  .pricing-card {
    padding: 1.5rem 1.25rem !important;
  }
  .section-header {
    margin-bottom: 2.25rem !important;
  }
  .section-title {
    font-size: clamp(1.4rem, 5vw, 1.9rem) !important;
  }
  .section-subtitle {
    font-size: 0.95rem !important;
  }

  /* Simulateur CHF & Formulaires */
  .calc-box {
    padding: 1.5rem 1.15rem !important;
    margin-top: 2.5rem !important;
    border-radius: var(--saw-radius-lg, 16px) !important;
  }
  .calc-grid {
    gap: 1.75rem !important;
  }
  .calc-result-card {
    padding: 1.25rem 1rem !important;
  }
  .calc-result-val {
    font-size: 2.2rem !important;
  }
  .calc-input-group div[style*="justify-content: space-between"] {
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
  }
  .card[style*="padding: 3rem"] {
    padding: 1.5rem 1rem !important;
  }
  form div[style*="grid-template-columns: 1fr 1fr"],
  form div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Événements */
  .event-card {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 1.25rem 1rem !important;
  }
  .event-date-badge {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
    width: fit-content !important;
  }
  .event-day { font-size: 1.3rem !important; }
  .event-meta {
    flex-wrap: wrap !important;
    gap: 0.5rem 1rem !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .site-footer {
    padding: 3.5rem 0 2rem 0 !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1rem !important;
    align-items: center !important;
  }
  .footer-legal-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1rem !important;
  }

  /* Chatbot Widget */
  .saw-chatbot-container {
    bottom: 0.75rem !important;
    right: 0.75rem !important;
  }
  /* SAW-IMG-016 : pastille ronde compacte en mobile - l'ancien trigger
     190x52px chevauchait la fleche next du carrousel hero a 375px.
     L'aria-label du bouton reste complet pour les lecteurs d'ecran. */
  .saw-chatbot-trigger {
    padding: 0.6rem !important;
    width: 52px !important;
    height: 52px !important;
    justify-content: center !important;
    gap: 0 !important;
  }
  .bot-trigger-text {
    display: none !important;
  }
  .saw-chatbot-modal {
    position: fixed !important;
    top: auto !important;
    bottom: 4.5rem !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    width: auto !important;
    height: min(480px, calc(100vh - 6rem)) !important;
    border-radius: 16px !important;
  }

  /* Tableaux responsives */
  .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    border-radius: 8px !important;
    border: 1px solid var(--saw-border-subtle, rgba(0,0,0,0.1)) !important;
  }
  .table-responsive table {
    min-width: 580px !important;
  }
}

@media (max-width: 420px) {
  .site-header .btn span {
    font-size: 0.72rem !important;
  }
  .site-header .btn {
    padding: 0.28rem 0.45rem !important;
  }
}

/* SAW-REV lot 1 (2026-10-04) · masquages réversibles : garantir que l'attribut hidden n'est pas neutralisé par les display des composants */
[hidden] { display: none !important; }

/* SAW-REV-33 → SAW-REV-44 · LPD publiée : le libellé « en préparation » est remplacé par un lien actif (12/12 footers).
   Classe conservée pour rollback (aucune occurrence HTML restante). */
.footer-legal-pending { color: #CBD5E1; cursor: default; }

/* SAW-REV-33 · retour visuel des formulaires branchés mailto (0 alert) */
.saw-mailto-feedback {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--saw-primary);
  background: var(--saw-bg-subtle);
  color: var(--saw-text-muted);
  font-size: 0.85rem;
  border-radius: 6px;
}

/* SAW-REV-36 · A3 : séparations visuelles entre cartes d'événements (filet neutre + relief + espacement) */
.event-card {
  border-color: #E2E8F0;
  box-shadow: var(--saw-shadow-sm);
}
.event-card + .event-card { margin-top: 2rem; }

/* SAW-REV-36 · A4 : espacer la nav (Contact) du bloc d'action (Devenir membre) */
.main-nav + div { margin-left: 1.25rem; }
@media (max-width: 992px) {
  .main-nav + div { margin-left: 0; }
}
