@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --info: #4ABBBF;
  --info-dark: #287f83;
  --green: #AEB11C;
  --orange: #DC943B;
  --red: #CE5858;
  --slate: #7B949E;
  --line: #AFC0C9;
  --ink: #242224;
  --muted: #647079;
  --paper: #ffffff;
  --soft: #f4f8f9;
  --ue: #dff3f4;
  --shadow: 0 12px 34px rgba(32, 57, 65, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 15px;
}

button, a { font: inherit; }

button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(74, 187, 191, .35);
  outline-offset: 3px;
}

.brand-stripe {
  height: 7px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.brand-stripe span:nth-child(1) { background: var(--info); }
.brand-stripe span:nth-child(2) { background: var(--green); }
.brand-stripe span:nth-child(3) { background: var(--orange); }
.brand-stripe span:nth-child(4) { background: var(--red); }

.site-header {
  min-height: 92px;
  padding: 14px clamp(18px, 4vw, 54px);
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e7eef0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.brand img {
  width: 185px;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.header-actions {
  min-width: 0;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
}

.breadcrumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}
.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--info-dark); }
.breadcrumbs .current {
  overflow: hidden;
  text-overflow: ellipsis;
}

.language-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
  flex: none;
}
.language-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 11px;
  cursor: pointer;
  font-weight: 600;
}
.language-switch button.active {
  background: var(--info);
  color: white;
}

main {
  min-height: calc(100vh - 170px);
}

.page {
  width: min(1500px, calc(100% - 36px));
  margin: 0 auto;
  padding: 38px 0 70px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 22%, rgba(74,187,191,.16) 0 90px, transparent 92px),
    radial-gradient(circle at 82% 78%, rgba(174,177,28,.13) 0 38px, transparent 40px),
    linear-gradient(135deg, #f7fbfb, #fff 65%);
  border: 1px solid #e4eeee;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr minmax(120px, 190px);
  gap: 30px;
  align-items: center;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.hero h1 strong { color: var(--info-dark); }
.hero p {
  max-width: 850px;
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}
.hero-icon {
  width: min(100%, 165px);
  justify-self: end;
}

.section-title {
  margin: 34px 0 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}
.section-title p {
  color: var(--muted);
  margin: 0;
}

.formation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 440px));
  gap: 20px;
}

.formation-card {
  text-decoration: none;
  color: inherit;
  background: white;
  border: 1px solid #dbe8ea;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(37,67,75,.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  overflow: hidden;
}
.formation-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--info);
}
.formation-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(74,187,191,.7);
}
.formation-card .mini-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  float: right;
  margin-left: 18px;
}
.formation-card h3 {
  font-size: 25px;
  margin: 0 0 8px;
}
.formation-card p {
  color: var(--muted);
  margin: 0 0 20px;
}
.link-arrow {
  font-weight: 600;
  color: var(--info-dark);
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.page-head h1 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  margin: 4px 0 10px;
}
.page-head p {
  color: var(--muted);
  margin: 0;
}
.page-head-icon {
  width: 96px;
  max-height: 96px;
  object-fit: contain;
  flex: none;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--info-dark);
  padding: 0;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 12px;
}

.year-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: sticky;
  top: 99px;
  z-index: 10;
  background: rgba(255,255,255,.94);
  padding: 10px 0;
  backdrop-filter: blur(10px);
}
.year-tabs a,
.year-tabs button {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: white;
  cursor: pointer;
}
.year-tabs a:hover,
.year-tabs button:hover {
  border-color: var(--info);
  color: var(--info-dark);
}

.semester {
  margin: 0 auto 26px;
  max-width: 1380px;
  scroll-margin-top: 160px;
  border: 1px solid #a8c5ca;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 7px 22px rgba(45,78,88,.07);
}
.semester-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 9px 14px;
  background: var(--info);
  color: #092b2c;
}
.semester-bar h2 {
  margin: 0;
  font-size: 18px;
  text-align: center;
}
.semester-ects {
  font-weight: 700;
  background: rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 5px 11px;
}

.table-scroll { overflow-x: auto; }

.curriculum-table {
  width: 100%;
  min-width: 1080px;
  font-size: 12.5px;
  border-collapse: collapse;
  background: white;
  table-layout: fixed;
}
.curriculum-table col.ue { width: 245px; }
.curriculum-table col.module { width: 500px; }
.curriculum-table col.num { width: 82px; }
.curriculum-table col.ects { width: 80px; }

.curriculum-table th,
.curriculum-table td {
  border: 1px solid #66757a;
  padding: 5px 7px;
  vertical-align: top;
}
.curriculum-table thead th {
  background: var(--table-subheader, #88cfdd);
  color: #102b31;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .015em;
  text-align: center;
}
.curriculum-table thead tr:first-child th {
  background: var(--table-header, #56b9d5);
}
.curriculum-table td.ue-cell {
  background: var(--ue);
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
}
.ue-code {
  display: inline-block;
  color: var(--info-dark);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: .05em;
}
.module-link {
  border: 0;
  padding: 0;
  background: none;
  color: #1d353a;
  cursor: pointer;
  text-align: left;
  line-height: 1.25;
  font-weight: 500;
}
.module-link:hover {
  color: var(--info-dark);
  text-decoration: underline;
}
.num-cell {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.zero { color: #a8afb2; }
.ects-cell {
  background: var(--table-ects, #d8eef4);
  text-align: center;
  vertical-align: middle !important;
  font-weight: 700;
}
.option-badge {
  display: inline-block;
  margin-top: 7px;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(174,177,28,.16);
  color: #6a6d0a;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.notice {
  margin: 18px 0 28px;
  padding: 13px 16px;
  border-left: 4px solid var(--green);
  background: #fbfced;
  color: #50520d;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
}

.course-header {
  border-radius: 20px;
  border: 1px solid #dce9eb;
  background: linear-gradient(135deg, #f7fbfb, white);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: 28px;
}
.course-kicker {
  color: var(--info-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}
.course-header h1 {
  font-size: clamp(30px, 4vw, 48px);
  margin: 8px 0 12px;
}
.responsible {
  margin: 0;
  color: var(--muted);
}
.responsible strong { color: var(--ink); }

.metrics {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: 8px;
}
.metric {
  background: white;
  border: 1px solid #dde8ea;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.metric .value {
  font-size: 20px;
  font-weight: 700;
}
.metric .label {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}
.detail-card {
  border: 1px solid #dce7e9;
  border-radius: 14px;
  padding: 20px 22px;
  background: white;
}
.detail-card h2 {
  margin: 0 0 13px;
  font-size: 19px;
  color: var(--info-dark);
}
.detail-card p {
  margin: 0;
  line-height: 1.7;
  white-space: pre-wrap;
}
.detail-card.full { grid-column: 1 / -1; }
.not-provided { color: #8b9498; font-style: italic; }

.site-footer {
  min-height: 74px;
  padding: 20px clamp(18px, 4vw, 54px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid #e1e9eb;
  color: var(--muted);
  background: #f8fafb;
}

@media (max-width: 850px) {
  .site-header { align-items: flex-start; }
  .header-actions { align-items: flex-end; flex-direction: column-reverse; gap: 8px; }
  .breadcrumbs { width: 100%; }
  .hero { grid-template-columns: 1fr; }
  .hero-icon { justify-self: start; width: 150px; }
  .page-head-icon { display: none; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-card.full { grid-column: auto; }
}

@media (max-width: 560px) {
  .brand img { width: 140px; }
  .site-header { min-height: 80px; padding-inline: 14px; }
  .breadcrumbs { display: none; }
  .page { width: min(100% - 24px, 1500px); padding-top: 24px; }
  .hero { padding: 24px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .site-footer { flex-direction: column; align-items: flex-start; }
}


.lv2-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.lv2-group-label {
  font-weight: 700;
  color: var(--info-dark);
  margin-right: 3px;
}

.lv2-language-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #1d353a;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(40, 127, 131, .35);
  text-underline-offset: 2px;
}

.lv2-language-link:hover {
  color: var(--info-dark);
  text-decoration-color: currentColor;
}


/* Séparation visuelle des UE */
.curriculum-table tbody tr.ue-start:not(:first-child) > td {
  border-top: 3px solid #47757d;
}

.curriculum-table td.ue-cell {
  border-right: 2px solid #47757d;
}

/* Séparation des grands groupes de colonnes */
.curriculum-table .group-hours-start,
.curriculum-table .group-coeff-start,
.curriculum-table .group-ects-start {
  border-left: 3px solid #47757d !important;
}

.curriculum-table thead th.hours-group {
  background: var(--table-hours-header, #5dbbd1) !important;
}

.curriculum-table thead th.coeff-group {
  background: var(--table-coeff-header, #cdd78a) !important;
}

.curriculum-table thead th.ects-group {
  background: var(--table-ects-header, #77c3c7) !important;
}

.curriculum-table thead th.hours-sub {
  background: var(--table-hours-sub, #ccecf3);
}

.curriculum-table thead th.coeff-sub {
  background: var(--table-coeff-sub, #edf0cf);
}

/* Un peu plus d'air dans la colonne modules sans augmenter la hauteur globale */
.curriculum-table td:nth-child(2) {
  padding-left: 10px;
  padding-right: 10px;
}


/* Titres principaux des colonnes du tableau */
.curriculum-table thead tr:first-child th {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}


/* ------------------------------------------------------------------
   Multi-formation theming
   ------------------------------------------------------------------ */

.formation-card {
  --card-color: var(--info);
  --card-dark: var(--info-dark);
}

.formation-card::before {
  background: var(--card-color);
}

.formation-card:hover {
  border-color: var(--card-color);
}

.formation-card .link-arrow {
  color: var(--card-dark);
}

.hero-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-icons .hero-icon {
  width: min(42%, 135px);
  justify-self: auto;
}

@media (max-width: 850px) {
  .hero-icons {
    justify-content: flex-start;
  }
  .hero-icons .hero-icon {
    width: 82px;
  }
}


/* v8 — distinction semestre / en-têtes de colonnes */
.semester-bar {
  border-bottom: 4px solid rgba(255,255,255,.82);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}

.semester-bar h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .01em;
}

.semester-ects {
  background: rgba(255,255,255,.50);
  border: 1px solid rgba(255,255,255,.68);
}

/* Les titres de colonnes forment un bloc distinct du bandeau semestre. */
.curriculum-table thead {
  border-top: 3px solid rgba(0,0,0,.12);
}

.curriculum-table thead tr:first-child th {
  padding-top: 9px;
  padding-bottom: 9px;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,.28);
}

.curriculum-table thead tr:nth-child(2) th {
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 10.5px;
}


/* v12 — regroupement des formations par statut */
.formation-group {
  margin-top: 30px;
}

.formation-group + .formation-group {
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid #dbe5e8;
}

.formation-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.formation-group-head h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 650;
}

.formation-group-head::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #d9e4e7;
}


/* v17 — logos des établissements partenaires */
.partner-logo-row {
  clear: both;
  min-height: 48px;
  margin: 8px 0 14px;
  display: flex;
  align-items: center;
}

.partner-logo {
  display: block;
  max-width: 175px;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
  background: #fff;
}

.page-head-logos {
  flex: none;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.page-head-partner-logo {
  display: block;
  width: min(220px, 20vw);
  max-height: 62px;
  object-fit: contain;
  object-position: right center;
  background: #fff;
}

.external-formation-card .link-arrow::after {
  content: "";
}

@media (max-width: 850px) {
  .page-head-logos {
    display: none;
  }

  .partner-logo {
    max-width: 155px;
    max-height: 44px;
  }
}


/* v18 — ajustements logos partenaires */

/* Le fichier source du logo UNICAEN contient davantage d'espace interne :
   on le rend un peu plus grand pour obtenir visuellement la même hauteur
   que le logo INSA Rouen Normandie. */
.partner-logo.partner-logo-unicaen {
  max-width: 215px;
  max-height: 64px;
}

.page-head-partner-logo.partner-logo-unicaen {
  width: min(255px, 23vw);
  max-height: 76px;
}

/* ITII Normandie — Génie Industriel */
.partner-logo.partner-logo-itii {
  max-width: 220px;
  max-height: 58px;
}

.page-head-partner-logo.partner-logo-itii {
  width: min(260px, 24vw);
  max-height: 72px;
}

@media (max-width: 850px) {
  .partner-logo.partner-logo-unicaen {
    max-width: 185px;
    max-height: 56px;
  }

  .partner-logo.partner-logo-itii {
    max-width: 190px;
    max-height: 52px;
  }
}


/* v20 — accueil plus compact */
.hero {
  padding: clamp(16px, 2.2vw, 28px);
  grid-template-columns: 1fr;
  gap: 14px;
}

.hero h1 {
  font-size: clamp(28px, 3.4vw, 43px);
  margin-bottom: 7px;
}

.hero p {
  font-size: 14px;
  max-width: 980px;
}

.hero-icons {
  justify-content: flex-start;
  align-items: center;
  gap: 8px 12px;
  max-width: 720px;
}

.hero-icons .hero-icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* v20 — pied de page institutionnel */
.site-footer {
  min-height: 108px;
  padding: 16px clamp(18px, 4vw, 54px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-logos {
  display: block;
  width: min(100%, 1120px);
  max-height: 78px;
  object-fit: contain;
}

.site-footer #footer-text {
  font-size: 11px;
  text-align: center;
}

/* Les logos ronds des spécialités restent petits sur l'accueil. */
.formation-card .mini-icon {
  object-fit: contain;
}

@media (max-width: 850px) {
  .hero-icons {
    max-width: 100%;
  }

  .hero-icons .hero-icon {
    width: 54px;
    height: 54px;
  }

  .footer-logos {
    max-height: 68px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 18px;
  }

  .hero-icons .hero-icon {
    width: 48px;
    height: 48px;
  }

  .site-footer {
    align-items: center;
  }
}


/* v24 — identification visuelle des majeures FISE
   Les teintes restent volontairement proches de la couleur de spécialité. */

.option-badge.major-badge {
  text-transform: none;
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid transparent;
}

/* Informatique — variations turquoise / bleu */
.curriculum-table td.ue-cell.major-ue.major-info-isia {
  background: #DFF2F3;
  box-shadow: inset 4px 0 0 #4AAEB2;
}
.option-badge.major-info-isia {
  background: #D4ECEE;
  border-color: #9FD3D6;
  color: #2D7478;
}

.curriculum-table td.ue-cell.major-ue.major-info-epcs {
  background: #E2ECF7;
  box-shadow: inset 4px 0 0 #6F93C6;
}
.option-badge.major-info-epcs {
  background: #D9E6F4;
  border-color: #B4CAE5;
  color: #4C6E9D;
}

.curriculum-table td.ue-cell.major-ue.major-info-cyia {
  background: #E2F1ED;
  box-shadow: inset 4px 0 0 #63A99A;
}
.option-badge.major-info-cyia {
  background: #D8EBE6;
  border-color: #AED5CB;
  color: #437D70;
}

/* GPSE — variations rouge / vieux rose de la charte */
.curriculum-table td.ue-cell.major-ue.major-gpse-gne {
  background: #F8E3E4;
  box-shadow: inset 4px 0 0 #C97879;
}
.option-badge.major-gpse-gne {
  background: #F3DADB;
  border-color: #E1B2B4;
  color: #925153;
}

.curriculum-table td.ue-cell.major-ue.major-gpse-ipc {
  background: #F3E4EB;
  box-shadow: inset 4px 0 0 #B97891;
}
.option-badge.major-gpse-ipc {
  background: #EFDCE5;
  border-color: #D7B6C5;
  color: #81546A;
}

.curriculum-table td.ue-cell.major-ue.major-gpse-sate {
  background: #F8E8E1;
  box-shadow: inset 4px 0 0 #CB866D;
}
.option-badge.major-gpse-sate {
  background: #F3DED5;
  border-color: #E0BBAE;
  color: #8C5B49;
}

/* Matériaux-Chimie — majeures plus nettement différenciées.
   EMS reste dans un vert jaune / olive proche du vert MC de la charte.
   CHIMIE utilise un vert plus froid. */

/* EMS — utilisé aussi pour EMS+ENERGIE et EMS+MS au semestre 9 */
.curriculum-table td.ue-cell.major-ue.major-mc-ems {
  background: #EDF2BE;
  box-shadow: inset 5px 0 0 #98A92E;
}
.option-badge.major-mc-ems {
  background: #DCE696;
  border-color: #AEBF42;
  color: #566314;
  font-weight: 700;
}

/* CHIMIE — contraste renforcé avec EMS aux semestres 7 et 8 */
.curriculum-table td.ue-cell.major-ue.major-mc-chimie {
  background: #DCECE5;
  box-shadow: inset 5px 0 0 #4F8A72;
}
.option-badge.major-mc-chimie {
  background: #CCE2D8;
  border-color: #7CAF98;
  color: #315F4D;
  font-weight: 700;
}

/* Chimie + catalyse — vert froid / sarcelle plus affirmé */
.curriculum-table td.ue-cell.major-ue.major-mc-chimie-catalyse {
  background: #D2E9E1;
  box-shadow: inset 6px 0 0 #3F8B76;
}
.option-badge.major-mc-chimie-catalyse {
  background: #BFDCCF;
  border-color: #6AAE98;
  color: #245E4F;
  font-weight: 700;
}

/* Chimie + macromolécules — teinte kaki/brun-vert nettement distincte */
.curriculum-table td.ue-cell.major-ue.major-mc-chimie-macro {
  background: #EEE8D1;
  box-shadow: inset 6px 0 0 #9A8647;
}
.option-badge.major-mc-chimie-macro {
  background: #E2D9B8;
  border-color: #B9A465;
  color: #65562B;
  font-weight: 700;
}


/* v29 — références RNCP sur la page d'accueil */
.formation-card {
  display: flex;
  flex-direction: column;
}

.formation-main-link {
  display: block;
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
}

.rncp-link,
.credential-note {
  clear: both;
  margin-top: 15px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 650;
}

.rncp-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  text-decoration: none;
  color: var(--card-dark);
  background: color-mix(in srgb, var(--card-color) 13%, white);
  border: 1px solid color-mix(in srgb, var(--card-color) 42%, white);
}

.rncp-link:hover,
.rncp-link:focus-visible {
  background: color-mix(in srgb, var(--card-color) 22%, white);
  border-color: var(--card-color);
}

.rncp-label {
  letter-spacing: .035em;
}

.credential-note {
  display: inline-block;
  padding: 7px 10px;
  color: #5f6e72;
  background: #f3f6f7;
  border: 1px solid #d7e1e3;
}


/* v30 — second partner logo for Génie Industriel (UIMM) */
.partner-logo-row {
  flex-wrap: wrap;
  gap: 10px 14px;
}

.partner-logo.partner-logo-uimm {
  max-width: 108px;
  max-height: 58px;
  background: #fff;
  object-fit: contain;
}

.page-head-partner-logo.partner-logo-uimm {
  width: min(110px, 14vw);
  max-height: 90px;
  background: #fff;
  object-fit: contain;
}

@media (max-width: 850px) {
  .partner-logo.partner-logo-uimm {
    max-width: 96px;
    max-height: 52px;
  }
}


/* v32 — avertissement en haut des pages internes */
.pedagogical-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0 24px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 5px solid #d98324;
  background: #fff7eb;
  color: #4e4e4e;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.pedagogical-disclaimer--top {
  margin-top: 6px;
}

.pedagogical-disclaimer__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: #c9771d;
  font-size: 20px;
  line-height: 1;
}

.pedagogical-disclaimer__text {
  display: block;
}

@media (max-width: 700px) {
  .pedagogical-disclaimer {
    gap: 10px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .pedagogical-disclaimer__icon {
    width: 20px;
    height: 20px;
    font-size: 18px;
  }
}


/* v38 — valeurs totales sans ventilation dans la maquette */
.curriculum-table td.total-only-cell {
  text-align: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.36);
}


/* v41 — information spécifique aux tableaux Génie Industriel */
.gi-current-year-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 22px;
  padding: 12px 15px;
  border-left: 4px solid var(--formation-color);
  background: rgba(216, 148, 79, 0.10);
  color: #5f4a34;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.gi-current-year-notice__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: #c9771d;
  font-size: 20px;
  line-height: 1;
}

.gi-current-year-notice__text {
  display: block;
}

/* Cours sans contenu descriptif : affichés en noir mais non cliquables. */
.module-link--disabled,
.lv2-language-link--disabled {
  cursor: default;
  color: #1d353a;
  text-decoration: none;
}

.module-link--disabled:hover,
.lv2-language-link--disabled:hover {
  color: #1d353a;
  text-decoration: none;
}
