.contenu.howto-page {
  width: calc(99vw - var(--menu-w));
  max-width: none;
  margin-left: var(--menu-w);
  padding: 32px;
  box-sizing: border-box;
}

.howto-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  background:
  radial-gradient(
    circle at top left,
    rgba(111,75,42,.18),
    transparent 32%
  ),
  linear-gradient(
    135deg,
    rgba(255,252,246,.98),
    rgba(245,240,230,.94)
  );
  border: 1px solid rgba(20, 35, 70, 0.08);
  border-radius: 28px;
  padding: 34px 38px;
  margin-bottom: 34px;
  box-shadow: 0 18px 45px rgba(20, 35, 70, 0.08);
}

.howto-hero-logo {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(255,255,255,0.88);
  box-shadow: inset 0 0 0 1px rgba(20,35,70,0.08);
}

.howto-hero-logo img {
  max-width: 68px;
  max-height: 68px;
  object-fit: contain;
}

.howto-kicker {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5468ff;
}

.howto-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: #172033;
}

.howto-lead {
  max-width: 850px;
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #4d5873;
}

.howto-section {
  margin: 38px 0 48px;
}

.howto-section-head {
  margin-bottom: 18px;
  padding-left: 4px;
}

.howto-section-head h2 {
  margin: 0;
  font-size: 1.65rem;
  color: #172033;
}

.howto-section-head p {
  margin: 7px 0 0;
  max-width: 900px;
  line-height: 1.55;
  color: #66708a;
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 22px;
}

.BlocHowTo {
  position: relative;
  display: flex;
  gap: 16px;
  min-height: 150px;
  padding: 18px;

  background: var(--ax-surface);
  color: var(--ax-ink);

  border: 1px solid var(--ax-line);
  border-left: 4px solid var(--ax-noyer);

  border-radius: 0;

  box-shadow: var(--ax-shadow-md);

  transition:
    transform var(--ax-transition),
    box-shadow var(--ax-transition),
    border-color var(--ax-transition),
    background var(--ax-transition);
}

.BlocHowTo:hover{
  transform: translate(-1px, -1px);

  border-color: var(--ax-line-strong);

  box-shadow:
    6px 6px 0 rgba(32,33,36,.12),
    var(--ax-shadow-lg);
}

.howto-icon-wrap {
  flex: 0 0 90px;
  align-self: stretch;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;
  background: linear-gradient(135deg, rgba(84,104,255,0.12), rgba(84,180,255,0.10));
}

.BlocHowTo img {
  height: 100%;
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

.howto-card-content {
  min-width: 0;
}

.howto-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.BlocHowTo h3 {
  margin: 2px 0 0;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #1d2638;
}

.howto-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(84, 104, 255, 0.10);
  color: #475cff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.BlocHowTo p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: #5d667c;
}

.BlocHowTo a {
  color: #475cff;
  font-weight: 700;
  text-decoration: none;
}

.BlocHowTo a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .howto-page {
    padding: 22px;
  }

  .howto-hero {
    align-items: flex-start;
    padding: 26px;
    border-radius: 24px;
  }

  .howto-hero-logo {
    width: 78px;
    height: 78px;
    border-radius: 22px;
  }

  .howto-hero-logo img {
    max-width: 54px;
    max-height: 54px;
  }

  .BlocHowTo {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .howto-page {
    padding: 16px;
  }

  .howto-hero {
    flex-direction: column;
  }

  .howto-grid {
    grid-template-columns: 1fr;
  }

  .BlocHowTo {
    flex-direction: column;
  }

  .howto-icon-wrap {
    width: 56px;
    height: 56px;
  }

  .BlocHowTo img {
    max-width: 40px;
    max-height: 40px;
  }

  .howto-card-title {
    flex-direction: column;
    align-items: flex-start;
  }
}

.howto-summary {
  position: sticky;
  top: 12px;
  z-index: 20;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;

  margin: 0 0 32px;
  padding: 12px;

  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(20, 35, 70, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(20, 35, 70, 0.08);
  backdrop-filter: blur(8px);
}

.howto-summary a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align : center;

  padding: 8px 11px;
  border-radius: 999px;

  background: rgba(84, 104, 255, 0.08);
  color: #3342cc;

  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;

  transition:
    background-color 0.16s ease,
    transform 0.16s ease;
}

.howto-summary a:hover {
  background: rgba(84, 104, 255, 0.16);
  transform: translateY(-1px);
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

.howto-section {
  scroll-margin-top: 92px;
}
