/* Composant Recherche de subventions, limité à la page Services. */
.dr3-grants,
.dr3-grants * {
  box-sizing: border-box;
}

.dr3-grants {
  --dr3-orange: #ff6a00;
  --dr3-dark: #171717;
  --dr3-muted: #c8c8cc;
  max-width: 1220px;
  margin: 48px auto;
  padding: clamp(32px, 5.2vw, 72px);
  overflow: hidden;
  border-radius: 22px;
  background: var(--dr3-dark);
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dr3-grants__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.dr3-grants__intro {
  max-width: 740px;
}

.dr3-grants__eyebrow {
  margin: 0 0 12px;
  color: var(--dr3-orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dr3-grants__title {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.dr3-grants__title span {
  color: var(--dr3-orange);
  text-transform: uppercase;
}

.dr3-grants__rule {
  width: 92px;
  height: 5px;
  margin: 26px 0 23px;
  border: 0;
  border-radius: 5px;
  background: var(--dr3-orange);
}

.dr3-grants__description {
  max-width: 680px;
  margin: 0;
  color: #e5e5e7;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.6;
}

.dr3-grants__button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 55px;
  margin-top: 7px;
  padding: 13px 23px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--dr3-dark);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.dr3-grants__button:hover {
  transform: translateY(-2px);
  border-color: var(--dr3-orange);
  background: var(--dr3-orange);
  color: var(--dr3-dark);
}

.dr3-grants__button:focus-visible {
  outline: 3px solid var(--dr3-orange);
  outline-offset: 5px;
}

.dr3-grants__button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.dr3-grants__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 46px 0 0;
  padding: 27px 0 0;
  border-top: 1px solid #494949;
  list-style: none;
}

.dr3-grants__step {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.dr3-grants__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--dr3-orange);
  color: var(--dr3-dark);
}

.dr3-grants__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.dr3-grants__step h3 {
  max-width: none;
  margin: 1px 0 5px;
  color: #fff;
  font-size: 1.07rem;
  line-height: 1.3;
}

.dr3-grants__step p {
  margin: 0;
  color: var(--dr3-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.dr3-grants__note {
  max-width: none;
  margin: 27px 0 0;
  color: #aeb0b5;
  font-size: 0.84rem;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .dr3-grants__top {
    flex-direction: column;
    gap: 27px;
  }

  .dr3-grants__button {
    align-self: flex-start;
    margin-top: 0;
  }

  .dr3-grants__steps {
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .dr3-grants {
    margin: 24px 0;
    border-radius: 18px;
  }

  .dr3-grants__steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  .dr3-grants__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dr3-grants__button {
    transition: none;
  }
}
