/* site v1.3 : partners (page Partenariats, fiche partenaire, bande de l'accueil) */

.pt-page { padding-bottom: 30px; }
.pt-group { --g: 228,70,158; margin-top: 26px; }
.pt-group[data-kind="licence"] { --g: 46,196,182; }
.pt-group[data-kind="partner"] { --g: 157,133,242; }
.pt-group + .pt-group { margin-top: 110px; }

/* titre de groupe posé sur une touche de peinture */
.pt-group-title { display: flex; justify-content: center; margin: 0 0 56px; font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.pt-group-title span { position: relative; isolation: isolate; padding: 2px 22px 6px; }
.pt-group-title span::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: -1; background: rgba(var(--g), .42); border-radius: 48% 52% 60% 40% / 50% 42% 58% 50%; transform: rotate(-1.6deg) skewX(-8deg); filter: blur(.3px); }
.pt-group-title span::after { content: ""; position: absolute; right: -8px; top: 4px; width: 11px; height: 11px; z-index: -1; background: rgba(var(--g), .8); border-radius: 48% 52% 60% 40% / 50% 42% 58% 50%; }

/* ---------- entrées alternées gauche / droite (croquis du client) ---------- */
.pt-list { display: flex; flex-direction: column; gap: 90px; }
.pt-entry { --ring: 228,70,158; display: flex; align-items: center; gap: 60px; width: min(900px, 100%); }
.pt-entry.is-left { margin: 0 auto 0 3%; }
.pt-entry.is-right { margin: 0 3% 0 auto; flex-direction: row-reverse; text-align: right; }
.pt-entry.is-right .pt-links, .pt-entry.is-right .pt-pieces { justify-content: flex-end; }
.pt-entry.is-right .pt-body { align-items: flex-end; }
.pt-entry.is-right .pt-avatar { margin-top: 34px; }

/* avatar rond, tache organique derrière, anneau dry brush peint par partners.js */
.pt-avatar { position: relative; display: block; flex: 0 0 auto; width: 230px; height: 230px; transform: rotate(-3deg); transition: transform .6s var(--back); }
.pt-entry.is-right .pt-avatar { transform: rotate(3deg); }
.pt-avatar:hover, .pt-entry.is-right .pt-avatar:hover { transform: rotate(-6deg) scale(1.03); }
.pt-blob { position: absolute; inset: -22px; border-radius: 48% 52% 60% 40% / 50% 42% 58% 50%; background: radial-gradient(circle at 32% 28%, rgba(var(--ring), .5), rgba(var(--ring), .16) 56%, rgba(var(--ring), 0) 72%); transform: rotate(-14deg); transition: border-radius 1.1s var(--back), transform 1.1s var(--back); pointer-events: none; }
.pt-avatar:hover .pt-blob { border-radius: 58% 42% 45% 55% / 45% 58% 42% 55%; transform: rotate(10deg) scale(1.05); }
.pt-img { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: #241335; box-shadow: 0 0 0 5px rgba(var(--ring), .55), 0 30px 60px -26px rgba(0,0,0,.95); transition: box-shadow .5s; }
.has-ring .pt-img { box-shadow: 0 30px 60px -26px rgba(0,0,0,.95); }
.pt-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--out); }
.pt-avatar:hover .pt-img img { transform: scale(1.07); }
.pt-img i { font-style: normal; font-family: var(--font-head); font-weight: 800; font-size: 84px; line-height: 1; color: rgb(var(--ring)); }
.pt-ring { position: absolute; inset: -22px; z-index: 2; pointer-events: none; }
.pt-ring canvas { display: block; width: 100%; height: 100%; }

/* texte */
.pt-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pt-role { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--lavender); }
.pt-name { margin: 0; font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -.015em; }
.pt-name a { background-image: linear-gradient(rgba(var(--ring), .55), rgba(var(--ring), .55)); background-size: 0 38%; background-position: 0 88%; background-repeat: no-repeat; transition: background-size .5s var(--out), color .3s; }
.pt-name a:hover { background-size: 100% 38%; }
.pt-desc { font-size: 15px; line-height: 1.8; max-width: 560px; }
.pt-desc p:last-child { margin-bottom: 0; }
.pt-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pt-links .btn { align-self: auto; gap: 8px; }
.pt-links .btn svg, .pt-cta svg { width: 14px; height: 14px; flex: 0 0 auto; }
.pt-cta svg { width: 16px; height: 16px; }
.pt-pieces { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 8px; }
.pt-thumbs { display: flex; padding-left: 10px; }
.pt-thumb { position: relative; width: 54px; height: 54px; margin-left: -10px; border-radius: 48% 52% 60% 40% / 50% 42% 58% 50%; overflow: hidden; box-shadow: 0 0 0 3px #140a1c, 0 12px 22px -12px rgba(0,0,0,.95); transform: rotate(calc(var(--k, 0) * 6deg - 8deg)); transition: transform .45s var(--back); }
.pt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-thumb:hover { z-index: 2; transform: rotate(0deg) translateY(-5px) scale(1.12); }

.pt-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin: 120px auto 10px; max-width: 760px; text-align: center; font-size: 14px; line-height: 1.7; color: var(--muted); }
.pt-note > svg { width: 20px; height: 20px; color: var(--magenta-soft); }

/* ---------- fiche d'un partenaire ---------- */
.pt-hidden-note { display: inline-block; margin: 18px 0 0; padding: 7px 14px; border-radius: var(--r); background: rgba(245,194,107,.14); color: #ffdca0; font-size: 12.5px; }
.pt-hero { --ring: 228,70,158; display: flex; align-items: center; gap: 72px; padding: 56px 0 50px; }
.pt-avatar.big { width: 320px; height: 320px; margin-left: 24px; }
.pt-avatar.big .pt-ring { inset: -28px; }
.pt-avatar.big .pt-blob { inset: -34px; }
.pt-avatar.big:hover { transform: rotate(-4deg) scale(1.02); }
.pt-hero-body { flex: 1 1 auto; min-width: 0; max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pt-hero-name { font-size: 50px; line-height: 1.05; }
.pt-hero-role { margin: -4px 0 4px; font-size: 16px; font-weight: 600; color: var(--magenta-soft); }
.pt-hero .pt-desc { font-size: 15.5px; }
.pt-cta { margin-top: 8px; }
.pt-none { margin: 20px 0 40px; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }

/* ---------- bande compacte (accueil, fin de fiche) ---------- */
.pt-band-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 46px; padding: 10px 0 20px; }
.pt-band-item { --ring: 228,70,158; width: 158px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; transition: transform .45s var(--back); }
.pt-band-item:nth-child(even) { margin-top: 26px; }
.pt-band-item:hover { transform: rotate(-2.5deg); }
.pt-band-av { position: relative; width: 116px; height: 116px; margin-bottom: 12px; }
.pt-band-av .pt-blob { inset: -12px; }
.pt-band-av .pt-img { box-shadow: 0 0 0 4px rgba(var(--ring), .6), 0 22px 40px -20px rgba(0,0,0,.95); }
.pt-band-av .pt-img i { font-size: 44px; }
.pt-band-item:hover .pt-blob { border-radius: 58% 42% 45% 55% / 45% 58% 42% 55%; transform: rotate(10deg) scale(1.06); }
.pt-band-item b { font-family: var(--font-head); font-size: 16px; font-weight: 700; }
.pt-band-item small { font-size: 12px; line-height: 1.45; color: var(--muted); }

/* lien du pied de page */
.fcol a.f-partners { color: var(--lavender); }

@media (max-width: 980px) {
  .pt-entry { gap: 40px; }
  .pt-entry.is-left, .pt-entry.is-right { margin-left: 0; margin-right: 0; width: 100%; }
  .pt-avatar { width: 190px; height: 190px; }
  .pt-hero { gap: 48px; }
  .pt-avatar.big { width: 250px; height: 250px; }
  .pt-hero-name { font-size: 40px; }
}
@media (max-width: 760px) {
  .pt-group + .pt-group { margin-top: 80px; }
  .pt-group-title { font-size: 25px; margin-bottom: 40px; }
  .pt-list { gap: 70px; }
  .pt-entry, .pt-entry.is-right { flex-direction: column; align-items: center; text-align: center; gap: 30px; }
  .pt-entry .pt-body, .pt-entry.is-right .pt-body { align-items: center; }
  .pt-entry .pt-links, .pt-entry .pt-pieces, .pt-entry.is-right .pt-links, .pt-entry.is-right .pt-pieces { justify-content: center; }
  .pt-entry.is-right .pt-avatar { margin-top: 0; }
  .pt-avatar { width: 176px; height: 176px; }
  .pt-name { font-size: 29px; }
  .pt-desc { font-size: 14.5px; }
  .pt-note { margin-top: 90px; }
  .pt-hero { flex-direction: column; text-align: center; gap: 44px; padding-top: 44px; }
  .pt-avatar.big { width: 210px; height: 210px; margin-left: 0; }
  .pt-hero-body { align-items: center; }
  .pt-hero-body .pt-links { justify-content: center; }
  .pt-hero-name { font-size: 34px; }
  .pt-cta { align-self: center; white-space: normal; text-align: center; }
  .pt-band-row { gap: 28px 18px; }
  .pt-band-item { width: calc(50% - 10px); max-width: 170px; }
  .pt-band-av { width: 96px; height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-avatar, .pt-blob, .pt-img img, .pt-thumb, .pt-band-item { transition: none; }
}
