/* rajeunir.fr · intégration WordPress du design system (complète composants.css, mêmes jetons, aucune couleur ni police ajoutée) */

/* ---------- Base ---------- */
[data-theme="sombre"] { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--porcelaine); }
body { margin: 0; background: var(--porcelaine); color: var(--expresso); font-family: var(--font-texte); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; }
main { display: block; }
.rj-page { min-height: 100vh; overflow-x: clip; }
.rj-page :where(h1, h2, h3, p, li, a) { overflow-wrap: break-word; }
.rj-sauter { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: var(--rayon-pilule); background: var(--signature); color: var(--sur-fonce); font: 600 14px/18px var(--font-texte); text-decoration: none; }
.rj-sauter:focus { top: 12px; }
.rj-sect-in > * { min-width: 0; }
.rj-grille > *, .rj-deux > *, .rj-article > * { min-width: 0; }
.rj-etroit { max-width: 840px; }
.rj-section-intro { max-width: 62ch; margin-top: -16px !important; }
.rj-sect + .rj-sect:not([class*="rj-sect-"]) { padding-top: 16px; }
.rj-sect-lire { padding-top: 0; }

/* ---------- En-tête ---------- */
.rj-entete { position: relative; z-index: 30; }
.rj-entete-logo { color: var(--expresso); line-height: 0; }
.rj-entete-date::first-letter { text-transform: uppercase; }
.rj-theme-bouton .rj-theme-soleil { display: none; }
[data-theme="sombre"] .rj-theme-bouton .rj-theme-lune { display: none; }
[data-theme="sombre"] .rj-theme-bouton .rj-theme-soleil { display: inline-flex; }
.rj-theme-bouton span { display: inline-flex; }
.rj-icone-bouton:hover { background: var(--perle); }
.rj-entete-lettre { text-decoration: none; }
.rj-recherche-panneau { border-top: 1px solid var(--filet); padding: 16px 48px; background: var(--porcelaine); }
.rj-recherche-panneau .rj-recherche { max-width: 720px; margin: 0 auto; }
.rj-recherche svg { flex: none; }
@container page (max-width: 680px) {
  .rj-recherche-panneau { padding: 12px 16px; }
  .rj-entete-ouvert .rj-entete-nav ul { flex-direction: column; overflow: visible; gap: 0; padding: 0 16px 16px !important; }
  .rj-entete-ouvert .rj-entete-nav li { border-top: 1px solid var(--filet); }
  .rj-entete-ouvert .rj-entete-nav a { display: block; padding: 14px 0; font-size: 13px; border-bottom: 0; }
  .rj-entete-outils { gap: 2px; }
}

/* ---------- Une ---------- */
.rj-une .rj-bouton { text-decoration: none; }
.rj-une-visuel .rj-une-ph { width: 100%; }
@container page (max-width: 680px) {
  .rj-une-photo .rj-une-visuel { max-width: 320px; margin: 0 auto; }
  .rj-une .titre-xl { font-size: 44px; }
}
@container page (min-width: 681px) and (max-width: 1024px) {
  .rj-une { gap: 40px; padding: 48px 32px; }
  .rj-une .titre-xl { font-size: 58px; }
  .rj-sect { padding-left: 32px; padding-right: 32px; }
  .rj-grille-3, .rj-grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rj-univers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rj-methode { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rj-article { grid-template-columns: minmax(0, 1fr); }
  .rj-article-marge { position: static; }
  .rj-pied-grille { grid-template-columns: 1fr 1fr; }
}
.rj-une-photo .rj-une-visuel, .rj-une-texte { min-width: 0; }

/* ---------- Cartes : lien étendu à toute la carte ---------- */
.rj-carte, .rj-carte-mini, .rj-carte-texte { position: relative; }
.rj-carte h2 a::after, .rj-carte h3 a::after, .rj-carte-mini h3 a::after, .rj-carte-texte h3 a::after { content: ""; position: absolute; inset: 0; }
.rj-carte :is(h2, h3) a:hover, .rj-carte-mini h3 a:hover, .rj-carte-texte h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.rj-carte .rj-visuel img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.rj-carte .rj-visuel .rj-objet { width: 56%; position: relative; }
.rj-carte-vedette .rj-visuel { aspect-ratio: 4 / 5; }
.rj-carte h2.titre-sm, .rj-carte h2.titre-md { font-family: var(--font-titre); }
.rj-univers-tuile { text-decoration: none; }
.rj-liste ol { display: flex; flex-direction: column; }
.rj-alire-site { background: var(--signature); color: var(--sur-fonce); align-items: center !important; }
.rj-alire-site span { font: 800 30px/1 var(--font-titre); letter-spacing: -0.03em; }
.rj-article-marge .rj-alire-liste { grid-template-columns: 1fr; gap: 16px; }
.rj-article-marge .rj-carte-mini { grid-template-columns: 64px 1fr; }

/* ---------- Article et pages ---------- */
.rj-article-haut { padding-bottom: 0; }
.rj-article-sect { padding-top: 48px; }
.rj-article-seul { grid-template-columns: minmax(0, 1fr); }
.rj-ea-photo img, .rj-ea-figure img { width: 100%; height: 100%; object-fit: cover; }
.rj-ea-figure { max-width: none; margin-top: 28px; }
.rj-ea-figure .rj-photo { border-radius: 0; }
.rj-titre br + em { display: inline-block; margin-top: .06em; }
.rj-prose [id] { scroll-margin-top: 24px; }
.rj-prose { font: 400 16.5px/1.75 var(--font-texte); color: var(--expresso); }
.rj-prose > p, .rj-prose .rj-etape-corps > p, .rj-prose .rj-faq-reponse p { font-size: 16.5px; line-height: 1.75; }
.rj-prose a:not([class]) { color: var(--sauge-foncee); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rj-prose a:not([class]):hover { color: var(--expresso); }
.rj-prose strong, .rj-prose b { font-weight: 600; }
.rj-prose > h3, .rj-prose .rj-etape-corps > h3 { font: 600 22px/1.25 var(--font-titre); letter-spacing: -0.01em; margin-top: 8px !important; }
.rj-prose > h2:not([class]) { font: 600 34px/1.12 var(--font-titre); letter-spacing: -0.02em; }
.rj-prose .rj-intertitre { margin-top: 18px !important; }
.rj-prose > ul:not([class]), .rj-prose > ol:not([class]), .rj-prose .rj-etape-corps > ul, .rj-prose .rj-encadre-texte ul, .rj-prose .rj-faq-reponse ul { display: flex; flex-direction: column; gap: 8px; padding-left: 0; }
.rj-prose > ul:not([class]) > li, .rj-prose .rj-etape-corps > ul > li, .rj-prose .rj-encadre-texte ul > li, .rj-prose .rj-faq-reponse ul > li { position: relative; padding-left: 22px; }
.rj-prose > ul:not([class]) > li::before, .rj-prose .rj-etape-corps > ul > li::before, .rj-prose .rj-encadre-texte ul > li::before, .rj-prose .rj-faq-reponse ul > li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--corail); }
.rj-prose > ol:not([class]) { counter-reset: rj-ol; }
.rj-prose > ol:not([class]) > li { counter-increment: rj-ol; position: relative; padding-left: 34px; }
.rj-prose > ol:not([class]) > li::before { content: counter(rj-ol, decimal-leading-zero); position: absolute; left: 0; top: .2em; font: 600 14px/1.4 var(--font-titre); color: var(--sauge-foncee); }
.rj-prose img:not(.rj-objet) { border-radius: var(--rayon-doux); }
.rj-prose figure:not([class]) { margin: 0; }
.rj-prose hr { border: 0; border-top: 1px solid var(--filet); width: 100%; }
.rj-prose .rj-bouton { text-decoration: none; align-self: flex-start; }
.rj-prose a.rj-bouton-principal { color: var(--sur-fonce); }
.rj-prose a.rj-bouton-doux { color: var(--sur-clair); }
.rj-prose a:is(.rj-bouton-secondaire, .rj-bouton-lien) { color: var(--expresso); }
.rj-prose .rj-mention a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.rj-prose .rj-mention + .rj-mention { margin-top: -12px; }
.rj-prose > .rj-chapo { font-size: 19px; line-height: 1.6; color: var(--taupe); }
.rj-prose .rj-encadre-titre { display: flex; align-items: center; gap: 8px; }
.rj-prose .rj-encadre-texte { display: flex; flex-direction: column; gap: 10px; }
.rj-prose .rj-encadre-texte a:not(.rj-bouton) { color: inherit; text-decoration: underline; }
.rj-encadre-attention { border-color: var(--corail); }
.rj-encadre-attention .rj-encadre-titre svg { color: var(--corail-texte); }
.rj-prose .rj-essentiel ul li span { min-width: 0; }
.rj-relecture .rj-monogramme { flex: none; width: 48px; height: 48px; }
.rj-relecture a { text-decoration: underline; text-underline-offset: 3px; }
.rj-partage a { text-decoration: none; }
.rj-copie-ok { background: var(--sauge-pale) !important; }
.rj-article-marge .rj-sommaire li a { text-decoration: none; }
@container page (max-width: 1024px) {
  .rj-article-marge { order: -1; }
  .rj-article-marge .rj-alire-reseau { display: none; }
  .rj-article { display: flex; flex-direction: column; }
}
@container page (max-width: 680px) {
  .rj-article-sect { padding-top: 28px; }
  .rj-prose > h2:not([class]) { font-size: 28px; }
  .rj-prose .rj-intertitre { font-size: 28px; }
  .rj-ea-figure { margin-left: -20px; margin-right: -20px; }
}

/* FAQ (articles et pages) */
.rj-faq-bloc { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.rj-faq summary > span { min-width: 0; }
.rj-faq-reponse { padding: 0 0 22px; color: var(--taupe); max-width: 62ch; display: flex; flex-direction: column; gap: 10px; }
.rj-faq-reponse p { padding: 0 !important; }
.rj-faq > h2 { display: none; }

/* Sources, mentions */
.rj-sources h2 { display: flex; align-items: center; gap: 8px; }
.rj-sources ol li > span:last-child { min-width: 0; }
.rj-sources-pied a { text-decoration: underline; text-underline-offset: 3px; }
.rj-lire-aussi { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 14px 18px; border-radius: var(--rayon-fin); background: var(--perle); max-width: var(--largeur-texte); }
.rj-lire-aussi-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px !important; }
.rj-lire-aussi a { color: var(--sauge-foncee); text-decoration: underline; text-underline-offset: 3px; }

/* Étapes des guides (routine, programme) */
.rj-etape { display: flex; flex-direction: column; gap: 12px; padding: 24px 0 4px; border-top: 1px solid var(--filet); }
.rj-etape-tete { gap: 12px !important; color: var(--sauge-foncee) !important; }
.rj-etape-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rose); color: var(--sur-clair); font: 700 13px/1 var(--font-titre); letter-spacing: 0; }
.rj-etape-corps { display: flex; flex-direction: column; gap: 16px; }
.rj-etape .titre-sm { margin: 0; }

/* Liste cochée */
.rj-coches { display: flex; flex-direction: column; max-width: var(--largeur-texte); }
.rj-coches li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--filet); }
.rj-coches li:last-child { border-bottom: 1px solid var(--filet); }
.rj-coches svg { color: var(--sauge-foncee); margin-top: 1px; }

/* Tuiles (repères alimentaires, critères) */
.rj-tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rj-tuile { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon-fin); }
.rj-tuile .corps-sm { color: var(--taupe); display: flex; flex-direction: column; gap: 8px; }
@container page (max-width: 680px) { .rj-tuiles { grid-template-columns: 1fr; } }

/* Produit recommandé (lien partenaire) */
.rj-produit-reco { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon-fin); }
.rj-produit-reco-visuel { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: var(--rayon-doux); overflow: hidden; }
.rj-produit-reco-visuel img { width: 100%; height: 100%; object-fit: contain; border-radius: 0 !important; }
.rj-produit-reco-corps { display: flex; flex-direction: column; gap: 4px; }
.rj-produit-reco-corps .corps-sm { color: var(--taupe); }
.rj-affilie { text-decoration: none; }
@container page (max-width: 680px) {
  .rj-produit-reco { grid-template-columns: 64px minmax(0, 1fr); }
  .rj-produit-reco-visuel { width: 64px; height: 64px; }
  .rj-produit-reco .rj-affilie-bloc { grid-column: 1 / -1; align-items: flex-start; }
}

/* Comparatif */
.rj-comparatif th[scope="row"] { min-width: 160px; }
.rj-comparatif td .rj-affilie-bloc { align-items: flex-start; }
.rj-comparatif td.corps-sm { color: var(--expresso); }

/* Méthode (piliers numérotés, accueil) */
.rj-methode-n { font: 700 18px/1 var(--font-titre); }
.rj-methode-quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rj-methode-deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rj-prose .rj-methode { max-width: var(--largeur-texte); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container page (max-width: 680px) { .rj-methode-quatre, .rj-methode-deux, .rj-prose .rj-methode { grid-template-columns: 1fr; } }

/* ---------- Rubriques, blog, recherche ---------- */
.rj-entete-rubrique .rj-ariane { color: inherit; opacity: .85; }
.rj-entete-rubrique .rj-filtres a { text-decoration: none; }
.rj-r-prevention.rj-entete-rubrique .rj-etiquette-filtre { border-color: var(--sur-fonce-doux); color: var(--sur-fonce); }
.rj-r-prevention.rj-entete-rubrique .rj-ariane a, .rj-r-prevention.rj-entete-rubrique .rj-ariane span { color: var(--sur-fonce); }
.rj-entete-rubrique .rj-ariane a, .rj-entete-rubrique .rj-ariane span { color: var(--sur-clair); }
.rj-er-produit .rj-objet { width: 100%; height: auto; }
.rj-er-recherche { grid-template-columns: minmax(0, 1fr); }
.rj-er-recherche .rj-recherche { max-width: 640px; }
.rj-er-compte { white-space: nowrap; }
.rj-liste-guide { margin: 0; }
.rj-pagination { justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.rj-pagination a { text-decoration: none; }
.rj-404-pardon { position: static !important; transform: none !important; font-size: 40px; }
.rj-404 { padding: 16px 0; }
.rj-404-rub a, .rj-vide .rj-404-rub a { text-decoration: none; }
.rj-vide .rj-404-rub { justify-content: center; }
@container page (max-width: 680px) { .rj-404 { padding: 0; } }

/* ---------- Lettre, cookies, réseau, pied ---------- */
.rj-newsletter .note a { color: inherit; text-decoration: underline; }
.rj-newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rj-newsletter-form input { flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 20px; border-radius: var(--rayon-pilule); border: 1px solid rgba(250, 248, 246, .4); background: transparent; color: var(--sur-fonce); font: 400 16px var(--font-texte); }
.rj-newsletter-form input::placeholder { color: var(--sur-fonce-doux); }
.rj-newsletter-form .note { flex-basis: 100%; color: var(--sur-fonce-doux); }
.rj-newsletter-ok { margin: 0; padding: 14px 20px; border-radius: var(--rayon-pilule); background: var(--rose); color: var(--sur-clair); }
.rj-newsletter .titre-md { color: var(--sur-fonce); }
.rj-newsletter .corps-sm { color: var(--sur-fonce-doux); }
.rj-cookies-fixe { position: fixed; z-index: 60; right: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
.rj-cookies[hidden] { display: none; }
.rj-cookies a { color: var(--expresso); text-decoration: underline; }
.rj-reseau-bande { background: var(--perle); padding: 28px 48px; }
.rj-reseau-bande .rj-sect-in { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.rj-reseau-bande ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.rj-reseau-bande a { font: 500 15px/1.2 var(--font-texte); color: var(--expresso); text-decoration: none; }
.rj-reseau-bande a b { font-weight: 700; }
.rj-reseau-bande a span { color: var(--sauge-foncee); }
.rj-reseau-bande a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.rj-pied a { text-decoration: none; }
.rj-pied-bas a { color: inherit; }
.rj-pied-bas a:hover { text-decoration: underline; }
.rj-pied-manuscrit { font-size: 34px; }
@container page (max-width: 680px) {
  .rj-reseau-bande { padding: 24px 20px; }
  .rj-cookies-fixe { left: 12px; right: 12px; max-width: none; }
}

/* ---------- Contact ---------- */
.rj-contact-carte { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px; border: 1px solid var(--filet); border-radius: var(--rayon-fin); background: var(--blanc); }
.rj-contact-carte .corps-sm { color: var(--taupe); }
.rj-contact-carte .rj-bouton { text-decoration: none; }
.rj-contact-mail { color: var(--sauge-foncee); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.rj-groupe { display: flex; flex-direction: column; gap: 12px; }
.rj-groupe-univers { padding: 20px 22px; background: var(--blanc); border-radius: var(--rayon-fin); display: flex; flex-direction: column; gap: 6px; }
.rj-groupe-univers a { color: var(--sauge-foncee); text-decoration: underline; text-underline-offset: 3px; }
.rj-fondateur { display: flex; flex-direction: column; gap: 8px; }
.rj-fondateur .corps-sm, .rj-fondateur .note { color: var(--taupe); }
.rj-fondateur-photo { position: relative; width: 104px; height: 128px; margin-bottom: 8px; overflow: hidden; display: grid; place-items: center; border-radius: 9999px 9999px 0 0; background: var(--nude); }
.rj-fondateur-photo::before { content: attr(data-initiales); font: 700 28px/1 var(--font-titre); color: var(--sur-clair); }
.rj-fondateur-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rj-fondateur-liens a { color: var(--sauge-foncee); text-decoration: underline; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .rj-faq summary svg, .rj-bouton { transition: none !important; }
}

/* Composants écrits par l'agent */
.rj-comparatif thead th { font: 700 11.5px/1.2 var(--font-texte); letter-spacing: .18em; text-transform: uppercase; color: var(--sauge-foncee); }
.rj-comparatif tbody th { font: 600 15px/1.3 var(--font-titre); color: var(--expresso); }
.rj-comparatif td { font-size: 14.5px; line-height: 1.6; }
.rj-comparatif figcaption { color: var(--taupe); }
.rj-prose ol:not([class]) > li > .titre-xs, .rj-prose ol:not([class]) > li > .titre-sm { margin: 0 0 4px; }
.rj-prose ol:not([class]) > li > .corps-sm { color: var(--taupe); }
.rj-prose .rj-idee, .rj-prose .rj-repere, .rj-prose .rj-citation, .rj-prose .rj-preuve { max-width: var(--largeur-texte); }
.rj-prose .rj-citation figcaption b { font-weight: 600; color: var(--expresso); }
.rj-alire-site::before { display: none !important; }
@container page (max-width: 680px) { .rj-une { gap: 48px; } }
@container page (max-width: 680px) { .rj-ea-figure figcaption { padding: 0 20px; } }
