/* Carnet à onglets et paramètres éditoriaux — septembre 2026. */
.lh-settings-editorial { max-width: 980px; margin: 0 auto; padding: 24px 0 70px; }
.lh-settings-heading { padding: 12px 0 32px; }
.lh-settings-heading h2 { font: 500 clamp(2.8rem,5vw,4.5rem)/1.05 var(--font-display); margin: 12px 0; }
.lh-settings-heading p:last-child { color: var(--lh-muted); }
.lh-settings-account { display: flex; flex-wrap: wrap; gap: 24px 40px; padding: 24px 0; border-block: 1px solid var(--lh-border); margin-bottom: 36px; align-items: center; }
.lh-settings-account div { display: grid; gap: 6px; min-width: 0; }
.lh-settings-account span { color: var(--lh-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.lh-settings-account strong { font-weight: 500; overflow-wrap: anywhere; }
.lh-settings-account a { margin-left: auto; color: var(--lh-gold); font-size: .85rem; }
.lh-settings-editorial .lh-panel { box-shadow: none; border: 0; background: transparent; padding: 24px 0; }
.lh-settings-editorial h3 { font: 500 2rem/1.15 var(--font-display); margin: 6px 0 16px; }
.lh-settings-editorial .lh-panel > p { max-width: 68ch; color: var(--lh-muted); }
.lh-settings-editorial .lh-form { gap: 18px; }
.lh-settings-editorial .lh-form > .lh-btn { justify-self: start; width: auto; }
.lh-settings-identity { border-left: 2px solid var(--lh-gold); padding: 12px 20px; margin: 26px 0; display: grid; gap: 8px; background: color-mix(in srgb,var(--lh-gold) 5%,transparent); }
.lh-settings-identity span, .lh-settings-identity small { color: var(--lh-muted); }
.lh-settings-identity strong { overflow-wrap: anywhere; font-weight: 500; }
.lh-settings-fold { border-top: 1px solid var(--lh-border); padding: 0 8px; }
.lh-settings-fold > summary { display: flex; align-items: center; gap: 24px; cursor: pointer; list-style: none; padding: 25px 0; }
.lh-settings-fold > summary::-webkit-details-marker { display:none; }
.lh-settings-fold > summary > span { color: var(--lh-gold); font: 1.3rem var(--font-display); }
.lh-settings-fold > summary strong { display: block; font-size: 1.1rem; font-weight: 500; }
.lh-settings-fold > summary small { display: block; color: var(--lh-muted); margin-top: 5px; }
.lh-settings-fold > summary::after { content: '+'; margin-left: auto; color: var(--lh-gold); font-size: 1.5rem; }
.lh-settings-fold[open] > summary::after { content: '−'; }
.lh-settings-fold .lh-intention-card { padding: 16px; }
.lh-grimoire-open { position: relative; padding-right: 58px; }
.lh-carnet-tabs { position: absolute; right: 0; top: 100px; display: flex; flex-direction: column; gap: 8px; z-index: 2; max-height: 70vh; overflow: auto; }
.lh-carnet-tabs button { writing-mode: vertical-rl; padding: 22px 15px; border: 1px solid #826b45; border-left: 0; border-radius: 0 7px 7px 0; color: #d6c4a3; background: #282019; cursor: pointer; letter-spacing: .09em; min-height: 85px; transition: background .2s,color .2s; }
.lh-carnet-tabs button[aria-pressed="true"] { color: #1b1612; background: #d6b878; border-color: #d6b878; }
.lh-carnet-tabs button:hover { background: #705732; color: #fff3dc; }
.lh-carnet-single { min-height: 740px; padding: clamp(24px,4vw,64px); border: 1px solid #786341; background: #1b1612; color: #eee3d1; box-shadow: 0 22px 55px #0003; }
.lh-carnet-single .lh-panel { background: transparent; border: 0; box-shadow: none; padding: 0; }
.lh-carnet-single h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem,3vw,2.7rem); }
.lh-carnet-single .lh-context-grid { margin-top: 30px; }
.lh-carnet-turn { display:flex; justify-content:space-between; gap:12px; padding-bottom:24px; border-bottom:1px solid #826b4540; margin-bottom:24px; }
.lh-carnet-turn button { background:none; border:0; color:inherit; font-size:.75rem; padding:8px 0; cursor:pointer; }
.lh-carnet-turn button:disabled { opacity:.3; cursor:default; }
.lh-carnet-trace-door { border-block: 1px solid #826b4560; padding: 22px 0; margin: 32px 0; }
.lh-carnet-trace-door > summary { color: #efd398; cursor:pointer; font:500 1.6rem var(--font-display); }
.lh-carnet-trace-door > summary span { display:block; font: .75rem/1.8 var(--font-body, sans-serif); color:#c1ab83; margin:8px 0 0 20px; }
.lh-carnet-trace-door[open] > summary { margin-bottom:28px; }
.lh-path-memory { border-block-start: 1px solid #826b4560; padding:24px 0; }
.lh-path-memory summary { cursor:pointer; }
.lh-path-memory summary > span { color:#d6b878; font-size:.75rem; }
.lh-path-memory h4 { font: 500 1.6rem var(--font-display); margin:12px 0; }
.lh-path-memory p { color:inherit; opacity:.8; white-space:pre-line; }
.lh-path-memory > div { padding: 20px; background:#ffffff04; }
.lh-carnet-single .lh-journey-history { margin-top:50px; }
html[data-theme="light"] .lh-carnet-single { background:#f0eadf; color:#35291d; }
html[data-theme="light"] .lh-carnet-tabs button { background:#e4dac9; color:#5b472b; }
html[data-theme="light"] .lh-carnet-tabs button[aria-pressed="true"] { background:#796037; color:#fff9ed; }
html[data-theme="light"] .lh-carnet-trace-door > summary, html[data-theme="light"] .lh-path-memory summary > span { color:#775421; }
html[data-theme="light"] .lh-carnet-trace-door > summary span { color:#755e41; }
@media (max-width: 1100px) {
 .lh-grimoire-open { padding-right:0; }
 .lh-carnet-tabs { position:sticky; top:76px; flex-direction:row; max-height:none; padding:10px 0 0; margin-bottom:0; background:var(--lh-bg); }
 .lh-carnet-tabs button { writing-mode:horizontal-tb; min-height:44px; padding:12px 22px; border:1px solid #826b45; border-radius:7px 7px 0 0; }
 .lh-grimoire-spread { grid-template-columns:minmax(0,1fr); }
}
@media (max-width: 760px) {
 .lh-grimoire-spread { display:block; }
 .lh-grimoire-spread::after { display:none; }
 .lh-grimoire-year { min-height:0; padding:26px 20px; }
 .lh-grimoire-year header h2 { font-size:3rem; }
 .lh-grimoire-year header > p:last-child { font-size:.8rem; }
 .lh-grimoire-month-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 8px; }
 .lh-grimoire-month-page { padding:28px 20px; }
 .lh-carnet-single { padding:28px 20px; }
 .lh-settings-account { gap:22px; }
 .lh-settings-account a { margin-left:0; }
 .lh-settings-fold { padding:0; }
 .lh-settings-fold > summary { gap:16px; }
 .lh-carnet-tabs { top:65px; }
}
@media (prefers-reduced-motion: no-preference) {
 .lh-grimoire-month-page, .lh-carnet-single { animation: carnet-page-in .28s ease-out; }
 @keyframes carnet-page-in { from { opacity:.4; transform:translateX(8px); } to { opacity:1; transform:none; } }
}
.lh-grimoire-open[data-reduced-motion="true"] .lh-grimoire-month-page, .lh-grimoire-open[data-reduced-motion="true"] .lh-carnet-single { animation:none; }
.lh-carnet-single .lh-journey-history > div { display: block; }
.lh-carnet-single .lh-journey-history > header { display: block; max-width: 65ch; }
.lh-carnet-single .lh-journey-history > header p { max-width: none; }
/* Give the Oracle room to be contemplated, including in the annual index. */
.lh-grimoire-month-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.lh-grimoire-oracle figure { width: min(100%, 360px); }
.lh-grimoire-month-heading h2 { font-size: clamp(2.4rem,4.5vw,4.6rem); }
.lh-settings-editorial .lh-check { display:flex; align-items:center; gap:12px; }
.lh-settings-editorial .lh-check input { width:18px; flex:0 0 18px; }
.lh-grimoire-saved-reading-full { position: relative; overflow: visible; }
.lh-grimoire-saved-reading-full::after {
 content:"";
 position:absolute;
 left:7%;
 right:7%;
 bottom:24px;
 height:1px;
 background:linear-gradient(90deg,transparent,#9e7d3a 18%,#d9bd75 50%,#9e7d3a 82%,transparent);
 opacity:.45;
}
.lh-grimoire-oracle-spread {
 position:relative;
 min-height:clamp(190px,25vw,300px);
 align-items:flex-end;
 gap:0;
 padding:clamp(26px,4vw,46px) clamp(20px,5vw,70px) 38px;
 overflow:visible;
 border-block:1px solid #826b4540;
 background:
  radial-gradient(circle at 50% 22%, #d6b8781c, transparent 34%),
  linear-gradient(180deg, #100c0900, #100c0970);
}
.lh-grimoire-oracle-spread::before {
 content:"";
 position:absolute;
 inset:auto 8% 30px;
 height:44px;
 border:1px solid #d6b87840;
 border-top:0;
 border-radius:50%;
 opacity:.55;
 pointer-events:none;
}
.lh-grimoire-oracle-spread li {
 flex-basis:clamp(64px,8vw,108px);
 margin-inline:clamp(-11px,-1vw,-4px);
 position:relative;
 z-index:var(--spread-layer);
 gap:9px;
 transform:translateY(var(--spread-rise)) rotate(var(--spread-rotate)) scale(var(--spread-scale));
 transition:transform .22s ease, filter .22s ease;
}
.lh-grimoire-oracle-spread li:hover {
 filter:brightness(1.1);
 transform:translateY(calc(var(--spread-rise) - 10px)) rotate(var(--spread-rotate)) scale(calc(var(--spread-scale) + .035));
}
.lh-grimoire-oracle-spread img,
.lh-grimoire-oracle-spread li > span {
 border-color:#8f7039;
 box-shadow:0 18px 26px #0008, 0 0 0 1px #d6b87822 inset;
}
.lh-grimoire-oracle-spread small {
 min-width:62px;
 padding:5px 9px;
 color:#efd398;
 background:#1b120bcc;
 border:1px solid #826b45;
 border-radius:999px;
 font-size:.62rem;
 letter-spacing:.08em;
 transform:rotate(calc(var(--spread-rotate) * -1));
}
.lh-grimoire-collapse-reading,
.lh-grimoire-delete-reading { justify-self:start; }
.lh-grimoire-collapse-reading {
 padding:9px 13px;
 color:#1b1612;
 background:#d6b878;
 border:1px solid #d6b878;
 border-radius:6px;
 font:inherit;
 font-size:.78rem;
 font-weight:700;
 cursor:pointer;
}
.lh-grimoire-collapse-reading:hover,
.lh-grimoire-collapse-reading:focus-visible { background:#efd398; border-color:#efd398; outline:none; }
html[data-theme="light"] .lh-grimoire-oracle-spread {
 background:
  radial-gradient(circle at 50% 22%, #9f72331f, transparent 34%),
  linear-gradient(180deg, #fff8ec00, #e5d8c170);
 border-color:#b9aa91;
}
html[data-theme="light"] .lh-grimoire-oracle-spread small { color:#fff8ec; background:#6f532d; border-color:#8a6631; }
html[data-theme="light"] .lh-grimoire-oracle-spread img,
html[data-theme="light"] .lh-grimoire-oracle-spread li > span { border-color:#8a6631; box-shadow:0 16px 24px #6b4b242e, 0 0 0 1px #fff6e666 inset; }
html[data-theme="light"] .lh-grimoire-collapse-reading { color:#fff8ec; background:#796037; border-color:#796037; }
@media (max-width:760px) {
 .lh-grimoire-month-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .lh-carnet-single .lh-context-depth { padding:16px; }
 .lh-carnet-tabs button { flex-shrink:0; padding:12px 18px; }
 .lh-grimoire-oracle-spread { justify-content:flex-start; min-height:180px; padding-inline:20px; overflow-x:auto; }
 .lh-grimoire-oracle-spread li { flex-basis:72px; margin-inline:2px; transform:translateY(0) rotate(0deg) scale(1); }
 .lh-grimoire-oracle-spread li:hover { transform:translateY(-6px) rotate(0deg) scale(1.03); }
 .lh-grimoire-oracle-spread small { transform:none; font-size:.56rem; }
}
