/* ============================================================
   pension.azeo.ch — Styles principaux
   ============================================================ */

:root {
  --red:      #C8102E;
  --red-dark: #a00d24;
  --red-light:#fdf0f2;
  --blue:     #1a3a5c;
  --gold:     #C9A84C;
  --green:    #2d7a4f;
  --gray-50:  #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-400: #adb5bd;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --gray-900: #212529;
  --white:    #ffffff;
  --radius:   10px;
  --shadow:   0 2px 12px rgba(0,0,0,.08);
  --shadow-md:0 4px 24px rgba(0,0,0,.12);
  --font:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:    1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-900);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-img {
  height: 28px;
  width: auto;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-pension {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: .5px;
}
.logo-byazeo {
  font-size: 0.7rem;
  font-weight: 500;
  color: #6aaa2a;
  letter-spacing: .3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--gray-800);
  font-size: .92rem;
  font-weight: 500;
  transition: background .15s;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { background: var(--red-light); color: var(--red); text-decoration: none; }

/* Lien Entreprises — bordure bleue */
.nav-link--entreprises {
  display: inline-flex;
  align-items: center;
  height: 32px;
  border: 1.5px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  padding: 0 14px;
  font-size: .92rem;
  font-weight: 600;
  box-sizing: border-box;
  line-height: 1;
}
.nav-link--entreprises:hover, .nav-link--entreprises.active {
  background: var(--blue);
  color: #fff !important;
  border-color: var(--blue);
}

.btn-chat-open {
  display: inline-flex;
  align-items: center;
  height: 32px;
  background: var(--red);
  color: #fff;
  border: 1.5px solid var(--red);
  border-radius: 6px;
  padding: 0 14px;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  margin-left: 6px;
  white-space: nowrap;
  box-sizing: border-box;
  line-height: 1;
}
.btn-chat-open:hover { background: var(--red-dark); border-color: var(--red-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s;
  text-decoration: none;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color:#fff; text-decoration:none; }
.btn-outline  { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover  { background: var(--red-light); text-decoration: none; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ---- HERO ---- */
.hero {
  padding: 72px 0 80px;
  background: linear-gradient(135deg, var(--blue) 0%, #0d2440 100%);
  color: #fff;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .85rem;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero h1 .highlight { color: #f0c040; }

.hero-sub {
  font-size: 1.1rem;
  opacity: .85;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Pillar mini cards in hero */
.pillar-cards-mini {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-mini {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  backdrop-filter: blur(4px);
  transition: transform .2s, background .2s;
  display: block;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}
.pillar-mini:hover { transform: translateX(6px); background: rgba(255,255,255,.18); text-decoration: none; color: #fff; }
.pillar-num { font-size: 1.6rem; font-weight: 800; opacity: .6; }
.pillar-name { font-weight: 700; font-size: 1rem; }
.pillar-sub { font-size: .82rem; opacity: .7; }

.p1 { border-left: 4px solid #e74c3c; }
.p2 { border-left: 4px solid #3498db; }
.p3 { border-left: 4px solid #2ecc71; }

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--gray-900);
  color: #fff;
  padding: 24px 0;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-val { font-size: 1.6rem; font-weight: 800; color: #f0c040; }
.stat-label { font-size: .8rem; opacity: .75; margin-top: 4px; }

/* ---- SECTIONS ---- */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-50); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-header h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 12px; color: var(--blue); }
.section-header p { color: var(--gray-600); font-size: 1.05rem; }

/* ---- PILLAR GRID (homepage) ---- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); text-decoration: none; color: inherit; }
.pillar-card.featured { border-color: var(--gray-200); box-shadow: none; }

.pillar-badge {
  display: inline-block;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.p1-badge { background: #fdecea; color: #c0392b; }
.p2-badge { background: #eaf4fd; color: #2471a3; }
.p3-badge { background: #eafaf1; color: #1e8449; }

.pillar-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--blue); }
.pillar-card p  { color: var(--gray-600); font-size: .93rem; margin-bottom: 14px; }

.pillar-facts {
  list-style: none;
  margin-bottom: 18px;
}
.pillar-facts li {
  padding: 5px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .88rem;
  color: var(--gray-800);
}
.pillar-facts li:last-child { border-bottom: none; }

.card-link { font-size: .9rem; font-weight: 600; color: var(--red); }

/* ---- EVENTS GRID ---- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, border-color .2s;
  display: block;
}
.event-card:hover { box-shadow: var(--shadow-md); border-color: var(--red); text-decoration: none; }

.event-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.event-card h4 { font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.event-card p  { font-size: .88rem; color: var(--gray-600); }

/* ---- RATES GRID ---- */
.rates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rate-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.rate-icon { font-size: 2.5rem; margin-bottom: 16px; }
.rate-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.rate-card p  { font-size: .9rem; color: var(--gray-600); }
.rate-formula {
  margin-top: 16px;
  background: var(--gray-50);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: .85rem;
  font-family: monospace;
  color: var(--blue);
  font-weight: 600;
}

/* ---- CTA SECTION ---- */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, #0d2440 100%);
  padding: 72px 0;
}
.cta-box {
  text-align: center;
  color: #fff;
}
.cta-box h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 14px; }
.cta-box p  { opacity: .85; font-size: 1.05rem; margin-bottom: 28px; }

/* ---- PAGE HERO ---- */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #0d2440 100%);
  color: #fff;
  padding: 52px 0;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.page-hero p  { opacity: .85; font-size: 1.05rem; max-width: 600px; }

/* ---- ANCHOR NAV ---- */
.anchor-nav {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 68px;
  z-index: 50;
}
.anchor-nav .container {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 24px;
  scrollbar-width: none;
}
.anchor-nav a {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: background .15s;
}
.anchor-nav a:hover { background: var(--red-light); color: var(--red); }

/* ---- PAGE CONTENT ---- */
.page-content { padding: 48px 0 72px; }

/* ---- PILIER SECTIONS ---- */
.pilier-section { margin-bottom: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--gray-200); }
.pilier-section:last-child { border-bottom: none; }

.pilier-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  color: #fff;
}
.p1-theme { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.p2-theme { background: linear-gradient(135deg, #1a3a5c, #2471a3); }
.p3-theme { background: linear-gradient(135deg, #1e8449, #27ae60); }

.pilier-num-big {
  font-size: 4rem;
  font-weight: 900;
  opacity: .4;
  line-height: 1;
  min-width: 64px;
}
.pilier-header h2 { font-size: 1.5rem; margin-bottom: 4px; }
.pilier-header p  { opacity: .85; font-size: .95rem; }

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.content-main h3 { font-size: 1.1rem; font-weight: 700; color: var(--blue); margin: 24px 0 10px; }
.content-main h3:first-child { margin-top: 0; }
.content-main p  { color: var(--gray-700); margin-bottom: 12px; line-height: 1.7; }
.content-main ul { padding-left: 20px; margin-bottom: 12px; }
.content-main li { margin-bottom: 6px; color: var(--gray-700); }
.content-main ol { padding-left: 20px; }

.info-table table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.info-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--gray-100);
  font-size: .9rem;
}
.info-table td:first-child { color: var(--gray-600); width: 55%; }
.info-table td strong { color: var(--blue); }

.info-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.info-box h4 { font-size: .95rem; font-weight: 700; margin-bottom: 10px; color: var(--blue); }
.info-box ul { padding-left: 16px; }
.info-box li { font-size: .88rem; margin-bottom: 6px; color: var(--gray-700); }

.alert-box { border-color: #f5c6cb; background: #fff5f5; }
.alert-box h4 { color: #c0392b; }

.highlight-box { border-color: #c3e6cb; background: #f0fff4; }
.highlight-box h4 { color: var(--green); }

.source-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.source-box h4 { font-size: .85rem; font-weight: 600; color: var(--gray-600); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.source-box a  { display: block; font-size: .88rem; margin-bottom: 6px; }

/* ---- FORMULA BOX ---- */
.formula-box {
  background: var(--gray-900);
  color: #98dbc6;
  border-radius: 8px;
  padding: 14px 18px;
  font-family: monospace;
  font-size: .9rem;
  line-height: 1.8;
  margin: 12px 0;
}

/* ---- RATES DETAIL ---- */
.rates-detail { display: grid; gap: 16px; }
.rate-detail-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 16px 20px;
}
.rate-detail-item h4 { font-weight: 700; color: var(--blue); margin-bottom: 6px; font-size: .95rem; }
.rate-detail-item p  { font-size: .9rem; color: var(--gray-600); }

/* ---- EVENT SECTIONS ---- */
.event-section { margin-bottom: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--gray-200); }
.event-section:last-child { border-bottom: none; }

.event-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.event-icon-lg { font-size: 2.8rem; line-height: 1; }
.event-header h2 { font-size: 1.6rem; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.event-header p  { color: var(--gray-600); }

/* ---- CALCULATEURS ---- */
.calc-section { margin-bottom: 56px; }
.calc-section h2 { font-size: 1.4rem; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.calc-section > p { color: var(--gray-600); margin-bottom: 20px; }

.calc-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
}
.calc-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 20px; }

.calc-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--gray-800); }
.calc-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--white);
  transition: border-color .15s;
}
.calc-field input:focus { outline: none; border-color: var(--red); }
.calc-field small { display: block; margin-top: 4px; font-size: .8rem; color: var(--gray-600); }

.calc-result { margin-top: 20px; }
.result-box {
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.result-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .95rem;
}
.result-line:last-of-type { border-bottom: none; }
.result-line.main strong { font-size: 1.3rem; color: var(--blue); }
.result-line .green { color: var(--green); }
.result-note { margin-top: 12px; font-size: .82rem; color: var(--gray-600); }

.disclaimer-calc {
  background: #fffbf0;
  border: 1px solid #f0c040;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: .88rem;
  color: var(--gray-700);
  margin-top: 32px;
}

/* ---- PODCASTS ---- */
.podcast-subscribe { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.podcast-subscribe p { font-weight: 600; color: var(--gray-700); }
.podcast-platforms { display: flex; gap: 10px; flex-wrap: wrap; }
.platform-btn {
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-800);
  background: var(--white);
  text-decoration: none;
  transition: border-color .15s;
}
.platform-btn:hover { border-color: var(--red); color: var(--red); text-decoration: none; }

.podcast-grid { display: grid; gap: 20px; }
.podcast-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .2s;
}
.podcast-card:hover { box-shadow: var(--shadow-md); }

.podcast-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gray-200);
  line-height: 1;
  min-width: 56px;
}
.podcast-info { flex: 1; }
.podcast-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.podcast-cat  { background: var(--red-light); color: var(--red); padding: 2px 10px; border-radius: 12px; font-size: .78rem; font-weight: 600; }
.podcast-date, .podcast-dur { font-size: .82rem; color: var(--gray-600); }
.podcast-info h3 { font-size: 1.1rem; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.podcast-info p  { font-size: .9rem; color: var(--gray-600); margin-bottom: 14px; }
.podcast-info audio { width: 100%; height: 40px; }

.serie-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}

.podcast-cta {
  text-align: center;
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 40px;
}
.podcast-cta h3 { font-size: 1.3rem; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.podcast-cta p  { color: var(--gray-600); margin-bottom: 20px; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.8);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo { font-size: 1.2rem; margin-bottom: 12px; color: #fff; }
.footer-logo strong { color: var(--red); }
.footer-col p { font-size: .88rem; line-height: 1.7; }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a  { color: rgba(255,255,255,.7); font-size: .88rem; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.disclaimer { font-size: .8rem !important; color: rgba(255,255,255,.5) !important; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ============================================================
   COPILOT PANEL + VOICE
   ============================================================ */

/* Overlay — mobile uniquement, sans flou */
.chat-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 998;
}
@media (max-width: 900px) {
  .chat-overlay.active { display: block; }
}

/* Panel principal */
.copilot-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100dvh;
  background: var(--white);
  border-left: 1px solid var(--gray-200);
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  z-index: 999;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.copilot-panel.open { transform: translateX(0); }

/* Décalage du body sur desktop */
@media (min-width: 901px) {
  body.panel-open { margin-right: 420px; transition: margin-right .3s cubic-bezier(.4,0,.2,1); }
}

/* Header */
.copilot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--blue) 0%, #0d2440 100%);
  color: #fff;
  flex-shrink: 0;
  min-height: 64px;
}
.copilot-header-left { display: flex; align-items: center; gap: 12px; }
.copilot-avatar {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.copilot-title    { font-weight: 700; font-size: .95rem; }
.copilot-subtitle { font-size: .72rem; opacity: .75; margin-top: 1px; }

.copilot-header-actions { display: flex; gap: 6px; }
.copilot-icon-btn {
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.copilot-icon-btn:hover { background: rgba(255,255,255,.25); }

/* Mode toggle */
.copilot-mode-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.mode-label {
  font-size: 12px;
  color: var(--gray-500);
  white-space: nowrap;
}
.mode-toggle {
  display: flex;
  background: var(--gray-200);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}
.mode-btn {
  border: none;
  background: transparent;
  border-radius: 18px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--gray-500);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.mode-btn.active {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.mode-btn:hover:not(.active) { color: var(--blue-dark); }

/* Messages */
.copilot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.chat-msg { display: flex; }
.chat-msg.bot  { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }

.msg-bubble {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.6;
}
.chat-msg.bot  .msg-bubble {
  background: var(--gray-100);
  color: var(--gray-900);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .msg-bubble {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-bubble p  { margin: 0 0 8px; }
.msg-bubble p:last-child { margin-bottom: 0; }
.msg-bubble strong { font-weight: 700; }
.msg-bubble code {
  background: rgba(0,0,0,.08);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: .85em;
}

/* Chips suggestions */
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.suggestion-chip {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .8rem;
  cursor: pointer;
  transition: all .15s;
  color: var(--blue);
  font-family: var(--font);
}
.suggestion-chip:hover { background: var(--red-light); border-color: var(--red); color: var(--red); }
.suggestion-chip:disabled { opacity: .4; cursor: default; }

/* Typing dots */
.chat-typing .msg-bubble { display: flex; gap: 5px; align-items: center; padding: 14px 18px; }
.dot {
  width: 7px; height: 7px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-7px); }
}

/* Zone de saisie */
.copilot-input-wrap {
  padding: 12px 16px 10px;
  border-top: 1px solid var(--gray-200);
  flex-shrink: 0;
  background: var(--white);
}

.copilot-input-box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  padding: 10px 12px;
  transition: border-color .15s;
}
.copilot-input-box:focus-within { border-color: var(--blue); }

#chatInput {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: .92rem;
  resize: none;
  outline: none;
  line-height: 1.5;
  max-height: 120px;
  color: var(--gray-900);
}
#chatInput::placeholder { color: var(--gray-400); }

.copilot-input-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

.copilot-voice-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.copilot-voice-btn:hover { background: var(--gray-100); color: var(--blue); }
.copilot-voice-btn.recording {
  color: var(--red);
  background: var(--red-light);
  animation: pulse-mic 1s infinite;
}
@keyframes pulse-mic {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,16,46,.3); }
  50%       { box-shadow: 0 0 0 8px rgba(200,16,46,0); }
}

.copilot-send-btn {
  background: var(--blue);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.copilot-send-btn:hover    { background: var(--red); }
.copilot-send-btn:disabled { background: var(--gray-300); cursor: default; }

.copilot-voice-status {
  height: 0;
  overflow: hidden;
  font-size: .8rem;
  color: var(--red);
  text-align: center;
  transition: height .2s;
  margin-top: 0;
}
.copilot-voice-status.active {
  height: 22px;
  margin-top: 6px;
}

.copilot-footer-note {
  text-align: center;
  font-size: .7rem;
  color: var(--gray-400);
  margin-top: 8px;
}

/* FAB */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 20px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(200,16,46,.4);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 997;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  font-family: var(--font);
}
.chat-fab:hover { transform: scale(1.05); box-shadow: 0 6px 28px rgba(200,16,46,.5); }
.fab-label { font-size: .88rem; font-weight: 600; }

/* ---- RESPONSIVE ---- */
/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero .container       { grid-template-columns: 1fr; }
  .hero-visual           { display: none; }
  .pillar-grid           { grid-template-columns: 1fr; }
  .events-grid           { grid-template-columns: repeat(2, 1fr); }
  .rates-grid            { grid-template-columns: 1fr; }
  .stats-bar .container  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid           { grid-template-columns: 1fr 1fr; }
  .content-grid          { grid-template-columns: 1fr; }
  .nav-toggle            { display: flex; }
  .main-nav              { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; box-shadow: var(--shadow-md); gap: 4px; }
  .main-nav.open         { display: flex; }
  /* Panel plein écran sur tablette/mobile */
  .copilot-panel         { width: 100vw; border-left: none; }
  body.panel-open        { margin-right: 0 !important; }
}

@media (max-width: 600px) {
  .hero h1               { font-size: 1.8rem; }
  .hero-sub              { font-size: .95rem; }
  .hero-actions          { flex-direction: column; }
  .events-grid           { grid-template-columns: 1fr; }
  .footer-grid           { grid-template-columns: 1fr; }
  .stats-bar .container  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-val              { font-size: 1.3rem; }
  .anchor-nav .container { gap: 0; }
  .pilier-header         { flex-direction: column; gap: 10px; }
  .pilier-num-big        { font-size: 2.5rem; }
  .podcast-card          { flex-direction: column; }
  .podcast-num           { font-size: 1.5rem; min-width: auto; }
  .calc-inputs           { grid-template-columns: 1fr; }
  /* FAB mobile — rond */
  .chat-fab .fab-label   { display: none; }
  .chat-fab              { padding: 0; border-radius: 50%; width: 56px; height: 56px; justify-content: center; bottom: 16px; right: 16px; }
}
