/* Bento Grid Layout Styles */
.bento-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  grid-auto-rows: 22rem;
}

/* Ajustement pour la carte zéro risque */
.bento-grid.with-bottom-card {
  grid-template-rows: repeat(4, auto);
}

@media (max-width: 991px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.save-files,
  .bento-card.text-search,
  .bento-card.multilingual,
  .bento-card.calendar,
  .bento-card.notifications,
  .bento-card.zero-risk {
    grid-column: auto;
    grid-row: auto;
  }
  
  .bento-card.zero-risk {
    grid-column: 1 / 3;
  }
}

@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-card.zero-risk {
    grid-column: 1 / 2;
  }
  
  .bento-card {
    min-height: 15rem;
  }
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #000;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  transform: translateY(-10px);
}

.bento-card-content {
  z-index: 10;
  padding: 1.5rem;
  transition: all 0.3s ease;
  transform: translateZ(0);
}

.bento-card:hover .bento-card-content {
  transform: translateY(-10px);
}

.bento-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #f8f8f8;
  transition: all 0.3s ease;
  height: 3rem;
  width: 3rem;
  display: inline-block;
  transform-origin: left;
}

.bento-card:hover .bento-card-icon {
  transform: scale(0.75);
}

.bento-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f8f8f8;
}

.bento-card-description {
  color: #aaa;
  margin-bottom: 1rem;
  max-width: 100%;
}

.bento-card-cta {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.bento-card:hover .bento-card-cta {
  opacity: 1;
  transform: translateY(0);
}

.bento-card-cta-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.bento-card-cta-button:hover {
  background: rgba(255,255,255,0.1);
}

.bento-card-cta-button i {
  margin-left: 0.5rem;
}

.bento-card-overlay {
  position: absolute;
  inset: 0;
  transition: all 0.3s ease;
}

.bento-card:hover .bento-card-overlay {
  background-color: rgba(255,255,255,0.05);
}

/* Special layouts */
.bento-span-2 {
  grid-column: span 2;
}

.bento-span-3 {
  grid-column: span 3;
}

.bento-span-row-2 {
  grid-row: span 2;
}

/* Dark theme styles */
.dark-theme .bento-card {
  background-color: #000;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 -20px 80px -20px rgba(255,255,255,0.12) inset;
}

/* Layout specific to the example image */
.bento-card.save-files {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  background: linear-gradient(135deg, #000000, #aca0321e);
}

.bento-card.text-search {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  background: linear-gradient(135deg, #000000, #32ac461e);
}

.bento-card.multilingual {
  grid-column: 1 / 2;
  grid-row: 3 / 4;

  background: linear-gradient(135deg, #000000, #0a1a2a);
}

.bento-card.multilingual .bento-card-icon {
  color: #4a9fff;
  font-size: 2.5rem;
}

.bento-card.multilingual .bento-card-title {
  background: linear-gradient(90deg, #4a9fff, #00d2ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.bento-card.multilingual:hover .bento-card-icon {
  transform: scale(1.2) translateY(-5px);
}

.bento-card.calendar {
  grid-column: 3 / 3;
  grid-row: 1 / 2;
  background: linear-gradient(135deg, #000000, #329eac1e);
}



.bento-card.notifications {
  grid-column: 3 / 3;
  grid-row: 2 / 4;
  background: linear-gradient(135deg, #000000, #1a0a2a);
}

.bento-card.notifications .bento-card-icon {
  color: #8a2be2;
  font-size: 2.5rem;
  transition: all 0.5s ease;
}

.bento-card.notifications:hover .bento-card-icon {
  transform: rotate(20deg) scale(1.2);
}

.bento-card.notifications .bento-card-title {
  background: linear-gradient(90deg, #8a2be2, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.bento-card.text-search .bento-card-title {
  background: linear-gradient(90deg, #2be2ab, #22a378);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.bento-card.zero-risk .bento-card-title {
  background: linear-gradient(90deg, #e22b71, #f0589f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.bento-card.save-files .bento-card-title {
  background: linear-gradient(90deg, #c6e22b, #e4ce0f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.bento-card.calendar .bento-card-title {
  background: linear-gradient(90deg, #2baee2, #229ba3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.bento-card.notifications .bento-card-cta-button {
  background: rgba(138, 43, 226, 0.1);
  border-radius: 4px;
}

.bento-card.notifications .bento-card-cta-button:hover {
  background: rgba(138, 43, 226, 0.2);
}

.bento-card.zero-risk {
  grid-column: 1 / 4;
  grid-row: 4 / 5;
  height: auto;
  min-height: 18rem;
  padding-bottom: 2rem;
  background: linear-gradient(90deg, #000 0%, #1a1a1a 100%);
}

.bento-card.zero-risk .bento-card-icon {
  color: #ff3366;
}

.bento-card.zero-risk .bento-card-title {
  font-size: 1.8rem;
}

.bento-card.zero-risk .bento-card-content {
  padding: 2rem;
}

.bento-card.zero-risk .bento-card-description {
  max-width: 90%;
  margin-bottom: 2rem;
}

.bento-card.zero-risk .bento-card-cta-button {
  background: rgba(255, 51, 102, 0.1);
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
}

.bento-card.zero-risk .bento-card-cta-button:hover {
  background: rgba(255, 51, 102, 0.2);
}

.bento-card.multilingual .bento-card-icon {
  color: #4a9fff;
}

.bento-card.calendar .bento-card-icon {
  color: #38adbd;
}

.bento-card.calendar {
}

.bento-card.text-search .bento-card-icon {
  color: #4aff8f;
}

.bento-card.text-search {

}

.bento-card.save-files .bento-card-icon {
  color: #ffdd4a;
}

.bento-card.save-files {
  border: 1px solid rgba(255, 221, 74, 0.3);
}
