.resources-page { background: #fff; }

.resources-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 62px;
  background:
    radial-gradient(circle at 91% 22%, rgba(245, 41, 141, .11), transparent 25%),
    radial-gradient(circle at 74% 87%, rgba(255, 198, 47, .11), transparent 28%),
    linear-gradient(180deg, #fffdf9 0%, #fff8ee 100%);
}

.resources-hero > .shell {
  width: min(calc(100% - 40px), clamp(1240px, 86vw, 1760px));
}
.resources-hero::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 250px;
  right: -120px;
  bottom: -150px;
  border-radius: 50%;
  background: rgba(23, 199, 197, .10);
  transform: rotate(-10deg);
}
.resources-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(40px, 3.4vw, 72px);
  align-items: center;
}
.resources-hero-copy h1 {
  margin: 18px 0 18px;
  color: var(--navy);
  font-size: clamp(52px, 5.7vw, 78px);
  line-height: .96;
  letter-spacing: -.055em;
}
.resources-hero-copy h1 em {
  position: relative;
  display: inline-block;
  font-size: .82em;
  color: var(--pink);
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-style: italic;
  font-weight: 850;
  letter-spacing: -.065em;
}
.resources-hero-copy h1 em::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 2%;
  bottom: -7px;
  height: 7px;
  border-radius: 60% 40% 70% 30%;
  background: var(--yellow);
  transform: rotate(-2deg);
}
.resource-heart-line,
.resource-heading-heart {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--pink);
  font-size: 22px;
  font-weight: 900;
}
.resource-heart-line { width: 300px; margin: 8px 0 18px; }
.resource-heart-line span,
.resource-heading-heart span {
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, rgba(245,41,141,.05), rgba(245,41,141,.7));
}
.resource-heart-line span:last-child,
.resource-heading-heart span:last-child {
  background: linear-gradient(90deg, rgba(245,41,141,.7), rgba(245,41,141,.05));
}
.resources-hero-copy > p {
  max-width: 600px;
  margin: 0 0 28px;
  color: #47546d;
  font-size: 17px;
  line-height: 1.7;
}
.resources-hero-copy > p strong { color: var(--pink); }

.resources-visual {
  min-height: clamp(430px, 30vw, 620px);
  position: relative;
}
.resources-visual-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.resources-visual-photo img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: clamp(500px, 32vw, 680px);
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(70, 48, 65, .11));
}
.resource-note {
  position: absolute;
  right: 30px;
  top: 55px;
  width: 190px;
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  text-align: center;
  border-radius: 16px 16px 16px 5px;
  transform: rotate(4deg);
  background: #fff8df;
  color: #3b3543;
  box-shadow: 0 16px 34px rgba(50,34,70,.17);
  z-index: 2;
}
.resource-note small { font-family: "Segoe Print", "Bradley Hand", cursive; font-size: 18px; line-height: 1.65; }
.resource-note b { color: var(--pink); font-size: 24px; }
.resource-visual-shape { position: absolute; font-size: 30px; font-weight: 900; }
.rs1 { left: 38px; top: 48px; color: #fff; }
.rs2 { left: 66px; bottom: 54px; color: #ff4e9b; }
.rs3 { right: 180px; bottom: 48px; color: #ffcf31; }
.rs4 { left: 170px; top: 82px; color: #6c39db; }
.resource-doodle { position: absolute; z-index: 3; font-weight: 900; }
.rd1 { top: 72px; left: 2.5%; color: #1faeec; font-size: 30px; }
.rd2 { top: 48px; right: 5%; color: #ff4a9a; font-size: 32px; transform: rotate(10deg); }
.rd3 { bottom: 64px; left: 3%; color: #ff981c; font-size: 38px; }
.rd4 { bottom: 88px; right: 3%; color: #7136d7; font-size: 30px; }

.resource-themes { padding: 52px 0 44px; background: #fff; }
.resource-section-heading { text-align: center; margin-bottom: 32px; }
.resource-section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(31px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.resource-section-heading > p { max-width: 780px; margin: 7px auto 0; color: #6a748a; font-size: 14px; }
.resource-heading-heart { width: 170px; margin: 4px auto 0; font-size: 17px; }
.theme-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.theme-grid .theme-card {
  flex: 0 1 calc((100% - 72px) / 5);
  min-width: 200px;
}
.theme-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 22px;
  border: 1px solid #e3e8f0;
  border-radius: 22px;
  background: #fff;
  text-align: center;
  box-shadow: 0 13px 30px rgba(21, 42, 80, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.theme-card:hover { transform: translateY(-5px); box-shadow: 0 20px 38px rgba(21,42,80,.12); }
.theme-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  font-size: 32px;
  font-weight: 900;
}
.theme-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 19px; }
.theme-card p { flex: 1; margin: 0 0 18px; color: #68738a; font-size: 13px; line-height: 1.6; }
.theme-card b { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 2px solid currentColor; border-radius: 999px; font-size: 11px; }
.theme-yellow { color: #e69a00; }
.theme-yellow .theme-icon { background: #fff0bd; }
.theme-pink { color: #e43183; }
.theme-pink .theme-icon { background: #ffe0ef; }
.theme-mint { color: #149c9b; }
.theme-mint .theme-icon { background: #d8f7f1; }
.theme-purple { color: #7540d1; }
.theme-purple .theme-icon { background: #ede3ff; }
.theme-orange { color: #f07e16; }
.theme-orange .theme-icon { background: #ffe7cd; }

.resource-library-preview {
  padding: 6px 0 46px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}
.resource-placeholder-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.resource-placeholder-card {
  scroll-margin-top: 24px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  min-height: 142px;
  padding: 18px;
  border: 1px solid #e2e8f1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24,44,80,.05);
}
.resource-placeholder-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
}
.resource-placeholder-card small { color: #8a94a7; font-size: 9px; text-transform: uppercase; font-weight: 900; letter-spacing: .05em; }
.resource-placeholder-card h3 { margin: 3px 0 5px; color: var(--navy); font-size: 14px; }
.resource-placeholder-card p { margin: 0; color: #6c768b; font-size: 10px; line-height: 1.45; }
.rpc-yellow .resource-placeholder-icon { color: #d89200; background: #fff0bb; }
.rpc-pink .resource-placeholder-icon { color: #df2e80; background: #ffe2ef; }
.rpc-mint .resource-placeholder-icon { color: #0b9c94; background: #dcf8f2; }
.rpc-purple .resource-placeholder-icon { color: #7140cf; background: #eee4ff; }
.rpc-orange .resource-placeholder-icon { color: #ec7b14; background: #ffead2; }

.suggest-resource-section { padding: 14px 0 22px; }
.suggest-resource-card {
  min-height: 180px;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #ffe1b9;
  border-radius: 28px;
  background: linear-gradient(90deg, #fff9e8, #fff 56%, #fff3e3);
  box-shadow: 0 15px 32px rgba(138, 92, 24, .08);
}
.suggest-resource-visual {
  min-height: 180px;
  background:
    radial-gradient(circle at 24% 25%, rgba(23,199,197,.22), transparent 20%),
    radial-gradient(circle at 74% 72%, rgba(245,41,141,.20), transparent 27%),
    linear-gradient(145deg, #fff1c8, #ffdbe8);
  font-weight: 900;
}
.suggest-resource-visual span { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.75); }
.suggest-resource-visual b { position: absolute; font-size: 30px; opacity: .35; }
.suggest-resource-visual b:first-of-type { left: 18%; bottom: 20%; color: #ff9a1c; }
.suggest-resource-visual b:last-of-type { right: 18%; top: 18%; color: var(--pink); }
.suggest-resource-copy { align-self: center; padding: 28px 34px; }
.suggest-resource-copy h2 { margin: 0; color: var(--navy); font-size: 29px; letter-spacing: -.03em; }
.suggest-resource-copy p { margin: 7px 0 18px; color: #667188; font-size: 13px; }
.suggest-plane { align-self: center; padding: 0 35px; color: var(--pink); font-size: 58px; transform: rotate(-18deg); }

.resource-bottom-section { padding: 12px 0 24px; }
.resource-bottom-grid { display: grid; grid-template-columns: 1.45fr .95fr; gap: 22px; }
.resource-help-card,
.resource-news-card {
  min-height: 190px;
  border: 1px solid #e3e8f1;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24,44,80,.06);
}
.resource-help-card { display: grid; grid-template-columns: 1fr 210px; overflow: hidden; }
.resource-help-card > div:first-child { padding: 28px 30px; }
.resource-help-card h2,
.resource-news-card h2 { margin: 4px 0 8px; color: var(--navy); font-size: 27px; letter-spacing: -.03em; }
.resource-help-card p,
.resource-news-card p { margin: 0 0 12px; color: #68738a; font-size: 12px; }
.resource-help-card a { color: var(--pink); font-size: 12px; font-weight: 900; }
.help-visual { min-height: 190px; background: linear-gradient(145deg, #dff8f3, #eef8ff 60%, #ffe9f2); font-weight: 800; }
.help-visual span { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.76); }
.resource-news-card { position: relative; padding: 25px 26px 22px 82px; }
.resource-news-icon {
  position: absolute;
  left: 26px;
  top: 28px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--pink);
  background: #ffe5f0;
  font-size: 24px;
}
.resource-news-card form {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 6px;
  margin-top: 16px;
  padding: 5px;
  border: 1px solid #e2e8f1;
  border-radius: 999px;
  background: #fff;
}
.resource-news-card input { min-width: 0; border: 0; outline: 0; padding: 0 12px; }
.resource-news-card button { width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: var(--pink); font-weight: 900; }
.resource-news-card > small { display: block; margin-top: 7px; color: #8a94a7; font-size: 9px; }

.resource-reassurance { padding: 0 0 46px; }
.resource-reassurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px 18px;
  border: 1px solid #e4eaf3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23,48,89,.05);
}
.resource-reassurance-grid > div { display: flex; align-items: center; gap: 12px; padding: 5px 18px; border-right: 1px solid #edf1f6; }
.resource-reassurance-grid > div:last-child { border-right: 0; }
.resource-reassurance-grid > div > span { flex: 0 0 auto; color: var(--pink); font-size: 27px; font-weight: 900; }
.resource-reassurance-grid p { margin: 0; display: grid; gap: 2px; }
.resource-reassurance-grid strong { color: var(--navy); font-size: 12px; }
.resource-reassurance-grid small { color: #717b8f; font-size: 9px; line-height: 1.4; }

@media (max-width: 1080px) {
  .resources-hero-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .theme-grid .theme-card { flex-basis: calc((100% - 36px) / 3); }
  .resource-placeholder-grid { grid-template-columns: repeat(3, 1fr); }
  .suggest-resource-card { grid-template-columns: 220px 1fr; }
  .suggest-plane { display: none; }
}

@media (max-width: 760px) {
  .resources-hero { padding: 40px 0 38px; }
  .resources-hero-grid { grid-template-columns: 1fr; }
  .resources-hero-copy h1 { font-size: clamp(42px, 13vw, 60px); }
  .resources-hero-copy > p { font-size: 15px; }
  .resources-visual { min-height: 350px; }
  .resources-visual-photo img { max-height: none; }
  .resource-note { width: 150px; min-height: 190px; right: 18px; top: 40px; padding: 18px 12px; }
  .resource-note small { font-size: 15px; }
  .resource-doodle { display: none; }
  .theme-grid { gap: 14px; }
  .theme-grid .theme-card { flex-basis: 100%; min-width: 0; }
  .theme-card { min-height: 0; }
  .resource-placeholder-grid { grid-template-columns: 1fr; }
  .suggest-resource-card { grid-template-columns: 1fr; }
  .suggest-resource-visual { min-height: 160px; }
  .suggest-resource-copy { padding: 25px 24px 28px; }
  .resource-bottom-grid { grid-template-columns: 1fr; }
  .resource-help-card { grid-template-columns: 1fr; }
  .help-visual { min-height: 150px; }
  .resource-news-card { padding-left: 76px; }
  .resource-reassurance-grid { grid-template-columns: 1fr; }
  .resource-reassurance-grid > div { border-right: 0; border-bottom: 1px solid #edf1f6; padding: 13px 8px; margin: 0 !important; }
  .resource-reassurance-grid > div:last-child { border-bottom: 0; }
}

@media (max-width: 1050px) {
  .resources-hero > .shell { width: min(calc(100% - 40px), var(--shell)); }
}

/* v4.66 - Titre hero fluide ; le sous-titre conserve exactement deux lignes */
.resources-hero-copy h1{
  font-size:clamp(42px,4.5vw,78px);
}
.resources-hero-copy h1 em{
  display:inline-block;
  white-space:nowrap;
  font-size:.78em;
}
@media(max-width:760px){
  .resources-hero-copy h1{font-size:clamp(36px,9.5vw,54px);}
  .resources-hero-copy h1 em{font-size:.76em;}
}

/* v4.86 - Refonte Ressources sur la maquette validee */
.resource-themes {
  padding: 42px 0 34px;
}
.resource-section-heading {
  margin-bottom: 22px;
}
.resource-section-heading h2 {
  font-size: clamp(30px, 2.65vw, 40px);
}
.resource-heading-heart {
  margin-top: 5px;
}
.theme-grid {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.theme-grid .theme-card {
  min-width: 0;
  min-height: 250px;
  position: relative;
  padding: 22px 18px 20px;
  border-radius: 20px;
}
.theme-card-spark {
  position: absolute;
  top: 15px;
  right: 16px;
  font-size: 18px;
  line-height: 1;
  opacity: .95;
}
.theme-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  font-size: 28px;
}
.theme-card h3 {
  margin-bottom: 7px;
  font-size: 17px;
}
.theme-card p {
  margin-bottom: 15px;
  font-size: 11.5px;
  line-height: 1.5;
}
.theme-card b {
  min-height: 36px;
  padding: 0 14px;
  font-size: 10px;
}
.theme-blue { color: #2487d7; }
.theme-blue .theme-icon { background: #dff0ff; }
.theme-turquoise { color: #0fa4a2; }
.theme-turquoise .theme-icon { background: #d8f7f1; }
.theme-green { color: #2c9b70; }
.theme-green .theme-icon { background: #e0f6eb; }
.theme-work { color: #4d7fd2; }
.theme-work .theme-icon { background: #e4ecff; }
.theme-rose { color: #d64e8d; }
.theme-rose .theme-icon { background: #ffe3ef; }

.resource-library-preview {
  padding: 4px 0 26px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}
.resource-db-category {
  scroll-margin-top: 112px;
  margin: 0 auto 30px;
}
.resource-category-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 12px;
  color: var(--navy);
}
.resource-category-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.resource-category-heading-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 950;
}
.resource-real-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}
.resource-real-card {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid #e4e9f1;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(23,43,89,.045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.resource-real-card:hover,
.resource-real-card:focus-visible {
  transform: translateY(-2px);
  border-color: #d6ddec;
  box-shadow: 0 11px 24px rgba(23,43,89,.09);
}
.resource-real-leading {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
}
.resource-real-leading.has-image {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
}
.resource-real-leading.has-image img {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #edf0f5;
}
.resource-real-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 20px;
  font-style: normal;
  font-weight: 950;
}
.resource-real-leading.has-image .resource-real-icon {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 23px;
  height: 23px;
  border: 2px solid #fff;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 3px 8px rgba(25,45,85,.12);
}
.resource-real-copy {
  min-width: 0;
  display: block;
}
.resource-real-card strong {
  display: block;
  margin: 0 0 3px;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.22;
}
.resource-real-card small {
  display: none;
}
.resource-real-card p {
  margin: 0;
  color: #68748a;
  font-size: 10px;
  line-height: 1.38;
}
.resource-cat-yellow .resource-category-heading-icon,
.resource-real-card.resource-cat-yellow .resource-real-icon { color: #d89200; background: #fff0bd; }
.resource-cat-pink .resource-category-heading-icon,
.resource-real-card.resource-cat-pink .resource-real-icon { color: #df2e80; background: #ffe2ef; }
.resource-cat-mint .resource-category-heading-icon,
.resource-real-card.resource-cat-mint .resource-real-icon,
.resource-cat-turquoise .resource-category-heading-icon,
.resource-real-card.resource-cat-turquoise .resource-real-icon { color: #0b9c94; background: #dcf8f2; }
.resource-cat-purple .resource-category-heading-icon,
.resource-real-card.resource-cat-purple .resource-real-icon { color: #7140cf; background: #eee4ff; }
.resource-cat-orange .resource-category-heading-icon,
.resource-real-card.resource-cat-orange .resource-real-icon { color: #ec7b14; background: #ffead2; }
.resource-cat-blue .resource-category-heading-icon,
.resource-real-card.resource-cat-blue .resource-real-icon { color: #2487d7; background: #dff0ff; }
.resource-cat-green .resource-category-heading-icon,
.resource-real-card.resource-cat-green .resource-real-icon { color: #2c9b70; background: #e0f6eb; }
.resource-cat-work .resource-category-heading-icon,
.resource-real-card.resource-cat-work .resource-real-icon { color: #4d7fd2; background: #e4ecff; }
.resource-cat-rose .resource-category-heading-icon,
.resource-real-card.resource-cat-rose .resource-real-icon { color: #d64e8d; background: #ffe3ef; }

.suggest-resource-section {
  padding: 8px 0 34px;
}
.suggest-resource-card {
  min-height: 150px;
  grid-template-columns: 285px minmax(0,1fr) auto;
  border: 1px solid #ffcc86;
  border-radius: 22px;
  background: linear-gradient(90deg, #fff6e8 0%, #fffaf1 48%, #fff0de 100%);
  box-shadow: 0 10px 26px rgba(145,91,23,.07);
}
.suggest-resource-visual {
  min-height: 150px;
}
.suggest-resource-book {
  overflow: hidden;
  background: linear-gradient(135deg,#fff3df,#ffe2ed);
}
.suggest-resource-book img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  display: block;
  object-fit: cover;
  object-position: 36% center;
}
.suggest-resource-copy {
  padding: 23px 28px;
}
.suggest-resource-copy h2 {
  font-size: 25px;
}
.suggest-resource-copy p {
  margin: 6px 0 15px;
  font-size: 11.5px;
}
.suggest-plane {
  padding: 0 28px;
  font-size: 52px;
}

@media (max-width: 1080px) {
  .theme-grid { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 760px; }
  .resource-real-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .suggest-resource-card { grid-template-columns: 230px 1fr; }
}

@media (max-width: 700px) {
  .resource-themes { padding-top: 34px; }
  .theme-grid { grid-template-columns: 1fr; max-width: 430px; }
  .theme-grid .theme-card { min-height: 0; }
  .resource-db-category { margin-bottom: 25px; }
  .resource-category-heading h2 { font-size: 23px; }
  .resource-real-grid { grid-template-columns: 1fr; }
  .resource-real-card { min-height: 74px; }
  .suggest-resource-card { grid-template-columns: 1fr; }
  .suggest-resource-visual,
  .suggest-resource-book img { min-height: 170px; }
  .suggest-resource-copy { padding: 22px 22px 25px; }
}
