/* =============================================
   HOMEPAGE — Glassmorphism Redesign
   ============================================= */

.home__hero {
  width: 100%;
  background-image: url("https://res.cloudinary.com/dcmwkybbr/image/upload/v1773172680/formation-nativo/jason-goodman-Oalh2MojUuk-unsplash_mm7rzk-scaled_hqm5ar.jpg") !important;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 4rem 7vw;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

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

.home__hero .content {
  z-index: 9;
}

.home__hero .content .title {
  max-width: 100%;
  color: white;
  margin: 0 auto 0;
  text-align: center;
  font-size: 2.2rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.home__hero .content .searchbar,
.home__hero .content > div {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 0.5rem;
  margin-bottom: 0;
  margin-top: 1.5rem;
}

.domaines-clients-wrapper {
  padding: 1.5rem 3vw;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 20px;
  position: relative;
  top: -3rem;
  z-index: 1;
}

.domaines .title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--title-color);
  position: relative;
  display: inline-block;
}

.domaines .title::after {
  display: none;
}

.domaines .list {
  width: 100%;
  margin: 1rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.domaines .list .domaine {
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: all 0.35s ease;
  position: relative;
  box-shadow: 0 4px 16px rgba(31, 38, 135, 0.08);
}

.domaine .arrow {
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.domaine .arrow svg {
  fill: var(--primary-color);
  height: 1.5rem;
}

.domaine:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(3, 169, 245, 0.2);
}

.domaine .box {
  width: 30px;
  height: 30px;
  background-color: white;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.domaine .box svg { fill: var(--primary-color); }

.domaine img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 5px;
}

.domaine .line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}

.domaines .list .domaine h3 {
  font-size: 0.85rem;
  font-weight: 500;
}

.client-title {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 0.75rem;
}

.client-title h2 {
  color: var(--title-color);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.title {
  font-size: 1.2rem;
  font-weight: 600;
}

.clients-container {
  max-width: 1200px;
  margin: 1rem auto 0;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(31, 38, 135, 0.1);
  padding: 1rem 0;
}

.clients-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.clients-track:hover {
  animation-play-state: paused;
}

.clients-container .client {
  flex: 0 0 auto;
  height: 80px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clients-container .client .client-logo {
  width: 120px;
  height: 60px;
  object-fit: contain;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.wrapper {
  background: linear-gradient(180deg, #f0f7fc 0%, #f8f8f8 100%);
}

.wrapper .teacher-validation {
  padding: 2rem 10vw;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.teacher-validation .left { width: 50%; }

.teacher-validation .left img {
  width: 100%;
  height: 100%;
  min-height: 20rem !important;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.teacher-validation .right {
  width: 50%;
  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: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
}

.teacher-validation .right h2 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.teacher-validation .right p {
  font-size: 0.9rem;
  line-height: 1.35rem;
  margin-bottom: 0.5rem !important;
}

@media only screen and (max-width: 1300px) {
  .domaines-clients-wrapper { max-width: 1000px; }
  .domaines .list { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

@media only screen and (max-width: 876px) {
  .home__hero .trainings { max-width: 90%; margin: 0 auto; }
  .clients-container { max-width: 90%; }
  .teacher-validation .left img { height: 300px; }
  .teacher-validation .right .hidden { display: none; }
}

@media only screen and (max-width: 520px) {
  .home__hero { padding: 3rem 5vw; }
  .home__hero .content .title { width: 100%; font-size: 1.5rem; }
  .home__hero .content .searchbar { width: 100%; }
  .title { font-size: 1rem; }
  .clients-container img { width: 90px; height: 90px; }
  .clients-container { max-width: 100%; }
  .clients-container .client { padding: 0 1rem; }
  .clients-container .client .client-logo { width: 90px; height: 45px; }
  .domaines-clients-wrapper { max-width: 95%; padding: 1rem 2.5vw; top: -2rem; }
  .domaines .list { width: 100%; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .domaine img { width: 35px; height: 35px; }
  .domaines .list .domaine h3 { font-size: 0.72rem; }
  .domaines .list .domaine { padding: 0.5rem 0.3rem; border-radius: 12px; }
  .wrapper .teacher-validation { padding: 1.5rem 5vw; }
  .teacher-validation { flex-direction: column; gap: 1rem; }
  .teacher-validation .left { width: 100%; }
  .teacher-validation .left img { width: 100%; min-height: auto !important; height: 200px; }
  .teacher-validation .right { width: 100%; padding: 1.25rem; }
  .teacher-validation .right h2 { font-size: 1rem; }
  .teacher-validation .right p { font-size: 13px; }
  .teacher-validation .right .read-more { font-size: 13px; }
  .nos-formations-bottom { padding: 2rem 4vw; }
  .nos-formations-bottom__title { font-size: 1.1rem; }
}

@media only screen and (max-width: 350px) {
  .home__hero .content .title { font-size: 1.2rem; }
}


/* Qualiopi Badge */
.qualiopi-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  width: fit-content;
}

.qualiopi-badge img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.qualiopi-badge span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--title-color);
}

/* Stats Block */
.expertise-stats {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.expertise-stat-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  flex: 1;
  text-align: center;
  box-shadow: 0 4px 16px rgba(31, 38, 135, 0.08);
}

.expertise-stat-card .stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.expertise-stat-card .stat-label {
  font-size: 0.65rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Nos Formations — Elevated Cards */
.nos-formations-bottom {
  padding: 3rem 5vw;
  background: linear-gradient(180deg, #f0f7fc 0%, #f8f8f8 100%);
  border-top: 2px solid rgba(3, 169, 245, 0.12);
}

.nos-formations-bottom__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.nos-formations-bottom__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  border-radius: 2px;
}

.nos-formations-bottom__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.nos-formations-bottom__card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(31, 38, 135, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.nos-formations-bottom__card:hover {
  box-shadow: 0 8px 32px rgba(3, 169, 245, 0.18);
  transform: translateY(-2px);
}

.nos-formations-bottom__card-header {
  background: linear-gradient(135deg, var(--title-color), #5a7fa3);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nos-formations-bottom__card-header span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nos-formations-bottom__card-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.nos-formations-bottom__card-links {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nos-formations-bottom__card-links li {
  position: relative;
  padding-left: 0.85rem;
}

.nos-formations-bottom__card-links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.nos-formations-bottom__card-links a {
  font-size: 0.78rem;
  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: 600;
  font-size: 0.76rem !important;
  display: inline-block;
  transition: transform 0.2s ease;
}

.nos-formations-bottom__see-all:hover {
  transform: translateX(4px);
}

.nos-formations-bottom__card-links li:last-child::before {
  display: none;
}

.nos-formations-bottom__card-links li:last-child {
  padding-left: 0;
  margin-top: 0.15rem;
}

@media only screen and (max-width: 1200px) {
  .nos-formations-bottom__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (max-width: 560px) {
  .nos-formations-bottom__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .expertise-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.large-banner { max-width: 100vw !important; }
