/* =============================================
   SOLUTIONS - 2 grandes cartes photo (Digital / IA)
   ============================================= */

#solutions {
  background: var(--bg2);
  padding: 100px 6vw 110px;
}

.solutions-header { margin-bottom: 40px; }
.solutions-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--dark);
}
.solutions-header h2 span { color: var(--orange); }

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.solution-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 480px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-decoration: none;
  background: var(--dark);
  box-shadow: 0 30px 60px -30px rgba(26, 26, 46, .45);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s;
}
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 80px -30px rgba(139, 21, 56, .55);
}

.solution-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.04);
  transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
}
.solution-card:hover .solution-img { transform: scale(1.12); }

/* Dégradé pour la lisibilité du texte */
.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 14, 22, 0) 35%, rgba(14, 14, 22, .55) 65%, rgba(14, 14, 22, .92) 100%);
  transition: opacity .6s;
}
.solution-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(139, 21, 56, 0) 30%, rgba(139, 21, 56, .55) 100%);
  opacity: 0;
  transition: opacity .6s;
}
.solution-card--ia::after { background: linear-gradient(180deg, rgba(124, 92, 255, 0) 30%, rgba(196, 30, 94, .55) 100%); }
.solution-card:hover::after { opacity: 1; }

.solution-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(10px);
  transition: transform .6s cubic-bezier(.34, 1.45, .5, 1), background .4s, color .4s;
}
.solution-card:hover .solution-arrow {
  transform: rotate(45deg) scale(1.08);
  background: #fff;
  color: var(--dark);
}

.solution-bottom { padding: 36px; }
.solution-bottom h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.solution-bottom p {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}
.solution-card:hover .solution-bottom h3 { transform: translateY(-4px); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: 380px; }
}
@media (max-width: 600px) {
  #solutions { padding: 70px 5vw 80px; }
  .solution-card { min-height: 300px; border-radius: 22px; }
  .solution-bottom { padding: 24px; }
  .solution-arrow { width: 46px; height: 46px; font-size: 18px; top: 18px; right: 18px; }
  .solution-bottom p { font-size: 12px; }
  .solution-bottom h3 { font-size: clamp(24px, 7.4vw, 30px); overflow-wrap: anywhere; }
}
