/* ======================================================
   MILKIDS — NOS LICENCES V8
   CSS COMPLET POUR BRICKS
   Jungle Hope + Gill Sans
   Sans JetEngine
====================================================== */

.mk-licenses {
  --mk-purple: #2e2b78;
  --mk-font: "Gill sans", "Gill Sans", Arial, sans-serif;
  --mk-display: "Jungle Hope", "Gill sans", sans-serif;

  width: 100%;
  overflow: hidden;
  background: #fffdf9;
  color: var(--mk-purple);
  font-family: var(--mk-font);
}

.mk-licenses,
.mk-licenses * {
  box-sizing: border-box;
}

.mk-licenses h1,
.mk-licenses h2,
.mk-licenses h3,
.mk-licenses p {
  margin-top: 0;
}

.mk-licenses a {
  text-decoration: none;
}

/* ================= HERO DESKTOP ================= */

.mk-licenses__hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(410px, 40vw, 650px);
  min-height: 410px;
  display: flex;
  align-items: center;

  background-color: #f8e8fc;
  background-image: url("https://milkids.fr/wp-content/uploads/2026/11/Enfants-licorne-et-ciel-pastel-1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mk-licenses__hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;

  background: linear-gradient(
    90deg,
    rgba(255,250,255,.9) 0%,
    rgba(255,249,255,.78) 27%,
    rgba(255,250,255,.22) 52%,
    transparent 75%
  );
}

.mk-licenses__hero-inner {
  width: min(1420px, calc(100% - 72px));
  margin-inline: auto;
  padding: 42px 0;
}

.mk-licenses__eyebrow,
.mk-licenses__kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.4;
  color: var(--mk-purple);
}

.mk-licenses__eyebrow {
  padding: 8px 14px;
  border: 1px solid rgba(46,43,120,.18);
  border-radius: 99px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(8px);
  margin-bottom: 22px;
}

.mk-licenses__hero h1 {
  max-width: 570px;
  font-family: var(--mk-display);
  font-size: clamp(37px, 3.9vw, 60px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.5px;
  margin: 0 0 20px;
  color: var(--mk-purple);
}

.mk-licenses__hero h1 span {
  display: block;
}

.mk-licenses__hero p {
  max-width: 470px;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  margin: 0 0 27px;
  color: var(--mk-purple);
}

.mk-licenses__hero-description-mobile {
  display: none;
}

/* ================= BOUTONS ================= */

.mk-licenses__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 45px;
  padding: 12px 22px;
  border: 0;
  border-radius: 99px;

  color: var(--mk-purple) !important;
  font: 700 13px/1.2 var(--mk-font);
  white-space: nowrap;

  box-shadow: 0 7px 20px rgba(46,43,120,.1);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

.mk-licenses__btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(46,43,120,.17);
}

.mk-licenses__btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.mk-licenses__btn--rainbow {
  background: linear-gradient(
    100deg,
    #b7f2d8 0%,
    #b7e8ff 21%,
    #d9c4ff 42%,
    #ffbde0 62%,
    #ffe59c 82%,
    #ffb89c 100%
  );
}

.mk-licenses__btn--yellow {
  background: linear-gradient(105deg, #ffe783, #ffc600);
}

.mk-licenses__btn--pink {
  background: linear-gradient(105deg, #ffb0e5, #ff62b6);
}

.mk-licenses__btn--purple {
  background: linear-gradient(105deg, #d7bcff, #a986ef);
}

.mk-licenses__btn--green {
  background: linear-gradient(105deg, #c5ef99, #8bcf64);
}

.mk-licenses__btn--blue {
  background: linear-gradient(105deg, #b8edff, #68caff);
}

.mk-licenses__btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  box-shadow: none;
}

/* ================= CONTENU ================= */

.mk-licenses__body {
  width: min(1420px, calc(100% - 72px));
  margin-inline: auto;
  padding-bottom: 85px;
}

/* ================= NAVIGATION LOGOS ================= */

.mk-licenses__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 28px 0 20px;
}

.mk-licenses .mk-licenses__nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 148px;
  width: 148px;
  height: 76px;
  min-width: 0;
  padding: 10px 15px;

  overflow: hidden;
  border: 1px solid #eee6f5;
  border-radius: 19px;
  background: #fff;
  color: var(--mk-purple);
  box-shadow: 0 6px 18px rgba(67,41,120,.065);

  transition: transform .25s, border-color .25s;
}

.mk-licenses .mk-licenses__nav-link:hover,
.mk-licenses .mk-licenses__nav-link.is-active {
  transform: translateY(-3px);
  background: #fff;
  border-color: #d7baf8;
}

.mk-licenses .mk-licenses__nav-link img {
  display: block;
  width: 116px;
  max-width: 100%;
  height: 50px;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  flex: none;
}

/* Correction optique des logos */

.mk-licenses .mk-licenses__nav-link[href="#mk-license-lapins"] img {
  transform: scale(1.32);
}

.mk-licenses .mk-licenses__nav-link[href="#mk-license-rainbow"] img {
  width: 119px;
}

.mk-licenses .mk-licenses__nav-link[href="#mk-license-minecraft"] img {
  width: 116px;
  height: 46px;
}

.mk-licenses .mk-licenses__nav-link[href="#mk-license-milkids"] img {
  width: 116px;
  height: 50px;
}

/* ================= TITRE SECTION ================= */

.mk-licenses__section-heading {
  text-align: center;
  padding: 64px 16px 47px;
  scroll-margin-top: 120px;
}

.mk-licenses__section-heading h2 {
  font: 400 clamp(33px, 3.65vw, 55px)/1.13 var(--mk-display);
  margin: 13px 0 14px;
  color: var(--mk-purple);
}

.mk-licenses__section-heading p {
  max-width: 570px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}

/* ================= CARTES ================= */

.mk-licenses__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}

.mk-licenses__card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 26px;
  background: var(--card-bg);
  border: 1px solid rgba(46,43,120,.055);
  box-shadow: 0 13px 35px rgba(46,43,120,.055);
  transition: transform .3s, box-shadow .3s;
  scroll-margin-top: 125px;
}

.mk-licenses__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(46,43,120,.11);
}

.mk-licenses__card--emoji {
  --card-bg: #fff8df;
  --media-bg: linear-gradient(135deg, #ffe96d, #ffc63e);
}

.mk-licenses__card--lol {
  --card-bg: #fff0f8;
  --media-bg: linear-gradient(135deg, #ffd6f0, #ef9dd8);
}

.mk-licenses__card--lapins {
  --card-bg: #effaff;
  --media-bg: linear-gradient(135deg, #c3efff, #79c9fa);
}

.mk-licenses__card--rainbow {
  --card-bg: #f7efff;
  --media-bg: linear-gradient(135deg, #ffc4e9, #ad8df5);
}

.mk-licenses__card--minecraft {
  --card-bg: #f0f8e8;
  --media-bg: linear-gradient(135deg, #d3f2b3, #84c67c);
}

.mk-licenses__card--milkids {
  --card-bg: #eef8ff;
  --media-bg: linear-gradient(135deg, #d9c8ff, #9ee9fb);
}

/* ================= IMAGES DES CARTES ================= */

.mk-licenses__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--media-bg);
}

.mk-licenses__photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ================= BAS DES CARTES ================= */

.mk-licenses__card-content {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 27px 23px 29px;
}

.mk-licenses__card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 70px;
  margin: 0 0 12px !important;
}

.mk-licenses__card-logo img {
  display: block;
  max-width: 175px;
  width: auto;
  height: 60px;
  object-fit: contain;
}

.mk-licenses__card--lapins .mk-licenses__card-logo img {
  transform: scale(1.22);
}

.mk-licenses__card--rainbow .mk-licenses__card-logo img {
  max-width: 190px;
  height: 54px;
}

.mk-licenses__card--minecraft .mk-licenses__card-logo img {
  max-width: 190px;
  height: 55px;
}

.mk-licenses__card--milkids .mk-licenses__card-logo img {
  max-width: 175px;
  height: 60px;
}

.mk-licenses__card p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto 21px;
}

.mk-licenses__card .mk-licenses__btn {
  margin-top: auto;
}

/* Supprimer les anciens labels et numéros */

.mk-licenses__sticker,
.mk-licenses__card-index {
  display: none !important;
}

/* ================= BANDEAU FINAL ================= */

.mk-licenses__outro {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;

  margin-top: 76px;
  padding: 55px clamp(25px, 5vw, 75px);
  min-height: 270px;
  border-radius: 34px;

  background-color: #f0e6ff;
  background-image: url("https://milkids.fr/wp-content/uploads/2026/11/Coffret-violet-et-etoiles-pastel-1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mk-licenses__outro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background: linear-gradient(
    90deg,
    rgba(250,236,255,.9) 0%,
    rgba(249,238,255,.68) 40%,
    transparent 75%
  );
}

.mk-licenses__outro-copy {
  position: relative;
  z-index: 1;
  max-width: 630px;
}

.mk-licenses__outro h2 {
  font: 400 clamp(35px, 3.5vw, 53px)/1.08 var(--mk-display);
  margin: 10px 0 14px;
  color: var(--mk-purple);
}

.mk-licenses__outro p {
  max-width: 470px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* ================= TABLETTE ================= */

@media (max-width: 1180px) {
  .mk-licenses__hero-inner,
  .mk-licenses__body {
    width: calc(100% - 48px);
  }

  .mk-licenses__hero {
    height: clamp(390px, 46vw, 570px);
  }

  .mk-licenses__hero h1 {
    font-size: clamp(34px, 4.1vw, 50px);
    max-width: 510px;
  }

  .mk-licenses__hero p {
    max-width: 390px;
    font-size: 14px;
  }

  .mk-licenses__grid {
    gap: 17px;
  }

  .mk-licenses__card-content {
    padding: 23px 16px 26px;
  }
}

@media (max-width: 800px) {
  .mk-licenses__grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .mk-licenses__hero {
    height: 470px;
    min-height: 0;
  }

  .mk-licenses__hero h1 {
    font-size: clamp(32px, 5vw, 43px);
  }

  .mk-licenses__hero p {
    font-size: 15px;
    line-height: 1.55;
  }

  .mk-licenses__section-heading {
    padding: 46px 8px 35px;
  }

  .mk-licenses .mk-licenses__nav-link {
    flex-basis: 130px;
    width: 130px;
    height: 68px;
    padding: 9px 12px;
  }

  .mk-licenses .mk-licenses__nav-link img {
    width: 105px;
    height: 45px;
  }

  .mk-licenses__outro {
    margin-top: 55px;
  }
}

/* ================= MOBILE ================= */

@media (max-width: 600px) {
  .mk-licenses__hero-inner,
  .mk-licenses__body {
    width: calc(100% - 32px);
  }

  /* Hero mobile compact */

  .mk-licenses__hero {
    height: 395px;
    min-height: 395px;
    aspect-ratio: auto;
    align-items: flex-start;

    background-image: url("https://milkids.fr/wp-content/uploads/2026/11/Enfants-complices-et-licorne-arc-en-ciel.png");
    background-size: cover;
    background-position: center center;
  }

  .mk-licenses__hero-shade {
    background: linear-gradient(
      180deg,
      rgba(255,250,255,.86) 0%,
      rgba(255,250,255,.55) 28%,
      rgba(255,250,255,.12) 57%,
      transparent 78%
    );
  }

  .mk-licenses__hero-inner {
    width: calc(100% - 36px);
    margin-inline: auto;
    padding: 25px 0 0;
  }

  .mk-licenses__eyebrow {
    font-size: 10px;
    padding: 7px 11px;
    letter-spacing: 1.1px;
    margin-bottom: 13px;
  }

  .mk-licenses__hero h1 {
    max-width: 100%;
    font-size: clamp(22px, 6.2vw, 30px);
    line-height: 1.08;
    letter-spacing: -.3px;
    margin: 0 0 14px;
  }

  .mk-licenses__hero h1 span {
    display: block;
    white-space: nowrap;
  }

  /* Supprimer le CTA uniquement sur mobile */

  .mk-licenses__hero .mk-licenses__btn {
    display: none !important;
  }

  /* Brume blanche légère derrière le texte */

  .mk-licenses__hero p.mk-licenses__hero-description {
    position: relative;
    z-index: 1;
    display: block;
    width: fit-content;
    max-width: 290px;
    padding: 9px 12px;
    margin: 0 0 12px -12px;
    border-radius: 16px;

    font-size: 13px;
    line-height: 1.45;

    background: linear-gradient(
      110deg,
      rgba(255,255,255,.72) 0%,
      rgba(255,255,255,.50) 65%,
      rgba(255,255,255,.10) 100%
    );

    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    box-shadow: 0 0 25px 8px rgba(255,255,255,.16);
  }

  .mk-licenses__hero-description-desktop {
    display: none;
  }

  .mk-licenses__hero-description-mobile {
    display: inline;
  }

  /* Navigation des logos */

  .mk-licenses .mk-licenses__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 9px;
    padding: 22px 0 12px;
  }

  .mk-licenses .mk-licenses__nav-link {
    flex-basis: auto;
    width: 100%;
    height: 64px;
    min-width: 0;
    min-height: 0;
    padding: 7px;
    border-radius: 15px;
    background: #fff;
  }

  .mk-licenses .mk-licenses__nav-link:hover,
  .mk-licenses .mk-licenses__nav-link.is-active {
    background: #fff;
  }

  .mk-licenses .mk-licenses__nav-link img {
    width: 100%;
    max-width: 105px;
    height: 43px;
    object-fit: contain;
  }

  .mk-licenses .mk-licenses__nav-link[href="#mk-license-lapins"] img {
    transform: scale(1.26);
  }

  .mk-licenses .mk-licenses__nav-link[href="#mk-license-minecraft"] img {
    height: 39px;
  }

  /* Introduction */

  .mk-licenses__section-heading {
    padding: 42px 4px 30px;
  }

  .mk-licenses__section-heading h2 {
    font-size: clamp(28px, 7vw, 37px);
  }

  .mk-licenses__section-heading p {
    font-size: 13px;
  }

  /* Cartes légèrement moins larges */

  .mk-licenses__grid {
    width: calc(100% - 20px);
    margin-inline: auto;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .mk-licenses__card {
    border-radius: 24px;
  }

  .mk-licenses__media {
    aspect-ratio: 4/3;
  }

  .mk-licenses__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .mk-licenses__card-content {
    min-height: 220px;
    padding: 23px 19px 27px;
  }

  .mk-licenses__card-logo {
    height: 65px;
  }

  .mk-licenses__card-logo img {
    max-width: 165px;
    height: 55px;
  }

  /* Bandeau final mobile */

  .mk-licenses__outro {
    margin-top: 46px;
    min-height: 420px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 35px 26px;
    gap: 8px;
    border-radius: 25px;

    background-image: url("https://milkids.fr/wp-content/uploads/2026/11/Cadeau-violet-scintillant-parmi-les-nuages-pastel-1.png");
    background-size: cover;
    background-position: center bottom;
  }

  .mk-licenses__outro::before {
    background: linear-gradient(
      180deg,
      rgba(250,236,255,.94) 0%,
      rgba(250,236,255,.7) 32%,
      transparent 70%
    );
  }

  .mk-licenses__outro h2 {
    font-size: 38px;
  }

  .mk-licenses__outro p {
    max-width: 290px;
    font-size: 13px;
    line-height: 1.6;
  }
}

/* ================= PETITS MOBILES ================= */

@media (max-width: 390px) {
  .mk-licenses__hero {
    height: 405px;
    min-height: 405px;
  }

  .mk-licenses__hero h1 {
    font-size: clamp(20px, 5.9vw, 24px);
  }

  .mk-licenses__hero p.mk-licenses__hero-description {
    font-size: 12.5px;
    max-width: 265px;
  }
}

/* ================= ACCESSIBILITÉ ================= */

@media (prefers-reduced-motion: reduce) {
  .mk-licenses *,
  .mk-licenses *::before,
  .mk-licenses *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* MILKIDS — HERO MOBILE : BRUME PREMIUM V8.2 */

@media (max-width: 600px) {

  .mk-licenses__hero-shade {
    background: linear-gradient(
      180deg,
      rgba(255,250,255,.94) 0%,
      rgba(255,250,255,.91) 19%,
      rgba(255,250,255,.76) 33%,
      rgba(255,250,255,.38) 47%,
      rgba(255,250,255,.08) 60%,
      transparent 73%
    );
  }

  .mk-licenses__hero p.mk-licenses__hero-description {
    position: relative;
    z-index: 1;
    max-width: 290px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    text-shadow: none;
  }

  .mk-licenses__hero h1 {
    text-shadow: none;
  }

}



/* Nouvelles licences uniquement */
.mk-licenses__card--dynamic {--card-bg:#f8f5ff;--media-bg:linear-gradient(135deg,#f4eaff,#e4f3ff)}
.mk-licenses__card--dynamic .mk-licenses__card-logo,.mk-licenses__nav-link--dynamic span {font-weight:700;color:#2e2b78;text-align:center}
.mk-licenses__nav-link--dynamic span{font-size:13px}

/* v2.0.5 : uniquement les nouvelles licences ACF.
   La variable --card-bg est définie en inline si la couleur ACF existe. */
.mk-licenses .mk-licenses__card--dynamic .mk-licenses__card-content {
  color: #2e2b78;
}
.mk-licenses .mk-licenses__card--dynamic .mk-licenses__card-content p {
  color: #29245f;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}
.mk-licenses .mk-licenses__card--dynamic .mk-licenses__card-content .mk-licenses__btn {
  color: #2e2b78 !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}
.mk-licenses .mk-licenses__card--dynamic .mk-licenses__card-content .mk-licenses__btn:disabled {
  opacity: 1;
}
@media (max-width: 600px) {
  .mk-licenses .mk-licenses__card--dynamic .mk-licenses__card-content p {
    font-size: 14px;
  }
}
