  /* ============================================================
   Menu Profil ICR — Feuille de style
   ============================================================ */

.menu-profil {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  font-family: var(--e-global-typography-accent-font-family ), Sans-serif;
}

/* Blocs carrés */
.menu-col {
  background: var(--e-global-color-primary);
  color: #fff;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Titre */
.menu-title {
  min-height: 40%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 200;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  transition: height .3s ease, min-height .3s ease;
  user-select: none;
  text-transform: uppercase;
}

/* Sous-menu */
.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 70%;
  transform: translateY(100%);
  transition: transform .3s ease;
}

/* Hauteur dynamique par lien — définie via JS */
.submenu li {
  height: var(--h-link, 25%);
}

/* Alternance de couleurs */
.submenu li:nth-child(odd)  { background: #f2f2f2; }
.submenu li:nth-child(even) { background: #e5e5e5; }

/* Liens */
.submenu a {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  text-decoration: none;
  color: var(--e-global-color-primary);
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  transition: background .15s ease;
}

.submenu a:hover {
  color: var(--e-global-color-primary);
  background: #FFF;
}
.submenu a[target="_blank"]::after {
  content:"";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('/wp-content/uploads/2026/06/arrow-up-right-from-square-solid-full.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
/* Flèche */
.submenu a span {
  font-size: 20px;
  line-height: 1;
}
.submenu a[target="_blank"] span {display: none;}

/* ---- État ouvert ---- */
.menu-col.active .submenu {
  height: 60%;
  transform: translateY(0);
}

.menu-col.active .menu-title {
  height: 40%;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .menu-title {
    font-size: 28px;
  }
  .submenu a {
    font-size: 14px;
  }
  .menu-profil {
    gap:9px;
  }
}
@media (max-width: 767px) {
  .menu-profil {
    grid-template-columns: 1fr;
  }

  .menu-col {
    aspect-ratio: unset;
    min-height: 80px;
  }

  .menu-col.active {
    min-height: 280px;
  }

  .menu-title {
    font-size: 18px;
    min-height: 80px;
  }
}
