/* Recap · index · dialogue des contributeurs */
  /* ---------- contributors dialog : thank-you card, emblem rosette, one ribbon card per contributor ---------- */
  .topbar .side:first-child .icon-btn:nth-child(2) { --ti: 1; }
  .ct-card { width: min(100%, 352px); }
  .ct-emblem { --r1: #f9e5a0; --r2: #e2b04a; position: relative; width: 96px; height: 114px; margin: -52px auto 2px; animation: ct-pop .75s cubic-bezier(.34, 1.6, .64, 1) .1s both; }
  .ct-emblem svg { display: block; overflow: visible; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .28)); animation: ct-sway 5s ease-in-out 1s infinite; transform-origin: 50% 40%; }
  .ct-sp { position: absolute; width: 16px; height: 16px; background: var(--gold); animation: fabTwinkle 2.4s ease-in-out infinite;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
  .ct-sp.a { top: 2px; right: -14px; }
  .ct-sp.b { top: 34px; left: -20px; width: 11px; height: 11px; background: var(--teal); animation-delay: .8s; }
  .ct-sp.c { bottom: 30px; right: -22px; width: 9px; height: 9px; background: var(--purple); animation-delay: 1.5s; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ct-emblem { --r1: #fdf8ec; --r2: #d9c38a; }
    :root:not([data-theme="light"]) .ct-emblem svg { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--ink) 50%, transparent)) drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); } }
  :root[data-theme="dark"] .ct-emblem { --r1: #fdf8ec; --r2: #d9c38a; }
  :root[data-theme="dark"] .ct-emblem svg { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--ink) 50%, transparent)) drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
  @keyframes ct-pop { from { opacity: 0; transform: translateY(14px) scale(.4) rotate(-14deg); } to { opacity: 1; transform: none; } }
  @keyframes ct-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
  @keyframes ct-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes ct-shine { from { background-position: 160% 0, 0 0; } to { background-position: -60% 0, 0 0; } }
    .ct-title { margin: 6px 0 0; font-family: "Caveat", cursive; font-size: 2.15rem; line-height: 1.05; color: var(--ink); animation: ct-up .5s ease-out .3s both; }
  .ct-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 2px 10px; padding-bottom: 6px; border-bottom: 1.5px dashed color-mix(in srgb, var(--muted) 45%, transparent); animation: ct-up .5s ease-out .5s both; }
  .ct-lab { font-family: "Caveat", cursive; font-size: 1.5rem; line-height: 1; color: var(--ink); }
  .ct-head em { font-style: normal; font-size: .7rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; color: var(--text); background: color-mix(in srgb, var(--ink) 14%, transparent); }
  .ct-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; text-align: start; }
  /* contributor card = a pinned paper note : folded corner, push-pin, avatar, name, mission. Everything is drawn in one by one when the card lands */
  .ct-item { --c: var(--pink); --d: calc(.6s + var(--i, 0) * .26s); position: relative; transform-origin: 50% 0; filter: drop-shadow(0 7px 8px rgba(0, 0, 0, .16));
    animation: ctn-land .7s cubic-bezier(.3, 1.35, .5, 1) var(--d) both; }
  .ct-item:nth-child(even) { transform-origin: 50% 0; --rot: 1deg; }
  .ct-note { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 46px 13px 14px; text-align: start;
    /* fond « fossile » : ammonite en filigrane + courbes de niveau (comme les fiches SVT) */
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9801a' stroke-opacity='.32' stroke-width='1.300' stroke-linecap='round'%3E%3Cpath d='M12 12.500a1 1 0 1 1 1.600-.8 2.400 2.400 0 1 1-3.600 2.400 4.100 4.100 0 1 1 6.600-4.400 6 6 0 1 1-9.400 6.600 7.600 7.600 0 1 1 10.200-10.400'/%3E%3C/svg%3E") right 44px center / 60px 60px no-repeat,
      repeating-radial-gradient(circle at -6% 112%, transparent 0 14px, color-mix(in srgb, var(--c) 12%, transparent) 14px 15px),
      linear-gradient(135deg, color-mix(in srgb, var(--c) 12%, var(--card)), var(--card));
    box-shadow: inset 0 0 0 2px var(--c);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); }
  .ct-note::before { content: ""; position: absolute; top: 9px; right: 15px; width: 14px; height: 14px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .6), transparent 40%), var(--red); box-shadow: 0 3px 3px rgba(0, 0, 0, .3);
    animation: ctn-pin .45s cubic-bezier(.5, 0, .7, 1.4) calc(var(--d) + .3s) both; }
  .ct-note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; transform-origin: 100% 100%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c) 55%, var(--card)) 50%, transparent 50%);
    animation: ctn-fold .45s cubic-bezier(.3, 1.3, .5, 1) calc(var(--d) + .5s) both; }
  .ct-av { flex: none; width: 42px; height: 42px; display: grid; place-items: center; padding-bottom: 3px; border-radius: 50%; font-family: "Caveat", cursive; font-size: 1.55rem; font-weight: 700; color: var(--on); background: var(--c);
    box-shadow: 0 0 0 3px var(--card), 0 0 0 4.5px color-mix(in srgb, var(--c) 55%, transparent); animation: ctn-av .5s cubic-bezier(.3, 1.6, .5, 1) calc(var(--d) + .25s) both; }
  .ct-bd { min-width: 0; }
  .ct-name { margin: 0; font-family: "Caveat", cursive; font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--text); }
  .ct-name span { padding: 0 3px; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--c) 32%, transparent) 62% 92%, transparent 92%) 0 0 / 0% 100% no-repeat;
    -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: ctn-mark .6s ease-out calc(var(--d) + .45s) forwards; }
  .ct-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
  .ct-role { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: var(--c);
    border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 14%, var(--card)); animation: ctn-role .45s ease-out calc(var(--d) + .6s) both; }
  .ct-role svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  @keyframes ctn-land { 0% { opacity: 0; transform: translateY(-30px) rotate(-4deg) scale(.95); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
  @keyframes ctn-pin { 0% { opacity: 0; transform: translateY(-22px) scale(1.7); } 70% { opacity: 1; transform: translateY(1px) scale(.9); } 100% { opacity: 1; transform: none; } }
  @keyframes ctn-fold { 0% { transform: scale(0); } 100% { transform: scale(1); } }
  @keyframes ctn-av { from { opacity: 0; transform: scale(.35) rotate(-20deg); } to { opacity: 1; transform: none; } }
  @keyframes ctn-mark { to { background-size: 100% 100%; } }
  @keyframes ctn-role { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .ct-item, .ct-note::before, .ct-note::after, .ct-av, .ct-role { animation: none !important; } .ct-name span { animation: none !important; background-size: 100% 100%; } }
  .ct-foot { margin: 14px 0 0; text-align: center; animation: ct-up .5s ease-out 1s both; }
  .ct-thx { font-family: "Caveat", cursive; font-size: 2.35rem; line-height: 1; color: var(--ink); }
  @media (prefers-reduced-motion: reduce) { .ct-emblem, .ct-emblem svg, .ct-sp, .ct-title, .ct-head, .ct-item, .ct-band::after, .ct-foot { animation: none !important; } }

  /* contributors dialog : header + footer stay put, the middle (thanks, list) scrolls inside the card */
  .ct-modal { align-items: flex-start; overflow: hidden; padding-top: 74px; }
  .ct-card { display: flex; flex-direction: column; max-height: 100%; margin: auto 0; }
  .ct-card > .ct-emblem, .ct-card > .ct-title, .ct-card > .ct-foot, .ct-card > .pwa-go { flex: none; }
  .ct-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -8px; padding: 6px 8px 14px; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 60%, transparent) transparent;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10px, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 10px, #000 calc(100% - 26px), transparent 100%); }
  .ct-scroll::-webkit-scrollbar { width: 5px; }
  .ct-scroll::-webkit-scrollbar-thumb { border-radius: 9px; background: color-mix(in srgb, var(--ink) 55%, transparent); }
  .ct-scroll::-webkit-scrollbar-track { background: transparent; }

  /* the swoosh under both thank-you lines : a tapered brush stroke (+ a thin second stroke and a dot) that is drawn from left to right, then catches a light sweep */
  .ct-title span, .ct-thx span { --u: var(--gold); position: relative; display: inline-block; isolation: isolate; padding: 0 12px .1em; }
  .ct-thx span { --u: var(--pink); }
  .ct-title span::after, .ct-thx span::after { content: ""; position: absolute; z-index: -1; left: -6px; right: -6px; bottom: -.06em; height: .5em; pointer-events: none;
    background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .6) 50%, transparent 60%) 160% 0 / 220% 100% no-repeat,
      linear-gradient(90deg, color-mix(in srgb, var(--u) 45%, transparent), var(--u) 35%, color-mix(in srgb, var(--u) 80%, #000) 100%);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cpath d='M2 13C60 6 150 3 250 6s110 3 148-1c-33 8-68 12-148 13S60 21 2 13z'/%3E%3Cpath d='M30 22c70-3 170-3 250-1 40 1 70 0 92-2-30 5-70 6-92 6-80 0-180 0-250-3z'/%3E%3Ccircle cx='392' cy='6' r='3'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cpath d='M2 13C60 6 150 3 250 6s110 3 148-1c-33 8-68 12-148 13S60 21 2 13z'/%3E%3Cpath d='M30 22c70-3 170-3 250-1 40 1 70 0 92-2-30 5-70 6-92 6-80 0-180 0-250-3z'/%3E%3Ccircle cx='392' cy='6' r='3'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    clip-path: inset(0 100% 0 0); animation: ct-swipe .95s cubic-bezier(.6, .05, .2, 1) .6s forwards, ct-shine 4s ease-in-out 2.2s infinite; }
  .ct-thx span::after { animation-delay: 1.5s, 3.2s; }
  @keyframes ct-swipe { to { clip-path: inset(0 0 0 0); } }
  @media (prefers-reduced-motion: reduce) { .ct-title span::after, .ct-thx span::after { animation: none; clip-path: none; } }

  /* contributors dialog : the character (smiling, holding a bouquet) replaces the old animated rosette */
  .ct-hero { position: relative; width: 124px; margin: -78px auto 6px; flex: none; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .25)); animation: ct-up .5s ease-out .1s both; }
  .ct-hero img, .ct-hero .ct-bq { display: block; width: 100%; height: auto; }
  .ct-card > .ct-hero { flex: none; }
  @media (prefers-reduced-motion: reduce) { .ct-hero { animation: none !important; } }

  /* each contributor can own a flower (cut-out low-poly image) in place of the initial */
  .ct-av.ct-fl { width: 46px; height: 60px; padding: 0; border-radius: 0; background: none; box-shadow: none; display: block; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .22)); }
  .ct-av.ct-fl img { display: block; width: 100%; height: 100%; object-fit: contain; }

  /* the list shows 3 cards at once (flower cards are ~86px tall + 12px gap), the rest scrolls inside the card */
  .ct-note { min-height: 86px; }
  .ct-scroll { max-height: 372px; }

  /* no visible scrollbar in the contributors list (it still scrolls by touch / wheel) */
  .ct-scroll { scrollbar-width: none; -ms-overflow-style: none; }
  .ct-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
