/* =====================================================================================================
   PRISTAYA — « Le féminin en mouvement » : Ressentir, Moi, récompenses. Chargé après v61.css, avant theme-light.css.
   Esprit des maquettes V2 « clair-obscur » : moins de cartes, des filets fins, l'italique de Cormorant, des halos roses ;
   le dégradé rose porte l'action principale. Touches de rose plus lumineuses (--rose-lum).
   ===================================================================================================== */
:root { --rose-lum: #f7a8c4; --rose-sensuel: #d97a9e; --rule: rgba(234, 211, 168, .14); }

/* En-tête de Ressentir */
.res-head { padding: 6px 0 2px; }
.res-brand { margin: 0; font: 600 .75rem/1 var(--font-body); letter-spacing: .42em; color: var(--champagne); }
.res-title { margin: 10px 0 6px; font: italic 400 clamp(2.2rem, 9vw, 3rem)/1.02 var(--font-title); color: var(--ivory); letter-spacing: -.005em; }
.res-hello, .res-intro { margin: 0; max-width: 46ch; }
.res-intro { font-size: .95rem; }

/* La danse de la semaine : LA priorité visuelle */
.res-hero { position: relative; overflow: hidden; min-height: 430px; display: flex; align-items: flex-end; border-radius: var(--radius-hero, 30px);
  border: 1px solid rgba(234, 211, 168, .22); box-shadow: 0 30px 70px rgba(125, 29, 72, .38), 0 0 0 1px rgba(247, 168, 196, .06) inset;
  background: radial-gradient(420px 260px at 80% 0%, rgba(247, 168, 196, .28), transparent 70%), linear-gradient(165deg, #3b1530, #120a0e); }
.res-hero::before { content: ''; position: absolute; inset: 0; background: var(--cover, none) center 30% / cover no-repeat; opacity: .92; transform: scale(1.02); animation: res-breathe 14s ease-in-out infinite alternate; }
.res-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 7, 9, 0) 25%, rgba(11, 7, 9, .55) 55%, rgba(11, 7, 9, .94) 100%); }
.res-hero__inner { position: relative; z-index: 1; padding: 24px 22px 22px; width: 100%; }
.res-hero h2 { margin: 6px 0 8px; font: italic 500 clamp(2rem, 8vw, 2.6rem)/1.05 var(--font-title); color: #fbf3ec; text-shadow: 0 2px 22px rgba(0, 0, 0, .45); }
.res-hero__intent { font: italic 400 1.2rem/1.4 var(--font-title); color: #f6dce2; margin: 0 0 8px; max-width: 34ch; }
.res-hero__meta { color: #e3cdd3; margin: 0 0 16px; }
.res-hero .btn .icon { width: 18px; height: 18px; }
.res-hero--empty { min-height: 240px; }
@keyframes res-breathe { from { transform: scale(1.02); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .res-hero::before { animation: none; } }

/* Sections légères : un filet, pas de carte */
.res-section { padding: 18px 0 4px; border-top: 1px solid var(--rule); }
.res-section .eyebrow { margin-bottom: 8px; }
.res-section h2 { margin-top: 0; }
.res-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; color: inherit; text-decoration: none; min-height: 64px; }
.res-row__img { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(160deg, #3b1530, #160b11) center / cover; border: 1px solid var(--line); }
.res-row__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.res-row__txt strong { font: 500 1.25rem/1.2 var(--font-title); color: var(--ivory); }
.res-row:hover strong, .res-row:focus-visible strong { color: var(--rose-lum); }
.res-season { display: block; margin: 16px 0 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--rule); color: inherit; text-decoration: none; font-size: .9rem; background: rgba(26, 15, 21, .45); }
.res-season strong { font-weight: 500; color: var(--ivory); }
.res-needs { flex-wrap: wrap; }
.res-meet .reminder { margin-top: 10px; }

/* Vignettes (recommandations, bibliothèque) */
.res-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.res-tiles::-webkit-scrollbar { display: none; }
.res-tiles--grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
@media (min-width: 760px) { .res-tiles { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; } .res-tiles--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.res-tile { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; min-width: 0; }
.res-tile__img { aspect-ratio: 4 / 5; border-radius: 20px; background: linear-gradient(160deg, #3b1530, #160b11) center / cover; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.res-tile:hover .res-tile__img, .res-tile:focus-visible .res-tile__img { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(125, 29, 72, .35); }
.res-tile__body { display: flex; flex-direction: column; gap: 2px; }
.res-tile__body strong { font: 500 1.08rem/1.2 var(--font-title); color: var(--ivory); text-wrap: pretty; }
.res-kind { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--champagne); }
.res-done { font-size: .8125rem; color: var(--ok); } .res-seen { font-size: .8125rem; color: var(--muted); }
.res-library { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 22px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--rule); color: inherit; text-decoration: none; background: rgba(26, 15, 21, .5); }
.res-library > span { display: flex; flex-direction: column; gap: 2px; }
.res-library strong { font: 500 1.2rem var(--font-title); color: var(--ivory); }
.res-locked h2 { margin-top: 4px; }
.res-duree select { width: auto; min-width: 200px; }

/* Une pratique */
.res-player { margin: -4px 0 16px; border-radius: 22px; overflow: hidden; }
.res-player video, .res-player audio { margin: 0; }
.res-cover { position: relative; aspect-ratio: 4 / 3; max-height: 420px; width: 100%; border-radius: 26px; background: linear-gradient(160deg, #3b1530, #120a0e) center 30% / cover; border: 1px solid var(--line); margin: -4px 0 16px; overflow: hidden; }
.res-cover--exp { aspect-ratio: 16 / 9; }
.res-cover__note { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 14px; border-radius: 999px; background: rgba(10, 6, 8, .72); color: var(--ivory); font-size: .875rem; text-align: center; backdrop-filter: blur(4px); }
.res-intent { font: italic 400 1.3rem/1.45 var(--font-title); color: var(--powder); margin: 4px 0 14px; }
.res-body { margin: 10px 0 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
.res-body h3 { font-style: italic; margin: 18px 0 6px; } .res-body p { line-height: 1.75; } .res-body blockquote { margin: 12px 0; padding-left: 16px; border-left: 2px solid var(--rose-sensuel); font: italic 1.2rem/1.5 var(--font-title); color: var(--powder); }
.res-stages { margin: 6px 0 18px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.res-stages summary { min-height: 52px; font-weight: 500; }
.res-stages ol { list-style: none; counter-reset: st; padding: 0 0 12px; margin: 0; display: grid; gap: 14px; }
.res-stages li { counter-increment: st; padding-left: 40px; position: relative; display: grid; gap: 2px; }
.res-stages li::before { content: counter(st, upper-roman); position: absolute; left: 0; top: 0; font: italic 500 1.2rem var(--font-title); color: var(--champagne); width: 28px; text-align: center; }
.res-stages li p { margin: 4px 0 0; }
.res-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0 8px; }
.res-bridge { margin: 22px 0 8px; padding: 14px 18px; border-radius: 20px; border: 1px solid var(--rule); background: rgba(26, 15, 21, .4); }
.res-bridge a { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.res-bridge strong { font: 500 1.15rem var(--font-title); color: var(--ivory); }
.res-bridge a:hover strong { color: var(--rose-lum); }

/* Moi */
.me-journal { margin-top: 18px; }
.me-journal .icon { width: 28px; height: 28px; color: var(--champagne); }
.me-journal h2 { margin: 2px 0 6px; }
.me-journal__last { list-style: none; padding: 0; margin: 4px 0 14px; display: grid; gap: 2px; }
.me-journal__last a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.me-journal__last strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-season .eyebrow, .screen--moi .row-link .eyebrow { display: block; margin-bottom: 2px; }

/* Récompenses et codes */
.reward-code .code { font: 600 1.15rem/1 ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: .12em; color: var(--champagne); padding: 8px 12px; border-radius: 12px; border: 1px dashed rgba(234, 211, 168, .45); background: rgba(234, 211, 168, .06); }

/* Navigation : l'onglet Ressentir porte une touche de rose plus lumineuse quand il est actif */
.tabbar__link[aria-current='page'] .icon { color: var(--rose-lum); }

/* Mode clair */
html[data-theme='light'] { --rose-lum: #b83a70; --rose-sensuel: #a3285f; --rule: rgba(122, 40, 75, .14); }
html[data-theme='light'] .res-title, html[data-theme='light'] .res-row__txt strong, html[data-theme='light'] .res-tile__body strong, html[data-theme='light'] .res-library strong, html[data-theme='light'] .res-bridge strong { color: var(--text); }
html[data-theme='light'] .res-season, html[data-theme='light'] .res-library, html[data-theme='light'] .res-bridge { background: rgba(255, 255, 255, .7); }
html[data-theme='light'] .res-intent, html[data-theme='light'] .res-body blockquote { color: var(--berry-d); }
html[data-theme='light'] :is(.res-hero) { --text: #f6ede4; --ivory: #f6ede4; --muted: #e3cdd3; --champagne: #ead3a8; color: var(--text); }
html[data-theme='light'] .reward-code .code { color: var(--gold); border-color: rgba(138, 100, 32, .45); background: rgba(138, 100, 32, .06); }
.brand__tag { display: block; margin-top: 6px; font: italic 400 .95rem/1.2 var(--font-title); letter-spacing: .02em; color: var(--powder); }
.res-hello { margin: 0 0 2px; color: var(--powder); }
@media (max-width: 899px) { .res-brand { display: none; } .res-title { margin-top: 2px; } }
html[data-theme='light'] .res-hello { color: var(--berry-d); }

/* Semaines du mois (0.19) : bandeau des semaines, ‹ › et date de déblocage des suivantes. */
.res-weekhead { border-top: 0; padding-top: 6px; }
.res-weekhead h2 { font: 500 1.35rem/1.2 var(--font-title); color: var(--ivory); margin-bottom: 10px; }
.res-weeks { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.res-weeks::-webkit-scrollbar { display: none; }
.res-week { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--rule); color: inherit; text-decoration: none; font-size: .82rem; background: rgba(26, 15, 21, .45); min-height: 44px; }
.res-week strong { font-weight: 500; color: var(--ivory); font-size: .9rem; }
.res-week span { color: var(--muted, #b9a7ae); display: inline-flex; align-items: center; gap: 4px; }
.res-week span svg { width: 13px; height: 13px; }
.res-week.is-on { border-color: var(--champagne); background: rgba(214, 180, 140, .12); }
.res-week.is-locked { opacity: .62; }
a.res-week:hover, a.res-week:focus-visible { border-color: var(--rose-lum); }
.res-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0 14px; min-height: 36px; }
.res-pager__next { text-align: right; }
@media (min-width: 760px) { .res-weeks { overflow: visible; margin: 0; padding: 0; } }
