.ml-years-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 44px;
}

.ml-years-introduction {
  margin: 0 0 24px;
}

.ml-years-introduction .h2_background {
  margin-bottom: 14px;
}

.ml-years-message {
  margin: 0 0 20px;
  padding: 14px 17px;
  border-radius: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.ml-years-message.is-warning { background: #fff7df; border: 1px solid #e7cb78; color: #725511; }
.ml-years-message.is-error { background: #fff0f0; border: 1px solid #dfaaaa; color: #8b3232; }
.ml-years-message.is-info { background: #eef7fb; border: 1px solid #b8d8e8; color: #285d76; }

.ml-years-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.ml-year-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 19px;
  border: 1px solid #d9e0e6;
  border-top: 2px solid #91a6b8;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.ml-year-card.is-available:hover,
.ml-year-card.is-current:hover,
.ml-year-card.is-completed:hover {
  border-color: #c4d0da;
  background: #fdfefe;
}

.ml-year-card.is-available {
  border-top-color: #6f89a1;
}

.ml-year-card.is-current {
  border-color: #b8cac1;
  border-top-color: #4f7d65;
  background: #fcfefd;
  box-shadow: 0 3px 10px rgba(45, 96, 76, 0.06);
}

.ml-year-card.is-completed {
  border-color: #ded5b8;
  border-top-color: #b59a4b;
  background: #fffefa;
}

.ml-year-card.is-soon {
  min-height: 250px;
  border-color: #e0e4e8;
  border-top-color: #b7c0c8;
  background: #fdfdfd;
  box-shadow: none;
}

.ml-year-card.is-blocked {
  border-color: #e0e4e8;
  background: #fdfdfd;
}

.ml-year-card.is-available:hover {
  border-top-color: #6f89a1;
}

.ml-year-card.is-current:hover {
  border-color: #afc3b9;
  border-top-color: #4f7d65;
}

.ml-year-card.is-completed:hover {
  border-color: #d8ceaa;
  border-top-color: #b59a4b;
}

.ml-year-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.ml-year-code {
  color: #344c63;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ml-year-status {
  padding: 4px 8px;
  border: 1px solid #dfe6eb;
  border-radius: 999px;
  background: #f5f8fa;
  color: #5d7488;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.is-current .ml-year-status {
  border-color: #d4e6dd;
  background: #edf7f2;
  color: #39705a;
}

.is-completed .ml-year-status {
  border-color: #eadfbf;
  background: #fffaf0;
  color: #806c2e;
}

.is-soon .ml-year-status {
  border-color: #e3e7ea;
  background: #f4f5f6;
  color: #6f777e;
}

.ml-year-card h3 {
  margin: 0 0 12px;
  color: #2f4355;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.ml-year-card > p {
  margin: 0 0 15px;
  color: #617181;
  line-height: 1.55;
}

.ml-year-card.is-soon h3 { color: #4b5864; }
.ml-year-card.is-soon > p { color: #717b84; }

.ml-year-details {
  margin: 4px 0 16px;
  padding: 11px 13px;
  border: 1px solid #e4ece8;
  border-radius: 7px;
  background: #f7faf8;
}

.ml-year-details div { display: flex; justify-content: space-between; gap: 12px; }
.ml-year-details div + div { margin-top: 7px; }
.ml-year-details dt { color: #617268; font-weight: 400; }
.ml-year-details dd { margin: 0; color: #35684f; font-weight: 600; }

.ml-year-validation-date { color: #74551b !important; font-weight: 600; }
.ml-year-disabled-reason { font-style: italic; }

.ml-year-actions {
  margin-top: auto;
}

.ml-year-actions:empty { display: none; }
.ml-year-actions form { margin: 0; }
.ml-year-actions form + form { margin-top: 9px; }

.ml-year-primary,
.ml-year-secondary,
.ml-year-disabled,
.ml-year-danger-link {
  width: 100%;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 7px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ml-year-primary {
  border: 1px solid #4f6f8f;
  background: #587895;
  color: #fff;
}
.ml-year-primary:hover { background: #466681; }

.ml-year-secondary {
  border: 1px solid #c5b06e;
  background: #fffdf7;
  color: #74551b;
}
.ml-year-secondary:hover { background: #faf5e7; }

.ml-year-danger-link {
  min-height: 34px;
  border: 1px solid transparent;
  background: transparent;
  color: #965353;
  font-weight: 500;
}
.ml-year-danger-link:hover {
  border-color: #ead5d5;
  background: #fffafa;
}

.ml-year-disabled {
  border: 1px solid #dde2e6;
  background: #f1f3f4;
  color: #7b838a;
  cursor: not-allowed;
}

/* =========================================================
   V16.14.20 - CARTES PLUS FINES ET TYPOGRAPHIE PLUS DISCRÈTE
   ========================================================= */

@media (max-width: 900px) {
  .ml-years-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .ml-years-grid { grid-template-columns: 1fr; }
  .ml-year-card,
  .ml-year-card.is-soon { min-height: 0; }
  .ml-year-card-heading { align-items: flex-start; }
}

/* =========================================================
   V16.14.16 - ESPACEMENT COMMUN ENTRE FIL D’ARIANE ET H2
   ========================================================= */
.musiclic-breadcrumb {
  margin-bottom: 20px !important;
}

.musiclic-breadcrumb + .ml-years-shell {
  padding-top: 0 !important;
}

.ml-years-introduction .h2_background {
  margin-top: 0 !important;
}


/* =========================================================
   V16.14.49 - PAGE PUBLIQUE : DECOUVERTE REMONTEE ET ALLEGEE
   ========================================================= */
.ml-public-journey-intro,
.ml-public-section {
  margin: 0 0 26px;
}

.ml-public-journey-intro .h2_background,
.ml-public-section .h2_background,
.ml-level-choice-intro .h2_background,
.ml-discovery-zone .h2_background {
  margin-bottom: 14px;
}

.ml-public-periods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ml-public-periods article,
.ml-public-faq article {
  padding: 15px;
  border: 1px solid #e0e6eb;
  border-radius: 8px;
  background: #fff;
}

.ml-public-periods article > strong,
.ml-public-faq article > strong {
  display: block;
  margin-bottom: 7px;
  color: #344c63;
}

.ml-public-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ml-discovery-zone {
  margin: 22px 0 20px;
}

.ml-discovery-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #cbd9e4;
  border-radius: 8px;
  background: #f4f8fb;
}

.ml-discovery-entry-copy p {
  margin: 0;
}

.ml-discovery-entry-copy p + p {
  margin-top: 6px;
}

.ml-discovery-entry-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.ml-discovery-duration {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid #4f6f8f;
  border-radius: 7px;
  background: #587895;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

.ml-discovery-duration:hover,
.ml-discovery-duration:focus {
  border-color: #3f607d;
  background: #466681;
  color: #fff !important;
  text-decoration: none !important;
}

.ml-discovery-duration.is-secondary {
  background: #fff;
  color: #3f607d !important;
}

.ml-discovery-duration.is-secondary:hover,
.ml-discovery-duration.is-secondary:focus {
  background: #edf4f8;
  color: #304f6b !important;
}

.ml-level-choice-intro {
  margin: 20px 0 16px;
}

@media (max-width: 900px) {
  .ml-public-periods {
    grid-template-columns: 1fr;
  }

  .ml-discovery-entry {
    grid-template-columns: 1fr;
  }

  .ml-discovery-entry-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .ml-public-faq {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ml-discovery-entry-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}


/* V16.14.50 - navigation du mode découverte sans querystring */
.ml-discovery-duration-form {
  margin: 0;
}

.ml-discovery-duration-form .ml-discovery-duration {
  font: inherit;
  cursor: pointer;
}


/* Illustration éditoriale de la porte d’entrée visiteur. */
.ml-parcours-illustration {
  margin: 28px auto 30px;
  max-width: 1000px;
  text-align: center;
}

.ml-parcours-illustration img {
  display: block;
  width: 100%;
  height: auto;
}

.ml-parcours-illustration p {
  margin: 10px 0 0;
  text-align: center;
}
