:root {
  --res-blue: #1f83c6;
  --res-blue-dark: #155f92;
  --res-yellow: #f8d31b;
  --res-yellow-dark: #e3be00;
  --res-text: #1f2937;
  --res-muted: #667085;
  --res-bg: #f5f8fc;
  --res-card: #ffffff;
  --res-border: rgba(31, 131, 198, 0.12);
  --res-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.resources-page {
  color: var(--res-text);
  background: #ffffff;
}

.section-space {
  padding: 5rem 0;
}

.resources-hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4.5rem;
  background:
    radial-gradient(circle at top right, rgba(248, 211, 27, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(20, 95, 147, 0.98), rgba(31, 131, 198, 0.94));
  color: #fff;
}

.resources-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 70px;
  background: linear-gradient(135deg, transparent 0 49%, #f7fbff 50% 100%);
  pointer-events: none;
}

.resources-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1rem;
}

.resources-hero__title {
  max-width: 760px;
  font-size: clamp(2.25rem, 4vw, 4.3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.resources-hero__subtitle {
  max-width: 690px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.resources-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: .55rem .9rem;
  font-size: .92rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.resources-hero__panel {
  border-radius: 28px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--res-shadow);
  backdrop-filter: blur(10px);
}

.resources-hero__panel-top {
  border-radius: 22px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--res-text);
}

.panel-pill {
  display: inline-flex;
  align-items: center;
  padding: .38rem .75rem;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.10);
  color: var(--res-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  margin-bottom: .85rem;
}

.resources-hero__panel-top strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: .65rem;
}

.resources-hero__panel-top p {
  margin: 0;
  color: var(--res-muted);
  line-height: 1.75;
}

.resources-hero__stack {
  display: grid;
  gap: .85rem;
  margin-top: 1rem;
}

.stack-card {
  border-radius: 20px;
  padding: 1rem 1.05rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.stack-card span {
  display: inline-block;
  font-size: .8rem;
  font-weight: 900;
  opacity: .85;
  margin-bottom: .25rem;
}

.stack-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: .2rem;
}

.stack-card small {
  display: block;
  line-height: 1.55;
}

.stack-card--blue {
  background: linear-gradient(135deg, rgba(31, 131, 198, 0.14), rgba(31, 131, 198, 0.08));
  color: var(--res-text);
}

.stack-card--yellow {
  background: linear-gradient(135deg, rgba(248, 211, 27, 0.30), rgba(248, 211, 27, 0.14));
  color: #111827;
}

.stack-card--white {
  background: #fff;
  color: var(--res-text);
}

.section-heading {
  max-width: 820px;
}

.section-heading__eyebrow {
  display: inline-block;
  color: var(--res-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  margin-bottom: .75rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #0f172a;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--res-muted);
  line-height: 1.9;
  font-size: 1.02rem;
}

.quicklinks-wrap {
  display: flex;
  gap: .85rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scrollbar-width: thin;
}

.quicklink-item {
  min-width: 220px;
  text-decoration: none;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--res-border);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
  padding: 1rem 1.1rem;
  transition: box-shadow .2s ease, border-color .2s ease;
  color: var(--res-text);
  flex: 0 0 auto;
}

/* Pas de déplacement au survol : le retour visuel passe par l'ombre
   et la bordure, le bouton de filtre reste immobile. */
.quicklink-item:hover {
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.09);
  border-color: rgba(31, 131, 198, 0.26);
}

.quicklink-item span {
  display: block;
  color: var(--res-blue);
  font-weight: 800;
  margin-bottom: .25rem;
  font-size: .88rem;
}

.quicklink-item small {
  display: block;
  color: var(--res-text);
  line-height: 1.45;
  font-weight: 600;
}

#blog-filters .quicklink-item.active {
  border-color: var(--res-blue);
  box-shadow: 0 10px 30px rgba(31, 131, 198, 0.18);
  background: rgba(31, 131, 198, 0.06);
}

#blog-filters .quicklink-item:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 2px;
}

.resource-block {
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 28px;
  border: 1px solid var(--res-border);
  box-shadow: var(--res-shadow);
  overflow: hidden;
  background: #ffffff;
}

.resource-block--reverse {
  background: #ffffff;
}

.resource-block__content {
  background: #fff;
  border-radius: 22px;
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.resource-block__badge {
  display: inline-flex;
  align-items: center;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.10);
  color: var(--res-blue);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: .85rem;
}

.resource-block__content h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: .85rem;
  color: #0f172a;
}

.resource-block__description {
  color: var(--res-muted);
  line-height: 1.95;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.resource-block__note {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border-radius: 16px;
  padding: .8rem 1rem;
  background: rgba(248, 211, 27, 0.14);
  color: #111827;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.resource-block__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.resource-block__panel {
  border-radius: 24px;
  padding: 1.35rem;
  background: #ffffff;
  border: 1px solid rgba(31, 131, 198, 0.10);
}

.resource-block__panel-header {
  margin-bottom: 1rem;
}

.resource-block__panel-header span {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--res-blue);
  margin-bottom: .25rem;
}

.resource-block__panel-header strong {
  display: block;
  font-size: 1.05rem;
  color: #0f172a;
}

.resource-examples {
  display: grid;
  gap: .8rem;
}

.example-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: .9rem 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.example-item__dot {
  width: 10px;
  height: 10px;
  margin-top: .42rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--res-blue), var(--res-blue-dark));
  box-shadow: 0 0 0 5px rgba(31, 131, 198, 0.12);
  flex: 0 0 auto;
}

.example-item p {
  margin: 0;
  color: var(--res-text);
  line-height: 1.65;
  font-weight: 600;
}

.resource-block__preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1rem;
}

.preview-card {
  border-radius: 18px;
  padding: .9rem .95rem;
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.preview-card strong {
  display: block;
  font-size: .95rem;
  line-height: 1.3;
  margin-bottom: .25rem;
}

.preview-card span {
  display: block;
  font-size: .82rem;
  line-height: 1.4;
  color: rgba(15, 23, 42, 0.72);
}

.preview-card--blue {
  background: rgba(31, 131, 198, 0.08);
}

.preview-card--yellow {
  background: rgba(248, 211, 27, 0.22);
}

.preview-card--dark {
  background: #0f172a;
}

.preview-card--dark strong,
.preview-card--dark span {
  color: #fff;
}

.resources-final__card {
  border-radius: 28px;
  border: 1px solid var(--res-border);
  box-shadow: var(--res-shadow);
  background: #ffffff;
  padding: 2.4rem;
  text-align: center;
}

.resources-final__eyebrow {
  display: inline-block;
  color: var(--res-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  margin-bottom: .85rem;
}

.resources-final__card h3 {
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
}

.resources-final__card p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--res-muted);
  line-height: 1.95;
  font-size: 1.02rem;
}

.btn-yellow {
  background: var(--res-yellow);
  border-color: var(--res-yellow);
  color: #111827;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(248, 211, 27, 0.22);
}

.btn-yellow:hover,
.btn-yellow:focus {
  background: var(--res-yellow-dark);
  border-color: var(--res-yellow-dark);
  color: #111827;
}

.btn-soft {
  background: #fff;
  border: 1px solid rgba(31, 131, 198, 0.18);
  color: var(--res-blue-dark);
  font-weight: 700;
}

.btn-soft:hover,
.btn-soft:focus {
  background: rgba(31, 131, 198, 0.06);
  color: var(--res-blue-dark);
}

.btn-outline-light {
  border-width: 2px;
  font-weight: 700;
}

.btn-outline-primary {
  border-color: rgba(31, 131, 198, 0.28);
  color: var(--res-blue-dark);
  font-weight: 700;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(31, 131, 198, 0.06);
  color: var(--res-blue-dark);
}

@media (max-width: 991.98px) {
  .resources-hero {
    padding: 4.5rem 0 4rem;
  }

  .resources-hero__title {
    max-width: 100%;
  }

  .resources-hero__panel {
    max-width: 560px;
    margin: 0 auto;
  }

  .resource-block {
    padding: 1.25rem;
  }

  .resource-block__content {
    padding: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .section-space {
    padding: 3.25rem 0;
  }

  .resources-hero__subtitle,
  .section-heading p,
  .resources-final__card p {
    font-size: .98rem;
    line-height: 1.8;
  }

  .quicklink-item {
    min-width: 190px;
  }

  .resource-block__preview {
    grid-template-columns: 1fr;
  }

  .resource-block__content h3 {
    font-size: 1.35rem;
  }
}
/* ═══════════════════════════════════════════════════════════════ */
/* HUB RESSOURCES — grille des 8 types de ressources               */
/* Classes préfixées .rs-hub-* : aucune classe existante modifiée. */
/* ═══════════════════════════════════════════════════════════════ */

.rs-hub__intro {
  margin-bottom: 3rem;
}

.rs-hub__eyebrow {
  display: inline-block;
  color: var(--res-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  margin-bottom: .75rem;
}

/* ── Card ─────────────────────────────────────────────────────── */

.rs-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background: #0f172a;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
  transition: transform .35s ease, box-shadow .35s ease;
}

.rs-hub-card__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .55s ease;
}

/* Dégradé de lisibilité : voile global + renfort en bas, sous le texte */
.rs-hub-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.30) 0%,
      rgba(15, 23, 42, 0.55) 45%,
      rgba(10, 16, 32, 0.93) 100%
    );
  transition: opacity .35s ease;
}

.rs-hub-card__body {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.35rem 1.6rem;
  color: #fff;
}

.rs-hub-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: .9rem;
  border-radius: 14px;
  font-size: 1.25rem;
  color: #111827;
  background: var(--res-yellow);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.rs-hub-card__title {
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
}

.rs-hub-card__hook {
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.15rem;
}

.rs-hub-card__cta {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

/* Toute la card est cliquable, mais un seul élément focusable au clavier */
.rs-hub-card__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

.rs-hub-card__cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ── Micro-interactions ───────────────────────────────────────── */

.rs-hub-card:hover,
.rs-hub-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.22);
}

.rs-hub-card:hover .rs-hub-card__img,
.rs-hub-card:focus-within .rs-hub-card__img {
  transform: scale(1.08);
}

.rs-hub-card:hover .rs-hub-card__overlay,
.rs-hub-card:focus-within .rs-hub-card__overlay {
  opacity: .88;
}

@media (prefers-reduced-motion: reduce) {
  .rs-hub-card,
  .rs-hub-card__img,
  .rs-hub-card__overlay {
    transition: none;
  }

  .rs-hub-card:hover,
  .rs-hub-card:focus-within {
    transform: none;
  }

  .rs-hub-card:hover .rs-hub-card__img,
  .rs-hub-card:focus-within .rs-hub-card__img {
    transform: scale(1.01);
  }
}

/* ── Bandeau de sortie (pas de cul-de-sac) ────────────────────── */

.rs-hub-closing__card {
  border-radius: 28px;
  border: 1px solid var(--res-border);
  box-shadow: var(--res-shadow);
  background: #ffffff;
  padding: 2.4rem;
  text-align: center;
}

.rs-hub-closing__card h3 {
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
}

.rs-hub-closing__card p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--res-muted);
  line-height: 1.9;
  font-size: 1.02rem;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 1399.98px) {
  .rs-hub-card {
    min-height: 400px;
  }
}

@media (max-width: 767.98px) {
  .rs-hub__intro {
    margin-bottom: 2.25rem;
  }

  .rs-hub-card {
    min-height: 340px;
  }

  .rs-hub-card__body {
    padding: 1.25rem 1.15rem 1.35rem;
  }

  .rs-hub-card__title {
    font-size: 1.25rem;
  }

  .rs-hub-closing__card {
    padding: 1.75rem 1.25rem;
  }
}

/* ── Page d'attente d'une ressource (stub) ────────────────────── */

.rs-soon__card {
  max-width: 720px;
  border-radius: 28px;
  border: 1px solid var(--res-border);
  box-shadow: var(--res-shadow);
  background: #ffffff;
  padding: 2.75rem 2.4rem;
  text-align: center;
}

.rs-soon__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 1.1rem;
  border-radius: 20px;
  font-size: 1.7rem;
  color: #111827;
  background: var(--res-yellow);
  box-shadow: 0 12px 26px rgba(248, 211, 27, 0.32);
}

.rs-soon__badge {
  display: block;
  color: var(--res-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  margin-bottom: .75rem;
}

.rs-soon__title {
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
}

.rs-soon__text {
  max-width: 540px;
  margin: 0 auto;
  color: var(--res-muted);
  line-height: 1.9;
  font-size: 1.02rem;
}

@media (max-width: 767.98px) {
  .rs-soon__card {
    padding: 2rem 1.35rem;
  }
}

/* ═══════════════════════════════════════════════════════════════ */
/* ESPACE FORMATIONS — catalogue + fiche formation                 */
/* ═══════════════════════════════════════════════════════════════ */

/* ── Bandeau de réassurance ───────────────────────────────────── */

.fm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.6rem 1.25rem;
  border-radius: 24px;
  border: 1px solid var(--res-border);
  box-shadow: var(--res-shadow);
  background: #ffffff;
}

.fm-stats__item {
  text-align: center;
  padding: .35rem .5rem;
}

.fm-stats__item strong {
  display: block;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
}

.fm-stats__over {
  font-size: .95rem;
  font-weight: 700;
  color: var(--res-muted);
}

.fm-stats__item span {
  display: block;
  margin-top: .3rem;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--res-muted);
}

/* ── Card formation ───────────────────────────────────────────── */

.fm-card {
  position: relative;
  border: 1px solid var(--res-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.fm-card:hover,
.fm-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.fm-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #e8eef5;
}

.fm-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.fm-card:hover .fm-card__img,
.fm-card:focus-within .fm-card__img {
  transform: scale(1.06);
}

.fm-card__level {
  position: absolute;
  top: .85rem;
  left: .85rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.fm-card__category {
  display: block;
  color: var(--res-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  margin-bottom: .5rem;
}

.fm-card__title {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .45rem;
}

.fm-card__tagline {
  font-size: .93rem;
  line-height: 1.6;
  color: var(--res-muted);
  margin-bottom: .85rem;
}

/* ── Note / etoiles ───────────────────────────────────────────── */

.fm-rating {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  margin-bottom: .85rem;
}

.fm-stars {
  display: inline-flex;
  gap: .1rem;
  font-size: .82rem;
}

.fm-rating strong {
  color: #0f172a;
  font-weight: 800;
}

.fm-rating span {
  color: var(--res-muted);
}

.fm-rating--lg {
  font-size: 1rem;
  margin-bottom: 0;
}

.fm-rating--lg .fm-stars {
  font-size: .95rem;
}

/* ── Meta d une card ──────────────────────────────────────────── */

.fm-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .95rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: .84rem;
  color: var(--res-muted);
}

.fm-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.fm-card__meta i {
  color: var(--res-blue);
}

.fm-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.fm-card__price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

/* Toute la card est cliquable, un seul element focusable */
.fm-card__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.fm-card__cta:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 3px;
}

.fm-empty {
  color: var(--res-muted);
}

/* ── Fiche : fil d ariane dans le hero ────────────────────────── */

.fm-trail {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.fm-trail a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.fm-trail a:hover,
.fm-trail a:focus {
  color: #fff;
  border-bottom-color: #fff;
}

/* ── Fiche : contenu ──────────────────────────────────────────── */

.fm-detail__social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.fm-detail__dot {
  color: rgba(15, 23, 42, 0.28);
}

.fm-detail__students {
  font-size: .95rem;
  font-weight: 600;
  color: var(--res-muted);
}

.fm-detail__students i {
  color: var(--res-blue);
}

.fm-detail__intro {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--res-text);
  margin-bottom: 2.5rem;
}

.fm-detail__h2 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

/* ── Fiche : objectifs ────────────────────────────────────────── */

.fm-outcomes {
  margin-bottom: 2.75rem;
}

.fm-outcomes__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fm-outcomes__list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  line-height: 1.65;
  color: var(--res-text);
  font-weight: 600;
}

.fm-outcomes__check {
  flex: 0 0 auto;
  margin-top: .18rem;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(36, 161, 72, 0.12);
  color: #1d813a;
  font-size: .85rem;
}

/* ── Fiche : apercu gratuit ───────────────────────────────────── */

.fm-preview {
  margin-bottom: 2.75rem;
}

/* La carte ne contient que le lecteur : on la veut grande, centrée et
   remarquable — même gabarit que le player du podcast (aspect-ratio 16/9),
   mais avec une marge de chaque côté pour se détacher du texte. */
.fm-preview__card {
  position: relative;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 2px 6px rgba(15, 23, 42, 0.08),
    0 14px 32px -14px rgba(31, 131, 198, 0.4);
}

.fm-preview__card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Texte et appel à l'action, sous la carte. */
.fm-preview__intro {
  padding: 1.6rem 0 0;
  text-align: center;
}

.fm-preview__badge {
  display: inline-block;
  padding: .35rem .75rem;
  margin-bottom: .75rem;
  border-radius: 999px;
  background: rgba(36, 161, 72, 0.12);
  color: #1d813a;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.fm-preview__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .4rem;
}

.fm-preview__excerpt {
  max-width: 46ch;
  margin: 0 auto 1.25rem;
  line-height: 1.85;
  color: var(--res-text);
}

/* ── Fiche : programme ────────────────────────────────────────── */

.fm-program {
  margin-bottom: 2.75rem;
}

.fm-program__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.fm-program__count {
  font-size: .88rem;
  font-weight: 600;
  color: var(--res-muted);
}

.fm-accordion .accordion-item {
  margin-bottom: .75rem;
  border: 1px solid var(--res-border);
  border-radius: 18px !important;
  overflow: hidden;
  background: #fff;
}

.fm-accordion .accordion-button {
  font-weight: 800;
  color: #0f172a;
  background: #fff;
  box-shadow: none;
}

.fm-accordion .accordion-button:not(.collapsed) {
  background: rgba(31, 131, 198, 0.05);
  color: var(--res-blue-dark);
}

.fm-accordion .accordion-button:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: -3px;
}

/* En-tête d'un module sans leçon : même allure, mais rien à déplier. */
.fm-accordion .fm-accordion__static {
  display: flex;
  align-items: center;
  cursor: default;
  color: var(--res-muted);
}

.fm-accordion .fm-accordion__static::after {
  display: none;
}

.fm-accordion__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-right: .75rem;
  border-radius: 999px;
  background: var(--res-yellow);
  color: #111827;
  font-size: .82rem;
  font-weight: 800;
}

.fm-lessons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fm-lesson {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem .25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.fm-lesson:last-child {
  border-bottom: 0;
}

.fm-lesson__icon {
  flex: 0 0 auto;
  color: var(--res-blue);
}

.fm-lesson__label {
  flex: 1 1 auto;
  line-height: 1.5;
  color: var(--res-text);
}

.fm-lesson__free {
  flex: 0 0 auto;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(36, 161, 72, 0.12);
  color: #1d813a;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.fm-lesson__time {
  flex: 0 0 auto;
  font-size: .82rem;
  font-weight: 600;
  color: var(--res-muted);
}

.fm-program__hint {
  margin: 1rem 0 0;
  font-size: .85rem;
  color: var(--res-muted);
}

/* ── Fiche : avis ─────────────────────────────────────────────── */

.fm-reviews {
  margin-bottom: 1rem;
}

.fm-review {
  height: 100%;
  padding: 1.4rem;
  border-radius: 20px;
  border: 1px solid var(--res-border);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.fm-review__text {
  margin: .75rem 0 1rem;
  line-height: 1.8;
  color: var(--res-text);
}

.fm-review__author {
  margin: 0;
  line-height: 1.4;
}

.fm-review__author strong {
  display: block;
  color: #0f172a;
  font-weight: 800;
}

.fm-review__author span {
  font-size: .85rem;
  color: var(--res-muted);
}

/* ── Fiche : carte d inscription ──────────────────────────────── */

.fm-buy {
  position: sticky;
  top: 100px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--res-border);
  box-shadow: var(--res-shadow);
  background: #fff;
}

.fm-buy__media {
  aspect-ratio: 3 / 2;
  background: #e8eef5;
}

.fm-buy__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-buy__body {
  padding: 1.5rem;
}

.fm-buy__price {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 1.1rem;
}

.fm-buy__price span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--res-muted);
}

/* Bouton WhatsApp : aux couleurs de la marque, sans écraser le CTA principal. */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #25d366;
  background: rgba(37, 211, 102, 0.1);
  color: #128c4a;
  font-weight: 700;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.btn-whatsapp:focus-visible {
  outline: 3px solid #128c4a;
  outline-offset: 2px;
}

.fm-buy__meta {
  list-style: none;
  padding: 1.25rem 0 0;
  margin: 1.25rem 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  font-size: .9rem;
  color: var(--res-muted);
}

.fm-buy__meta li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem 0;
}

.fm-buy__meta i {
  color: var(--res-blue);
  width: 18px;
  text-align: center;
}

.fm-buy__meta strong {
  color: #0f172a;
  font-weight: 700;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 991.98px) {
  .fm-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .fm-buy {
    position: static;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  .fm-preview__card {
    border-radius: 18px;
  }

  .fm-preview__intro {
    padding-top: 1.25rem;
  }

  .fm-outcomes__list {
    grid-template-columns: 1fr;
  }

  .fm-detail__intro {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .fm-stats {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .fm-card__footer {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
  }

  .fm-card__footer .btn {
    width: 100%;
  }

  .fm-lesson {
    flex-wrap: wrap;
  }

  .fm-lesson__label {
    flex: 1 1 60%;
  }
}

/* Filtres du catalogue : variante bouton de .quicklink-item.
   Scope #fm-filters pour ne pas toucher aux filtres du blog. */
#fm-filters .quicklink-item {
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

#fm-filters .quicklink-item.active {
  border-color: var(--res-blue);
  box-shadow: 0 10px 30px rgba(31, 131, 198, 0.18);
  background: rgba(31, 131, 198, 0.06);
}

#fm-filters .quicklink-item:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════ */
/* ESPACE PODCAST — catalogue, player et fil de commentaires        */
/* ═══════════════════════════════════════════════════════════════ */

/* ── En-tete de section ───────────────────────────────────────── */

.pc-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.pc-section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.pc-live {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ea4336;
  box-shadow: 0 0 0 5px rgba(234, 67, 54, 0.16);
}

.pc-section-meta {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--res-muted);
}

/* ── A la une ─────────────────────────────────────────────────── */

.pc-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--res-border);
  box-shadow: var(--res-shadow);
  background: #fff;
}

.pc-featured__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.pc-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.pc-featured__media:hover img,
.pc-featured__media:focus-visible img {
  transform: scale(1.05);
}

.pc-featured__media:focus-visible {
  outline: 3px solid var(--res-yellow);
  outline-offset: -3px;
}

.pc-featured__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 2rem;
  color: #111827;
  background: var(--res-yellow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform .25s ease;
}

.pc-featured__media:hover .pc-featured__play {
  transform: translate(-50%, -50%) scale(1.08);
}

.pc-featured__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pc-featured__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  align-self: flex-start;
  padding: .38rem .8rem;
  margin-bottom: .9rem;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.10);
  color: var(--res-blue);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pc-featured__title {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.22;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .35rem;
}

.pc-featured__guest {
  font-size: .92rem;
  font-weight: 600;
  color: var(--res-blue-dark);
  margin-bottom: .9rem;
}

.pc-featured__desc {
  line-height: 1.8;
  color: var(--res-muted);
  margin-bottom: 1rem;
}

.pc-featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .85rem;
  color: var(--res-muted);
  margin-bottom: 1.35rem;
}

/* ── Filtres ──────────────────────────────────────────────────── */

.pc-filters__row {
  margin-bottom: 1rem;
}

.pc-formats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .35rem;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.07);
  border: 1px solid var(--res-border);
}

.pc-format {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--res-text);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.pc-format:hover {
  background: rgba(255, 255, 255, 0.7);
}

.pc-format.is-active {
  background: #fff;
  color: var(--res-blue-dark);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.pc-format:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 2px;
}

#pc-categories .quicklink-item {
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

#pc-categories .quicklink-item.active {
  border-color: var(--res-blue);
  box-shadow: 0 10px 30px rgba(31, 131, 198, 0.18);
  background: rgba(31, 131, 198, 0.06);
}

#pc-categories .quicklink-item:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 2px;
}

/* ── Vignette d episode ───────────────────────────────────────── */

.pc-card {
  height: 100%;
}

.pc-card__link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
}

.pc-card__link:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 3px;
}

.pc-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  margin-bottom: .75rem;
}

.pc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.pc-card__link:hover .pc-card__img,
.pc-card__link:focus-visible .pc-card__img {
  transform: scale(1.06);
}

.pc-card__format {
  position: absolute;
  top: .6rem;
  left: .6rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: .72rem;
  font-weight: 800;
}

.pc-card__duration {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  padding: .22rem .5rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.86);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}

.pc-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.85);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1.4rem;
  color: #111827;
  background: var(--res-yellow);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}

.pc-card__link:hover .pc-card__play,
.pc-card__link:focus-visible .pc-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pc-card__title {
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .25rem;
}

.pc-card__guest {
  font-size: .84rem;
  color: var(--res-blue-dark);
  font-weight: 600;
  margin-bottom: .25rem;
}

.pc-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  font-size: .82rem;
  color: var(--res-muted);
  margin: 0;
}

.pc-card__cat {
  font-weight: 700;
  color: var(--res-blue);
}

/* ── Page de lecture ──────────────────────────────────────────── */

.pc-hero .fm-trail {
  margin-bottom: .75rem;
}

.pc-player {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--res-shadow);
  margin-bottom: 1.5rem;
}

.pc-player__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.pc-player__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-player__video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.pc-player__audio {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 1.25rem;
  width: 90%;
}

.pc-player__start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  width: 100%;
  border: 0;
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background .3s ease;
}

.pc-player__start:hover {
  background: rgba(15, 23, 42, 0.5);
}

.pc-player__start:focus-visible {
  outline: 3px solid var(--res-yellow);
  outline-offset: -6px;
}

.pc-player__start-icon {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 2.2rem;
  color: #111827;
  background: var(--res-yellow);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  transition: transform .25s ease;
}

.pc-player__start:hover .pc-player__start-icon {
  transform: scale(1.07);
}

.pc-player__start-label {
  font-weight: 700;
  font-size: .95rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.pc-player__next {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.5rem;
  text-align: center;
  color: #fff;
  background: rgba(10, 16, 32, 0.92);
}

.pc-player__next[hidden] {
  display: none;
}

.pc-player__next-label {
  margin: 0;
  font-size: .9rem;
  color: rgba(255, 255, 255, 0.8);
}

.pc-player__next-label strong {
  color: var(--res-yellow);
  font-size: 1.1rem;
}

.pc-player__next-title {
  margin: 0 0 .75rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.pc-player__error {
  margin: 0;
  padding: .9rem 1.1rem;
  background: rgba(234, 67, 54, 0.12);
  color: #8c2820;
  font-size: .88rem;
  font-weight: 600;
}

.pc-watch__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: .6rem;
}

.pc-watch__badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.10);
  color: var(--res-blue);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.pc-watch__cat {
  font-size: .85rem;
  font-weight: 700;
  color: #0f172a;
}

.pc-watch__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  font-size: .85rem;
  color: var(--res-muted);
}

.pc-watch__guest {
  font-size: .95rem;
  font-weight: 600;
  color: var(--res-blue-dark);
  margin-bottom: .75rem;
}

.pc-watch__desc {
  line-height: 1.9;
  color: var(--res-text);
  margin-bottom: 1.5rem;
}

/* ── Transcription ────────────────────────────────────────────── */

.pc-transcript {
  border-radius: 20px;
  border: 1px solid var(--res-border);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.pc-transcript__summary {
  padding: 1rem 1.25rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
}

.pc-transcript__summary::-webkit-details-marker {
  display: none;
}

.pc-transcript__summary::after {
  content: "+";
  float: right;
  font-size: 1.2rem;
  color: var(--res-blue);
}

.pc-transcript[open] .pc-transcript__summary::after {
  content: "−";
}

.pc-transcript__summary:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: -3px;
}

.pc-transcript__list {
  list-style: none;
  padding: 0 1.25rem 1.25rem;
  margin: 0;
}

.pc-transcript__list li {
  display: flex;
  gap: .85rem;
  padding: .6rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.pc-transcript__time {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--res-blue);
  font-size: .85rem;
  padding-top: .1rem;
}

.pc-transcript__text {
  line-height: 1.6;
  color: var(--res-text);
}

/* ── File d attente ───────────────────────────────────────────── */

.pc-queue {
  position: sticky;
  top: 100px;
  padding: 1.35rem;
  border-radius: 24px;
  border: 1px solid var(--res-border);
  background: #fff;
  box-shadow: var(--res-shadow);
}

.pc-queue__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .85rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.pc-queue__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.pc-queue__head .form-check-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--res-muted);
}

.pc-queue__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pc-queue__link {
  display: flex;
  gap: .75rem;
  padding: .7rem .25rem;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  transition: background .2s ease;
}

.pc-queue__link:hover {
  background: rgba(31, 131, 198, 0.06);
}

.pc-queue__link:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 2px;
}

.pc-queue__media {
  position: relative;
  flex: 0 0 112px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
}

.pc-queue__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-queue__duration {
  position: absolute;
  right: .25rem;
  bottom: .25rem;
  padding: .1rem .35rem;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.86);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
}

.pc-queue__body {
  min-width: 0;
}

.pc-queue__name {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: .2rem;
}

.pc-queue__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  font-size: .78rem;
  color: var(--res-muted);
}

.pc-queue__meta i {
  color: var(--res-blue);
}

/* ── Fil de commentaires (reutilisable) ───────────────────────── */

.rc-comments {
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.rc-comments__head {
  margin-bottom: 1.25rem;
}

.rc-comments__count {
  color: var(--res-muted);
  font-weight: 700;
  font-size: .9rem;
}

.rc-comments__form {
  padding: 1.35rem;
  margin-bottom: 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--res-border);
  background: rgba(31, 131, 198, 0.04);
}

.rc-comments__notice {
  font-size: .82rem;
  color: var(--res-muted);
}

.rc-comments__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rc-comment {
  display: flex;
  gap: .9rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.rc-comment:last-child {
  border-bottom: 0;
}

.rc-comment__avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.12);
  color: var(--res-blue-dark);
  font-weight: 800;
}

.rc-comment__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 .3rem;
}

.rc-comment__head strong {
  color: #0f172a;
  font-weight: 800;
}

.rc-comment__head span {
  font-size: .82rem;
  color: var(--res-muted);
}

.rc-comment__text {
  margin: 0;
  line-height: 1.75;
  color: var(--res-text);
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 991.98px) {
  .pc-featured {
    grid-template-columns: 1fr;
  }

  .pc-featured__body {
    padding: 1.5rem;
  }

  .pc-queue {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .pc-player__start-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .pc-queue__media {
    flex-basis: 96px;
  }

  .rc-comments__form {
    padding: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════ */
/* ESPACE EBOOKS — catalogue, fiche et lecteur d extrait            */
/* ═══════════════════════════════════════════════════════════════ */

/* ── Card ebook ───────────────────────────────────────────────── */

.eb-card {
  height: 100%;
}

.eb-card__link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.eb-card__link:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 4px;
}

/* Les couvertures sont des visuels 3D détourés (PNG transparent) : l'image
   est posée seule sur la page, sans cadre, sans fond et sans pastille. */
.eb-card__cover {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  margin: 0 auto .9rem;
  transition: transform .35s ease;
}

.eb-card__link:hover .eb-card__cover,
.eb-card__link:focus-visible .eb-card__cover {
  transform: translateY(-6px);
}

.eb-card .fm-rating {
  justify-content: center;
}

.eb-card__cat {
  display: block;
  color: var(--res-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .7rem;
  margin-bottom: .35rem;
}

.eb-card__title {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .2rem;
}

.eb-card__author {
  font-size: .84rem;
  color: var(--res-muted);
  margin-bottom: .5rem;
}

.eb-card__meta {
  font-size: .82rem;
  color: var(--res-muted);
  margin: 0;
}

.eb-library-count {
  font-weight: 800;
  color: var(--res-blue-dark);
}

.eb-filters__row {
  margin-bottom: 1rem;
}

#eb-categories .quicklink-item {
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

#eb-categories .quicklink-item.active {
  border-color: var(--res-blue);
  box-shadow: 0 10px 30px rgba(31, 131, 198, 0.18);
  background: rgba(31, 131, 198, 0.06);
}

#eb-categories .quicklink-item:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 2px;
}

/* ── Fiche ebook ──────────────────────────────────────────────── */

.eb-detail__cover {
  text-align: center;
}

.eb-detail__cover img {
  max-height: 420px;
  width: auto;
}

.eb-detail__subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--res-blue-dark);
  margin-bottom: .5rem;
}

.eb-detail__price {
  font-weight: 800;
}

.eb-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.eb-detail__actions .btn.is-owned {
  background: rgba(36, 161, 72, 0.12);
  border-color: rgba(36, 161, 72, 0.4);
  color: #1d813a;
}

.eb-detail__notice {
  font-size: .88rem;
  color: var(--res-muted);
}

.eb-detail__summary {
  line-height: 1.9;
  color: var(--res-text);
}

.eb-toc {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--res-text);
}

.eb-toc li {
  padding: .3rem 0;
  line-height: 1.5;
}

.eb-reviews__summary {
  padding: 1.25rem;
  border-radius: 20px;
  border: 1px solid var(--res-border);
  background: rgba(31, 131, 198, 0.04);
  text-align: center;
}

.eb-reviews__score {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
  margin-bottom: .35rem;
}

.eb-reviews__summary .fm-stars {
  display: block;
  font-size: 1rem;
  margin-bottom: .5rem;
}

/* ── Lecteur d extrait ────────────────────────────────────────── */

.eb-reader {
  border-radius: 24px;
  border: 1px solid var(--res-border);
  background: #fff;
  box-shadow: var(--res-shadow);
  overflow: hidden;
}

.eb-reader__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(31, 131, 198, 0.04);
}

.eb-reader__stage {
  padding: 2rem clamp(1.25rem, 4vw, 3.5rem);
  background: #ffffff;
  min-height: 320px;
}

.eb-page[hidden] {
  display: none;
}

.eb-page__title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: #0f172a;
  margin-bottom: 1.1rem;
}

.eb-page p {
  max-width: 68ch;
  margin-bottom: 1.15rem;
  line-height: 1.95;
  color: #1f2937;
  font-size: 1.02rem;
}

.eb-page p:last-child {
  margin-bottom: 0;
}

.eb-reader__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.eb-reader__counter {
  font-size: .88rem;
  color: var(--res-muted);
}

.eb-reader__counter strong {
  color: var(--res-blue-dark);
}

.eb-reader__end {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(248, 211, 27, 0.10);
}

.eb-reader__end[hidden] {
  display: none;
}

.eb-reader__end p {
  color: var(--res-text);
  line-height: 1.8;
}

/* ── Impression de l extrait uniquement ───────────────────────── */

@media print {
  body.is-printing-excerpt header,
  body.is-printing-excerpt footer,
  body.is-printing-excerpt .eb-detail > .container > .row,
  body.is-printing-excerpt .eb-detail > .container > hr,
  body.is-printing-excerpt section:not(.eb-detail),
  body.is-printing-excerpt .eb-reader__nav,
  body.is-printing-excerpt .eb-reader__end,
  body.is-printing-excerpt .eb-reader__head .btn {
    display: none !important;
  }

  body.is-printing-excerpt .eb-page[hidden] {
    display: block !important;
  }

  body.is-printing-excerpt .eb-page {
    page-break-after: always;
  }

  body.is-printing-excerpt .eb-reader {
    border: 0;
    box-shadow: none;
  }
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 767.98px) {
  .eb-detail__cover {
    max-width: 260px;
    margin: 0 auto 1.75rem;
  }

  .eb-reader__head,
  .eb-reader__nav {
    padding: 1rem;
  }

  .eb-reader__nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .eb-reader__stage {
    padding: 1.5rem 1.15rem;
  }
}

/* ═══════════════════════════════════════════════════════════════ */
/* ESPACE ARTICLES — liste editoriale + enrichissements de lecture  */
/* ═══════════════════════════════════════════════════════════════ */

/* ── Meta et etiquettes ───────────────────────────────────────── */

.ar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .84rem;
  color: var(--res-muted);
  margin-bottom: .6rem;
}

.ar-meta__cat {
  font-weight: 800;
  color: var(--res-blue);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
}

.ar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.1rem;
}

.ar-tag {
  padding: .22rem .6rem;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.08);
  color: var(--res-blue-dark);
  font-size: .76rem;
  font-weight: 700;
}

/* ── Article du moment ────────────────────────────────────────── */

.ar-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--res-border);
  box-shadow: var(--res-shadow);
  background: #fff;
}

.ar-featured__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e8eef5;
}

.ar-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.ar-featured__media:hover img,
.ar-featured__media:focus-visible img {
  transform: scale(1.05);
}

.ar-featured__media:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: -3px;
}

.ar-featured__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ar-featured__title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.22;
  font-weight: 800;
  margin-bottom: .5rem;
}

.ar-featured__title a {
  color: #0f172a;
  text-decoration: none;
}

.ar-featured__title a:hover,
.ar-featured__title a:focus-visible {
  color: var(--res-blue-dark);
}

.ar-featured__subtitle {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--res-blue-dark);
  margin-bottom: .75rem;
}

.ar-featured__excerpt {
  line-height: 1.85;
  color: var(--res-muted);
  margin-bottom: 1rem;
}

/* ── Liste editoriale ─────────────────────────────────────────── */

.ar-list {
  max-width: 900px;
  margin: 0 auto;
}

.ar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ar-row[hidden] {
  display: none;
}

.ar-row:first-child {
  padding-top: 0;
}

.ar-row__title {
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: .5rem;
}

.ar-row__title a {
  color: #0f172a;
  text-decoration: none;
}

.ar-row__title a:hover,
.ar-row__title a:focus-visible {
  color: var(--res-blue-dark);
}

.ar-row__excerpt {
  line-height: 1.8;
  color: var(--res-muted);
  margin-bottom: .9rem;
}

.ar-row__media {
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  background: #e8eef5;
}

.ar-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.ar-row:hover .ar-row__media img {
  transform: scale(1.05);
}

#ar-categories .quicklink-item {
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

#ar-categories .quicklink-item.active {
  border-color: var(--res-blue);
  box-shadow: 0 10px 30px rgba(31, 131, 198, 0.18);
  background: rgba(31, 131, 198, 0.06);
}

#ar-categories .quicklink-item:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 2px;
}

/* ── Page article : sommaire ──────────────────────────────────── */

.ar-summary {
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  border-radius: 18px;
  border: 1px solid var(--res-border);
  background: rgba(31, 131, 198, 0.04);
}

.ar-summary__title {
  margin: 0 0 .6rem;
  font-weight: 800;
  color: #0f172a;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ar-summary__list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--res-muted);
}

.ar-summary__list li {
  padding: .22rem 0;
  line-height: 1.5;
}

.ar-summary__list a {
  color: var(--res-blue-dark);
  text-decoration: none;
  font-weight: 600;
}

.ar-summary__list a:hover,
.ar-summary__list a:focus-visible {
  text-decoration: underline;
}

/* Le sommaire pointe vers des ancres : on evite que le titre colle en haut */
#article-introduction,
#article-section-1,
#article-section-2,
#article-section-3,
#article-conclusion {
  scroll-margin-top: 100px;
}

/* ── Page article : rebond ────────────────────────────────────── */

.ar-bounce {
  padding: 1.75rem;
  margin: 2.5rem 0;
  border-radius: 24px;
  border: 1px solid var(--res-border);
  box-shadow: var(--res-shadow);
  background: #ffffff;
}

.ar-bounce__eyebrow {
  margin: 0 0 .35rem;
  color: var(--res-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .76rem;
}

.ar-bounce__title {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .6rem;
}

.ar-bounce__text {
  color: var(--res-muted);
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

/* ── Page article : a lire ensuite ────────────────────────────── */

.ar-related {
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ar-related__title {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

.ar-related__card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
}

.ar-related__card:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 4px;
}

.ar-related__media {
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  background: #e8eef5;
  margin-bottom: .6rem;
}

.ar-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.ar-related__card:hover .ar-related__media img,
.ar-related__card:focus-visible .ar-related__media img {
  transform: scale(1.06);
}

.ar-related__cat {
  display: block;
  color: var(--res-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
  margin-bottom: .2rem;
}

.ar-related__name {
  display: block;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 991.98px) {
  .ar-featured {
    grid-template-columns: 1fr;
  }

  .ar-featured__body {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .ar-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ar-row__media {
    order: -1;
  }

  .ar-summary {
    padding: 1rem 1.15rem;
  }

  .ar-bounce {
    padding: 1.35rem;
  }
}

/* ═══════════════════════════════════════════════════════════════ */
/* ESPACE JEUX LUDIQUES — catalogue et moteur de jeu                */
/* ═══════════════════════════════════════════════════════════════ */

/* ── Niveaux de difficulte ────────────────────────────────────── */

.gm-difficulty--facile {
  background: rgba(36, 161, 72, 0.16);
  color: #1d813a;
}

.gm-difficulty--moyen {
  background: rgba(248, 211, 27, 0.32);
  color: #7a5c00;
}

.gm-difficulty--avance {
  background: rgba(234, 67, 54, 0.16);
  color: #8c2820;
}

/* ── Card de jeu ──────────────────────────────────────────────── */

.gm-card {
  height: 100%;
}

.gm-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--res-border);
  background: #fff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.gm-card__link:hover,
.gm-card__link:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.gm-card__link:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 3px;
}

.gm-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #0f172a;
}

.gm-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.gm-card__link:hover .gm-card__media img {
  transform: scale(1.06);
}

.gm-card__mechanic {
  position: absolute;
  top: .7rem;
  left: .7rem;
  padding: .28rem .65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.gm-card__difficulty {
  position: absolute;
  top: .7rem;
  right: .7rem;
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
}

.gm-card__play {
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1.4rem;
  color: #111827;
  background: var(--res-yellow);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform .25s ease;
}

.gm-card__link:hover .gm-card__play {
  transform: scale(1.1);
}

.gm-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem;
}

.gm-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .45rem;
}

.gm-card__principle {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--res-muted);
  margin-bottom: .9rem;
}

.gm-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .9rem;
  list-style: none;
  padding: 0;
  margin: 0 0 .8rem;
  font-size: .82rem;
  color: var(--res-muted);
}

.gm-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.gm-card__meta i {
  color: var(--res-blue);
}

.gm-card__best {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .8rem;
  font-size: .84rem;
  color: #7a5c00;
}

.gm-card__best[hidden] {
  display: none;
}

.gm-card__best i {
  color: var(--res-yellow-dark);
}

.gm-card__cta {
  align-self: flex-start;
  margin-top: auto;
  pointer-events: none;
}

/* ── Coque de jeu ─────────────────────────────────────────────── */

.gm-shell {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--res-border);
  background: #fff;
  box-shadow: var(--res-shadow);
}

.gm-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.35rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(31, 131, 198, 0.05);
  font-size: .85rem;
}

.gm-bar__mechanic {
  font-weight: 800;
  color: var(--res-blue-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
}

.gm-bar__progress {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.16);
  overflow: hidden;
}

.gm-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--res-blue), var(--res-blue-dark));
  transition: width .35s ease;
}

.gm-bar__score,
.gm-bar__timer {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.gm-bar__score i {
  color: var(--res-yellow-dark);
}

.gm-bar__timer[hidden] {
  display: none;
}

.gm-bar__timer i {
  color: #ea4336;
}

/* ── Regles rapides ───────────────────────────────────────────── */

.gm-rules {
  padding: 2rem;
  text-align: center;
}

.gm-rules[hidden] {
  display: none;
}

.gm-rules__badge {
  display: inline-block;
  padding: .3rem .75rem;
  margin-bottom: .9rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.gm-rules__title {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .75rem;
}

.gm-rules__principle {
  max-width: 620px;
  margin: 0 auto 1.5rem;
  line-height: 1.85;
  color: var(--res-muted);
}

.gm-rules__list {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  padding: 1.1rem 1.35rem;
  list-style: none;
  text-align: left;
  border-radius: 18px;
  background: rgba(31, 131, 198, 0.05);
}

.gm-rules__list li {
  display: flex;
  gap: .35rem;
  padding: .3rem 0;
  line-height: 1.6;
  color: var(--res-text);
}

.gm-rules__list i {
  color: var(--res-blue);
  flex: 0 0 auto;
}

.gm-rules__meta {
  font-size: .85rem;
  color: var(--res-muted);
  margin-bottom: .5rem;
}

.gm-rules__best {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: rgba(248, 211, 27, 0.22);
  color: #7a5c00;
  font-size: .85rem;
  font-weight: 700;
}

.gm-rules__best[hidden] {
  display: none;
}

/* ── Aire de jeu ──────────────────────────────────────────────── */

.gm-stage {
  padding: 2rem;
}

.gm-stage[hidden] {
  display: none;
}

.gm-round {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--res-blue);
  margin-bottom: .6rem;
}

.gm-question {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.45;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

/* Options des mises en situation */

.gm-options {
  display: grid;
  gap: .75rem;
}

.gm-option {
  display: block;
  width: 100%;
  padding: 1rem 1.15rem;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--res-border);
  background: #fff;
  font: inherit;
  line-height: 1.6;
  color: var(--res-text);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.gm-option:hover:not(:disabled) {
  border-color: var(--res-blue);
  background: rgba(31, 131, 198, 0.05);
  transform: translateX(3px);
}

.gm-option:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 2px;
}

.gm-option:disabled {
  cursor: default;
  opacity: .62;
}

.gm-option.is-best,
.gm-option.is-fair,
.gm-option.is-poor {
  opacity: 1;
  font-weight: 600;
}

.gm-option.is-best {
  border-color: rgba(36, 161, 72, 0.55);
  background: rgba(36, 161, 72, 0.10);
}

.gm-option.is-fair {
  border-color: rgba(248, 211, 27, 0.7);
  background: rgba(248, 211, 27, 0.16);
}

.gm-option.is-poor {
  border-color: rgba(234, 67, 54, 0.45);
  background: rgba(234, 67, 54, 0.08);
}

/* Vrai / faux */

.gm-truefalse {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}

.gm-truefalse__btn {
  padding: 1.35rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--res-border);
  background: #fff;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.gm-truefalse__btn:hover:not(:disabled) {
  border-color: var(--res-blue);
  background: rgba(31, 131, 198, 0.06);
  transform: translateY(-2px);
}

.gm-truefalse__btn:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 2px;
}

.gm-truefalse__btn:disabled {
  cursor: default;
  opacity: .6;
}

.gm-truefalse__btn.is-correct {
  opacity: 1;
  border-color: rgba(36, 161, 72, 0.55);
  background: rgba(36, 161, 72, 0.12);
  color: #1d813a;
}

.gm-truefalse__btn.is-wrong {
  opacity: 1;
  border-color: rgba(234, 67, 54, 0.5);
  background: rgba(234, 67, 54, 0.10);
  color: #8c2820;
}

/* Retour apres reponse */

.gm-feedback {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  background: rgba(31, 131, 198, 0.05);
  border: 1px solid var(--res-border);
}

.gm-feedback[hidden] {
  display: none;
}

.gm-feedback__points {
  margin: 0 0 .4rem;
  font-weight: 800;
  color: var(--res-blue-dark);
  font-size: .9rem;
}

.gm-feedback__points.is-correct {
  color: #1d813a;
}

.gm-feedback__points.is-wrong {
  color: #8c2820;
}

.gm-feedback__text {
  margin: 0 0 1rem;
  line-height: 1.8;
  color: var(--res-text);
}

/* Associations */

.gm-match {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gm-match__col {
  display: grid;
  gap: .6rem;
  align-content: start;
}

.gm-match__item {
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--res-border);
  background: #fff;
  font: inherit;
  font-size: .92rem;
  line-height: 1.5;
  text-align: left;
  color: var(--res-text);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}

.gm-match__item:hover:not(:disabled) {
  border-color: var(--res-blue);
  background: rgba(31, 131, 198, 0.05);
}

.gm-match__item:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 2px;
}

.gm-match__item.is-selected {
  border-color: var(--res-blue);
  background: rgba(31, 131, 198, 0.12);
  font-weight: 700;
}

.gm-match__item.is-wrong {
  border-color: rgba(234, 67, 54, 0.5);
  background: rgba(234, 67, 54, 0.10);
  animation: gmShake .3s ease;
}

.gm-match__item.is-locked {
  border-color: rgba(36, 161, 72, 0.5);
  background: rgba(36, 161, 72, 0.10);
  color: #1d813a;
  cursor: default;
  opacity: 1;
}

@keyframes gmShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .gm-match__item.is-wrong {
    animation: none;
  }
}

/* ── Resultat ─────────────────────────────────────────────────── */

.gm-result {
  padding: 2.25rem 2rem;
  text-align: center;
  background: #ffffff;
}

.gm-result[hidden] {
  display: none;
}

.gm-result__eyebrow {
  display: block;
  color: var(--res-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  margin-bottom: .6rem;
}

.gm-result__score {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--res-muted);
  margin-bottom: .75rem;
}

.gm-result__score strong {
  color: #0f172a;
  font-size: 3.4rem;
}

.gm-result__label {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .75rem;
}

.gm-result__text {
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.9;
  color: var(--res-muted);
}

.gm-result__best {
  display: inline-block;
  margin-top: 1rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: rgba(248, 211, 27, 0.24);
  color: #7a5c00;
  font-size: .85rem;
  font-weight: 700;
}

.gm-result__best[hidden] {
  display: none;
}

.gm-result__related {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: .9rem;
  color: var(--res-muted);
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 767.98px) {
  .gm-bar {
    flex-wrap: wrap;
    gap: .6rem;
  }

  .gm-bar__progress {
    order: 3;
    flex-basis: 100%;
  }

  .gm-rules,
  .gm-stage,
  .gm-result {
    padding: 1.5rem 1.15rem;
  }

  .gm-match {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .gm-truefalse {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════ */
/* ESPACE TESTS & QUIZ — 4 piliers, moteur et restitution           */
/* ═══════════════════════════════════════════════════════════════ */

/* ── Section pilier ───────────────────────────────────────────── */

.qz-pillar__inner {
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid var(--res-border);
  box-shadow: var(--res-shadow);
  background: #ffffff;
}

.qz-pillar__media {
  width: 118px;
  height: 118px;
  margin-bottom: 1.1rem;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(31, 131, 198, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qz-pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qz-pillar__index {
  display: inline-block;
  color: var(--res-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .74rem;
  margin-bottom: .4rem;
}

.qz-pillar__title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: #0f172a;
  margin-bottom: .75rem;
}

.qz-pillar__intro {
  line-height: 1.85;
  color: var(--res-muted);
  margin: 0;
}

/* ── Card de test ─────────────────────────────────────────────── */

.qz-card {
  height: 100%;
}

.qz-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  border: 1px solid var(--res-border);
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.qz-card__link:hover,
.qz-card__link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(31, 131, 198, 0.4);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.13);
}

.qz-card__link:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 3px;
}

.qz-card__pillar {
  display: block;
  color: var(--res-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .7rem;
  margin-bottom: .4rem;
}

.qz-card__title {
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .45rem;
}

.qz-card__teaser {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--res-muted);
  margin-bottom: .85rem;
}

.qz-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .9rem;
  list-style: none;
  padding: 0;
  margin: 0 0 .85rem;
  font-size: .82rem;
  color: var(--res-muted);
}

.qz-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.qz-card__meta i {
  color: var(--res-blue);
}

.qz-card__done {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .85rem;
  font-size: .84rem;
  color: #1d813a;
}

.qz-card__done[hidden] {
  display: none;
}

.qz-card__cta {
  align-self: flex-start;
  margin-top: auto;
  pointer-events: none;
}

/* ── Coque du test ────────────────────────────────────────────── */

.qz-shell {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--res-border);
  background: #fff;
  box-shadow: var(--res-shadow);
}

.qz-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.35rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(31, 131, 198, 0.05);
}

.qz-bar__pillar {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 800;
  color: var(--res-blue-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
  white-space: nowrap;
}

.qz-bar__pillar img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.qz-bar__progress {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.16);
  overflow: hidden;
}

.qz-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--res-blue), var(--res-blue-dark));
  transition: width .35s ease;
}

.qz-bar__step {
  font-size: .85rem;
  font-weight: 700;
  color: var(--res-muted);
  white-space: nowrap;
}

.qz-bar__step strong {
  color: #0f172a;
}

/* ── Introduction ─────────────────────────────────────────────── */

.qz-intro {
  padding: 2rem;
  text-align: center;
}

.qz-intro[hidden] {
  display: none;
}

.qz-intro__badge {
  display: inline-block;
  padding: .32rem .8rem;
  margin-bottom: .9rem;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.10);
  color: var(--res-blue);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.qz-intro__title {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .6rem;
}

.qz-intro__teaser {
  max-width: 620px;
  margin: 0 auto 1.5rem;
  line-height: 1.85;
  color: var(--res-muted);
}

.qz-intro__how {
  max-width: 620px;
  margin: 0 auto 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  background: rgba(31, 131, 198, 0.05);
  text-align: left;
  color: var(--res-text);
  line-height: 1.75;
}

.qz-scale-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.qz-scale-legend li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--res-border);
  font-size: .82rem;
  font-weight: 600;
}

.qz-scale-legend span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--res-yellow);
  color: #111827;
  font-size: .72rem;
  font-weight: 800;
}

.qz-intro__meta {
  font-size: .85rem;
  color: var(--res-muted);
  margin-bottom: .75rem;
}

.qz-intro__last {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: rgba(36, 161, 72, 0.12);
  color: #1d813a;
  font-size: .85rem;
  font-weight: 700;
}

.qz-intro__last[hidden] {
  display: none;
}

/* ── Questions ────────────────────────────────────────────────── */

.qz-stage {
  padding: 2.25rem 2rem;
}

.qz-stage[hidden] {
  display: none;
}

.qz-step {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--res-blue);
  margin-bottom: .7rem;
}

.qz-statement {
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.5;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.75rem;
  max-width: 40ch;
}

.qz-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}

.qz-scale__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.1rem .75rem;
  border-radius: 18px;
  border: 1px solid var(--res-border);
  background: #fff;
  font: inherit;
  color: var(--res-text);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.qz-scale__btn:hover {
  border-color: var(--res-blue);
  background: rgba(31, 131, 198, 0.05);
  transform: translateY(-3px);
}

.qz-scale__btn:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 2px;
}

.qz-scale__btn.is-selected {
  border-color: var(--res-blue);
  background: rgba(31, 131, 198, 0.12);
}

.qz-scale__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.10);
  color: var(--res-blue-dark);
  font-weight: 800;
}

.qz-scale__btn.is-selected .qz-scale__value {
  background: var(--res-yellow);
  color: #111827;
}

.qz-scale__label {
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
}

.qz-back {
  margin-top: 1.5rem;
}

/* ── Résultat ─────────────────────────────────────────────────── */

.qz-result {
  padding: 2.25rem 2rem;
  text-align: center;
  background: #ffffff;
}

.qz-result[hidden] {
  display: none;
}

.qz-result__eyebrow {
  display: block;
  color: var(--res-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  margin-bottom: 1rem;
}

.qz-result__gauge {
  max-width: 420px;
  height: 12px;
  margin: 0 auto .7rem;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.16);
  overflow: hidden;
}

.qz-result__gauge-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--res-yellow), var(--res-blue));
  transition: width .6s ease;
}

.qz-result__score {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--res-muted);
  margin-bottom: .75rem;
}

.qz-result__score strong {
  font-size: 2.2rem;
  color: #0f172a;
}

.qz-result__label {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: #0f172a;
  margin-bottom: .85rem;
}

.qz-result__text {
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.95;
  color: var(--res-text);
}

/* ── Rebond selon le résultat ─────────────────────────────────── */

.qz-bounce {
  max-width: 560px;
  margin: 1.75rem auto 0;
  padding: 1.25rem 1.35rem;
  border-radius: 20px;
  border: 1px solid var(--res-border);
  background: #fff;
  text-align: left;
}

.qz-bounce__eyebrow {
  margin: 0 0 .5rem;
  color: var(--res-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
}

.qz-bounce__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .95rem;
  border-radius: 14px;
  background: var(--res-yellow);
  color: #111827;
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.qz-bounce__link:hover,
.qz-bounce__link:focus-visible {
  color: #111827;
  transform: translateX(3px);
  box-shadow: 0 10px 24px rgba(248, 211, 27, 0.35);
}

.qz-bounce__link:focus-visible {
  outline: 3px solid var(--res-blue-dark);
  outline-offset: 2px;
}

.qz-bounce__reason {
  margin: .7rem 0 0;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--res-muted);
}

.qz-comments {
  margin-top: 2.5rem;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 991.98px) {
  .qz-pillar__inner {
    padding: 1.5rem;
  }

  .qz-pillar__media {
    width: 92px;
    height: 92px;
  }
}

@media (max-width: 767.98px) {
  .qz-bar {
    flex-wrap: wrap;
    gap: .6rem;
  }

  .qz-bar__progress {
    order: 3;
    flex-basis: 100%;
  }

  .qz-intro,
  .qz-stage,
  .qz-result {
    padding: 1.5rem 1.15rem;
  }

  .qz-scale {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════════ */
/* ESPACE PLANNING & CANVAS — templates rendus en HTML              */
/* ═══════════════════════════════════════════════════════════════ */

/* ── La feuille ───────────────────────────────────────────────── */

.cv-sheet {
  background: #fffdf7;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 1.5rem;
  color: #1f2937;
}

.cv-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid rgba(15, 23, 42, 0.14);
}

.cv-sheet__kicker {
  margin: 0 0 .2rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--res-blue);
}

.cv-sheet__title {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.35rem;
  color: #0f172a;
}

.cv-sheet__ident {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 170px;
}

.cv-sheet__rule {
  display: block;
  height: 1px;
  background: rgba(15, 23, 42, 0.22);
}

.cv-sheet__input {
  width: 100%;
  padding: .3rem .5rem;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.28);
  background: transparent;
  font: inherit;
  font-size: .88rem;
  color: #0f172a;
}

.cv-sheet__input:focus {
  outline: 0;
  border-bottom-color: var(--res-blue);
  background: rgba(31, 131, 198, 0.05);
}

.cv-sheet__grid {
  display: grid;
  gap: 1rem;
}

.cv-sheet--grid-2 .cv-sheet__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cv-sheet--grid-3 .cv-sheet__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cv-sheet--week .cv-sheet__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cv-sheet__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  font-size: .72rem;
  color: rgba(15, 23, 42, 0.5);
}

/* ── Un bloc ──────────────────────────────────────────────────── */

.cv-block {
  padding: .85rem .95rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  background: #fff;
}

.cv-block__title {
  margin: 0 0 .3rem;
  font-size: .92rem;
  font-weight: 800;
  color: #0f172a;
}

.cv-block__hint {
  margin: 0 0 .7rem;
  font-size: .76rem;
  line-height: 1.5;
  color: var(--res-muted);
}

.cv-block__lines {
  display: grid;
  gap: .85rem;
}

.cv-block__line {
  display: block;
  height: 1px;
  background: rgba(15, 23, 42, 0.16);
}

.cv-block__area {
  width: 100%;
  padding: .5rem .6rem;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: .9rem;
  line-height: 1.6;
  color: #1f2937;
  resize: vertical;
}

.cv-block__area:focus {
  outline: 3px solid rgba(31, 131, 198, 0.35);
  outline-offset: 1px;
  border-color: var(--res-blue);
}

.cv-block__print {
  display: none;
}

/* ── Vignette (catalogue) ─────────────────────────────────────── */

.cv-sheet--mini {
  padding: .75rem;
  border-radius: 10px;
  pointer-events: none;
}

.cv-sheet--mini .cv-sheet__grid {
  gap: .4rem;
}

.cv-sheet--mini .cv-block {
  padding: .5rem .55rem;
  border-radius: 7px;
  min-height: 46px;
}

.cv-sheet--mini .cv-block__title {
  font-size: .68rem;
  line-height: 1.3;
  margin: 0;
}

/* ── Card de template ─────────────────────────────────────────── */

.cv-card {
  height: 100%;
}

.cv-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--res-border);
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.cv-card__link:hover,
.cv-card__link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(31, 131, 198, 0.4);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.13);
}

.cv-card__link:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 3px;
}

.cv-card__preview {
  padding: 1rem;
  background: #ffffff;
}

.cv-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}

.cv-card__type {
  display: block;
  color: var(--res-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .68rem;
  margin-bottom: .35rem;
}

.cv-card__title {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .4rem;
}

.cv-card__teaser {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--res-muted);
  margin-bottom: .85rem;
}

/* ── Colonne de présentation ──────────────────────────────────── */

.cv-side {
  position: sticky;
  top: 100px;
}

.cv-side__title {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .5rem;
}

.cv-side__teaser {
  font-size: 1rem;
  font-weight: 600;
  color: var(--res-blue-dark);
  margin-bottom: .85rem;
}

.cv-side__intro {
  line-height: 1.85;
  color: var(--res-muted);
  margin-bottom: 1.35rem;
}

.cv-side__how {
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.35rem;
  border-radius: 18px;
  background: rgba(31, 131, 198, 0.05);
}

.cv-side__how-title {
  margin: 0 0 .5rem;
  font-weight: 800;
  color: #0f172a;
  font-size: .9rem;
}

.cv-side__how ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--res-text);
}

.cv-side__how li {
  padding: .25rem 0;
  line-height: 1.6;
}

.cv-side__meta {
  list-style: none;
  padding: 1.15rem 0 0;
  margin: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: .9rem;
  color: var(--res-muted);
}

.cv-side__meta li {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .3rem 0;
}

.cv-side__meta i {
  color: var(--res-blue);
  width: 18px;
  text-align: center;
}

.cv-side__meta strong {
  color: #0f172a;
}

/* ── Barre d outils ───────────────────────────────────────────── */

.cv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.1rem;
}

.cv-toolbar__modes {
  display: inline-flex;
  gap: .35rem;
  padding: .35rem;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.07);
  border: 1px solid var(--res-border);
}

.cv-toolbar__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.cv-saved {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 700;
  color: #1d813a;
}

.cv-saved[hidden] {
  display: none;
}

.cv-stage {
  border-radius: 20px;
  padding: 1.25rem;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.cv-note {
  margin-top: 1rem;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--res-muted);
}

/* ── Galerie d exemples ───────────────────────────────────────── */

.cv-examples {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cv-example {
  height: 100%;
  margin: 0;
  padding: 1.4rem;
  border-radius: 20px;
  border: 1px solid var(--res-border);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.cv-example blockquote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--res-yellow);
  line-height: 1.8;
  color: var(--res-text);
  font-style: italic;
}

.cv-example figcaption strong {
  display: block;
  color: #0f172a;
  font-weight: 800;
}

.cv-example figcaption span {
  font-size: .85rem;
  color: var(--res-muted);
}

/* ── Impression du template seul ──────────────────────────────── */

@media print {
  body.is-printing-canvas header,
  body.is-printing-canvas footer,
  body.is-printing-canvas section:not(.cv-detail),
  body.is-printing-canvas .cv-detail > .container > .row > .col-lg-4,
  body.is-printing-canvas .cv-toolbar,
  body.is-printing-canvas .cv-note,
  body.is-printing-canvas .cv-examples {
    display: none !important;
  }

  body.is-printing-canvas .cv-stage {
    padding: 0;
    background: none;
    box-shadow: none;
  }

  body.is-printing-canvas .cv-sheet {
    border: 0;
    border-radius: 0;
    background: #fff;
    padding: 0;
  }

  body.is-printing-canvas .cv-block__area {
    display: none;
  }

  body.is-printing-canvas .cv-block__print {
    display: block;
    min-height: 3.5rem;
    white-space: pre-wrap;
    font-size: .88rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(15, 23, 42, 0.18);
  }

  body.is-printing-canvas .cv-block {
    break-inside: avoid;
  }
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 991.98px) {
  .cv-side {
    position: static;
  }

  .cv-sheet--week .cv-sheet__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .cv-sheet__grid,
  .cv-sheet--grid-2 .cv-sheet__grid,
  .cv-sheet--grid-3 .cv-sheet__grid,
  .cv-sheet--week .cv-sheet__grid {
    grid-template-columns: 1fr;
  }

  .cv-sheet--mini .cv-sheet__grid,
  .cv-sheet--mini.cv-sheet--grid-3 .cv-sheet__grid,
  .cv-sheet--mini.cv-sheet--week .cv-sheet__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-sheet,
  .cv-stage {
    padding: .9rem;
  }

  .cv-sheet__head {
    flex-direction: column;
  }

  .cv-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .cv-toolbar__actions {
    justify-content: space-between;
  }
}

/* ═══════════════════════════════════════════════════════════════ */
/* ESPACE CHALLENGES — liste, fiche, carnet de bord                 */
/* ═══════════════════════════════════════════════════════════════ */

/* ── Statut ───────────────────────────────────────────────────── */

.ch-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ch-status--running {
  background: rgba(36, 161, 72, 0.16);
  color: #1d813a;
}

.ch-status--upcoming {
  background: rgba(31, 131, 198, 0.14);
  color: var(--res-blue-dark);
}

.ch-status--finished {
  background: rgba(15, 23, 42, 0.10);
  color: #475569;
}

.ch-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #24a148;
  box-shadow: 0 0 0 3px rgba(36, 161, 72, 0.22);
}

.ch-group__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 .4rem;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.10);
  color: var(--res-blue-dark);
  font-size: .82rem;
  font-weight: 800;
}

/* ── Card ─────────────────────────────────────────────────────── */

.ch-card {
  height: 100%;
}

.ch-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--res-border);
  background: #fff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.ch-card__link:hover,
.ch-card__link:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.ch-card__link:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 3px;
}

.ch-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #0f172a;
}

.ch-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.ch-card__link:hover .ch-card__media img {
  transform: scale(1.06);
}

.ch-card__media .ch-status {
  position: absolute;
  top: .7rem;
  left: .7rem;
  background: rgba(255, 255, 255, 0.95);
}

.ch-card__media .ch-status--running {
  color: #1d813a;
}

.ch-card__type {
  position: absolute;
  top: .7rem;
  right: .7rem;
  padding: .28rem .65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
}

.ch-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem;
}

.ch-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .4rem;
}

.ch-card__tagline {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--res-muted);
  margin-bottom: .9rem;
}

.ch-card__meta {
  display: grid;
  gap: .3rem;
  list-style: none;
  padding: 0;
  margin: 0 0 .9rem;
  font-size: .82rem;
  color: var(--res-muted);
}

.ch-card__meta li {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.ch-card__meta i {
  color: var(--res-blue);
  width: 15px;
}

.ch-card__progress {
  margin-bottom: .9rem;
}

.ch-card__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.16);
  overflow: hidden;
  margin-bottom: .35rem;
}

.ch-card__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--res-yellow), var(--res-blue));
}

.ch-card__progress span {
  font-size: .78rem;
  font-weight: 700;
  color: var(--res-blue-dark);
}

.ch-card__soon {
  margin: 0 0 .9rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--res-blue-dark);
}

.ch-card__joined {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .9rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: rgba(36, 161, 72, 0.12);
  color: #1d813a;
  font-size: .8rem;
  font-weight: 700;
}

.ch-card__joined[hidden] {
  display: none;
}

.ch-card__cta {
  align-self: flex-start;
  margin-top: auto;
  pointer-events: none;
}

/* ── En-tête de fiche ─────────────────────────────────────────── */

.ch-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--res-border);
  box-shadow: var(--res-shadow);
  background: #fff;
}

.ch-head__media {
  background: #0f172a;
}

.ch-head__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
}

.ch-head__body {
  padding: 2rem;
}

.ch-head__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.ch-head__type {
  padding: .28rem .7rem;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.10);
  color: var(--res-blue-dark);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ch-head__difficulty {
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
}

.ch-head__tagline {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--res-blue-dark);
  margin-bottom: 1.15rem;
}

.ch-head__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1.15rem;
  font-size: .92rem;
  color: var(--res-muted);
}

.ch-head__meta li {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .28rem 0;
}

.ch-head__meta i {
  color: var(--res-blue);
  width: 18px;
}

.ch-head__meta strong {
  color: #0f172a;
}

.ch-head__progress {
  margin-bottom: 1.15rem;
}

.ch-head__progress span {
  font-size: .82rem;
  font-weight: 700;
  color: var(--res-blue-dark);
}

.ch-head__commit {
  padding: 1rem 1.15rem;
  margin-bottom: 1.35rem;
  border-radius: 16px;
  background: rgba(248, 211, 27, 0.16);
  border-left: 4px solid var(--res-yellow);
}

.ch-head__commit-label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7a5c00;
  margin-bottom: .3rem;
}

.ch-head__commit p {
  margin: 0;
  line-height: 1.7;
  color: #1f2937;
  font-weight: 600;
}

.ch-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.ch-head__actions .btn.is-joined {
  background: rgba(36, 161, 72, 0.14);
  border-color: rgba(36, 161, 72, 0.45);
  color: #1d813a;
}

/* ── Carnet de bord ───────────────────────────────────────────── */

.ch-log {
  margin-top: 1.75rem;
  padding: 1.75rem;
  border-radius: 24px;
  border: 1px solid var(--res-border);
  box-shadow: var(--res-shadow);
  background: #ffffff;
}

.ch-log[hidden] {
  display: none;
}

.ch-log__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}

.ch-log__count {
  font-size: .95rem;
  font-weight: 700;
  color: var(--res-muted);
  white-space: nowrap;
}

.ch-log__count strong {
  font-size: 1.6rem;
  color: #0f172a;
}

.ch-log__track {
  height: 9px;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.16);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.ch-log__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--res-yellow), var(--res-blue));
  transition: width .35s ease;
}

.ch-log__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: .5rem;
}

.ch-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--res-border);
  background: #fff;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--res-muted);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.ch-day:hover {
  border-color: var(--res-blue);
  transform: translateY(-2px);
}

.ch-day:focus-visible {
  outline: 3px solid var(--res-blue);
  outline-offset: 2px;
}

.ch-day.is-done {
  background: rgba(36, 161, 72, 0.14);
  border-color: rgba(36, 161, 72, 0.5);
  color: #1d813a;
}

/* ── Sections de la fiche ─────────────────────────────────────── */

.ch-section {
  margin-bottom: 2.75rem;
}

.ch-section__text,
.ch-section__intro {
  line-height: 1.95;
  color: var(--res-text);
}

.ch-section__intro {
  color: var(--res-muted);
  margin-bottom: 1.5rem;
}

/* Freins & solutions */

.ch-obstacles {
  display: grid;
  gap: 1rem;
}

.ch-obstacle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
  padding: 1.15rem;
  border-radius: 20px;
  border: 1px solid var(--res-border);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.ch-obstacle__frein,
.ch-obstacle__solution {
  padding: .85rem 1rem;
  border-radius: 14px;
  height: 100%;
}

.ch-obstacle__frein {
  background: rgba(234, 67, 54, 0.07);
}

.ch-obstacle__solution {
  background: rgba(36, 161, 72, 0.08);
}

.ch-obstacle__label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .4rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ch-obstacle__frein .ch-obstacle__label {
  color: #8c2820;
}

.ch-obstacle__solution .ch-obstacle__label {
  color: #1d813a;
}

.ch-obstacle p {
  margin: 0;
  line-height: 1.7;
  color: var(--res-text);
  font-size: .95rem;
}

.ch-obstacle__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--res-blue);
  font-size: 1.2rem;
}

/* Témoignage */

.ch-testimonial {
  position: relative;
  margin: 0;
  padding: 2rem 1.75rem 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--res-border);
  box-shadow: var(--res-shadow);
  background: #ffffff;
}

.ch-testimonial__mark {
  position: absolute;
  top: .35rem;
  left: 1.25rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--res-yellow);
}

.ch-testimonial blockquote {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--res-text);
}

.ch-testimonial figcaption strong {
  display: block;
  color: #0f172a;
  font-weight: 800;
}

.ch-testimonial figcaption span {
  font-size: .88rem;
  color: var(--res-muted);
}

/* Rebond ressource */

.ch-related {
  padding: 1.35rem;
  border-radius: 20px;
  border: 1px solid var(--res-border);
  background: rgba(31, 131, 198, 0.04);
}

.ch-related__eyebrow {
  margin: 0 0 .6rem;
  color: var(--res-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
}

/* ── Meilleur réalisateur + classement ────────────────────────── */

.ch-aside {
  position: sticky;
  top: 100px;
}

.ch-champion {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(248, 211, 27, 0.5);
  background: #ffffff;
  box-shadow: var(--res-shadow);
}

.ch-champion__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .85rem;
  color: #7a5c00;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .74rem;
}

.ch-champion__name {
  margin: 0 0 .15rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.45rem;
  color: #0f172a;
}

.ch-champion__role {
  margin: 0 0 .75rem;
  font-size: .88rem;
  color: var(--res-muted);
}

.ch-champion__result {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--res-yellow);
  color: #111827;
  font-size: .85rem;
  font-weight: 800;
}

.ch-champion__quote {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(248, 211, 27, 0.7);
  font-size: .95rem;
  line-height: 1.8;
  color: var(--res-text);
  font-style: italic;
}

.ch-board {
  padding: 1.35rem;
  border-radius: 24px;
  border: 1px solid var(--res-border);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.ch-board__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .85rem;
}

.ch-board__list {
  list-style: none;
  padding: 0;
  margin: 0 0 .85rem;
  counter-reset: rank;
}

.ch-board__row {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ch-board__row:last-child {
  border-bottom: 0;
}

.ch-board__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(31, 131, 198, 0.10);
  color: var(--res-blue-dark);
  font-size: .8rem;
  font-weight: 800;
}

.ch-board__row.is-first .ch-board__rank {
  background: var(--res-yellow);
  color: #111827;
}

.ch-board__name {
  flex: 1;
  font-size: .92rem;
  font-weight: 600;
  color: var(--res-text);
}

.ch-board__score {
  font-size: .88rem;
  font-weight: 800;
  color: #0f172a;
}

.ch-board__note {
  margin: 0;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--res-muted);
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 991.98px) {
  .ch-head {
    grid-template-columns: 1fr;
  }

  .ch-head__body {
    padding: 1.5rem;
  }

  .ch-aside {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .ch-obstacle {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .ch-obstacle__arrow {
    transform: rotate(90deg);
  }

  .ch-log {
    padding: 1.25rem;
  }

  .ch-log__grid {
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  }
}
