/* ============================================================
   Page "Nos solutions" — index interactif animé
   Grande liste typographique avec photo réelle et descriptif
   par ligne, entrée en fondu au scroll.
   ============================================================ */

.navbar{ position: fixed !important; }

/* ── HERO ── */
.sxi-hero{
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 150px 20px 60px;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(13,69,132,0.5) 0%, rgba(9,32,64,0.45) 100%),
    url('../images/services/nos-solutions.webp');
  background-size: cover;
  background-position: center bottom;
}
@media (max-width: 768px){
  .sxi-hero{
    background:
      linear-gradient(160deg, rgba(13,69,132,0.5) 0%, rgba(9,32,64,0.45) 100%),
      url('../images/services/nos-solutions-mobile.webp');
    background-size: cover;
    background-position: center bottom;
  }
}
.sxi-hero h1,
.sxi-hero p{
  position: relative;
  z-index: 2;
}
.sxi-hero h1{
  font-family: 'Inter', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: #fff;
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.25;
}
.sxi-hero p{
  color: rgba(255,255,255,0.92);
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── LISTE INTERACTIVE ── */
.sxi-list-section{
  background:
    radial-gradient(circle at 8% 15%, rgba(13,69,132,0.06) 0%, transparent 45%),
    radial-gradient(circle at 95% 85%, rgba(239,169,6,0.08) 0%, transparent 40%),
    #fff;
  padding: 18px 20px 30px;
  position: relative;
}
.sxi-list{
  max-width: 1140px;
  margin: 0 auto;
  border-top: 1px solid #e6eaf1;
}
.sxi-item{
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 36px 14px;
  border-bottom: 1px solid #e6eaf1;
  text-decoration: none;
  color: #0D4584;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .8s cubic-bezier(.16,1,.3,1),
    transform .8s cubic-bezier(.16,1,.3,1),
    color .3s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.sxi-item.is-visible{
  opacity: 1;
  transform: none;
}
.sxi-item:hover,
.sxi-item:focus-visible{
  color: #efa906;
}
.sxi-item:focus-visible{
  outline: 2px solid #efa906;
  outline-offset: 6px;
}
.sxi-item-img{
  flex-shrink: 0;
  width: 260px;
  height: 175px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(13,69,132,0.16);
}
.sxi-item-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.sxi-item:hover .sxi-item-img img,
.sxi-item:focus-visible .sxi-item-img img{
  transform: scale(1.08);
}
.sxi-item-main{
  flex: 1;
  min-width: 0;
}
.sxi-num{
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c3cad6;
  margin-bottom: 6px;
  transition: color .3s ease;
}
.sxi-item:hover .sxi-num,
.sxi-item:focus-visible .sxi-num{ color: #efa906; }
.sxi-name{
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  line-height: 1.15;
  color: inherit;
  margin-bottom: 10px;
}
.sxi-desc{
  display: block;
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.65;
  max-width: 560px;
}
.sxi-arrow{
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #e6eaf1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0D4584;
  transition: transform .35s cubic-bezier(.65,.05,.36,1), background .3s ease, color .3s ease, border-color .3s ease;
}
.sxi-arrow svg{
  width: 26px;
  height: 26px;
}
.sxi-item:hover .sxi-arrow,
.sxi-item:focus-visible .sxi-arrow{
  background: #efa906;
  border-color: #efa906;
  color: #111;
  transform: translateX(6px);
}

/* ── COMMENT CHOISIR ── */
.sxi-guide{
  padding: 70px 20px;
  background: #f7f9fc;
}
.sxi-guide-inner{
  max-width: 900px;
  margin: 0 auto;
}
.sxi-guide h2{
  font-family: 'Inter', sans-serif;
  text-align: center;
  color: #0D4584;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 40px;
}
.sxi-guide-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.sxi-guide-card{
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e6eaf1;
  border-top: 3px solid #efa906;
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: 0 10px 30px rgba(13,69,132,0.06);
  transition: transform .2s ease, border-top-color .2s ease, box-shadow .2s ease;
}
.sxi-guide-card:hover{
  transform: translateY(-3px);
  border-top-color: #0D4584;
  box-shadow: 0 14px 36px rgba(13,69,132,0.1);
}
.sxi-guide-icon{
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #fdf1d6;
  color: #0D4584;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: color .2s ease;
}
.sxi-guide-icon svg{
  width: 30px;
  height: 30px;
}
.sxi-guide-card:hover .sxi-guide-icon{ color: #efa906; }
.sxi-guide-card strong{
  display: block;
  color: #111;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.sxi-guide-desc{
  display: block;
  font-size: 0.9rem;
  color: #6b7688;
  line-height: 1.6;
  margin-bottom: 18px;
}
.sxi-guide-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #efa906;
  transition: gap .25s cubic-bezier(.65,.05,.36,1), color .2s ease;
}
.sxi-guide-link i{
  font-size: 0.8rem;
  transition: transform .25s cubic-bezier(.65,.05,.36,1);
}
.sxi-guide-link svg{
  width: 16px;
  height: 16px;
  transition: transform .25s cubic-bezier(.65,.05,.36,1);
}
.sxi-guide-card:hover .sxi-guide-link{
  color: #0D4584;
  gap: 12px;
}
.sxi-guide-card:hover .sxi-guide-link i{
  transform: translateX(3px);
}

@media (max-width: 860px){
  .sxi-item{ flex-wrap: wrap; gap: 18px; padding: 26px 4px; }
  .sxi-item-img{ width: 100%; height: 200px; order: -1; }
  .sxi-arrow{ display: none; }
}

@media (max-width: 720px){
  .sxi-hero{ padding: 110px 20px 46px; }
  .sxi-guide-grid{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  .sxi-item{ transition: none; opacity: 1; transform: none; }
}
