/* =========================================================
   Salon Karim — feuille de style
   👉 Pour changer les couleurs : modifiez les variables ci-dessous.
   ========================================================= */
:root {
  --noir: #0f0f0f;          /* fond sombre, textes */
  --noir-2: #1a1918;        /* cartes sur fond sombre */
  --blanc: #f7f4ee;         /* blanc cassé (fond principal) */
  --blanc-2: #efe9df;       /* fond alterné */
  --or: #c9a45c;            /* doré (boutons, détails) */
  --or-fonce: #8c6d33;      /* doré lisible sur fond clair */
  --gris: #5f5a53;          /* texte secondaire */
  --ligne: #e2dbcf;

  --font-titre: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 15, 15, .08);
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-texte);
  font-size: 16px;
  line-height: 1.6;
  color: var(--noir);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-titre); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--or); color: var(--noir); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Bandeau démo ---------- */
.demo-banner {
  background: var(--noir);
  color: #d9cfbd;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .02em;
  padding: 7px 16px;
  border-bottom: 1px solid rgba(201, 164, 92, .25);
}
.demo-banner span::before { content: "✦ "; color: var(--or); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--gold { background: var(--or); color: var(--noir); box-shadow: 0 6px 18px rgba(201, 164, 92, .3); }
.btn--gold:hover { background: #d6b46f; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--dark { background: var(--noir); color: var(--blanc); }
.btn--dark:hover:not(:disabled) { background: #2a2826; }
.btn--line { background: transparent; color: var(--noir); border-color: var(--ligne); }
.btn--line:hover { border-color: var(--noir); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 15, 15, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  color: var(--blanc);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--or); color: var(--or);
  font-family: var(--font-titre); font-size: 18px; font-weight: 600;
}
.logo__text { font-family: var(--font-titre); font-size: 21px; font-weight: 600; letter-spacing: .01em; }

.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  background: var(--noir);
  padding: 8px 20px 28px;
  border-bottom: 1px solid rgba(201, 164, 92, .25);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; }
.nav__list { list-style: none; margin: 0 0 18px; padding: 0; }
.nav__list a {
  display: block; padding: 14px 4px; text-decoration: none;
  font-family: var(--font-titre); font-size: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav__list a:hover { color: var(--or); }
.nav__cta { width: 100%; }
.header__cta { display: none; }

.burger {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-content: center; gap: 6px; padding: 0;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--blanc); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 480px) { .header__cta { display: inline-flex; } }

@media (min-width: 900px) {
  .burger, .header__cta { display: none !important; }
  .nav {
    position: static; display: flex; align-items: center; gap: 28px;
    background: none; padding: 0; border: 0;
    transform: none; opacity: 1; visibility: visible;
  }
  .nav__list { display: flex; gap: 26px; margin: 0; }
  .nav__list a { font-family: var(--font-texte); font-size: 14.5px; font-weight: 500; padding: 6px 0; border: 0; position: relative; }
  .nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--or); transform: scaleX(0); transition: transform .25s ease; }
  .nav__list a:hover::after { transform: scaleX(1); }
  .nav__cta { width: auto; min-height: 40px; padding: 8px 20px; font-size: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - var(--header-h) - 32px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  background: radial-gradient(120% 80% at 80% 10%, #4a3d2a 0%, #1a1714 45%, #0b0b0b 100%);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s ease-out both; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 10, .35) 0%, rgba(10, 10, 10, .55) 45%, rgba(10, 10, 10, .92) 100%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__content { padding-top: 80px; padding-bottom: 48px; }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--or-fonce); margin-bottom: 14px;
}
.hero .eyebrow, .section--dark .eyebrow { color: var(--or); }
.hero__title { font-size: clamp(42px, 11vw, 88px); font-weight: 600; letter-spacing: -.01em; margin-bottom: 18px; }
.hero__title em { font-style: italic; color: var(--or); font-weight: 500; }
.hero__text { font-size: 17px; max-width: 34em; color: rgba(255, 255, 255, .85); margin-bottom: 28px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__stats {
  list-style: none; padding: 22px 0 0; margin: 36px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.hero__stats strong { display: block; font-family: var(--font-titre); font-size: 24px; color: #fff; }
.hero__stats span { font-size: 12.5px; color: rgba(255, 255, 255, .7); }

@media (min-width: 600px) {
  .hero__actions { flex-direction: row; }
  .hero__content { padding-bottom: 72px; }
  .hero__stats { max-width: 520px; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--dark { background: var(--noir); color: var(--blanc); }
.section--soft { background: var(--blanc-2); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__title { font-size: clamp(32px, 7vw, 50px); }
.section__lead { color: var(--gris); font-size: 17px; }
.section--dark .section__lead { color: #b9b1a4; }
@media (min-width: 900px) { .section { padding: 112px 0; } }

/* ---------- Prestations ---------- */
.services { display: grid; gap: 16px; }
.service {
  background: #fff; border: 1px solid var(--ligne); border-radius: var(--radius);
  padding: 26px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201, 164, 92, .6); }
.service h3 { font-size: 22px; }
.service p { color: var(--gris); margin: 0; }
.service__icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; background: var(--noir);
}
.service__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--or); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service--cta { background: var(--noir); color: var(--blanc); border-color: var(--noir); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.service--cta p { color: #b9b1a4; margin-bottom: 18px; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- Tarifs ---------- */
.pricing { display: grid; gap: 20px; }
.price-group {
  background: var(--noir-2); border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius); padding: 26px 24px;
}
.price-group h3 { color: var(--or); font-size: 22px; margin-bottom: 10px; }
.price-row { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); }
.price-row:last-child { border-bottom: 0; }
.price-row__name { font-weight: 500; }
.price-row__desc { display: block; font-size: 13.5px; color: #a8a094; font-weight: 400; }
.price-row__dots { flex: 1; }
.price-row__price { font-family: var(--font-titre); font-size: 22px; white-space: nowrap; color: #fff; }
.price-row__price small { font-family: var(--font-texte); font-size: 12px; color: #a8a094; margin-right: 4px; }
.pricing__cta { margin-top: 36px; text-align: center; }
@media (min-width: 800px) { .pricing { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Réservation ---------- */
.booking {
  background: #fff; border: 1px solid var(--ligne); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow);
}
@media (min-width: 640px) { .booking { padding: 36px; } }
.booking__steps {
  list-style: none; padding: 0; margin: 0 0 26px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  font-size: 12.5px; color: var(--gris); counter-reset: none;
}
.booking__steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; }
.booking__steps li span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--ligne); background: var(--blanc); font-weight: 600; transition: all .25s ease;
}
.booking__steps li.is-active { color: var(--noir); font-weight: 600; }
.booking__steps li.is-active span { background: var(--noir); color: var(--or); border-color: var(--noir); }
.booking__steps li.is-done span { background: var(--or); color: var(--noir); border-color: var(--or); }

.booking__panel { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.booking__panel.is-active { display: block; animation: fadeUp .35s ease both; }
.booking__legend { font-family: var(--font-titre); font-size: 22px; font-weight: 600; margin-bottom: 18px; padding: 0; }
.booking__sub { font-weight: 600; margin: 24px 0 12px; }
.booking__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.booking__note { font-size: 13px; color: var(--gris); text-align: center; margin: 16px 0 0; }

.choice-grid { display: grid; gap: 10px; }
@media (min-width: 600px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
.choice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--ligne); background: var(--blanc);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.choice:hover { border-color: var(--or); transform: translateY(-1px); }
.choice strong { display: block; font-weight: 600; }
.choice small { color: var(--gris); font-size: 13px; }
.choice__price { font-family: var(--font-titre); font-size: 20px; white-space: nowrap; }

.days { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.day {
  flex: 0 0 auto; width: 74px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 6px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--ligne); background: var(--blanc);
  transition: all .2s ease;
}
.day small { font-size: 12px; text-transform: capitalize; color: var(--gris); }
.day strong { font-family: var(--font-titre); font-size: 24px; line-height: 1.1; }
.day:hover:not(:disabled) { border-color: var(--or); }
.day[aria-checked="true"] { background: var(--noir); color: var(--blanc); border-color: var(--noir); }
.day[aria-checked="true"] small { color: var(--or); }
.day:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.slot {
  padding: 11px 4px; border-radius: 10px; cursor: pointer; font-weight: 500;
  border: 1px solid var(--ligne); background: var(--blanc); transition: all .2s ease;
}
.slot:hover:not(:disabled) { border-color: var(--or); }
.slot[aria-checked="true"] { background: var(--or); border-color: var(--or); color: var(--noir); font-weight: 600; }
.slot:disabled { color: #b5aea3; background: transparent; text-decoration: line-through; cursor: not-allowed; }
.slots__empty { grid-column: 1 / -1; color: var(--gris); margin: 0; }

.recap { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; font-size: 15px; }
.recap p { margin: 0; }
.recap p + p { margin-top: 4px; }
.recap strong { font-weight: 600; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px;
  border-radius: 10px; border: 1px solid #cfc6b7; background: #fff; color: var(--noir);
}
.field input:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(201, 164, 92, .25); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.form-error { color: #b3261e; font-size: 14px; min-height: 1.2em; margin: 0; }

.confirm { text-align: center; padding: 20px 0 6px; animation: fadeUp .4s ease both; }
.confirm:focus { outline: none; }
.confirm__icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--noir); display: grid; place-items: center; }
.confirm__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--or); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .2s ease forwards; }
.confirm h3 { font-size: 30px; }
.confirm p { color: var(--gris); max-width: 30em; margin-left: auto; margin-right: auto; }
.confirm p strong { color: var(--noir); }
.confirm__small { font-size: 13.5px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 10px; }
.gallery__item {
  margin: 0; border-radius: 12px; overflow: hidden; position: relative;
  background: var(--g, linear-gradient(135deg, #1c1a17, #6b5a3f));
}
.gallery__item::before { /* motif discret visible si la photo ne charge pas */
  content: "K"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-titre); font-size: 44px; color: rgba(201, 164, 92, .35);
}
.gallery__item img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--tall { grid-row: span 2; }
@media (min-width: 800px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 16px; }
}

/* ---------- Avis ---------- */
.demo-tag {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--or-fonce); background: rgba(201, 164, 92, .12);
  border: 1px solid rgba(201, 164, 92, .4); border-radius: 999px; padding: 6px 14px; margin: 4px 0 0;
}
.reviews { display: grid; gap: 16px; }
.review { margin: 0; background: #fff; border: 1px solid var(--ligne); border-radius: var(--radius); padding: 26px; }
.stars { color: var(--or); letter-spacing: 3px; font-size: 18px; margin-bottom: 12px; }
.star-off { color: var(--ligne); }
.review blockquote { margin: 0 0 16px; font-family: var(--font-titre); font-size: 19px; line-height: 1.45; font-style: italic; }
.review figcaption { font-size: 14px; color: var(--gris); }
.review figcaption strong { color: var(--noir); }
@media (min-width: 700px) { .reviews { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .reviews { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 28px; }
.contact__info h3 { font-size: 20px; color: var(--or); margin-top: 26px; }
.contact__info h3:first-child { margin-top: 0; }
.contact__line { font-size: 17px; }
.contact__line a { text-decoration: none; border-bottom: 1px solid rgba(201, 164, 92, .5); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hours { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: #d9d2c5; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--or); font-weight: 600; }
.hours .closed { color: #8f877b; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 340px; background: var(--noir-2); border: 1px solid rgba(255, 255, 255, .08); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 7fr; gap: 48px; } .map, .map iframe { min-height: 460px; } }

/* ---------- Pied de page ---------- */
.footer { background: #080808; color: #b9b1a4; padding: 48px 0 110px; font-size: 14px; }
.footer__inner { display: grid; gap: 18px; }
.logo--footer { color: var(--blanc); margin-bottom: 6px; }
.footer__small { font-size: 13px; color: #8f877b; margin: 0; }
.footer__credit { margin: 0; color: var(--blanc); }
.footer__credit a { color: var(--or); text-decoration: none; }
.footer__credit a:hover { text-decoration: underline; }
@media (min-width: 800px) { .footer__inner { grid-template-columns: 1fr auto; align-items: center; } .footer__inner > .footer__small { grid-column: 1 / -1; } }

/* ---------- Chatbot ---------- */
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 150; }
.chat__bubble {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--noir); color: var(--or);
  display: grid; place-items: center; position: relative; margin-left: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3), 0 0 0 1px rgba(201, 164, 92, .4);
  transition: transform .25s ease;
}
.chat__bubble:hover { transform: scale(1.06); }
.chat__bubble svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat__bubble .i-close { display: none; }
.chat.is-open .chat__bubble .i-close { display: block; }
.chat.is-open .chat__bubble .i-chat { display: none; }
.chat__badge {
  position: absolute; top: -2px; right: -2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--or); color: var(--noir); font-size: 11px; font-weight: 700; display: grid; place-items: center;
  animation: pop .4s 2s ease both;
}
.chat.is-open .chat__badge, .chat__badge.is-hidden { display: none; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.chat__panel {
  position: absolute; right: 0; bottom: 74px;
  width: min(370px, calc(100vw - 32px));
  height: min(540px, calc(100svh - 150px));
  background: var(--blanc); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  border: 1px solid var(--ligne);
  transform-origin: bottom right; animation: chatIn .25s ease both;
}
.chat__panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--noir); color: var(--blanc); }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--or); color: var(--or); display: grid; place-items: center; font-family: var(--font-titre); font-weight: 600; flex: none; }
.chat__title { margin: 0; font-weight: 600; font-size: 15px; }
.chat__status { margin: 0; font-size: 12px; color: #b9b1a4; display: flex; align-items: center; gap: 6px; }
.chat__status .dot { width: 7px; height: 7px; border-radius: 50%; background: #4caf7a; }
.chat__close { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.chat__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; animation: fadeUp .25s ease both; white-space: pre-line; }
.msg--bot { background: #fff; border: 1px solid var(--ligne); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg--user { background: var(--noir); color: var(--blanc); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { color: var(--or-fonce); font-weight: 600; }
.typing { display: inline-flex; gap: 4px; padding: 14px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #b5aea3; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat__chips { display: flex; gap: 6px; padding: 0 12px 10px; overflow-x: auto; flex: none; }
.chip { flex: none; padding: 7px 12px; font-size: 13px; border-radius: 999px; border: 1px solid var(--or); background: transparent; color: var(--noir); cursor: pointer; transition: background .2s ease; }
.chip:hover { background: rgba(201, 164, 92, .15); }
.chat__form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--ligne); background: #fff; flex: none; }
.chat__form input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; font-size: 16px; border: 1px solid var(--ligne); border-radius: 999px; background: var(--blanc); }
.chat__form input:focus { outline: none; border-color: var(--or); }
.chat__form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--noir); color: var(--or); cursor: pointer; display: grid; place-items: center; }
.chat__form button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Animations au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
