/* ==========================================================================
   COURS — diapositives et transitions (partagé : éditeur de l'équipe + espace apprenant)
   Les tailles de texte suivent la taille de la diapositive (unités de conteneur « cqi »),
   ce qui rend la même diapo lisible sur téléphone, tablette et grand écran.
   ========================================================================== */
.sl {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: inherit;
  container-type: size; display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', system-ui, sans-serif; line-height: 1.35;
}
.sl__inner { width: 100%; max-height: 100%; overflow: auto; padding: 7cqmin 8cqi; text-align: left; }
.sl--titre .sl__inner, .sl--chiffre .sl__inner { text-align: center; }
.sl__emoji { font-size: clamp(36px, 16cqmin, 140px); line-height: 1; margin-bottom: 3cqmin; animation: sl-pop .7s .15s cubic-bezier(.34, 1.56, .64, 1) both; }
.sl__titre { font-size: clamp(20px, 6.2cqi, 54px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 3cqmin; }
.sl__titre--xl { font-size: clamp(26px, 8.5cqi, 76px); }
.sl__sous { font-size: clamp(15px, 3.4cqi, 28px); opacity: .9; font-weight: 700; }
.sl__texte { font-size: clamp(15px, 3.2cqi, 26px); font-weight: 600; }
.sl__texte p, .sl__sous p, .sl__legende p { margin: 0 0 .6em; }
.sl__texte ul, .sl__texte ol { margin: .2em 0 .6em 1.2em; padding: 0; }
.sl__texte li { margin: .3em 0; }
.sl mark { background: #ffe066; color: #3b2f14; padding: 0 .2em; border-radius: .25em; }
.sl__cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5cqi; align-items: center; }
.sl__cols--seul { grid-template-columns: 1fr; }
.sl__img { width: 100%; max-height: 70cqh; object-fit: contain; border-radius: 3cqmin; }
@container (max-aspect-ratio: 1/1) { .sl__cols { grid-template-columns: 1fr; } .sl__img { max-height: 38cqh; } }
/* Téléphone en portrait : texte plus grand */
@container (max-aspect-ratio: 4/5) {
  .sl__texte, .sl__sous { font-size: clamp(17px, 5.4cqi, 26px); }
  .sl__titre { font-size: clamp(24px, 8.4cqi, 42px); }
  .sl__titre--xl { font-size: clamp(30px, 11cqi, 56px); }
  .sl__inner { padding: 8cqi 7cqi; }
}
.sl__chiffre { font-size: clamp(54px, 22cqmin, 200px); font-weight: 900; line-height: 1; margin-bottom: 3cqmin; animation: sl-pop .7s .1s cubic-bezier(.34, 1.56, .64, 1) both; }
.sl--chiffre .sl__texte { max-width: 70cqi; margin: 0 auto; }
.sl__texte--liste li { list-style: none; position: relative; padding: .45em .7em .45em 2.1em; margin: .45em 0; border-radius: .7em; background: rgba(127, 127, 127, .13); animation: sl-li .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.sl__texte--liste ul, .sl__texte--liste ol { margin-left: 0; }
.sl__texte--liste li::before { content: '✓'; position: absolute; left: .7em; font-weight: 900; }
.sl__texte--liste li:nth-child(1) { animation-delay: .2s; } .sl__texte--liste li:nth-child(2) { animation-delay: .35s; }
.sl__texte--liste li:nth-child(3) { animation-delay: .5s; } .sl__texte--liste li:nth-child(4) { animation-delay: .65s; }
.sl__texte--liste li:nth-child(5) { animation-delay: .8s; } .sl__texte--liste li:nth-child(n+6) { animation-delay: .95s; }
.sl--image { align-items: flex-end; }
.sl__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sl__bg--vide { display: grid; place-items: center; font-size: 20cqmin; background: rgba(127, 127, 127, .15); }
.sl__legende { position: relative; width: 100%; padding: 6cqmin 7cqi; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; font-size: clamp(14px, 3cqi, 24px); font-weight: 700; }
@keyframes sl-pop { from { opacity: 0; transform: scale(.3) rotate(-10deg); } }
@keyframes sl-li { from { opacity: 0; transform: translateX(-30px); } }

/* ---- Transitions entre diapositives ---- */
.tr-glisse   { animation: tr-glisse .45s cubic-bezier(.22, 1, .36, 1) both; }
.tr-glisse.tr-back { animation-name: tr-glisse-back; }
.tr-fondu    { animation: tr-fondu .5s ease both; }
.tr-zoom     { animation: tr-zoom .5s cubic-bezier(.22, 1, .36, 1) both; }
.tr-retourne { animation: tr-retourne .6s cubic-bezier(.22, 1, .36, 1) both; transform-origin: center; backface-visibility: hidden; }
.tr-monte    { animation: tr-monte .5s cubic-bezier(.22, 1, .36, 1) both; }
.tr-rebond   { animation: tr-rebond .7s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes tr-glisse      { from { transform: translateX(60%); opacity: 0; } }
@keyframes tr-glisse-back { from { transform: translateX(-60%); opacity: 0; } }
@keyframes tr-fondu       { from { opacity: 0; } }
@keyframes tr-zoom        { from { transform: scale(.75); opacity: 0; } }
@keyframes tr-retourne    { from { transform: perspective(1200px) rotateY(-90deg); opacity: .2; } }
@keyframes tr-monte       { from { transform: translateY(40%); opacity: 0; } }
@keyframes tr-rebond      { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.04); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { [class*="tr-"], .sl__emoji, .sl__chiffre, .sl__texte--liste li { animation: none !important; } }
