/* ===========================================================
   Ressources — illustrations animées du haut de page :
   2 guides PDF flottants, pastilles chiffres / séquence / courbe /
   réponse / téléchargement. Préfixe .rsh.
   =========================================================== */

.hero2--res { min-height: min(100svh, 920px); }
.rsh { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* ---------- Guides PDF ---------- */
.rsh__doc { position: absolute; width: clamp(170px, 15vw, 230px); aspect-ratio: 210 / 280; will-change: transform; }
.rsh__doc--cold { left: 5%; top: 24%; rotate: -9deg; }
.rsh__doc--vente { right: 5%; top: 30%; rotate: 8deg; }
.rsh__doc > .rsh__page { animation: rsh-bob 7s ease-in-out infinite; }
.rsh__doc--vente > .rsh__page { animation-delay: -3s; }
.rsh__page {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden; padding: 14px 14px 12px;
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(170deg, #ffffff, #fbeff4);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .2), 0 0 60px rgba(238, 28, 122, .18);
}
.rsh__page--back { inset: 10px -12px -10px 12px; background: linear-gradient(170deg, #f3dbe5, #e9c3d3); opacity: .7; animation: none !important; }
.rsh__head { display: flex; justify-content: space-between; align-items: center; padding: 7px 9px; margin: -14px -14px 0; background: var(--rose); color: #fff; }
.rsh__head span { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; }
.rsh__head b { font-size: 9px; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .22); }
.rsh__h { margin: 0; font-size: clamp(13px, 1.15vw, 16px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: #14101a; }
.rsh__lines { display: grid; gap: 6px; }
.rsh__lines i { display: block; height: 5px; border-radius: 3px; background: #ead7df; }
.rsh__bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; padding: 8px 4px 0; border-bottom: 1px solid #ead7df; }
.rsh__bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #ff5e9c, var(--rose)); transform-origin: bottom; animation: rsh-grow 3.6s var(--ease-out) infinite; }
.rsh__bars i:nth-child(2) { animation-delay: .12s; } .rsh__bars i:nth-child(3) { animation-delay: .24s; }
.rsh__bars i:nth-child(4) { animation-delay: .36s; } .rsh__bars i:nth-child(5) { animation-delay: .48s; } .rsh__bars i:nth-child(6) { animation-delay: .6s; }
@keyframes rsh-grow { 0% { transform: scaleY(.08); } 35%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.08); } }
.rsh__check { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; align-content: start; }
.rsh__check li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; color: #3a2f3f; }
.rsh__check li::before {
  content: '✓'; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 9px; color: transparent;
  border: 1.5px solid #e2c6d3; animation: rsh-tick 6s infinite;
}
.rsh__check li:nth-child(2)::before { animation-delay: .6s; } .rsh__check li:nth-child(3)::before { animation-delay: 1.2s; } .rsh__check li:nth-child(4)::before { animation-delay: 1.8s; }
@keyframes rsh-tick { 0%, 8% { background: transparent; border-color: #e2c6d3; color: transparent; } 14%, 80% { background: var(--rose); border-color: var(--rose); color: #fff; } 90%, 100% { background: transparent; border-color: #e2c6d3; color: transparent; } }
.rsh__foot { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .08em; color: #a8919c; }

/* ---------- Pastilles ---------- */
.rsh__chip {
  position: absolute; padding: 11px 14px; border-radius: 14px; color: var(--text);
  background: linear-gradient(160deg, rgba(36, 28, 42, .85), rgba(20, 18, 24, .92));
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .5);
  animation: rsh-bob 6s ease-in-out infinite; will-change: transform;
}
.rsh__chip small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rsh__chip b { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: #ff5e9c; }
.rsh__chip em { font-style: normal; font-size: 18px; font-weight: 800; color: #ff5e9c; }
.rsh__chip--rdv { left: 17%; top: 15%; animation-delay: -1s; }
.rsh__chip--seq { left: 3.5%; bottom: 12%; animation-delay: -2.4s; }
.rsh__chip--curve { right: 17%; top: 13%; animation-delay: -3.2s; width: 150px; }
.rsh__chip--reply { right: 3.5%; bottom: 25%; animation-delay: -.6s; display: flex; align-items: center; gap: 10px; }
.rsh__chip--dl { right: 15%; bottom: 8%; animation-delay: -4s; width: 220px; }

.rsh__seq { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.rsh__seq span { position: relative; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid rgba(255, 255, 255, .12); animation: rsh-seq 4.8s infinite; }
.rsh__seq span:nth-child(2) { animation-delay: 1.2s; } .rsh__seq span:nth-child(3) { animation-delay: 2.4s; } .rsh__seq span:nth-child(4) { animation-delay: 3.6s; }
@keyframes rsh-seq { 0%, 22% { background: var(--rose); color: #fff; border-color: var(--rose); box-shadow: 0 0 18px rgba(238, 28, 122, .6); } 30%, 100% { background: transparent; color: var(--muted); border-color: rgba(255, 255, 255, .12); box-shadow: none; } }

.rsh__chip--curve svg { display: block; width: 100%; height: 34px; margin-top: 4px; overflow: visible; }
.rsh__chip--curve path { fill: none; stroke: #ff5e9c; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; animation: rsh-draw 4s var(--ease-out) infinite; filter: drop-shadow(0 0 6px rgba(238, 28, 122, .6)); }
@keyframes rsh-draw { 0% { stroke-dashoffset: 160; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -160; } }

.rsh__chip--reply b { display: block; font-size: 13px; color: var(--text); letter-spacing: 0; font-weight: 700; }
.rsh__chip--reply small { text-transform: none; letter-spacing: 0; font-family: inherit; font-size: 12px; margin-top: 2px; }
.rsh__dot { width: 10px; height: 10px; border-radius: 50%; background: #2ee59d; flex-shrink: 0; animation: rsh-ping 1.8s infinite; }
@keyframes rsh-ping { 0% { box-shadow: 0 0 0 0 rgba(46, 229, 157, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(46, 229, 157, 0); } }

.rsh__dlrow { display: flex; align-items: center; gap: 10px; }
.rsh__dlrow > div { flex: 1; min-width: 0; }
.rsh__dlrow b { display: block; font-size: 12px; color: var(--text); font-weight: 600; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rsh__pdf { flex-shrink: 0; padding: 8px 6px; border-radius: 8px; background: var(--rose); color: #fff; font-size: 10px; font-weight: 800; }
.rsh__bar { margin-top: 7px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.rsh__bar i { display: block; height: 100%; width: 100%; border-radius: 3px; background: linear-gradient(90deg, #ff5e9c, var(--rose)); transform-origin: left; animation: rsh-dl 4.2s var(--ease-inout) infinite; }
@keyframes rsh-dl { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
.rsh__done { margin-top: 7px; color: #2ee59d !important; animation: rsh-done 4.2s infinite; }
@keyframes rsh-done { 0%, 58% { opacity: 0; } 66%, 100% { opacity: 1; } }

@keyframes rsh-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) { .rsh__chip--rdv, .rsh__chip--curve { display: none; } }
@media (max-width: 1000px) {
  .hero2--res { min-height: auto; padding-bottom: 190px; }
  .rsh__chip { display: none; }
  .rsh__doc { width: 112px; top: auto; bottom: 18px; opacity: .9; }
  .rsh__doc--cold { left: -18px; }
  .rsh__doc--vente { right: -18px; }
  .rsh__h { font-size: 10px; } .rsh__check li { font-size: 8px; } .rsh__foot { display: none; }
}
@media (max-width: 560px) { .hero2--res { padding-bottom: 160px; } .rsh__doc { width: 96px; bottom: 14px; } .rsh__doc--cold { left: 14%; } .rsh__doc--vente { right: 14%; } }
@media (prefers-reduced-motion: reduce) {
  .rsh *, .rsh__chip, .rsh__doc > .rsh__page { animation: none !important; }
  .rsh__chip--curve path { stroke-dashoffset: 0; }
  .rsh__done { opacity: 1; }
}

/* ===========================================================
   Couvertures des guides : titre en grand, centré, animé
   =========================================================== */
.res2__cover { aspect-ratio: 16 / 8.5; display: grid; place-items: center; padding: 26px; text-align: center; }
.res2__big {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
  font-size: clamp(4rem, 8.6vw, 8rem); line-height: .92;
  opacity: 0; transform: scale(.82) translateY(14px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}
.is-in .res2__big { opacity: 1; transform: none; }
.res2__num {
  background: linear-gradient(105deg, #fff 0%, #fff 38%, #ff9cc4 48%, #ff5e9c 52%, #fff 62%, #fff 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: res2-shine 5s ease-in-out infinite; padding: 0 .06em;
}
@keyframes res2-shine { 0%, 15% { background-position: 100% 0; } 55%, 100% { background-position: -60% 0; } }
.res2__big small { margin-top: 14px; font-size: clamp(11px, 1vw, 13px); letter-spacing: .24em; }
/* 3 guides : couvertures plus hautes, chiffre un peu plus petit */
.res2--3 .res2__cover { aspect-ratio: 16 / 10; }
.res2--3 .res2__big { font-size: clamp(3.6rem, 6vw, 6rem); }
.res2--3 .res2__big small { font-size: 11px; letter-spacing: .16em; max-width: 22ch; line-height: 1.5; }
.res2--3 .res2__cover .dc-page { width: 52px; height: 66px; right: 14px; bottom: 14px; }
@media (min-width: 901px) and (max-width: 1240px) { .res2--3 .res2__cover .dc-page { display: none; } }
.res2__glow {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 28, 122, .45), transparent 65%); filter: blur(10px);
  animation: res2-breathe 4.5s ease-in-out infinite;
}
@keyframes res2-breathe { 0%, 100% { scale: .85; opacity: .6; } 50% { scale: 1.12; opacity: 1; } }
.res2__sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.res2__sparks i { position: absolute; bottom: -10px; width: 5px; height: 5px; border-radius: 50%; background: #ff5e9c; box-shadow: 0 0 10px #ee1c7a; opacity: 0; animation: res2-rise 6s linear infinite; }
.res2__sparks i:nth-child(1) { left: 12%; animation-delay: 0s; } .res2__sparks i:nth-child(2) { left: 27%; animation-delay: 1.8s; width: 3px; height: 3px; }
.res2__sparks i:nth-child(3) { left: 44%; animation-delay: 3.4s; } .res2__sparks i:nth-child(4) { left: 61%; animation-delay: .9s; width: 4px; height: 4px; }
.res2__sparks i:nth-child(5) { left: 76%; animation-delay: 4.3s; width: 3px; height: 3px; } .res2__sparks i:nth-child(6) { left: 90%; animation-delay: 2.6s; }
@keyframes res2-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .6; } 100% { transform: translateY(-260px); opacity: 0; } }
.res2__cover .dc-page { width: 70px; height: 90px; right: 20px; bottom: 18px; opacity: .9; }
@media (max-width: 560px) { .res2__cover .dc-page { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .res2__big { opacity: 1; transform: none; transition: none; }
  .res2__num, .res2__glow, .res2__sparks i { animation: none !important; }
  .res2__num { color: #fff; background: none; }
}
