/* ============================================================================
   Conseils — index (conseils.html) et articles, générés depuis le back-office.

   REFAIT le 29/09 : la première version était calquée sur legal.css (colonne
   de texte étroite, petit titre, filets) et ne ressemblait à aucune page de
   contenu du site. Celle-ci reprend le vocabulaire des pages de soins,
   mesuré sur orthodontie-enfants.css — aucune valeur nouvelle :
     · bannière photo 1400×501 à 20 px des bords, titre Nunito 200 blanc en bas
       à gauche, bouton de rendez-vous en bas à droite ;
     · titres de section Nunito 300 40/48, texte Inter 300 16/24 ;
     · cartes beige (#FEFCF9, r12, 32 px) et carte bleu marine (r20, 48 px) ;
     · rythme de 160 px entre sections, 80 px sous 1024 px ;
     · mêmes points de rupture (1024, 560), texte AVANT image en colonne.

   ⚠️ Ce fichier reste le CONTRAT du back-office : le schéma de Sanity ne
   propose que les blocs habillés ici (paragraphe, H2, H3, liste à puces,
   encadré). Un bloc proposé sans son CSS sortirait sans mise en forme.
   ========================================================================== */

/* ── BANNIÈRE (même géométrie que .enf-hero) ──────────────────────────────── */
.jr-hero {
  padding: 66px 20px 0;
}
.jr-hero__media {
  position: relative;
  height: 501px;
  overflow: hidden;
  background-color: var(--c-blue);           /* repli avant chargement */
}
.jr-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/cabinet-intro.webp') center 60% / cover no-repeat;
}
.jr-hero__media--article::before {
  background-image: url('../img/cabinet-1.webp');
  background-position: center 55%;
}
/* Voile bas : garantit le contraste du titre blanc quelle que soit la photo. */
.jr-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 32, 32, 0) 35%, rgba(32, 32, 32, .55) 100%);
}
.jr-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 64px;
  height: 100%;
  padding: 200px 80px 80px;
}
.jr-hero__eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--neutral-0);
}
.jr-hero__title {
  margin: 0;
  max-width: 937px;
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: 80px;
  line-height: 88px;
  color: var(--neutral-0);
}
/* Titre d'article : plus long qu'un nom de page — même graisse, corps réduit. */
.jr-hero__title--article {
  font-size: 56px;
  line-height: 64px;
}
.jr-hero .cta--hero { flex: 0 0 auto; }

/* ── Titres et texte courant ──────────────────────────────────────────────── */
.jr-sec__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-h2);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--neutral-900);
}
.jr-intro {
  padding: 0 80px;
}
.jr-intro__text {
  max-width: 715px;
  display: flex;
  flex-direction: column;
  gap: 48px;                                 /* H2 → paragraphe (comme .enf-intro) */
}
.jr-intro__text p,
.jr-card__excerpt {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-body-md);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body-md);
  color: var(--neutral-900);
}

/* ── INDEX : grille de cartes beige ───────────────────────────────────────── */
.jr-list {
  padding: 0 80px;
}
.jr-list__title { margin-bottom: 48px; }
.jr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jr-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border-radius: 12px;
  background: var(--c-biege);
  box-shadow: 0 0 0 1px var(--neutral-100);  /* le beige seul se perd sur blanc */
}
.jr-card__meta {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--c-light-blue);
}
.jr-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-h3);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--neutral-900);
}
.jr-card__title a { color: inherit; text-decoration: none; }
.jr-card__title a:hover { color: var(--c-blue); }
.jr-card .cta { align-self: flex-start; margin-top: auto; }
.jr-empty {
  margin: 0;
  font-size: var(--fs-body-md);
  line-height: var(--lh-body-md);
}

/* ── ARTICLE : texte 715 + colonne de renvoi (comme texte + image) ─────────── */
.jr-article {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  padding: 0 80px;
}
.jr-article__text {
  flex: 0 0 715px;
  min-width: 0;
}
.jr-article__aside {
  flex: 1 1 auto;
  position: sticky;
  top: 140px;                                /* sous la capsule de navigation */
}
.jr-fil {
  margin: 0 0 24px;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
}
.jr-fil a { color: var(--c-light-blue); text-decoration: none; }
.jr-fil a:hover { text-decoration: underline; }
.jr-chapo {
  margin: 0 0 48px;
  font-family: var(--font-body);
  font-weight: var(--fw-body-lg);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--neutral-900);
}

/* Corps : les seuls blocs que propose le back-office. */
.jr-prose h2 {
  margin: 64px 0 24px;
  font-family: var(--font-heading);
  font-weight: var(--fw-h2);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--neutral-900);
}
.jr-prose h2:first-child { margin-top: 0; }
.jr-prose h3 {
  margin: 40px 0 16px;
  font-family: var(--font-heading);
  font-weight: var(--fw-h4);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  color: var(--neutral-900);
}
.jr-prose p {
  margin: 0;
  font-size: var(--fs-body-md);
  line-height: var(--lh-body-md);
}
.jr-prose p + p { margin-top: 24px; }       /* saut de paragraphe du site */
.jr-prose ul {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.jr-prose li {
  position: relative;
  padding-left: 24px;
}
.jr-prose li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-light-blue);
}
.jr-prose strong { font-weight: 700; }
.jr-prose a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; }
.jr-prose a:hover { color: var(--c-light-blue); }
/* Encadré : la carte beige des pages de soins. */
.jr-prose .jr-note {
  margin: 32px 0;
  padding: 32px;
  border-radius: 12px;
  background: var(--c-biege);
  box-shadow: 0 0 0 1px var(--neutral-100);
}

/* Carte bleu marine de renvoi (comme .enf-why__card, à l'échelle d'une colonne). */
.jr-aside-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px;
  border-radius: 20px;
  background: var(--c-blue);
}
.jr-aside-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-h3);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--neutral-0);
}
.jr-aside-card p {
  margin: 0;
  font-size: var(--fs-body-md);
  line-height: var(--lh-body-md);
  color: var(--neutral-0);
}
.jr-aside-card__link {
  color: var(--neutral-0);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.jr-aside-card .cta { align-self: flex-start; white-space: nowrap; }  /* sinon « rendez- / vous » sur mobile */

/* ── Rythme inter-sections (identique aux pages de soins) ─────────────────── */
main > section + section { margin-top: 160px; }
main + .site-footer { margin-top: 160px; }

/* ═════════════════════════════════════════════════════════════════════════
   RESPONSIVE — mêmes seuils et mêmes réductions que orthodontie-enfants.css
   ═════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  main > section + section { margin-top: 80px; }
  main + .site-footer { margin-top: 80px; }

  .jr-hero { padding: 66px 12px 0; }
  .jr-hero__media { height: auto; min-height: 420px; border-radius: 20px; }
  .jr-hero__inner { flex-direction: column; align-items: flex-start; gap: 24px; padding: 120px 24px 32px; }
  .jr-hero__title { max-width: 100%; font-size: 40px; line-height: 46px; }
  .jr-hero__title--article { font-size: 32px; line-height: 38px; }

  .jr-sec__title, .jr-prose h2 { font-size: 32px; line-height: 38px; }

  .jr-intro, .jr-list { padding: 0 24px; }
  .jr-intro__text { gap: 24px; }
  .jr-list__title { margin-bottom: 24px; }
  .jr-grid { grid-template-columns: 1fr; gap: 16px; }
  .jr-card { padding: 24px; }
  .jr-card__title { font-size: 24px; line-height: 32px; }

  .jr-article { flex-direction: column; gap: 48px; padding: 0 24px; }
  .jr-article__text { flex: 1 1 auto; width: 100%; }
  .jr-article__aside { position: static; width: 100%; }
  .jr-aside-card { padding: 32px 24px; }
  .jr-prose h2 { margin-top: 48px; }
}

@media (max-width: 560px) {
  .jr-hero__title { font-size: 32px; line-height: 38px; }
  .jr-hero__title--article { font-size: 28px; line-height: 34px; }
  .jr-sec__title, .jr-prose h2 { font-size: 28px; line-height: 34px; }
  /* Le bouton de rendez-vous (≈ 300 px, insécable) doit tenir dans la carte. */
  .jr-article { padding: 0 16px; }
  .jr-aside-card { padding: 24px 16px; }
}

/* Très petits écrans (320 px) : le bouton insécable sortait de la carte de 58 px.
   Il repasse sur deux lignes, comme avant — mieux qu'un bouton hors cadre. */
@media (max-width: 380px) {
  .jr-aside-card .cta { white-space: normal; }
}
