.t84sm-home,
.t84sm-formation-page,
.t84sm-catalog,
.t84sm-home *,
.t84sm-formation-page *,
.t84sm-catalog * {
  box-sizing: border-box;
}

.t84sm-home,
.t84sm-formation-page,
.t84sm-catalog {
  --t84-blue: #003f7f;
  --t84-blue-light: #005bb5;
  --t84-gold: #f7c948;
  --t84-red: #b9272f;
  --t84-red-dark: #781820;
  --t84-green: #2f8f63;
  --t84-green-dark: #146340;
  --t84-ink: #1f2933;
  --t84-muted: #5d6877;
  --t84-line: #e4e8ee;
  --t84-soft: #f6f8fb;
  width: 100%;
  color: var(--t84-ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.t84sm-container {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
}

.t84sm-section {
  padding: 60px 0;
}

.t84sm-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.t84sm-section-head > span {
  width: 8px;
  min-width: 8px;
  height: 42px;
  border-radius: 999px;
  background: var(--t84-gold);
}

.t84sm-section-head h1,
.t84sm-section-head h2 {
  margin: 0;
  color: var(--t84-blue);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.t84sm-section-intro {
  width: min(1040px, 100%);
  margin: 0 0 28px;
  color: var(--t84-muted);
  font-size: 17px;
  line-height: 1.72;
}

.t84sm-richtext {
  max-width: 1120px;
  padding: 32px;
  border: 1px solid var(--t84-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 31, 52, 0.07);
  font-size: 16.5px;
  line-height: 1.75;
  color: #435063;
}

.t84sm-richtext p:first-child { margin-top: 0; }
.t84sm-richtext p:last-child { margin-bottom: 0; }

.t84sm-home-hero {
  padding: 26px 0 40px;
}

.t84sm-home-hero-inner {
  position: relative;
  padding: 66px 58px;
  border-radius: 34px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 90% 12%, rgba(247, 201, 72, 0.4), transparent 28%),
    linear-gradient(135deg, #002e66 0%, #005bb5 60%, #003f7f 100%);
  box-shadow: 0 22px 50px rgba(0, 63, 127, 0.2);
}

.t84sm-home-hero-inner::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}

.t84sm-eyebrow {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--t84-gold);
  color: #17202c;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .35px;
}

.t84sm-home-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: -1.2px;
}

.t84sm-home-hero p {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0 0 30px;
  color: rgba(255,255,255,.94);
  font-size: 19px;
  line-height: 1.66;
}

.t84sm-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.t84sm-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.t84sm-btn:hover {
  transform: translateY(-2px);
  opacity: .94;
}

.t84sm-btn-gold {
  color: #17202c !important;
  background: var(--t84-gold);
  box-shadow: 0 8px 18px rgba(247,201,72,.2);
}

.t84sm-btn-outline {
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
}

.t84sm-formations-section {
  background: linear-gradient(180deg, #fff, #f7f9fc);
}

.t84sm-formations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.t84sm-formation-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  color: var(--t84-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 14px 30px rgba(15,31,52,.09);
  transition: transform .22s ease, box-shadow .22s ease;
}

.t84sm-formation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(15,31,52,.16);
}

.t84sm-formation-image {
  display: block;
  width: 100%;
  height: 190px;
  background-color: #dfe6ee;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.t84sm-formation-image:empty {
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.18)),
    radial-gradient(circle at top right, rgba(247,201,72,.5), transparent 32%);
}

.t84sm-formation-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border-top: 6px solid transparent;
}

.t84sm-formation-badge,
.t84sm-formation-domain {
  display: inline-flex;
  margin: 0 7px 8px 0;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.t84sm-formation-domain {
  background: rgba(255,255,255,.72);
  color: inherit;
  border: 1px solid rgba(0,0,0,.08);
}

.t84sm-formation-card strong {
  display: block;
  margin: 3px 0 10px;
  font-size: 23px;
  line-height: 1.18;
  font-weight: 950;
}

.t84sm-formation-summary {
  display: block;
  flex: 1;
  margin-bottom: 18px;
  color: rgba(31,41,51,.8);
  font-size: 15px;
  line-height: 1.6;
}

.t84sm-formation-stats {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.t84sm-formation-stats small {
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(0,0,0,.07);
  font-weight: 800;
}

.t84sm-formation-link {
  font-weight: 950;
}

/* TP : vert avec touches de bleu */
.t84sm-formation-card.t84sm-level-bac {
  background: linear-gradient(145deg, #e8f6ef 0%, #dff0fb 100%);
  border: 1px solid #b9dfcd;
}
.t84sm-level-bac .t84sm-formation-body { border-top-color: var(--t84-green); }
.t84sm-level-bac .t84sm-formation-badge { background: var(--t84-green); color: #fff; }
.t84sm-level-bac .t84sm-formation-link { color: var(--t84-blue); }

/* BTS : bleu avec jaune */
.t84sm-formation-card.t84sm-level-bac-2 {
  background: linear-gradient(145deg, #edf5ff 0%, #fff9df 100%);
  border: 1px solid #c7daf0;
}
.t84sm-level-bac-2 .t84sm-formation-body { border-top-color: var(--t84-blue); }
.t84sm-level-bac-2 .t84sm-formation-badge { background: var(--t84-blue); color: #fff; }
.t84sm-level-bac-2 .t84sm-formation-link { color: var(--t84-blue); }

/* Bachelor : jaune avec rouge */
.t84sm-formation-card.t84sm-level-bachelor {
  background: linear-gradient(145deg, #fff8d8 0%, #ffe7e7 100%);
  border: 1px solid #ebd49c;
}
.t84sm-level-bachelor .t84sm-formation-body { border-top-color: var(--t84-red); }
.t84sm-level-bachelor .t84sm-formation-badge { background: var(--t84-gold); color: #54200f; }
.t84sm-level-bachelor .t84sm-formation-link { color: var(--t84-red); }

/* Mastère : rouge */
.t84sm-formation-card.t84sm-level-mastere {
  background: linear-gradient(145deg, #9d2028 0%, #63131a 100%);
  color: #fff !important;
  border: 1px solid #7e1a21;
}
.t84sm-level-mastere .t84sm-formation-body { border-top-color: var(--t84-gold); }
.t84sm-level-mastere .t84sm-formation-badge { background: var(--t84-gold); color: #3c1215; }
.t84sm-level-mastere .t84sm-formation-domain,
.t84sm-level-mastere .t84sm-formation-stats small { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); color: #fff; }
.t84sm-level-mastere .t84sm-formation-summary { color: rgba(255,255,255,.85); }
.t84sm-level-mastere .t84sm-formation-link { color: var(--t84-gold); }

.t84sm-news-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  overflow: visible !important;
}

.t84sm-news-heading-row {
  display: flex !important;
  width: 100% !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 24px !important;
  margin: 0 0 12px !important;
}

.t84sm-news-heading-row > div {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.t84sm-news-heading-row .t84sm-section-intro {
  margin-bottom: 0 !important;
}

.t84sm-news-all-link {
  flex: 0 0 auto !important;
  color: #fff !important;
  background: var(--t84-blue) !important;
  box-shadow: 0 10px 22px rgba(0,63,127,.17) !important;
  white-space: nowrap !important;
}

.t84sm-news-carousel {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 30px 0 0 !important;
  padding: 4px 56px 52px !important;
  overflow: visible !important;
}

.t84sm-carousel-viewport {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  border-radius: 26px !important;
}

.t84sm-carousel-track {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform .55s cubic-bezier(.22,.61,.36,1) !important;
  will-change: transform !important;
}

.t84sm-carousel-track::before,
.t84sm-carousel-track::after {
  content: none !important;
  display: none !important;
}

.t84sm-news-card {
  position: relative !important;
  display: flex !important;
  flex: 0 0 calc((100% - 40px) / 3) !important;
  width: calc((100% - 40px) / 3) !important;
  max-width: calc((100% - 40px) / 3) !important;
  min-width: 0 !important;
  min-height: 100% !important;
  flex-direction: column !important;
  align-self: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--t84-line) !important;
  border-radius: 25px !important;
  background: #fff !important;
  box-shadow: 0 14px 32px rgba(15,31,52,.09) !important;
  transform: translateZ(0) !important;
}

.t84sm-news-count-1 .t84sm-news-card {
  flex-basis: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

.t84sm-news-count-2 .t84sm-news-card {
  flex-basis: calc((100% - 20px) / 2) !important;
  width: calc((100% - 20px) / 2) !important;
  max-width: calc((100% - 20px) / 2) !important;
}

.t84sm-news-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 42px rgba(15,31,52,.14) !important;
}

.t84sm-news-image {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 215px !important;
  min-height: 215px !important;
  flex: 0 0 215px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(247,201,72,.55), transparent 28%),
    linear-gradient(135deg, #003f7f 0%, #005bb5 100%) !important;
  text-decoration: none !important;
}

.t84sm-news-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform .45s ease !important;
}

.t84sm-news-card:hover .t84sm-news-image img {
  transform: scale(1.045) !important;
}

.t84sm-news-placeholder {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  color: #fff !important;
  text-align: center !important;
}

.t84sm-news-placeholder b {
  color: #fff !important;
  font-size: 27px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
}

.t84sm-news-placeholder small {
  color: var(--t84-gold) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .7px !important;
  text-transform: uppercase !important;
}

.t84sm-news-content {
  display: flex !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding: 24px !important;
}

.t84sm-news-card-topline {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 0 13px !important;
}

.t84sm-news-category {
  display: inline-flex !important;
  max-width: 62% !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  color: #fff !important;
  background: var(--t84-blue) !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
}

.t84sm-news-card-topline time {
  flex: 0 0 auto !important;
  color: var(--t84-muted) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.t84sm-news-content h3 {
  width: 100% !important;
  margin: 0 0 12px !important;
  color: var(--t84-blue) !important;
  font-size: 22px !important;
  line-height: 1.22 !important;
  font-weight: 950 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.t84sm-news-content h3 a {
  color: var(--t84-blue) !important;
  text-decoration: none !important;
}

.t84sm-news-content p {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto !important;
  margin: 0 0 20px !important;
  overflow: visible !important;
  color: var(--t84-muted) !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  white-space: normal !important;
  text-overflow: unset !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}

.t84sm-text-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin-top: auto !important;
  color: var(--t84-blue) !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

.t84sm-text-link span {
  transition: transform .2s ease !important;
}

.t84sm-text-link:hover span {
  transform: translateX(3px) !important;
}

.t84sm-carousel-prev,
.t84sm-carousel-next {
  position: absolute !important;
  z-index: 4 !important;
  top: calc(50% - 25px) !important;
  display: inline-flex !important;
  width: 44px !important;
  height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 0 3px !important;
  border: 0 !important;
  border-radius: 50% !important;
  transform: translateY(-50%) !important;
  color: #fff !important;
  background: var(--t84-blue) !important;
  font-size: 29px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 9px 20px rgba(0,63,127,.23) !important;
}

.t84sm-carousel-prev:hover,
.t84sm-carousel-next:hover {
  background: var(--t84-blue-light) !important;
}

.t84sm-carousel-prev:disabled,
.t84sm-carousel-next:disabled {
  opacity: .35 !important;
  cursor: default !important;
}

.t84sm-carousel-prev { left: 0 !important; }
.t84sm-carousel-next { right: 0 !important; }

.t84sm-carousel-dots {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 12px !important;
}

.t84sm-carousel-dots button {
  display: block !important;
  width: 9px !important;
  height: 9px !important;
  min-width: 9px !important;
  min-height: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #c7d0db !important;
  cursor: pointer !important;
  transition: width .2s ease, background .2s ease !important;
}

.t84sm-carousel-dots button.is-active {
  width: 28px !important;
  background: var(--t84-blue) !important;
}

@media (max-width: 1050px) {
  .t84sm-news-card,
  .t84sm-news-count-2 .t84sm-news-card,
  .t84sm-news-count-3 .t84sm-news-card {
    flex-basis: calc((100% - 20px) / 2) !important;
    width: calc((100% - 20px) / 2) !important;
    max-width: calc((100% - 20px) / 2) !important;
  }

  .t84sm-news-count-1 .t84sm-news-card {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 700px) {
  .t84sm-news-heading-row {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .t84sm-news-all-link {
    width: 100% !important;
  }

  .t84sm-news-carousel {
    padding: 4px 0 52px !important;
  }

  .t84sm-news-card,
  .t84sm-news-count-1 .t84sm-news-card,
  .t84sm-news-count-2 .t84sm-news-card,
  .t84sm-news-count-3 .t84sm-news-card {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .t84sm-news-image {
    height: 205px !important;
    min-height: 205px !important;
    flex-basis: 205px !important;
  }

  .t84sm-news-content {
    padding: 21px !important;
  }

  .t84sm-news-content h3 {
    font-size: 21px !important;
  }

  .t84sm-carousel-prev,
  .t84sm-carousel-next {
    top: auto !important;
    bottom: 2px !important;
    width: 38px !important;
    height: 38px !important;
    transform: none !important;
  }

  .t84sm-carousel-prev { left: 0 !important; }
  .t84sm-carousel-next { right: 0 !important; }
}

.t84sm-cta-section {
  padding: 40px 0 72px;
}

.t84sm-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 38px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgba(247,201,72,.42), transparent 28%),
    linear-gradient(135deg, #002e66, #005bb5);
  box-shadow: 0 18px 40px rgba(0,63,127,.18);
}

.t84sm-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.t84sm-cta p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 16px;
  line-height: 1.65;
}

/* Formation page */
.t84sm-formation-page {
  padding: 24px 0 72px;
}

.t84sm-formation-hero {
  padding: 46px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(247,201,72,.38), transparent 28%),
    linear-gradient(135deg, #002e66 0%, #005bb5 58%, #003f7f 100%);
  box-shadow: 0 20px 48px rgba(0,63,127,.2);
}

.t84sm-formation-page.t84sm-level-bac .t84sm-formation-hero {
  background:
    radial-gradient(circle at 92% 8%, rgba(0,91,181,.28), transparent 28%),
    linear-gradient(135deg, #146340 0%, #2f8f63 56%, #005b9f 100%);
}

.t84sm-formation-page.t84sm-level-bachelor .t84sm-formation-hero {
  color: #38230c;
  background:
    radial-gradient(circle at 92% 8%, rgba(185,39,47,.32), transparent 28%),
    linear-gradient(135deg, #f7c948 0%, #f5da77 54%, #b9272f 100%);
}

.t84sm-formation-page.t84sm-level-bachelor .t84sm-formation-hero h1,
.t84sm-formation-page.t84sm-level-bachelor .t84sm-formation-hero p { color: #38230c; }
.t84sm-formation-page.t84sm-level-bachelor .t84sm-btn-outline { color: #38230c !important; border-color: rgba(56,35,12,.3); background: rgba(255,255,255,.38); }

.t84sm-formation-page.t84sm-level-mastere .t84sm-formation-hero {
  background:
    radial-gradient(circle at 92% 8%, rgba(247,201,72,.28), transparent 28%),
    linear-gradient(135deg, #5d1117 0%, #9d2028 56%, #6f141a 100%);
}

.t84sm-formation-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  align-items: center;
}

.t84sm-formation-hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -.9px;
}

.t84sm-formation-hero-copy > p {
  max-width: 790px;
  margin: 0 0 28px;
  color: rgba(255,255,255,.94);
  font-size: 18px;
  line-height: 1.68;
}

.t84sm-featured-frame {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 28px;
  background: rgba(255,255,255,.13);
  box-shadow: 0 15px 34px rgba(0,0,0,.11);
}

.t84sm-featured-image {
  width: 100%;
  height: 290px;
  border-radius: 22px;
  background-color: rgba(255,255,255,.14);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.t84sm-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.t84sm-quick-grid > div {
  min-width: 0;
  padding: 15px;
  border-radius: 17px;
  color: var(--t84-ink);
  background: rgba(255,255,255,.94);
}

.t84sm-quick-grid strong {
  display: block;
  color: var(--t84-blue);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.t84sm-quick-grid span {
  display: block;
  margin-top: 5px;
  color: var(--t84-muted);
  font-size: 12px;
  font-weight: 800;
}

.t84sm-indicators-panel {
  margin: 34px 0 4px;
  padding: 28px;
  border: 1px solid var(--t84-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,31,52,.08);
}

.t84sm-indicators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.t84sm-indicators-grid > div {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--t84-line);
  border-radius: 20px;
  background: var(--t84-soft);
}

.t84sm-indicators-grid strong {
  display: block;
  color: var(--t84-blue);
  font-size: 32px;
  line-height: 1.05;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.t84sm-indicators-grid span {
  display: block;
  margin-top: 8px;
  color: var(--t84-muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 850;
}

.t84sm-content-grid {
  display: grid;
  gap: 18px;
}

.t84sm-content-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.t84sm-content-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.t84sm-info-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--t84-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,31,52,.07);
}

.t84sm-info-card h3 {
  margin: 0 0 12px;
  color: var(--t84-blue);
  font-size: 21px;
  line-height: 1.25;
}

.t84sm-info-card p,
.t84sm-info-card div,
.t84sm-info-card li {
  color: var(--t84-muted);
  font-size: 15.5px;
  line-height: 1.68;
}

.t84sm-colored-card {
  color: #fff;
  border: none;
  background: linear-gradient(135deg, var(--t84-blue), var(--t84-blue-light));
}

.t84sm-colored-card h3,
.t84sm-colored-card div,
.t84sm-colored-card p { color: #fff; }

.t84sm-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--t84-line);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(15,31,52,.06);
}

.t84sm-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
}

.t84sm-table th {
  padding: 16px;
  color: #fff;
  background: var(--t84-blue);
  text-align: left;
  font-size: 14px;
}

.t84sm-table td {
  padding: 15px 16px;
  border-top: 1px solid var(--t84-line);
  color: var(--t84-muted);
  font-size: 14.5px;
}

.t84sm-certification-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--t84-blue), var(--t84-blue-light));
}

.t84sm-certification-box > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 17px;
  background: rgba(255,255,255,.1);
}

.t84sm-certification-box span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 850;
}

.t84sm-certification-box strong {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.t84sm-margin-top { margin-top: 18px; }

.t84sm-check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.t84sm-check-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 27px;
}

.t84sm-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--t84-blue);
  font-weight: 950;
}

.t84sm-history-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.t84sm-history-grid > div {
  padding: 19px 14px;
  border: 1px solid var(--t84-line);
  border-radius: 19px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 18px rgba(15,31,52,.05);
}

.t84sm-history-grid > div.is-current {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--t84-blue), var(--t84-blue-light));
}

.t84sm-history-grid strong,
.t84sm-history-grid span {
  display: block;
}

.t84sm-history-grid strong {
  color: var(--t84-blue);
  font-size: 22px;
}

.t84sm-history-grid span {
  margin-top: 7px;
  font-size: 19px;
  font-weight: 950;
}

.t84sm-history-grid .is-current strong,
.t84sm-history-grid .is-current span { color: #fff; }

.t84sm-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.t84sm-faq details {
  overflow: hidden;
  border: 1px solid var(--t84-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15,31,52,.05);
}

.t84sm-faq summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--t84-blue);
  font-size: 16px;
  font-weight: 950;
}

.t84sm-faq details > div {
  padding: 0 20px 20px;
  color: var(--t84-muted);
  font-size: 15px;
  line-height: 1.65;
}

.t84sm-formation-cta {
  padding-bottom: 0;
}

.t84sm-catalog {
  padding: 44px 0 72px;
}

@media (max-width: 1080px) {
  .t84sm-formations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t84sm-formation-hero-layout { grid-template-columns: 1fr; }
  .t84sm-formation-hero-side { max-width: 700px; }
  .t84sm-indicators-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t84sm-content-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t84sm-certification-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .t84sm-container { width: min(100%, calc(100% - 20px)); }
  .t84sm-section { padding: 42px 0; }
  .t84sm-home-hero-inner { padding: 44px 26px; border-radius: 26px; }
  .t84sm-home-hero p { font-size: 17px; }
  .t84sm-formations-grid { grid-template-columns: 1fr; }
  .t84sm-news-card { grid-template-columns: 1fr; }
  .t84sm-news-image { min-height: 240px; }
  .t84sm-news-content { padding: 26px; }
  .t84sm-carousel { padding: 4px 0 48px; }
  .t84sm-carousel-prev,
  .t84sm-carousel-next { top: auto; bottom: 0; transform: none; }
  .t84sm-carousel-prev { left: calc(50% - 56px); }
  .t84sm-carousel-next { right: calc(50% - 56px); }
  .t84sm-carousel-dots { display: none; }
  .t84sm-cta { flex-direction: column; align-items: flex-start; padding: 28px; }
  .t84sm-formation-hero { padding: 30px 22px; border-radius: 26px; }
  .t84sm-featured-image { height: 240px; }
  .t84sm-content-grid-2,
  .t84sm-content-grid-3,
  .t84sm-indicators-grid,
  .t84sm-certification-box { grid-template-columns: 1fr; }
  .t84sm-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t84sm-richtext { padding: 24px; }
}

@media (max-width: 480px) {
  .t84sm-actions { width: 100%; }
  .t84sm-btn { width: 100%; }
  .t84sm-quick-grid { grid-template-columns: 1fr; }
  .t84sm-history-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .t84sm-carousel-track,
  .t84sm-formation-card,
  .t84sm-btn { transition: none !important; }
}

/* =========================================================
   Correctifs renforcés pour les thèmes WordPress / Materialis
   - aucune première colonne vide
   - démarrage systématique à gauche sur la première ligne
   - retour à la ligne complet sans découpe des cartes ou tableaux
   ========================================================= */
.t84sm-container,
.t84sm-section,
.t84sm-indicators-panel,
.t84sm-formation-hero,
.t84sm-featured-frame,
.t84sm-info-card,
.t84sm-certification-box,
.t84sm-history-grid,
.t84sm-table-scroll {
  height: auto !important;
  max-height: none !important;
}

.t84sm-formations-grid,
.t84sm-content-grid,
.t84sm-indicators-grid,
.t84sm-certification-box,
.t84sm-history-grid,
.t84sm-quick-grid {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  align-content: flex-start !important;
  justify-content: flex-start !important;
  clear: both !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: visible !important;
}

.t84sm-formations-grid::before,
.t84sm-formations-grid::after,
.t84sm-content-grid::before,
.t84sm-content-grid::after,
.t84sm-indicators-grid::before,
.t84sm-indicators-grid::after,
.t84sm-certification-box::before,
.t84sm-certification-box::after,
.t84sm-history-grid::before,
.t84sm-history-grid::after,
.t84sm-quick-grid::before,
.t84sm-quick-grid::after,
.t84sm-formation-hero-layout::before,
.t84sm-formation-hero-layout::after {
  content: none !important;
  display: none !important;
}

.t84sm-formations-grid {
  gap: 20px !important;
}

.t84sm-formations-grid > .t84sm-formation-card {
  flex: 0 0 calc((100% - 40px) / 3) !important;
  width: calc((100% - 40px) / 3) !important;
  max-width: calc((100% - 40px) / 3) !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  order: initial !important;
  align-self: stretch !important;
  overflow: hidden !important;
}

.t84sm-content-grid {
  gap: 18px !important;
}

.t84sm-content-grid-2 > .t84sm-info-card {
  flex: 0 0 calc((100% - 18px) / 2) !important;
  width: calc((100% - 18px) / 2) !important;
  max-width: calc((100% - 18px) / 2) !important;
}

.t84sm-content-grid-3 > .t84sm-info-card {
  flex: 0 0 calc((100% - 36px) / 3) !important;
  width: calc((100% - 36px) / 3) !important;
  max-width: calc((100% - 36px) / 3) !important;
}

.t84sm-content-grid > .t84sm-info-card,
.t84sm-indicators-grid > div,
.t84sm-certification-box > div,
.t84sm-history-grid > div,
.t84sm-quick-grid > div {
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  order: initial !important;
  align-self: stretch !important;
  overflow: visible !important;
}

.t84sm-indicators-grid {
  gap: 14px !important;
}

.t84sm-indicators-grid > div {
  flex: 0 0 calc((100% - 42px) / 4) !important;
  width: calc((100% - 42px) / 4) !important;
  max-width: calc((100% - 42px) / 4) !important;
}

.t84sm-certification-box {
  gap: 14px !important;
}

.t84sm-certification-box > div {
  flex: 0 0 calc((100% - 42px) / 4) !important;
  width: calc((100% - 42px) / 4) !important;
  max-width: calc((100% - 42px) / 4) !important;
}

.t84sm-history-grid {
  gap: 12px !important;
}

.t84sm-history-grid > div {
  flex: 0 0 calc((100% - 48px) / 5) !important;
  width: calc((100% - 48px) / 5) !important;
  max-width: calc((100% - 48px) / 5) !important;
}

.t84sm-quick-grid {
  gap: 12px !important;
}

.t84sm-quick-grid > div {
  flex: 0 0 calc((100% - 12px) / 2) !important;
  width: calc((100% - 12px) / 2) !important;
  max-width: calc((100% - 12px) / 2) !important;
}

.t84sm-formation-hero-layout {
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  align-content: flex-start !important;
  justify-content: flex-start !important;
  gap: 28px !important;
  margin: 0 !important;
  overflow: visible !important;
}

.t84sm-formation-hero-copy {
  flex: 1 1 600px !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.t84sm-formation-hero-side {
  flex: 0 0 430px !important;
  width: 430px !important;
  max-width: 430px !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.t84sm-table-scroll {
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch !important;
}

.t84sm-table,
.t84sm-table thead,
.t84sm-table tbody,
.t84sm-table tr,
.t84sm-table th,
.t84sm-table td {
  height: auto !important;
  max-height: none !important;
}

.t84sm-table tr {
  break-inside: avoid !important;
}

.t84sm-info-card h3,
.t84sm-info-card p,
.t84sm-info-card div,
.t84sm-info-card li,
.t84sm-formation-summary,
.t84sm-formation-card strong,
.t84sm-certification-box strong,
.t84sm-quick-grid strong,
.t84sm-indicators-grid strong {
  white-space: normal !important;
  text-overflow: unset !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

@media (max-width: 1080px) {
  .t84sm-formations-grid > .t84sm-formation-card {
    flex: 0 0 calc((100% - 20px) / 2) !important;
    width: calc((100% - 20px) / 2) !important;
    max-width: calc((100% - 20px) / 2) !important;
  }

  .t84sm-content-grid-3 > .t84sm-info-card {
    flex: 0 0 calc((100% - 18px) / 2) !important;
    width: calc((100% - 18px) / 2) !important;
    max-width: calc((100% - 18px) / 2) !important;
  }

  .t84sm-indicators-grid > div,
  .t84sm-certification-box > div {
    flex: 0 0 calc((100% - 14px) / 2) !important;
    width: calc((100% - 14px) / 2) !important;
    max-width: calc((100% - 14px) / 2) !important;
  }

  .t84sm-formation-hero-copy,
  .t84sm-formation-hero-side {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 760px) {
  .t84sm-formations-grid > .t84sm-formation-card,
  .t84sm-content-grid-2 > .t84sm-info-card,
  .t84sm-content-grid-3 > .t84sm-info-card,
  .t84sm-indicators-grid > div,
  .t84sm-certification-box > div {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .t84sm-history-grid > div {
    flex: 0 0 calc((100% - 12px) / 2) !important;
    width: calc((100% - 12px) / 2) !important;
    max-width: calc((100% - 12px) / 2) !important;
  }

  .t84sm-news-card {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }
}

@media (max-width: 480px) {
  .t84sm-quick-grid > div,
  .t84sm-history-grid > div {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
