/* =============================================
   TRAINING / FORMATIONS — Glassmorphism Redesign
   ============================================= */

h1.header { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }

.formations__banner {
  width: 100%; position: relative;
  background-image: url("https://res.cloudinary.com/dcmwkybbr/image/upload/v1773172682/formation-nativo/jason-goodman-vbxyFxlgpjM-unsplash_indd4d.jpg");
  background-repeat: no-repeat; background-size: cover; background-position: center;
  padding: 2rem 7vw; display: flex;
}

.formations__banner::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(3, 169, 245, 0.45) 0%, rgba(41, 41, 41, 0.75) 50%, rgba(61, 90, 128, 0.55) 100%);
  z-index: 1;
}

.top__content { max-width: 1920px; width: 75%; margin: 0 auto; z-index: 10; color: white; text-align: center; }
.top__content-title { font-size: 2.2rem; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

.formations__wrapper { width: 100%; padding: 1rem 5vw 2rem; display: flex; align-items: flex-start; justify-content: flex-start; gap: 1rem; }
.formations__wrapper .left { width: calc(25% - 1rem / 3); }

.formations__wrapper .left .left-content-domaines {
  background: rgba(255,255,255,0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 16px;
  display: flex; justify-content: start; align-items: start; flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem;
  box-shadow: 0 4px 20px rgba(31,38,135,0.1);
}

.left-header { padding: 0.5rem; background: rgba(255,255,255,0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 10px; margin-bottom: 0.5rem; font-weight: 600; }

.formations__wrapper .right { width: calc(51% - 1rem / 3); }
.formations__wrapper .right .right-content-trainings { width: 100%; }
.formations__wrapper .clients { width: calc(24% - 1rem / 3); overflow: hidden; }
.clients a { display: block; }

.clients .clients-top {
  padding: 1rem; background: rgba(255,255,255,0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 16px; margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(31,38,135,0.1);
}

.star { display: flex; }
.domaine__card { padding: 0.1rem; width: calc(50% - 0.25rem); }
.domaine__card .header {
  display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis; background-color: var(--title-color); color: white;
  font-size: 12px; font-weight: 400; padding: 0.3rem 0.5rem; cursor: pointer; border-radius: 8px;
}
.domaine__card .cat { padding: 0.2rem; }
.domaine__card .cat a { font-size: 12px; text-overflow: ellipsis; white-space: nowrap; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.right-content-trainings .header { color: var(--title-color); }
.trainings__wrapper { margin-bottom: auto; }
.domaine__card .cat span { color: var(--primary-color); }
.formations__wrapper .right .header { font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; }
.formations__wrapper .right .header span { color: var(--primary-color); }

/* ==========================================================
   Category Card — V3 Outlined
   ========================================================== */
.cat-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 1.1rem; margin-bottom: 0.5rem;
  background: #fff; border-radius: 14px;
  border: 1.5px solid rgba(3,169,245,0.25);
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 4px 20px rgba(3,169,245,0.08);
  transition: all 0.3s ease; cursor: pointer;
}
.cat-card:hover { transform: translateX(4px); box-shadow: 0 6px 24px rgba(3,169,245,0.18); background: rgba(3,169,245,0.03); border-color: rgba(3,169,245,0.4); }
.cat-card .circle-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: rgba(3,169,245,0.12); border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  color: var(--title-color); font-size: 0.85rem; font-weight: 500;
  transition: all 0.35s ease;
}
.cat-card:hover .circle-icon {
  background: rgba(3,169,245,0.22);
}
.cat-card .info { flex: 1; min-width: 0; overflow: hidden; }
.cat-card .info h2 { font-size: 1.1rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-divider {
  width: 1.5px; align-self: stretch;
  background: rgba(3,169,245,0.3); flex-shrink: 0;
  transition: background 0.3s ease;
}
.cat-card:hover .cat-divider { background: rgba(3,169,245,0.5); }
.cat-card .badge {
  font-size: 0.65rem; font-weight: 600; color: var(--primary-color);
  background: rgba(3,169,245,0.08); padding: 0.2rem 0.55rem;
  border-radius: 4px; white-space: nowrap; flex-shrink: 0;
  border: 1px solid rgba(3,169,245,0.2);
  min-width: 100px; text-align: center;
  transition: all 0.3s ease;
}
.cat-card:hover .badge { background: rgba(3,169,245,0.12); border-color: rgba(3,169,245,0.3); }
.cat-card .chevron { color: var(--primary-color); font-size: 1.3rem; flex-shrink: 0; transition: all 0.3s; }
.cat-card:hover .chevron { transform: translateX(3px); }

/* ==========================================================
   Formation Card — V4 Glassmorphic
   ========================================================== */
.trn-card {
  margin-bottom: 0.6rem; border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,0.65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(3,169,245,0.25);
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 4px 16px rgba(31,38,135,0.08);
  transition: all 0.35s ease; cursor: pointer;
  position: relative;
}
.trn-card::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 15% 50%, rgba(3,169,245,0.06), transparent 50%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.trn-card:hover::before { opacity: 1; }
.trn-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(3,169,245,0.2); background: rgba(255,255,255,0.9); border-color: rgba(3,169,245,0.4); }
.trn-card .top-row {
  padding: 0.8rem 1rem 0.5rem; display: flex; align-items: center; gap: 0.75rem;
  position: relative; z-index: 1;
}
.trn-card .circle-icon {
  width: 30px; height: 30px; min-width: 30px;
  background: rgba(3,169,245,0.12); border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  color: var(--title-color); font-size: 0.75rem; font-weight: 500;
  transition: all 0.35s ease;
}
.trn-card:hover .circle-icon {
  background: rgba(3,169,245,0.22);
}
.trn-card .top-row h2 { font-size: 0.95rem; font-weight: 500; flex: 1; transition: color 0.3s; }
.trn-card:hover .top-row h2 { color: #0277bd; }
.trn-card .ref {
  font-size: 0.65rem; font-weight: 600; color: var(--primary-color);
  background: rgba(3,169,245,0.08); padding: 0.15rem 0.5rem;
  border-radius: 4px; white-space: nowrap; flex-shrink: 0;
  border: 1px solid rgba(3,169,245,0.12);
  transition: all 0.3s;
}
.trn-card:hover .ref { background: rgba(3,169,245,0.12); border-color: rgba(3,169,245,0.25); }
.trn-card .bottom-bar {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.5rem 1rem 0.5rem 3.75rem;
  background: rgba(248,250,252,0.7); border-top: 1px solid rgba(3,169,245,0.08);
  position: relative; z-index: 1;
}
.trn-card .dur { font-size: 0.75rem; color: #5a7088; display: flex; align-items: center; gap: 0.25rem; }
.trn-card .dur svg { width: 13px; height: 13px; }

.client__header .top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.client__header .top__left h2 { font-size: 15px; color: var(--primary-color); font-weight: 500; text-transform: uppercase; white-space: nowrap; }
.client__header p { font-weight: 500; font-size: 0.8rem; margin: 0.5rem 0; }
.client__header .top__right { padding: 0.5rem; background-color: var(--title-color); border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.client-container { display: flex; align-items: center; justify-content: center; padding-top: 1.2rem; padding-bottom: 0.4rem; overflow: hidden; }
.bull { width: 170px; height: 170px; max-width: 100%; overflow: hidden; }
.client__header .top__right svg { fill: rgb(228, 228, 5); }
.client-logo { width: 100%; height: 160px; object-fit: contain; max-width: 170px; }
.empty-placeholder { padding: 2rem 0; font-weight: 300; font-size: 1rem; }
.formations__wrapper .hidden { display: none; }

@media only screen and (max-width: 1200px) {
  .formations__wrapper { gap: 1rem; flex-wrap: wrap; }
  .top__content { width: 90%; }
  .formations__wrapper .left { width: 100%; }
  .formations__wrapper .left .left-content-domaines { width: 100%; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: none; box-shadow: none; padding: 0; display: flex; align-items: start; justify-content: flex-start; flex-wrap: wrap; gap: 0.5rem; }
  .formations__wrapper .right { width: 100%; }
  .formations__wrapper .visible { display: none; }
  .formations__wrapper .hidden { display: block; }
  .formations__wrapper .clients { width: 100%; display: flex; align-items: start; justify-content: start; gap: 1rem; flex-wrap: wrap; }
  .domaine__card { width: calc(22.5% - 0.25rem); }
}

@media only screen and (max-width: 876px) {
  .formations .content { gap: 1rem; padding: 0; }
  .top__content { width: 100%; }
  .formations .content .title { font-size: 1.4rem; }
  .formations__wrapper .right { width: 100%; }
  .formations__wrapper .right .right-content-trainings { width: 100%; }
  .formations__wrapper .clients { width: 100%; }
  .formations__wrapper .clients .block { width: calc(100% / 2 - 1rem / 2); }
  .domaine__card .header { border-radius: 30px; font-size: 13px; padding: 0.4rem 0.6rem; }
  .domaine__card .cat { display: none; }
  .domaine__card { width: calc(25% - 0.25rem); }
}

@media only screen and (max-width: 560px) {
  .formations .content { gap: 1rem; }
  .formations .content .title { font-size: 1.1rem; }
  .domaine__card .header { padding: 0.3rem; }
  .formations__wrapper .right .header { font-size: 16px; }
  .formations__wrapper .right { width: 100%; }
  .formations__wrapper .right .right-content-trainings { width: 100%; }
  .formations__wrapper .clients .block { width: 100%; }
  .domaine__card { width: calc(50% - 0.25rem); }
}

.pagination-container { margin-top: 1rem; display: flex; align-items: start; justify-content: center; gap: 1rem; }
.pagination-button { font-size: 1rem; cursor: pointer; }
.pagination-numbers { margin: 0 1rem; display: flex; align-items: center; justify-content: center; flex-direction: row !important; flex-wrap: nowrap; gap: 7px; }
.pagination-number { font-size: 0.9rem; background-color: transparent; border: 1px solid #03a8f537; cursor: pointer; width: 25px !important; height: 25px !important; max-width: 25px; aspect-ratio: 1/1; border-radius: 50%; color: var(--title-color); display: flex; align-items: center; justify-content: center; }
.pagination-number:hover, .pagination-button:not(.disabled):hover { background: #fff; }
.active-number { color: white; background: var(--primary-color); }
.active-number:hover { color: white; }
.hidden { display: none; }
.prev-btn, .next-btn { cursor: pointer; }

.formations__wrapper.no-sidebar { max-width: 1200px; margin: 0 auto; gap: 1.5rem; }
.formations__wrapper.no-sidebar .right { width: calc(70% - 1.5rem / 2); min-width: 0; }
.formations__wrapper.no-sidebar .clients { width: calc(30% - 1.5rem / 2); overflow: hidden; }

.nos-formations-inline__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 0.5rem; margin-bottom: 1rem;
}

.right-content-trainings > .nos-formations-bottom__title { margin-top: 2rem; }

@media only screen and (max-width: 876px) {
  .nos-formations-inline__grid { grid-template-columns: repeat(2, 1fr); }
}
@media only screen and (max-width: 560px) {
  .nos-formations-inline__grid { grid-template-columns: repeat(2, 1fr); }
}

.nos-formations-bottom {
  padding: 2rem 5vw;
  background: linear-gradient(180deg, #edf5fc 0%, #f8f8f8 100%);
  border-top: none;
}

.nos-formations-bottom__title {
  font-size: 1.1rem; font-weight: 600; color: var(--title-color);
  margin-bottom: 1.2rem; padding-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--title-color), var(--primary-color));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  border-bottom: 2px solid var(--primary-color); display: inline-block;
}

.nos-formations-bottom__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }

.nos-formations-bottom__card {
  background: rgba(255,255,255,0.65); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 16px; overflow: hidden;
  transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(31,38,135,0.1);
}
.nos-formations-bottom__card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(3,169,245,0.2); background: rgba(255,255,255,0.85); }

.nos-formations-bottom__card--active { border-color: rgba(3,169,245,0.4); box-shadow: 0 4px 20px rgba(3,169,245,0.18); }
.nos-formations-bottom__card--active .nos-formations-bottom__card-header {
  background: linear-gradient(135deg, var(--primary-color), rgba(3,169,245,0.85));
}

.nos-formations-bottom__card-header {
  background: linear-gradient(135deg, var(--title-color), rgba(61,90,128,0.85));
  color: white; font-size: 0.8rem; font-weight: 500; padding: 0.6rem 0.75rem;
  border-radius: 16px 16px 0 0;
  display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
}

.nos-formations-bottom__card-links { padding: 0.6rem 0.75rem; display: flex; flex-direction: column; gap: 0.35rem; }
.nos-formations-bottom__card-links a { font-size: 0.75rem; color: var(--title-color); display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s ease; }
.nos-formations-bottom__card-links a:hover { color: var(--primary-color); }
.nos-formations-bottom__see-all { color: var(--primary-color) !important; font-weight: 500; font-size: 0.72rem !important; margin-top: 0.2rem; }

@media only screen and (max-width: 1200px) {
  .formations__wrapper.no-sidebar .right { width: 100%; }
  .formations__wrapper.no-sidebar .clients { width: 100%; display: flex; align-items: start; justify-content: start; gap: 1rem; flex-wrap: wrap; }
}

@media only screen and (max-width: 560px) {
  .nos-formations-bottom__grid { grid-template-columns: repeat(2, 1fr); }
  .formations__wrapper.no-sidebar .clients .block { width: 100%; }
}
