/* Sections « Les cours » et « Après le direct » */
.jc-section { position: relative; background: var(--prune-950); color: var(--creme); }
.jc-section .jc-int { max-width: 1160px; margin: 0 auto; padding: 84px 22px; }
.jc-section h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 12px 0 0; }
.jc-section h2 em { color: var(--or); font-weight: 600; }
.jc-tete { text-align: center; margin-bottom: 48px; }
.jc-doux { color: #d0c4d2; font-size: 16px; margin: 0; }

/* La carte : surface un cran plus claire, filet fin, coins de 20 px */
.jc-grille { display: grid; gap: 20px; }
.jc-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jc-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jc-carte { --x: 50%; --y: 0%; position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: #2c1d31; border: 1px solid rgba(229,231,235,.13); overflow: hidden; transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .45s, box-shadow .45s; }
.jc-carte::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(320px circle at var(--x) var(--y), rgba(254,205,53,.16), transparent 62%); }
.jc-carte:hover, .jc-carte:focus-within { transform: translateY(-8px); border-color: rgba(254,205,53,.6); box-shadow: 0 0 60px rgba(254,205,53,.13); }
.jc-carte:hover::before, .jc-carte:focus-within::before { opacity: 1; }
.jc-carte h3 { font-size: 23px; margin: 0; }
.jc-badge { align-self: flex-start; padding: 4px 12px; border-radius: 8px; border: 1px solid rgba(254,205,53,.4); color: var(--or); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.jc-fl { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--creme); font-weight: 800; font-size: 15px; text-decoration: none; }
.jc-fl i { font-style: normal; color: var(--or); transition: transform .3s; }
.jc-carte:hover .jc-fl i { transform: translateX(7px); }

/* Fenêtre animée en haut de la carte */
.jc-vue { position: relative; height: 150px; border-radius: 12px; background: #190e1d; border: 1px solid rgba(229,231,235,.08); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.jc-mot { font-family: var(--arabe); font-size: 46px; line-height: 1.8; color: var(--or); animation: flotte 5s ease-in-out infinite; }
.jc-vue b { position: absolute; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--or); opacity: .35; animation: derive 7s ease-in-out infinite; }
.jc-vue b:nth-of-type(1) { left: 14%; top: 22%; }
.jc-vue b:nth-of-type(2) { left: 82%; top: 18%; animation-delay: -2s; border-bottom-color: #b4a0b9; }
.jc-vue b:nth-of-type(3) { left: 72%; top: 72%; animation-delay: -4s; transform: scale(.7); }
.jc-vue b:nth-of-type(4) { left: 24%; top: 74%; animation-delay: -5.5s; border-bottom-color: #fbf7f2; }
@keyframes flotte { 50% { transform: translateY(-9px); } }
@keyframes derive { 50% { translate: 8px -14px; rotate: 160deg; } }

.jc-lecture { width: 58px; height: 58px; border-radius: 50%; background: var(--or); display: flex; align-items: center; justify-content: center; animation: onde 2.4s ease-out infinite; }
.jc-lecture::after { content: ""; margin-left: 5px; border-left: 18px solid #2b1a2f; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
@keyframes onde { 0% { box-shadow: 0 0 0 0 rgba(254,205,53,.55); } 100% { box-shadow: 0 0 0 28px rgba(254,205,53,0); } }
.jc-piste { position: absolute; left: 18px; right: 18px; bottom: 16px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.14); }
.jc-piste span { display: block; height: 100%; border-radius: 3px; background: var(--or); animation: avance 6s linear infinite; }
@keyframes avance { from { width: 4%; } to { width: 100%; } }

.jc-feuille { width: 92px; height: 112px; border-radius: 10px; background: var(--creme); padding: 18px 14px; display: flex; flex-direction: column; gap: 11px; animation: flotte 5s ease-in-out infinite; }
.jc-feuille span { height: 6px; border-radius: 3px; background: #c9b8cc; transform-origin: right; animation: ecrit 3.6s ease-in-out infinite; }
.jc-feuille span:nth-child(2) { animation-delay: .3s; width: 80%; align-self: flex-end; }
.jc-feuille span:nth-child(3) { animation-delay: .6s; }
.jc-feuille span:nth-child(4) { animation-delay: .9s; width: 55%; align-self: flex-end; background: var(--or); }
@keyframes ecrit { 0% { transform: scaleX(0); } 35%, 100% { transform: scaleX(1); } }

.jc-barres { display: flex; align-items: flex-end; gap: 10px; height: 96px; }
.jc-barres span { width: 17px; border-radius: 6px; background: var(--or); transform-origin: bottom; animation: monte 4s cubic-bezier(.2,.7,.2,1) infinite; }
.jc-barres span:nth-child(1) { height: 36%; }
.jc-barres span:nth-child(2) { height: 52%; animation-delay: .15s; }
.jc-barres span:nth-child(3) { height: 46%; animation-delay: .3s; background: #b4a0b9; }
.jc-barres span:nth-child(4) { height: 76%; animation-delay: .45s; }
.jc-barres span:nth-child(5) { height: 100%; animation-delay: .6s; }
@keyframes monte { 0% { transform: scaleY(.08); } 30%, 90% { transform: scaleY(1); } 100% { transform: scaleY(.08); } }

.jc-bulles { width: 78%; display: flex; flex-direction: column; gap: 10px; }
.jc-bulles span { padding: 9px 13px; border-radius: 14px; font-size: 13px; font-weight: 800; animation: bulle 5s ease-in-out infinite; }
.jc-bulles span:first-child { align-self: flex-start; background: var(--creme); color: #2b1a2f; border-bottom-left-radius: 4px; }
.jc-bulles span:last-child { align-self: flex-end; background: var(--or); color: #2b1a2f; border-bottom-right-radius: 4px; animation-delay: 1.1s; }
@keyframes bulle { 0% { opacity: 0; transform: translateY(10px) scale(.92); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Apparition au défilement */
.jc-js .jc-ap { opacity: 0; translate: 0 34px; transition: opacity .8s ease, translate .8s cubic-bezier(.2,.7,.2,1), transform .45s cubic-bezier(.2,.7,.2,1), border-color .45s, box-shadow .45s; }
.jc-js .jc-ap.jc-vu { opacity: 1; translate: 0 0; }
.jc-js .jc-ap:nth-child(2) { transition-delay: .12s, .12s, 0s, 0s, 0s; }
.jc-js .jc-ap:nth-child(3) { transition-delay: .24s, .24s, 0s, 0s, 0s; }
.jc-js .jc-ap:nth-child(4) { transition-delay: .36s, .36s, 0s, 0s, 0s; }

@media (max-width: 960px) { .jc-g3 { grid-template-columns: minmax(0,1fr); max-width: 460px; margin: 0 auto; } .jc-g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .jc-g4 { grid-template-columns: minmax(0,1fr); } .jc-section .jc-int { padding-top: 64px; padding-bottom: 64px; } }
@media (prefers-reduced-motion: reduce) {
  .jc-section *, .jc-section *::before { animation: none !important; transition: none !important; }
  .jc-js .jc-ap { opacity: 1; translate: 0 0; }
}

/* À propos */
.jc-intro { max-width: 620px; margin: 20px auto 0; font-size: 19px; line-height: 1.8; color: #e4dae6; }
.jc-citation { max-width: 880px; margin: 64px auto 0; text-align: center; font-family: var(--titres); font-style: italic; font-size: clamp(23px, 3vw, 34px); line-height: 1.6; }

/* Questions fréquentes */
.jc-faq { max-width: 820px; margin: 0 auto; gap: 14px; }
.jc-faq .jc-carte { padding: 6px 26px; gap: 0; }
.jc-faq .jc-carte:hover { transform: none; }
.jc-faq .jc-ap:nth-child(n+5) { transition-delay: .12s, .12s, 0s, 0s, 0s; }
.jc-faq summary { cursor: pointer; list-style: none; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 800; font-size: 17px; }
.jc-faq summary::-webkit-details-marker { display: none; }
.jc-faq summary::after { content: "+"; color: var(--or); font-size: 26px; transition: rotate .3s; }
.jc-faq details[open] summary::after { rotate: 45deg; }
.jc-faq details[open] p { margin: 0 0 18px; animation: jc-ouvre .45s ease; }
@keyframes jc-ouvre { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .jc-faq details[open] p { animation: none; } }
