:root {
  --vert-emeraude: #0E7A54;
  --vert-emeraude-dark: #0B6345;
  --vert-sapin: #0B3D2E;
  --vert-menthe: #A9D6BC;
  --vert-clair: #E7F2EB;
  --gris-anthracite: #1F2422;
  --gris-clair: #667066;
  --papier: #F7F9F7;
  --blanc: #FFFFFF;
  --border: #E3E8E3;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(11, 61, 46, 0.08);
  --font: 'Quicksand', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  font-family: var(--font);
  color: var(--gris-anthracite);
  background: var(--blanc);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--vert-sapin);
  color: var(--blanc);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  font-optical-sizing: auto;
  color: var(--vert-sapin);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 12px; }
h3 { font-family: var(--font); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; letter-spacing: -0.01em; }

p { color: var(--gris-clair); }

section { padding: 64px 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 2px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--vert-sapin); color: var(--blanc); }
.btn-primary:hover { background: var(--vert-emeraude); }
.btn-ghost { background: transparent; color: var(--vert-sapin); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--vert-emeraude); }
.btn-large { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Bandeau utilitaire ---------- */
.utility-bar {
  background: var(--vert-sapin);
  color: rgba(255,255,255,0.82);
  font-size: 0.8rem;
}
.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: 16px;
}
.utility-bar a { color: rgba(255,255,255,0.82); }
.utility-bar a:hover { color: var(--blanc); }
.utility-left { display: flex; align-items: center; gap: 18px; }
.utility-left span, .utility-left a { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.utility-right { display: flex; align-items: center; gap: 18px; }
.utility-right .espace-client { font-weight: 700; color: var(--blanc); }
@media (max-width: 720px) {
  .utility-bar .container { justify-content: center; }
  .utility-left span:first-child { display: none; }
}

/* ---------- Bandeau de confiance ---------- */
.trust-bar { background: var(--papier); border-bottom: 1px solid var(--border); padding: 18px 0; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--vert-sapin);
}
.trust-item svg { flex-shrink: 0; }
.trust-item .trust-sub { display: block; font-weight: 400; color: var(--gris-clair); font-size: 0.76rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow .25s ease, height .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,61,46,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-weight: 600; font-size: 1.35rem; color: var(--vert-sapin); }
.logo-mark { height: 34px; width: auto; object-fit: contain; display: block; }
.main-nav ul { display: flex; gap: 28px; list-style: none; }
.main-nav a { font-weight: 600; color: var(--gris-anthracite); padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--vert-emeraude); border-bottom-color: var(--vert-emeraude); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn-ghost { display: none; }
.header-actions .btn-espace-client {
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--vert-sapin);
  padding: 8px 4px;
}
.header-actions .btn-espace-client:hover { color: var(--vert-emeraude); }
@media (min-width: 900px) { .header-actions .btn-espace-client { display: inline-flex; } }
.burger { background: none; border: none; cursor: pointer; padding: 8px; display: flex; }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--blanc);
  border-top: 1px solid var(--border);
  padding: 12px 20px 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 12px; border-bottom: none; }

@media (min-width: 900px) {
  .header-actions .btn-ghost { display: inline-flex; }
  .burger { display: none; }
}
@media (max-width: 899px) {
  .main-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--vert-sapin);
  color: var(--blanc);
  padding: 64px 0 72px;
}
.hero-inner {
  display: grid;
  gap: 44px;
  align-items: center;
}
.hero h1 { color: var(--blanc); }
.hero .eyebrow {
  display: block;
  color: var(--vert-menthe);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 16px;
}
.hero p.lead { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin: 18px 0 28px; max-width: 460px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-ctas .btn-primary { background: var(--blanc); color: var(--vert-sapin); }
.hero-ctas .btn-primary:hover { background: var(--vert-clair); }
.hero-ctas .btn-ghost { background: transparent; color: var(--blanc); border-color: rgba(255,255,255,0.35); }
.hero-ctas .btn-ghost:hover { border-color: var(--blanc); }

/* ---------- Photos (composant responsive) ---------- */
.hero-note { margin-top: 32px; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.media-block {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--papier);
  aspect-ratio: 4 / 3;
}
.media-block img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-wide { aspect-ratio: 16 / 9; }
.media-square { aspect-ratio: 1 / 1; }

.media-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 780px) { .media-grid { grid-template-columns: 1fr 1fr; } }
.media-grid.reverse .media-block { order: 2; }
@media (min-width: 780px) { .media-grid.reverse .media-block { order: 0; } .media-grid.reverse .media-text { order: 1; } }

.media-caption { font-size: 0.75rem; color: var(--gris-clair); margin-top: 8px; }

.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 480px; }

@media (max-width: 480px) {
  section { padding: 44px 0; }
  .hero { padding: 44px 0 52px; }
  .btn-large { padding: 13px 24px; font-size: 0.95rem; }
  .cta-band { padding: 36px 22px; margin: 0 12px; }
  .trust-row { gap: 18px; justify-content: flex-start; }
  .balance-card { padding: 20px; }
}

/* Widget de compte — élément visuel du hero */
.balance-card {
  background: var(--blanc);
  color: var(--gris-anthracite);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  padding: 26px;
  max-width: 340px;
}
.balance-card .bc-label { font-size: 0.82rem; color: var(--gris-clair); }
.balance-card .bc-amount { font-size: 2.1rem; font-weight: 700; color: var(--vert-sapin); margin: 6px 0 20px; font-variant-numeric: tabular-nums; }
.balance-card .bc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.balance-card .bc-row:last-child { border-bottom: none; padding-bottom: 0; }
.bc-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--vert-clair);
  display: flex; align-items: center; justify-content: center;
  color: var(--vert-sapin);
  font-size: 0.85rem;
  font-weight: 700;
}
.bc-row-text { flex: 1; min-width: 0; }
.bc-row-text .bc-title { font-size: 0.88rem; font-weight: 600; }
.bc-row-text .bc-sub { font-size: 0.78rem; color: var(--gris-clair); }
.bc-value { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.bc-value.pos { color: var(--vert-emeraude); }

.hero-visual { position: relative; max-width: 340px; margin-left: auto; }
.security-chip {
  display: none;
  position: absolute;
  left: -54px;
  bottom: -22px;
  align-items: center;
  gap: 10px;
  background: var(--blanc);
  color: var(--gris-anthracite);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
  padding: 14px 18px;
  animation: fadeInUp .5s ease .35s both;
}
.security-chip .sc-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--vert-clair); color: var(--vert-sapin);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.security-chip .sc-title { font-size: 0.8rem; font-weight: 700; color: var(--vert-sapin); }
.security-chip .sc-sub { font-size: 0.72rem; color: var(--gris-clair); }

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
  .balance-card { margin-left: auto; }
  .security-chip { display: flex; }
}

/* ---------- Sections génériques ---------- */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head .eyebrow { display: block; color: var(--vert-emeraude); font-family: var(--font); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 6px; }

.grid-3 { display: grid; gap: 24px; grid-template-columns: 1fr; }
.grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--papier);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s ease;
}
.card:hover { border-color: var(--vert-emeraude); }
.card .icon-wrap {
  width: 40px; height: 40px;
  border: 1px solid var(--vert-sapin);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.bg-sapin { background: var(--vert-sapin); color: var(--blanc); }
.bg-sapin h2, .bg-sapin h3 { color: var(--blanc); }
.bg-sapin p { color: rgba(255,255,255,0.8); }

.cta-band {
  background: var(--vert-emeraude);
  color: var(--blanc);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  margin: 0 20px;
}
.cta-band h2 { color: var(--blanc); }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.cta-band .btn-ghost { background: transparent; color: var(--blanc); border-color: rgba(255,255,255,0.4); }

/* ---------- FAQ / Accordéon ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 18px 4px;
  font-weight: 600;
  cursor: pointer;
  color: var(--vert-sapin);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 4px 18px; }

/* ---------- Formulaires ---------- */
.form-card {
  background: var(--papier);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 560px;
  margin: 0 auto;
}
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--vert-sapin); }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  margin-bottom: 18px;
  background: var(--blanc);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--vert-emeraude); outline-offset: 1px; }
textarea { min-height: 120px; resize: vertical; }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}
.alert-success { background: #E4F7EC; color: var(--vert-emeraude-dark); border: 1px solid var(--vert-menthe); }
.alert-error { background: #FBEAEA; color: #9B2C2C; border: 1px solid #F3C6C6; }

/* ---------- Table produits ---------- */
table { width: 100%; border-collapse: collapse; margin: 20px 0; }
th, td { text-align: left; padding: 14px; border-bottom: 1px solid var(--border); }
th { color: var(--vert-sapin); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--gris-clair); padding: 18px 0; }
.breadcrumb a { color: var(--vert-emeraude); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--vert-sapin); color: rgba(255,255,255,0.85); padding: 56px 0 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .logo { color: var(--blanc); margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.site-footer h3 { color: var(--blanc); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.site-footer a:hover { color: var(--vert-menthe); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 40px; padding-top: 20px; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ---------- Étapes numérotées ---------- */
.steps { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-top: 2px solid var(--vert-sapin); padding-top: 18px; }
.step-number {
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--vert-emeraude);
  margin-bottom: 10px;
}

/* ---------- Cartes tarifaires ---------- */
.pricing-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.price-card {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--vert-menthe); }
.price-card.featured { border: 2px solid var(--vert-emeraude); position: relative; }
.price-card .price-tag { position: absolute; top: -14px; right: 24px; background: var(--vert-emeraude); color: var(--blanc); font-size: 0.75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.price-card .price-amount { font-size: 2.2rem; font-weight: 700; color: var(--vert-sapin); margin: 14px 0 4px; }
.price-card .price-amount span { font-size: 0.95rem; font-weight: 600; color: var(--gris-clair); }
.price-card ul { list-style: none; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 12px; }
.price-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--gris-anthracite); }
.price-card li svg { flex-shrink: 0; margin-top: 2px; }

/* ---------- Statistiques ---------- */
.stats-row { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stats-row > div { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 14px; }
.stat-number { font-family: var(--font); font-size: 1.8rem; font-weight: 600; color: var(--vert-menthe); }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ---------- Avis clients ---------- */
.review-card { background: var(--papier); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.review-stars { color: #E8A93A; letter-spacing: 2px; margin-bottom: 10px; }
.review-author { margin-top: 14px; font-weight: 700; color: var(--vert-sapin); font-size: 0.9rem; }
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--vert-menthe); color: var(--vert-sapin);
  padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
}

/* ---------- Distinctions ---------- */
.distinctions-row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .distinctions-row { grid-template-columns: repeat(3, 1fr); } }
.distinction {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--blanc);
}
.distinction .d-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  background: var(--vert-clair); color: var(--vert-sapin);
  display: flex; align-items: center; justify-content: center;
}
.distinction .d-title { font-weight: 700; color: var(--vert-sapin); font-size: 0.92rem; }
.distinction .d-sub { font-size: 0.82rem; color: var(--gris-clair); margin-top: 2px; }

/* ---------- Badges application (App Store / Google Play) ---------- */
.app-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--vert-sapin);
  color: var(--blanc);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 9px 16px;
  transition: background .2s ease;
}
.app-badge:hover { background: var(--vert-emeraude); }
.app-badge .ab-text { line-height: 1.2; text-align: left; }
.app-badge .ab-eyebrow { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.75; }
.app-badge .ab-name { display: block; font-size: 0.92rem; font-weight: 700; }

/* ---------- Page Sécurité ---------- */
.security-hero { background: var(--vert-sapin); color: var(--blanc); padding: 56px 0 64px; }
.security-hero h1 { color: var(--blanc); }
.security-hero p.lead { color: rgba(255,255,255,0.75); max-width: 640px; font-size: 1.05rem; }
.security-list { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .security-list { grid-template-columns: repeat(2, 1fr); } }
.security-list .card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; }
.security-list .card .icon-wrap { margin-bottom: 0; flex-shrink: 0; }
.timeline { border-left: 2px solid var(--border); padding-left: 24px; display: flex; flex-direction: column; gap: 28px; }
.timeline .t-item { position: relative; }
.timeline .t-item::before {
  content: ""; position: absolute; left: -30px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--vert-emeraude);
  box-shadow: 0 0 0 4px var(--vert-clair);
}
.timeline .t-title { font-weight: 700; color: var(--vert-sapin); margin-bottom: 4px; }

/* ---------- Assistant / Chatbot ---------- */
.unieo-chat { position: fixed; right: 20px; bottom: 20px; z-index: 90; }

.unieo-chat-toggle {
  width: 58px; height: 58px; border-radius: 50%; border: none;
  background: var(--vert-emeraude); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(11,61,46,0.35);
  transition: transform .15s ease, background .2s ease;
}
.unieo-chat-toggle:hover { background: var(--vert-sapin); transform: translateY(-2px); }
.unieo-chat-toggle .ico-close { display: none; }
.unieo-chat-toggle[aria-expanded="true"] .ico-chat { display: none; }
.unieo-chat-toggle[aria-expanded="true"] .ico-close { display: block; }

.unieo-chat-panel {
  display: none;
  position: absolute; right: 0; bottom: 74px;
  width: 340px; max-width: calc(100vw - 32px);
  height: 460px; max-height: calc(100vh - 140px);
  background: var(--blanc); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  flex-direction: column; overflow: hidden;
}
.unieo-chat-panel.is-open {
  display: flex;
  animation: fadeInUp .2s ease both;
}

.unieo-chat-header {
  background: var(--vert-sapin); color: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 12px 14px 16px; flex-shrink: 0;
}
.unieo-chat-header img { border-radius: 6px; background: #fff; padding: 2px; }
.unieo-chat-header .uc-title { font-weight: 700; font-size: 0.92rem; }
.unieo-chat-header .uc-sub { font-size: 0.72rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 5px; }
.uc-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }
.unieo-chat-close {
  margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.12); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.unieo-chat-close:hover { background: rgba(255,255,255,0.22); }

.unieo-chat-messages {
  flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px;
  background: var(--papier);
}
.uc-msg { max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: 0.86rem; line-height: 1.4; }
.uc-bot { background: #fff; border: 1px solid var(--border); color: var(--gris-anthracite); align-self: flex-start; border-bottom-left-radius: 4px; }
.uc-user { background: var(--vert-emeraude); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.uc-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; }
.uc-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gris-clair); animation: ucBlink 1.2s infinite ease-in-out; }
.uc-typing span:nth-child(2) { animation-delay: .2s; }
.uc-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ucBlink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.unieo-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); flex-shrink: 0; background: #fff; }
.unieo-chat-form input {
  flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px;
  font-family: var(--font); font-size: 0.86rem; outline: none;
}
.unieo-chat-form input:focus { border-color: var(--vert-emeraude); }
.unieo-chat-form button {
  width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--vert-emeraude);
  color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.unieo-chat-form button:hover { background: var(--vert-sapin); }

.unieo-chat-disclaimer { font-size: 0.66rem; color: var(--gris-clair); text-align: center; padding: 6px 10px 10px; background: #fff; }
.unieo-chat-disclaimer a { color: var(--vert-emeraude); }

@media (max-width: 480px) {
  .unieo-chat { right: 12px; bottom: 12px; }
  .unieo-chat-panel { width: calc(100vw - 24px); height: calc(100vh - 120px); bottom: 70px; right: -6px; }
}

/* ---------- Bandeau de consentement cookies ---------- */
.unieo-cookie-banner {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--vert-sapin); color: rgba(255,255,255,0.9);
  padding: 18px 24px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
}
.unieo-cookie-banner.is-open { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.ucb-text { flex: 1 1 380px; font-size: 0.85rem; line-height: 1.5; }
.ucb-text a { color: var(--vert-menthe); font-weight: 600; }
.ucb-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-cookie {
  border: none; border-radius: 999px; padding: 10px 18px; font-family: var(--font);
  font-weight: 700; font-size: 0.84rem; cursor: pointer; white-space: nowrap;
}
.btn-cookie-primary { background: var(--vert-emeraude); color: #fff; }
.btn-cookie-primary:hover { background: #0c6a49; }
.btn-cookie-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-cookie-ghost:hover { border-color: #fff; }

.footer-link-btn {
  background: none; border: none; padding: 0; font: inherit; color: inherit;
  cursor: pointer; text-align: left;
}
.footer-link-btn:hover { text-decoration: underline; }

/* ---------- Fenêtre de préférences cookies ---------- */
.unieo-cookie-modal {
  display: none;
  position: fixed; inset: 0; z-index: 96;
  background: rgba(11,61,46,0.45);
  align-items: center; justify-content: center; padding: 16px;
}
.unieo-cookie-modal.is-open { display: flex; }

.ucm-panel {
  background: #fff; border-radius: 16px; width: 100%; max-width: 440px;
  max-height: calc(100vh - 40px); overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.ucm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.ucm-header p { font-weight: 700; color: var(--vert-sapin); font-size: 1rem; }
.ucm-close { background: none; border: none; color: var(--gris-clair); cursor: pointer; padding: 4px; }
.ucm-close:hover { color: var(--vert-sapin); }

.ucm-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 18px; }
.ucm-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ucm-item-title { font-weight: 700; color: var(--gris-anthracite); font-size: 0.92rem; }
.ucm-item-desc { font-size: 0.8rem; color: var(--gris-clair); margin-top: 6px; line-height: 1.5; }

.ucm-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.ucm-switch input { opacity: 0; width: 0; height: 0; }
.ucm-slider {
  position: absolute; inset: 0; background: #d1d9d5; border-radius: 999px; cursor: pointer;
  transition: background .2s ease;
}
.ucm-slider::before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .2s ease;
}
.ucm-switch input:checked + .ucm-slider { background: var(--vert-emeraude); }
.ucm-switch input:checked + .ucm-slider::before { transform: translateX(18px); }
.ucm-switch-disabled { opacity: 0.6; }
.ucm-switch-disabled .ucm-slider { cursor: not-allowed; }

.ucm-footer {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end;
  padding: 16px 20px; border-top: 1px solid var(--border);
}
.ucm-footer .btn-cookie-ghost { background: none; color: var(--vert-emeraude); border: 1px solid var(--border); }
.ucm-footer .btn-cookie-ghost:hover { border-color: var(--vert-emeraude); }

@media (max-width: 600px) {
  .unieo-cookie-banner { padding: 16px; }
  .ucb-actions { width: 100%; }
  .ucb-actions .btn-cookie { flex: 1; }
}
