/* Styles propres Ã  la page /se-motiver/index.html */

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

.motivation-hero::after {
  position: absolute;
  right: -9rem;
  bottom: -13rem;
  width: 29rem;
  height: 29rem;
  border: 4rem solid rgba(242, 140, 91, .12);
  border-radius: 50%;
  content: "";
}

.hero-section-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 3rem;
}

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

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

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

.motivation-illustration {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.motivation-sun {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 1rem rgba(248, 204, 101, .18);
}

.motivation-path {
  position: absolute;
  bottom: 3rem;
  width: 20rem;
  height: 9rem;
  border: 5px solid rgba(15, 118, 110, .25);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  transform: rotate(-10deg);
}

.motivation-flag {
  position: absolute;
  right: 1rem;
  bottom: 8.3rem;
  width: 4px;
  height: 9rem;
  background: var(--teal-dark);
}

.motivation-flag::before {
  position: absolute;
  top: 0;
  left: 4px;
  width: 3.8rem;
  height: 2.4rem;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 25%, 0 100%);
  content: "";
}

.motivation-flag::after {
  position: absolute;
  bottom: -.35rem;
  left: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal-dark);
  content: "";
}

.motivation-person {
  position: relative;
  z-index: 1;
  width: 155px;
  height: 250px;
  transform: rotate(-12deg);
}

.motivation-head {
  position: absolute;
  top: 0;
  left: 57px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f3bd8d;
}

.motivation-head::before {
  position: absolute;
  top: -4px;
  left: -2px;
  width: 63px;
  height: 31px;
  border-radius: 50% 50% 25% 25%;
  background: #4b3730;
  content: "";
}

.motivation-body {
  position: absolute;
  top: 56px;
  left: 47px;
  width: 78px;
  height: 102px;
  border-radius: 40px 40px 15px 15px;
  background: var(--orange);
}

.motivation-arm {
  position: absolute;
  top: 63px;
  left: 111px;
  width: 19px;
  height: 102px;
  border-radius: 999px;
  background: #f3bd8d;
  transform: rotate(-55deg);
  transform-origin: top center;
}

.motivation-leg {
  position: absolute;
  top: 143px;
  width: 23px;
  height: 112px;
  border-radius: 999px;
  background: var(--teal);
  transform-origin: top center;
}

.motivation-leg-left {
  left: 62px;
  transform: rotate(28deg);
}

.motivation-leg-right {
  left: 96px;
  transform: rotate(-38deg);
}

.motivation-star {
  position: absolute;
  z-index: 2;
  color: var(--orange);
  font-size: 1.8rem;
}

.star-one {
  top: 7rem;
  left: 2rem;
}

.star-two {
  right: 3rem;
  bottom: 4rem;
  color: var(--teal);
  font-size: 1.35rem;
}

.motivation-topics {
  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);
}

.article-grid {
  display: grid;
  gap: 1.35rem;
}

.motivation-grid {
  grid-template-columns: repeat(3, 1fr);
}

.topic-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--orange);
  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;
}

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

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

.topic-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.2rem;
  border-radius: 1rem;
  background: #fff0e7;
  font-size: 1.45rem;
}

.topic-card:nth-child(2) .topic-icon,
.topic-card:nth-child(4) .topic-icon { background: var(--mint); }
.topic-card:nth-child(3) .topic-icon { background: #fff8db; }

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

.topic-card p {
  min-height: 78px;
  margin: 1rem 0 1.4rem;
  color: var(--muted);
}

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

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

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

.quote-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 800px;
  padding: 2.2rem 2.5rem;
  border-radius: var(--radius);
  background: var(--teal);
  box-shadow: var(--shadow);
}

.quote-mark {
  color: var(--yellow);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: .8;
}

.quote-box p {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
}

.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: 950px) {
  .motivation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .hero-section-grid {
    grid-template-columns: 1fr;
  }

  .motivation-illustration {
    min-height: 300px;
  }
}

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

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

  .topic-card p {
    min-height: auto;
  }

  .quote-box {
    align-items: flex-start;
    padding: 1.7rem;
  }

  .quote-mark {
    font-size: 3.5rem;
  }
}