/* ════════════════════════════════════════════════════════════
   Culture In Vivo — feuille de style
   Palette : bordeaux #814448 · sauge #f4f8f6 / #B0CCC2 · terracotta #CF9979
   Typo    : Didot Bold (titres, gras, noir) · Catamaran (corps)
   ════════════════════════════════════════════════════════════ */

/* Police locale : le vrai Didot Bold fourni par Sam */
@font-face {
  font-family: 'Didot Bold';
  src: url('./fonts/DidotBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Police locale : Catamaran Thin (graisse 100) fournie par Sam */
@font-face {
  font-family: 'Catamaran';
  src: url('./fonts/Catamaran-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

:root {
  --bordeaux: #814448;
  --bordeaux-dark: #6a373b;
  --terracotta: #CF9979;
  --sauge: #B0CCC2;
  --sauge-deep: #6a9e8e;
  --sauge-bg: #f4f8f6;
  --cream-bg: #fdfaf8;
  --ink: #000000;
  --text: #353535;
  --placeholder: linear-gradient(150deg, #f9f6f5 0%, #f1edeb 100%);
  --placeholder-border: #e8e0dd;
  --serif: 'Didot Bold', 'Didot', serif;
  --sans: 'Catamaran', sans-serif;
  --maxw: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #FFFFFF;
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: var(--maxw); margin: 0 auto; }

/* Décalage d'ancre pour le header fixe */
#pour-qui, #installations, #partenaires, #contact { scroll-margin-top: 80px; }

/* ─── Eyebrow / suréclat ─── */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--bordeaux);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow--bordered {
  border: 1.5px solid rgba(129,68,72,0.35);
  padding: 6px 18px;
  align-self: flex-start;
}

/* ─── Boutons ─── */
.btn {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.25s;
  display: inline-block;
}
.btn--primary {
  color: #fff;
  background: var(--bordeaux);
  padding: 14px 30px;
}
.btn--primary:hover { background: var(--bordeaux-dark); }
.btn--outline {
  color: var(--bordeaux);
  border: 1.5px solid var(--bordeaux);
  padding: 13px 26px;
  background: transparent;
}
.btn--outline:hover { background: var(--bordeaux); color: #fff; }

/* ════════════════════════ HEADER ════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #ffffff;
  transition: box-shadow 0.35s ease;
}
.site-header.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 90px; width: auto; flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  color: #353535;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--bordeaux); }

/* Menu déroulant « Formations » (au survol) */
.nav-dropdown { position: relative; }
.nav-dropdown-label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  color: #353535;
  cursor: default;
  transition: color 0.2s;
}
.nav-dropdown:hover .nav-dropdown-label,
.nav-dropdown:focus-within .nav-dropdown-label { color: var(--bordeaux); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  margin-top: 12px;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--placeholder-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 110;
}
/* Pont invisible pour que le survol ne se coupe pas entre l'onglet et le menu */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px; left: 0; right: 0;
  height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  padding: 10px 20px;
  white-space: nowrap;
  font-size: 14px;
}
.nav-dropdown-menu a:hover { background: var(--sauge-bg); color: var(--bordeaux); }

/* Menu mobile : titre de groupe + sous-liens */
.mobile-group-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--bordeaux);
}
.mobile-sublink { padding-left: 18px; }

.nav-cta {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--bordeaux);
  border: 1.5px solid var(--bordeaux);
  padding: 9px 22px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.25s;
}
.nav-cta:hover { background: var(--bordeaux); color: #fff; }

.mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #000;
  align-items: center;
  justify-content: center;
}

/* Menu mobile plein écran */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255,255,255,0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.mobile-overlay[hidden] { display: none; }
.mobile-overlay a {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 26px;
  color: #000;
  text-decoration: none;
}
.mobile-close {
  position: absolute;
  top: 20px; right: 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 28px;
  color: #000;
  line-height: 1;
}

/* ════════════════════════ HERO ════════════════════════ */
.hero { padding: 150px 32px 100px; background: #fff; }
.hero--subpage { padding-bottom: 70px; }
.hero--subpage .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero--subpage .hero-h1 { font-size: 50px; }
.hero--subpage .hero-lead { max-width: 680px; }
.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 58px;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.accent { color: var(--bordeaux); }
.hero-lead {
  font-family: var(--sans);
  font-weight: 100;
  font-size: 20px;
  line-height: 1.7;
  color: var(--text);
  max-width: 500px;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

.hero-visual { position: relative; }
.hero-visual-accent {
  position: absolute;
  top: -24px; right: -16px;
  width: 60%; height: 70%;
  background: var(--sauge);
  opacity: 0.25;
  z-index: 0;
}
.float-badge {
  position: absolute;
  bottom: 28px; left: -28px;
  z-index: 2;
  background: #fff;
  padding: 18px 22px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: float-gentle 4.5s ease-in-out infinite;
}
.float-badge-num { font-family: var(--sans); font-weight: 700; font-size: 30px; color: var(--bordeaux); line-height: 1; }
.float-badge-label { font-family: var(--sans); font-weight: 300; font-size: 12px; color: var(--text); letter-spacing: 0.02em; }

/* ─── Cadres photo (placeholders) ─── */
.photo {
  position: relative;
  z-index: 1;
  background: var(--placeholder);
  border: 1px solid var(--placeholder-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}
.photo--portrait { aspect-ratio: 4/5; gap: 14px; }
.photo--landscape { aspect-ratio: 4/3; }
.photo--wide { aspect-ratio: 16/10; }
.photo-caption {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  color: var(--bordeaux);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.photo--portrait .photo-caption { font-size: 12px; }
.photo-caption--center { text-align: center; }

/* ════════════════════════ SECTIONS génériques ════════════════════════ */
.section { padding: 100px 32px; }
.section--sauge { background: var(--sauge-bg); }
.section--white { background: #fff; }
.section--cream { background: var(--cream-bg); }

.section-head { text-align: center; margin-bottom: 60px; }
.section-h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 44px;
  color: var(--ink);
  margin-top: 12px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-h2--left { font-size: 40px; line-height: 1.12; margin-top: 0; }
.section-sub {
  font-family: var(--sans);
  font-weight: 100;
  font-size: 18px;
  color: var(--text);
  margin: 14px auto 0;
  max-width: 520px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ─── Pour qui : grille de cartes ─── */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  overflow: hidden;
  padding: 36px 32px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.3s ease, filter 0.25s ease;
}

/* ── Cartes colorées en permanence (bordeaux / sauge) ── */
.card--bordeaux { background: linear-gradient(135deg, #8f4d51 0%, #6a373b 100%); }
.card--sauge    { background: linear-gradient(135deg, #4e8170 0%, #355f51 100%); }

/* Contenu en blanc en permanence */
.card .card-title { color: #fff; }
.card .card-text  { color: rgba(255, 255, 255, 0.92); }
.card .card-link  { color: #fff; }
.card .card-icon  { background: rgba(255, 255, 255, 0.16); }
.card .card-icon svg * { stroke: #fff; }

/* Survol : on garde la couleur, léger rebond + ombre */
.card:hover {
  transform: scale(0.98) rotate(-1deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  filter: brightness(1.05);
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-title { font-family: var(--sans); font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.card-text {
  font-family: var(--sans);
  font-weight: 100;
  font-size: 17px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 18px;
  text-wrap: pretty;
}
.card-link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--bordeaux);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.card-link span { font-size: 16px; }
.card-link:hover { gap: 10px; }

/* ─── Grille des formations (page Demandeurs d'emploi) ─── */
.formation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.formation-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--placeholder-border);
  border-top: 3px solid var(--terracotta);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.formation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(129,68,72,0.10);
}
.formation-card-media {
  aspect-ratio: 16 / 7;
  background: var(--placeholder);
  border-bottom: 1px solid var(--placeholder-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.formation-card-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  padding: 20px 22px 22px;
}
.formation-card-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
}
.formation-card-text {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
}
.formation-card-link {
  align-self: flex-start;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--bordeaux);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, gap 0.2s ease;
}
.formation-card-link:hover { background: var(--bordeaux-dark); gap: 12px; }

/* ─── Historique ─── */
.history-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.history-text { display: flex; flex-direction: column; gap: 18px; }
.prose {
  font-family: var(--sans);
  font-weight: 100;
  font-size: 18px;
  color: var(--text);
  line-height: 1.75;
  text-wrap: pretty;
}

/* ─── Installations ─── */
.install-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; }
.install-sub { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.install-note {
  font-family: var(--sans);
  font-weight: 100;
  font-size: 17px;
  color: var(--text);
  margin: 28px auto 0;
  text-align: center;
  max-width: 680px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ════════════════════════ PARTENAIRES (marquee) ════════════════════════ */
.partners {
  padding: 64px 0;
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.partners-head { padding: 0 32px; margin-bottom: 36px; }
.partners-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
  text-align: center;
  letter-spacing: -0.01em;
}
.marquee { overflow: hidden; width: 100%; }
.marquee-track {
  display: flex;
  gap: 40px;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-chip {
  flex-shrink: 0;
  width: 152px; height: 68px;
  background: #f8f6f5;
  border: 1px solid #ece6e3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--bordeaux);
  letter-spacing: 0.04em;
}

/* ════════════════════════ FOOTER ════════════════════════ */
.footer { padding: 72px 32px 0; background: var(--bordeaux); }
.footer-cols {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-h3 { font-family: var(--sans); font-weight: 700; font-size: 21px; color: #fff; margin-bottom: 10px; }
.footer-text {
  font-family: var(--sans);
  font-weight: 100;
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  margin-bottom: 18px;
}
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact .footer-text { margin-bottom: 0; }
.footer-link {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: #fff; }

.newsletter { display: flex; gap: 0; }
.newsletter-input {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  flex: 1;
  outline: none;
  min-width: 0;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-btn {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--bordeaux);
  background: #fff;
  border: none;
  padding: 11px 18px;
  cursor: pointer;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: all 0.2s;
}
.newsletter-btn:hover { background: var(--terracotta); color: #fff; }

.socials { display: flex; gap: 10px; }
.social {
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-family: sans-serif;
  transition: all 0.2s;
}
.social:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-family: var(--sans); font-weight: 300; font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.9); }

/* ════════════════════════ CHATBOT ════════════════════════ */
.chat-widget {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 220;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
#n8n-chat {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 120;
  pointer-events: none;
  --chat--color--primary: #814448;
  --chat--color--primary-shade-50: #6a373b;
  --chat--color--primary--shade-100: #6a373b;
  --chat--color--secondary: #CF9979;
  --chat--color-white: #FFFFFF;
  --chat--color-light: #f4f8f6;
  --chat--color-light-shade-50: #e8e0dd;
  --chat--color-dark: #353535;
  --chat--window--width: 380px;
  --chat--window--height: 620px;
  --chat--window--border-radius: 24px;
  --chat--window--bottom: 18px;
  --chat--window--right: 18px;
  --chat--header--background: #814448;
  --chat--header--color: #FFFFFF;
  --chat--body--background: #f4f8f6;
  --chat--input--background: #FFFFFF;
  --chat--input--text-color: #353535;
  --chat--button--background--primary: #814448;
  --chat--button--color--primary: #FFFFFF;
  --chat--button--background--primary--hover: #6a373b;
  --chat--button--border-radius: 18px;
  --chat--toggle--size: 56px;
  --chat--toggle--background: #814448;
  --chat--toggle--hover--background: #6a373b;
  --chat--toggle--active--background: #6a373b;
  --chat--toggle--color: #FFFFFF;
}
#n8n-chat .chat-window-wrapper { pointer-events: auto; }
#n8n-chat .chat-window-toggle { display: none !important; }
#n8n-chat {
  --chat--message--user--background: #f4e9e7;
  --chat--message--user--color: #353535;
  --chat--message--bot--background: #ffffff;
  --chat--message--bot--color: #353535;
  --chat--message--font-size: 1rem;
  --chat--message--font-weight: 500;
  --chat--message--border-radius: 24px;
  --chat--message--margin-bottom: 18px;
}
#n8n-chat .chat-message p,
#n8n-chat .chat-message span,
#n8n-chat .chat-message li {
  font-weight: 500;
}
#n8n-chat .chat-message.chat-message-from-user p,
#n8n-chat .chat-message.chat-message-from-user span,
#n8n-chat .chat-message.chat-message-from-user li {
  font-weight: 600;
}
.chat-panel {
  width: 330px;
  background: #fff;
  box-shadow: 0 12px 44px rgba(0,0,0,0.12);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-header {
  background: var(--bordeaux);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-title { font-family: var(--sans); font-weight: 700; font-size: 17px; color: #fff; }
.chat-close {
  background: none; border: none;
  color: #fff; cursor: pointer;
  font-size: 18px; line-height: 1;
  font-family: sans-serif;
}
.chat-body { padding: 20px; }
.chat-body p { font-family: var(--sans); font-weight: 300; font-size: 15px; color: var(--text); line-height: 1.6; }
.chat-input-row { padding: 0 20px 20px; display: flex; gap: 8px; }
.chat-input {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  flex: 1;
  outline: none;
  min-width: 0;
}
.chat-input::placeholder { color: #aaa; }
.chat-send {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: #fff;
  background: var(--bordeaux);
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-send:hover { background: var(--bordeaux-dark); }
.chat-fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bordeaux);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(129,68,72,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  flex-shrink: 0;
}
.chat-fab:hover { transform: scale(1.06); box-shadow: 0 6px 28px rgba(129,68,72,0.4); }

#n8n-chat {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 120;
  pointer-events: none;
  font-family: var(--sans), system-ui, sans-serif;
  --chat--font-family: var(--sans), system-ui, sans-serif;
  --chat--color--primary: #814448;
  --chat--color--primary-shade-50: #6a373b;
  --chat--color--primary--shade-100: #6a373b;
  --chat--color--secondary: #CF9979;
  --chat--color-white: #FFFFFF;
  --chat--color-light: #f4f8f6;
  --chat--color-light-shade-50: #e8e0dd;
  --chat--color-dark: #353535;
  --chat--window--width: 390px;
  --chat--window--height: 640px;
  --chat--window--border-radius: 28px;
  --chat--window--bottom: 18px;
  --chat--window--right: 18px;
  --chat--window--border: 1px solid rgba(129, 68, 72, 0.12);
  --chat--header--background: #814448;
  --chat--header--color: #FFFFFF;
  --chat--body--background: #fcfbf9;
  --chat--body--color: #353535;
  --chat--message--font-size: 0.96rem;
  --chat--message--padding: 16px;
  --chat--message-line-height: 1.7;
  --chat--message--border-radius: 24px;
  --chat--message--bot--background: #ffffff;
  --chat--message--bot--color: #353535;
  --chat--message--bot--border: 1px solid rgba(129, 68, 72, 0.08);
  --chat--message--user--background: #814448;
  --chat--message--user--color: #ffffff;
  --chat--messages-list--padding: 20px;
  --chat--input--background: #ffffff;
  --chat--input--text-color: #353535;
  --chat--textarea--height: 54px;
  --chat--input--padding: 14px;
  --chat--button--padding: 0.9rem 1rem;
  --chat--button--border-radius: 16px;
  --chat--button--background--primary: #814448;
  --chat--button--color--primary: #ffffff;
  --chat--button--background--primary--hover: #6a373b;
  --chat--button--background--secondary: #f4f8f6;
  --chat--button--color--secondary: #353535;
  --chat--toggle--size: 56px;
  --chat--toggle--background: #814448;
  --chat--toggle--hover--background: #6a373b;
  --chat--toggle--active--background: #6a373b;
  --chat--toggle--color: #ffffff;
}

#n8n-chat .chat-window-toggle {
  display: none !important;
}

#n8n-chat .chat-window-wrapper {
  right: 0 !important;
  bottom: 0 !important;
  pointer-events: auto;
}

#n8n-chat .chat-layout {
  border-radius: 28px;
}

#n8n-chat .chat-header h1,
#n8n-chat .chat-header p {
  font-family: var(--sans), system-ui, sans-serif;
}

#n8n-chat .chat-header h1 {
  font-weight: 700;
  letter-spacing: 0.01em;
}

#n8n-chat .chat-header p {
  opacity: 0.95;
}

#n8n-chat .chat-message p,
#n8n-chat .chat-message span,
#n8n-chat .chat-message li {
  font-family: var(--sans), system-ui, sans-serif;
  font-size: 0.96rem;
  line-height: 1.75;
  color: #353535;
}

#n8n-chat .chat-message.chat-message-from-user p,
#n8n-chat .chat-message.chat-message-from-user span {
  color: #ffffff;
}

#n8n-chat .chat-message__content {
  word-break: break-word;
}

#n8n-chat .chat-input textarea {
  font-family: var(--sans), system-ui, sans-serif;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #353535;
}

#n8n-chat .chat-input-send-button,
#n8n-chat .chat-button-primary {
  border-radius: 16px;
}

#n8n-chat .chat footer,
#n8n-chat .chat-footer {
  background: #f4f8f6;
}

/* ════════════════════════ ANIMATIONS ════════════════════════ */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-play-state: paused !important; }
  .float-badge { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ════════════════════════ RESPONSIVE ════════════════════════ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .formation-grid { grid-template-columns: 1fr 1fr; }
  .history-grid { grid-template-columns: 1fr; gap: 40px; }
  .install-grid { grid-template-columns: 1fr; }
  .install-sub { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 48px; }
  .nav-links, .nav-cta { display: none; }
  .mobile-btn { display: flex; }
}
@media (max-width: 640px) {
  .audience-grid { grid-template-columns: 1fr; }
  .formation-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 40px; }
  .section-h2 { font-size: 32px; }
  .footer-cols { grid-template-columns: 1fr; }
  .install-sub { grid-template-columns: 1fr; }
  .brand-logo { height: 64px; }
}
