* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: #f6f4fb;
  color: #252233;
  line-height: 1.6;
}

.methodes-hero {
  min-height: 430px;
  position: relative;
  color: white;
  overflow: hidden;
  padding: 32px 8% 140px;

  background:
    radial-gradient(circle at 85% 25%, rgba(165, 230, 210, 0.25), transparent 30%),
    linear-gradient(90deg, rgba(25, 20, 80, 0.82), rgba(78, 69, 219, 0.65)),
    linear-gradient(120deg, #4e45db 0%, #6f72f4 45%, #9bc5ff 100%);
}

.methodes-hero::after {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -95px;
  width: 116%;
  height: 180px;
  background: #f6f4fb;
  border-radius: 50% 50% 0 0;
}

.methodes-nav {
  position: relative;
  z-index: 2;
}

.back-link {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.back-link:hover {
  background: white;
  color: #5148c7;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-top: 76px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 0.9rem;
  opacity: 0.9;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin: 12px 0 22px;
  font-weight: 800;
}

.hero-text {
  font-size: 1.15rem;
  max-width: 680px;
  font-weight: 600;
}

main {
  max-width: 980px;
  margin: -130px auto 70px; /* ← valeur plus négative */
  padding: 0 24px;
  position: relative;
  z-index: 4;
}

.tool-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  align-items: center;
  padding: 42px;
  background:
    radial-gradient(circle at 95% 20%, rgba(108, 99, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff, #f8f7ff);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: 30px;
  box-shadow: 0 18px 46px rgba(60, 50, 130, 0.15);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border-radius: 28px;
  background: #eeeaff;
}

.apa-logo {
  width: 150px;
  max-width: 80%;
}

.tool-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.12);
  color: #5148c7;
  font-weight: 800;
  font-size: 0.9rem;
}

h2 {
  color: #5148c7;
  font-size: 2.2rem;
  margin: 0 0 12px;
}

.tool-content p {
  font-size: 1.05rem;
  color: #3b3750;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.features span {
  padding: 10px 16px;
  border-radius: 999px;
  background: white;
  color: #5148c7;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(60, 50, 130, 0.08);
}

.main-button {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #6c63ff;
  color: white;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(108, 99, 255, 0.28);
  transition: all 0.25s ease;
}

.main-button:hover {
  background: #5148c7;
  transform: translateY(-3px);
}

@media (max-width: 760px) {
  .methodes-hero {
    padding: 28px 6% 125px;
  }

  .hero-content {
    margin-top: 56px;
  }

  .tool-card {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    text-align: center;
  }

  .logo-wrapper {
    min-height: 150px;
  }

  .features {
    justify-content: center;
  }
}
.methodes-nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* AVATAR */

.nav-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* TOOLTIP */

.avatar-tooltip {
  position: relative;
}

.tooltip-bubble {
  position: absolute;
  top: 85px;
  right: 0;
  width: 280px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #302b45;
  border: 1px solid rgba(108, 99, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(60, 50, 130, 0.18);
  font-size: 0.9rem;
  line-height: 1.45;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 1200;
}

.tooltip-bubble strong {
  color: #5148c7;
}

/* petite flèche */
.tooltip-bubble::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 24px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.96);
  transform: rotate(45deg);
  border-left: 1px solid rgba(108, 99, 255, 0.18);
  border-top: 1px solid rgba(108, 99, 255, 0.18);
}

/* apparition au hover */
.avatar-tooltip:hover .tooltip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tool-card {
  box-shadow: 0 24px 60px rgba(60, 50, 130, 0.18);
}