/* ============================================================
   KARUWEB — Page À propos
   SECTION 6 : CE QUE NOUS FAISONS — Nos expertises
   Fichier : section-06-expertises.css
   Pas de variables CSS — titres #FFFFFF — texte #ECE9F2
   ============================================================ */

/* ── Reset minimal ── */
.kwe *,
.kwe *::before,
.kwe *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   SECTION WRAPPER
   ============================================================ */
.kwe {
  position: relative;
  width: 100%;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;

  background:
    radial-gradient(ellipse at 50% 0%,   #3D0A50 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, #3D0A50 0%, transparent 60%),
    #0A0118;

  border-top:    0.5px solid #241A30;
  border-bottom: 0.5px solid #241A30;
}

/* ── Container ── */
.kwe__container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

/* ============================================================
   EN-TÊTE
   ============================================================ */
.kwe__header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Label */
.kwe__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FF7FC2;
}

.kwe__label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: #FF7FC2;
  border-radius: 2px;
}

/* H2 */
.kwe__h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #FFFFFF;
}

/* ============================================================
   GRILLE EXPERTISES
   ============================================================ */
.kwe__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 0.5px solid #3A2D52;
  border-radius: 22px;
  overflow: hidden;
}

/* ============================================================
   CARTE / LIEN EXPERTISE
   ============================================================ */
.kwe__card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #13082A;
  text-decoration: none;
  border-bottom: 0.5px solid #241A30;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}

.kwe__card:last-child {
  border-bottom: none;
}

.kwe__card:hover {
  background: #1A0F33;
}

/* Barre rose à gauche au hover */
.kwe__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2.5px;
  background: #FF7FC2;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.kwe__card:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

/* ── Ligne principale de la carte ── */
.kwe__card-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 36px;
}

/* ── Icône ── */
.kwe__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 127, 194, 0.08);
  border: 0.5px solid rgba(255, 127, 194, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FF7FC2;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.kwe__card:hover .kwe__icon {
  background: rgba(255, 127, 194, 0.16);
  border-color: rgba(255, 127, 194, 0.45);
  box-shadow: 0 0 18px rgba(255, 127, 194, 0.15);
}

/* ── Corps texte ── */
.kwe__card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.kwe__card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.015em;
  line-height: 1.2;
  transition: color 0.2s;
}

.kwe__card:hover .kwe__card-title {
  color: #FF7FC2;
}

.kwe__card-desc {
  font-size: 0.85rem;
  color: #ECE9F2;
  line-height: 1.5;
}

/* ── Flèche ── */
.kwe__card-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid #3A2D52;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B6080;
  transition: all 0.25s;
}

.kwe__card:hover .kwe__card-arrow {
  border-color: #FF7FC2;
  color: #FF7FC2;
  background: rgba(255, 127, 194, 0.10);
  transform: translateX(4px);
}

/* ── Label lien (masqué par défaut, apparaît au hover) ── */
.kwe__card-link-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #FF7FC2;
  padding: 0 36px 0 116px; /* aligne avec le texte (56px icône + 24px gap + 36px padding) */
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.25s ease, opacity 0.2s ease, padding-bottom 0.25s ease;
}

.kwe__card:hover .kwe__card-link-label {
  height: 36px;
  opacity: 1;
  padding-bottom: 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablette ── */
@media (max-width: 1024px) {
  .kwe__container {
    padding: 72px 28px;
    gap: 40px;
  }

  .kwe__card-inner {
    padding: 28px 28px;
    gap: 20px;
  }

  .kwe__card-link-label {
    padding-left: 104px;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .kwe__container {
    padding: 56px 20px 64px;
    gap: 32px;
  }

  .kwe__grid {
    border-radius: 16px;
  }

  .kwe__card-inner {
    padding: 24px 20px;
    gap: 16px;
  }

  .kwe__icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
  }

  .kwe__icon svg {
    width: 20px;
    height: 20px;
  }

  .kwe__card-title {
    font-size: 0.95rem;
  }

  .kwe__card-desc {
    font-size: 0.8rem;
  }

  /* Sur mobile on masque le label lien, la flèche suffit */
  .kwe__card-link-label {
    display: none;
  }

  .kwe__card-arrow {
    width: 30px;
    height: 30px;
  }
}