/* ==========================================================================
   Coccinotes — brandbook v1 tokens
   Mam'zelle's wardrobe: 60% Papier, 25% Coccinelle, 10% Noire, 5% Or + amies
   ========================================================================== */
:root {
  /* --- Brand rework 2026: Coccinelle red + Cyan/teal + pale green --- */
  --rouge: #C8354F;        /* Coccinelle — primary */
  --rouge-fonce: #A32340;  /* pressed / hover */
  --noire: #29222B;        /* spots & text */
  --or: #F2BF3A;           /* pop / icon */
  --jaune: var(--or);
  --jaune-fonce: #B37F0E;  /* gold dark enough for small accents on papier */
  --cyan: #478B8C;         /* app-icon teal — secondary / info */
  --cyan-fonce: #37706F;   /* pressed / hover */
  --cyan-clair: #7FB3B3;   /* pale teal */
  --vert: #79A85F;         /* Foulard — success */
  --vert-fonce: #4C7A34;
  --vert-clair: #CEE6D1;   /* pale green — soft grounds */
  /* legacy info tokens now point at the new teal */
  --bleu: var(--cyan);
  --bleu-clair: var(--cyan-clair);
  --papier: #faf8f0;       /* grounds */
  --papier-ombre: #EFE5D9; /* tint band */
  --bg: var(--papier);
  --ink: var(--noire);

  /* paler gradient blends */
  --grad-hero: linear-gradient(155deg, var(--rouge) 0%, var(--rouge-fonce) 100%);
  --grad-teal: linear-gradient(155deg, var(--cyan) 0%, var(--cyan-fonce) 100%);
  --grad-mint: linear-gradient(155deg, var(--vert-clair) 0%, #cfe8d2 100%);
  --grad-paper: linear-gradient(180deg, var(--papier) 0%, var(--papier-ombre) 100%);

  --font-display: "Fredoka", "Baloo 2", sans-serif;
  --font-body: "Nunito Sans", "Nunito", sans-serif;

  --radius: 18px;
  --wrap: 68rem;
  --z-nav: 10;
  --z-mobile-nav: 9;
  --z-chat-fab: 20;
  --z-chat: 30;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); color: var(--rouge); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 70ch; text-wrap: pretty; }
a { color: var(--rouge); }
a:hover { color: var(--rouge-fonce); }
strong { font-weight: 700; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.wrap-narrow { max-width: 46rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-light { background: var(--papier); color: var(--rouge); }
.btn-light:hover { background: #fff; color: var(--rouge-fonce); }
.btn-ghost { background: transparent; color: var(--papier); border-color: var(--papier); }
.btn-ghost:hover { background: rgba(248, 242, 236, 0.14); color: #fff; }
.btn-red { background: var(--rouge); color: var(--papier); font-size: 1.15rem; }
.btn-red:hover { background: var(--rouge-fonce); color: var(--papier); }
.btn-big { font-size: clamp(1.3rem, 4vw, 1.7rem); padding: 0.7em 1.4em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem clamp(1rem, 3vw, 2rem);
  background: var(--papier);
  border-bottom: 1px solid var(--papier-ombre);
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--rouge); }
.brand-note { width: 2.3rem; height: 2.3rem; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; color: var(--noire); }
.site-nav { display: none; margin-left: auto; gap: 1.4rem; align-items: center; }
.site-nav a { text-decoration: none; font-weight: 700; color: var(--noire); font-size: 0.98rem; }
.site-nav a:hover { color: var(--rouge); }
.site-nav .nav-cta { color: var(--rouge); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.site-nav + .header-actions { margin-left: 0; }
.sms-pill {
  display: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--papier);
  background: var(--rouge);
  border-radius: 999px;
  padding: 0.45em 1.1em;
  text-decoration: none;
}
.sms-pill:hover { background: var(--rouge-fonce); color: var(--papier); }
.lang-toggle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--bleu);
  background: transparent;
  border: 2px solid var(--bleu);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  cursor: pointer;
}
.lang-toggle:hover { background: var(--bleu); color: var(--papier); }
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menu-toggle span { display: block; height: 3px; border-radius: 2px; background: var(--noire); transition: transform 0.3s var(--ease-out), opacity 0.3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0 0 auto 0;
  top: 3.6rem;
  z-index: var(--z-mobile-nav);
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.4rem 1.6rem;
  background: var(--papier);
  border-bottom: 3px solid var(--rouge);
  transform: translateY(-110%);
  transition: transform 0.35s var(--ease-out);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--noire);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--papier-ombre);
}
.mobile-nav a:last-child { color: var(--rouge); border-bottom: none; }

@media (min-width: 860px) {
  .site-nav { display: flex; }
  .sms-pill { display: inline-block; }
  .menu-toggle, .mobile-nav { display: none; }
}

/* ---------- Hero — Coccinelle drench ---------- */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: var(--papier);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(4.5rem, 10vw, 7rem);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 5vw, 2rem);
  text-align: center;
}
.hero-logo { width: clamp(4.5rem, 12vw, 6.5rem); height: auto; margin-bottom: 1.2rem; }
.hero h1 {
  font-size: clamp(2.4rem, 7.5vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4em;
}
.hero-sub { font-size: clamp(1.1rem, 3vw, 1.3rem); margin-inline: auto; margin-bottom: 1.8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-bottom: 1.6rem; }
.hero-badges { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; opacity: 0.92; margin: 0; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: clamp(30px, 6vw, 70px); }

/* Pluie de notes — floating brand notes */
.hero-notes { position: absolute; inset: 0; pointer-events: none; }
.fnote { position: absolute; width: clamp(3.2rem, 7vw, 5.2rem); opacity: 0.9; animation: float 7s ease-in-out infinite; }
.fnote.n1 { top: 10%; left: 6%; animation-delay: 0s; }
.fnote.n2 { top: 16%; right: 7%; width: clamp(2.6rem, 5.5vw, 4.2rem); animation-delay: -2.5s; }
.fnote.n3 { bottom: 20%; left: 11%; width: clamp(2.4rem, 5vw, 3.8rem); animation-delay: -4.5s; }
.fnote.n4 { bottom: 14%; right: 12%; width: clamp(2.8rem, 6vw, 4.6rem); animation-delay: -1.3s; }
.fnote.n5 { top: 44%; left: 3%; width: clamp(2.2rem, 4.5vw, 3.4rem); opacity: 0.75; animation-delay: -5.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}
@media (max-width: 700px) {
  .fnote.n3, .fnote.n5 { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-tint { background: var(--vert-clair); }
.lead { font-size: 1.15rem; max-width: 60ch; }
.lady-inline { height: 1.05em; width: auto; vertical-align: -0.18em; margin-right: 0.15em; }
.rule-check { height: 2.5em; width: auto; vertical-align: -0.85em; margin-right: 0.3em; flex-shrink: 0; }
.note-line.note-green { background: #DCEFDF; }
.note-line {
  margin-top: 2rem;
  font-size: 1.05rem;
  background: #BDDCDC;
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  max-width: 60ch;
}

/* Courses — list rows, two columns on wide */
.course-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.6rem 3rem;
}
@media (min-width: 720px) { .course-list { grid-template-columns: 1fr 1fr; } }
.course-list li { display: flex; gap: 1rem; align-items: flex-start; }
.course-list h3 { margin-bottom: 0.25em; color: var(--noire); }
.course-list p { margin: 0; font-size: 1rem; }
.course-dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  font-size: 1.5rem;
  background: color-mix(in oklab, var(--c) 18%, var(--papier));
  border: 2px solid color-mix(in oklab, var(--c) 55%, var(--papier));
}

/* Formats */
.formats { display: grid; gap: 1.2rem; margin-top: 2rem; }
@media (min-width: 780px) { .formats { grid-template-columns: 1fr 1.15fr 1fr; align-items: stretch; } }
.format {
  background: var(--papier);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.2rem;
  border: 1px solid var(--papier-ombre);
}
.format h3 { color: var(--rouge); }
.format p { margin: 0; font-size: 1rem; }
.format-star { background: var(--noire); color: var(--papier); border: none; }
.format-star h3 { color: #fff; margin-top: 0.4rem; }
.format-flag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--noire);
  background: var(--vert-clair);
  border-radius: 999px;
  padding: 0.2em 0.9em;
  margin: 0 0 0.8rem;
}

/* FAQ */
.faq-list { margin-top: 1.5rem; }
.faq-list details {
  background: var(--papier);
  border-radius: var(--radius);
  border: 1px solid var(--papier-ombre);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-list summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 1rem 3rem 1rem 1.3rem;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.5rem;
  color: var(--rouge);
  transition: rotate 0.3s var(--ease-out);
}
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list details p { padding: 0 1.3rem 1.1rem; margin: 0; }

/* ---------- Form ---------- */
#regForm { margin-top: 1.5rem; display: grid; gap: 1.1rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
#regForm label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.95rem; }
#regForm input, #regForm select, #regForm textarea {
  font: inherit;
  font-weight: 400;
  color: var(--noire);
  background: #fff;
  border: 2px solid var(--papier-ombre);
  border-radius: 12px;
  padding: 0.65em 0.9em;
  width: 100%;
}
#regForm input:focus, #regForm select:focus, #regForm textarea:focus {
  outline: none;
  border-color: var(--rouge);
}
#regForm input::placeholder, #regForm textarea::placeholder { color: #6d6570; }
#regForm button { justify-self: start; border: none; }
.form-status { font-weight: 700; color: var(--vert-fonce); min-height: 1.4em; margin: 0; }
.form-status.error { color: var(--rouge-fonce); }

/* ---------- Contact band ---------- */
.contact-band {
  background: var(--rouge);
  color: var(--papier);
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 0;
}
.contact-band h2 { color: #fff; }
.contact-band p { margin-inline: auto; }
.contact-band .btn { margin: 0.8rem 0 1.2rem; }
.contact-alt { font-size: 0.98rem; }
.contact-alt a { color: var(--papier); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--noire);
  color: var(--papier);
  text-align: center;
  padding: 2.5rem 0 6rem; /* room for chat fab */
  font-size: 0.95rem;
}
.footer-brand { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-bottom: 0.4rem; }
.site-footer a { color: #fff; font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0.3em auto; }
.footer-small { opacity: 0.75; font-size: 0.88rem; margin-top: 0.8em; }

/* ---------- Chat ---------- */
.chat-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: var(--z-chat-fab);
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  border: none;
  background: var(--rouge);
  color: var(--papier);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(41, 34, 43, 0.35);
  transition: transform 0.25s var(--ease-out), background-color 0.25s;
}
.chat-fab:hover { transform: scale(1.07); background: var(--rouge-fonce); }
.chat-fab img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--papier);
  border: 3px solid var(--rouge);
  display: block;
}

.chat-panel {
  position: fixed;
  right: 0.8rem;
  bottom: 5.4rem;
  z-index: var(--z-chat);
  width: min(24rem, calc(100vw - 1.6rem));
  height: min(30rem, 70vh);
  display: flex;
  flex-direction: column;
  background: var(--papier);
  border-radius: var(--radius);
  border: 2px solid var(--rouge);
  box-shadow: 0 12px 32px rgba(41, 34, 43, 0.3);
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--rouge);
  color: var(--papier);
  padding: 0.6rem 1rem;
}
.chat-head p { margin: 0; font-size: 0.98rem; }
.chat-head button {
  background: none;
  border: none;
  color: var(--papier);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.chat-msg {
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.chat-msg.bot { background: #fff; border: 1px solid var(--papier-ombre); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--bleu); color: var(--papier); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg a { font-weight: 700; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.6rem; }
.chat-quick button {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bleu);
  background: #fff;
  border: 1.5px solid var(--bleu-clair);
  border-radius: 999px;
  padding: 0.3em 0.8em;
  cursor: pointer;
}
.chat-quick button:hover { background: var(--bleu); color: var(--papier); }
.chat-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem;
  border-top: 1px solid var(--papier-ombre);
  background: #fff;
}
.chat-input input {
  flex: 1;
  font: inherit;
  font-size: 0.95rem;
  border: 2px solid var(--papier-ombre);
  border-radius: 999px;
  padding: 0.5em 1em;
}
.chat-input input:focus { outline: none; border-color: var(--rouge); }
.chat-input button {
  border: none;
  background: var(--rouge);
  color: var(--papier);
  width: 2.6rem;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
}
.chat-input button:hover { background: var(--rouge-fonce); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fnote { animation: none; }
  .btn, .chat-fab, .menu-toggle span, .mobile-nav { transition: none; }
}

/* ---------- Histoire : carrousel photos + volets ---------- */
.hist-carousel { position: relative; margin-top: 2.2rem; }
.hist-track {
  display: flex; gap: 0.8rem; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0.2rem 0.2rem 1rem;
}
.hist-track figure { flex: 0 0 auto; margin: 0; scroll-snap-align: center; }
.hist-track img {
  height: 230px; width: auto; display: block;
  border-radius: 16px; box-shadow: 0 6px 16px rgba(41, 34, 43, 0.18);
}
.hist-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--rouge); color: var(--papier);
  font-size: 1.6rem; line-height: 1; cursor: pointer; display: none;
}
.hist-btn:hover { background: var(--rouge-fonce); }
.hist-btn.prev { left: -10px; }
.hist-btn.next { right: -10px; }
@media (min-width: 760px) {
  .hist-btn { display: grid; place-items: center; }
  .hist-track img { height: 300px; }
}

.story-fold { margin-top: 1.4rem; background: var(--vert-clair); border-radius: 16px; }
.story-fold summary {
  cursor: pointer; padding: 1rem 2.8rem 1rem 1.2rem;
  font-family: var(--font-display); font-size: 1.15rem; color: var(--rouge);
  list-style: none; position: relative;
}
.story-fold summary::-webkit-details-marker { display: none; }
.story-fold summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; color: var(--rouge);
}
.story-fold[open] summary::after { content: "\2013"; }
.fold-body { padding: 0 1.2rem 1.3rem; }
.fold-body p { margin: 0 0 1rem; }
.fold-banner { width: 100%; height: auto; border-radius: 12px; margin-bottom: 1.1rem; }
.fold-photos { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: flex-start; }
.fold-photos img { width: min(46%, 260px); height: auto; border-radius: 12px; }
.btn-red { background: var(--rouge); color: var(--papier); }
.btn-red:hover { background: var(--rouge-fonce); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .hist-track { scroll-behavior: auto; }
}

/* dots du carrousel */
.hist-dots { display: flex; justify-content: center; gap: 0.55rem; margin-top: 0.2rem; }
.hist-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: none; padding: 0;
  background: var(--bleu-clair); cursor: pointer; transition: transform 0.2s, background 0.2s;
}
.hist-dots button.on { background: var(--rouge); transform: scale(1.25); }
.hist-dots button:hover { background: var(--rouge-fonce); }

/* Calendly */
.calendly-fold { margin-top: 2.4rem; text-align: left; }
.calendly-inline-widget { border-radius: 16px; overflow: hidden; background: #fff; max-width: 900px; margin: 0 auto; }

/* Portail élèves */
.portal-pill {
  display: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--papier);
  background: var(--grad-teal);
  border-radius: 999px;
  padding: 0.45em 1.1em;
  text-decoration: none;
}
.portal-pill:hover { background: var(--cyan-fonce); color: var(--papier); }
@media (min-width: 860px) { .portal-pill { display: inline-block; } }
.mobile-nav .mobile-portal { color: var(--bleu); font-weight: 700; }

/* ---------- Règles du studio ---------- */
.rules-grid { display: grid; gap: 1rem; margin-top: 1.5rem; align-items: start; }
@media (min-width: 560px) { .rules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .rules-grid { grid-template-columns: repeat(3, 1fr); } }
.rule-card { background: var(--vert-clair); border-radius: 16px; align-self: start; }
.rule-card summary {
  cursor: pointer; padding: 0.9rem 2.6rem 0.9rem 1.1rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--rouge);
  list-style: none; position: relative;
}
.rule-card summary::-webkit-details-marker { display: none; }
.rule-card summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%;
  transform: translateY(-50%); font-size: 1.35rem; color: var(--rouge);
}
.rule-card[open] summary::after { content: "\2013"; }
.rule-body { padding: 0 1.1rem 1.1rem; }
.rule-body p { margin: 0 0 0.8rem; font-size: 0.95rem; }
.rule-body p:last-child { margin-bottom: 0; }
.async-fold { margin-top: 1.6rem; }

/* Relief de notes en arrière-plan du héros (photo blanche fondue dans le rouge) */
.hero-emboss {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(64%, 780px);
  background: url("../img/hero-notes-bg.jpg") right center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(to left, #000 60%, transparent);
  mask-image: linear-gradient(to left, #000 60%, transparent);
  pointer-events: none;
}

/* Avatar Cornemuse Żac dans le clavardage */
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--papier);
  border: 2px solid var(--papier);
  margin-right: 0.6rem;
  flex-shrink: 0;
}
.chat-head p { flex: 1; }
