/* Styles propres Ã  la page /ressources/index.html */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  background: linear-gradient(135deg, #eef7ff 0%, #effbf7 62%, #fffaf0 100%);
}

.resources-hero::after {
  position: absolute;
  right: -9rem;
  bottom: -13rem;
  width: 29rem;
  height: 29rem;
  border: 4rem solid rgba(15, 118, 110, .11);
  border-radius: 50%;
  content: "";
}

.narrow-content,
.reading-width {
  position: relative;
  z-index: 1;
}

.narrow-content {
  max-width: 850px;
}

.page-hero h1 {
  max-width: 850px;
  color: var(--teal-dark);
  font-size: clamp(2.65rem, 6vw, 4.8rem);
}

.lead {
  max-width: 730px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.resources-intro {
  background: var(--white);
}

.reading-width {
  max-width: 820px;
}

.reading-width h2 {
  margin-bottom: 1rem;
  color: var(--teal-dark);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.reading-width p {
  color: var(--muted);
  font-size: 1.06rem;
}

.resource-list-section {
  background: var(--mint-soft);
}

.center-heading {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.center-heading > p:last-child {
  margin: 1rem auto 0;
  color: var(--muted);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(19, 74, 67, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.resource-card:nth-child(2) { border-top-color: var(--orange); }
.resource-card:nth-child(3) { border-top-color: var(--yellow); }
.resource-card:nth-child(4) { border-top-color: #5e9bd3; }
.resource-card:nth-child(5) { border-top-color: var(--orange); }
.resource-card:nth-child(6) { border-top-color: var(--teal); }

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.resource-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f3fbf8 100%);
}

.resource-icon {
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: var(--mint);
  font-size: 1.5rem;
}

.resource-card:nth-child(2) .resource-icon,
.resource-card:nth-child(5) .resource-icon { background: #fff0e7; }
.resource-card:nth-child(3) .resource-icon { background: #fff8db; }
.resource-card:nth-child(4) .resource-icon { background: #edf5ff; }

.resource-card-featured .resource-icon {
  margin-bottom: 0;
}

.resource-category {
  margin: 0 0 .5rem;
  color: var(--orange);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.resource-card h2 {
  font-size: 1.35rem;
}

.resource-card p:not(.resource-category) {
  flex: 1;
  margin: 1rem 0 1.4rem;
  color: var(--muted);
}

.resource-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.resource-actions .button {
  font-size: .9rem;
}

.text-link {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--orange);
}

.resource-notice {
  padding: 1rem 0 5.5rem;
  background: var(--mint-soft);
}

.notice-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.6rem 2rem;
  border: 1px solid #f7e6b7;
  border-left: 4px solid var(--orange);
  border-radius: 1rem;
  background: #fffaf0;
}

.notice-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  color: var(--white);
  background: var(--orange);
  border-radius: 50%;
  font-weight: 800;
}

.notice-box h2 {
  margin: .1rem 0 .35rem;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.notice-box p {
  margin: 0;
  color: var(--muted);
}

.footer-social {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  text-align: center;
}

.footer-social h2 {
  margin: 0;
  color: var(--white);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.footer-social p {
  max-width: 520px;
  margin: .5rem auto 1.25rem;
  color: rgba(255, 255, 255, .78);
  font-size: .9rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.social-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-width: 145px;
  padding: .65rem 1rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: var(--white) !important;
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .14);
}

.social-icon {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--white);
  flex: 0 0 auto;
}

.social-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.social-facebook:hover,
.social-facebook:focus-visible,
.social-facebook:hover .social-icon,
.social-facebook:focus-visible .social-icon { color: #1877f2 !important; }

.social-instagram:hover,
.social-instagram:focus-visible,
.social-instagram:hover .social-icon,
.social-instagram:focus-visible .social-icon { color: #e4405f !important; }

@media (max-width: 760px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .resource-card-featured {
    grid-column: auto;
    display: flex;
  }

  .resource-card-featured .resource-icon {
    margin-bottom: 1rem;
  }
}

@media (max-width: 560px) {
  .page-hero {
    padding: 4.5rem 0 4rem;
  }

  .notice-box {
    padding: 1.25rem;
  }

  .resource-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .resource-actions .button {
    width: 100%;
  }
}