/* Les Fêtes : roue en astrolabe, grimoire « Fêtes Valshaar » et petite bibliothèque (préfixe fe-, 2026-11-15).
   Le livre lui-même vient de valshaar-livre.css (jetons --lv-*, définis par .lv-page). */
.fe-page { max-width: 1320px; }
.fe--hiver { --saison: #5b7aa6; } .fe--printemps { --saison: #5f8f4e; } .fe--ete { --saison: #b8862a; } .fe--automne { --saison: #a8562d; }

/* ---------- La scène : la roue à gauche, le grimoire à droite ---------- */
.fe-scene { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 20px; align-items: center; }
@media (max-width: 1080px) { .fe-scene { grid-template-columns: minmax(0, 1fr); } .fe-roue-zone { max-width: 460px; margin: 0 auto; width: 100%; } }

/* ---------- La roue : un astrolabe d'or ---------- */
.fe-roue { position: relative; width: 100%; aspect-ratio: 1; container-type: inline-size; }
.fe-roue__fond { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fe-r-bord { fill: color-mix(in srgb, var(--bg, #10060c) 85%, #000); stroke: var(--lv-or); stroke-width: .6; }
.fe-r-pointille { fill: none; stroke: var(--lv-or); stroke-opacity: .35; stroke-width: .25; stroke-dasharray: .6 1.6; }
.fe-r-piste { fill: none; stroke: var(--lv-or); stroke-opacity: .3; stroke-width: .3; }   /* la piste où sont posés les sceaux (2026-12-03) */
.fe-r-quartier { fill: var(--saison); fill-opacity: .38; stroke: var(--lv-or); stroke-opacity: .25; stroke-width: .25; }
.fe-r-saison { font: 700 2.5px var(--font-h2), serif; letter-spacing: .5px; fill: #f7ecd6; fill-opacity: .9; text-anchor: middle; dominant-baseline: middle; }
.fe-r-trait { stroke: var(--lv-or); stroke-opacity: .6; stroke-width: .3; }
.fe-r-aiguille { stroke: color-mix(in srgb, var(--lv-or) 50%, #fff); stroke-width: .45; stroke-dasharray: 1 .8; }
/* Aujourd'hui : une perle d'or sur le bord, expliquée sous la roue (plus d'étiquette qui déborde) */
.fe-r-auj { fill: #f7e7b0; stroke: color-mix(in srgb, var(--lv-or) 70%, #000); stroke-width: .4; }
.fe-roue__point { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; background: #f7e7b0; box-shadow: 0 0 0 2px color-mix(in srgb, var(--lv-or) 70%, #000); }
.fe-roue__centre { position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4%;
    color: var(--lv-encre); background: radial-gradient(ellipse at 50% 35%, color-mix(in srgb, var(--lv-papier) 70%, #fff), var(--lv-papier) 62%, var(--lv-ombre-papier)); border: 3px solid var(--lv-or); box-shadow: 0 0 30px color-mix(in srgb, var(--lv-or) 30%, transparent); }
.fe-roue__centre small { font: 400 clamp(8px, 2.2cqw, 11px) var(--font-h2), serif; letter-spacing: .14em; text-transform: uppercase; color: var(--lv-doux); }
.fe-roue__centre b { font: 400 clamp(18px, 6.6cqw, 32px)/1.1 var(--font-h1), serif; color: var(--lv-titre); }
.fe-roue__centre span { font-style: italic; font-size: clamp(11px, 3cqw, 14px); color: color-mix(in srgb, var(--lv-encre) 75%, var(--lv-papier)); }
.fe-sceau { --cire-s: color-mix(in srgb, var(--saison) 62%, var(--lv-cire)); position: absolute; width: 17%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none; color: #fbeedd;
    background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--cire-s) 62%, #fff), var(--cire-s) 60%, color-mix(in srgb, var(--cire-s) 50%, #000));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--lv-or) 75%, transparent), 0 6px 14px -4px #000; text-shadow: 0 1px 1px #0008; transition: transform .2s, box-shadow .2s; z-index: 2; }
.fe-sceau b { font: 400 clamp(9px, 2.8cqw, 14px)/1.05 var(--font-h1), serif; max-width: 92%; overflow-wrap: anywhere; }
.fe-sceau small { font: 700 clamp(7px, 1.8cqw, 9px) var(--font-ui, system-ui), sans-serif; opacity: .9; }
.fe-sceau:hover, .fe-sceau:focus-visible { transform: translate(-50%, -50%) scale(1.08); color: #fff; text-decoration: none; }
.fe-sceau:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fe-sceau.is-prochaine { box-shadow: 0 0 0 2px #f7e7b0, 0 0 0 5px color-mix(in srgb, var(--lv-or) 60%, transparent), 0 6px 14px -4px #000; }
.fe-sceau.is-ouverte { transform: translate(-50%, -50%) scale(1.14); box-shadow: 0 0 0 3px #f7e7b0, 0 0 22px color-mix(in srgb, var(--lv-or) 70%, transparent); }
.fe-roue__aide { margin: 10px 0 0; text-align: center; color: var(--text-dim); font-size: .9rem; }

/* ---------- Le grimoire : la double page d'une fête ---------- */
.fe-livre .lv-scene { padding-top: 8px; }
.fe-ouverture { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; margin-bottom: 10px; padding-top: 6px; border-top: 4px solid var(--saison); }
.fe-ouverture__sur { font-family: var(--font-h2), serif; font-size: 10px; letter-spacing: .14em; color: var(--lv-doux); }
.fe-ouverture__sceau { width: 62px; height: 62px; display: grid; place-items: center; margin: 4px 0; border-radius: 50%; font: 400 26px var(--font-h1), serif; color: #fbeedd;
    background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--lv-cire) 65%, #fff), var(--lv-cire) 60%, color-mix(in srgb, var(--lv-cire) 55%, #000)); box-shadow: 0 4px 0 color-mix(in srgb, var(--lv-cire) 45%, #000); }
.fe-ouverture h2 { margin: 0; font: 400 2.1em/1.05 var(--font-h1), serif; color: var(--lv-titre); }
.fe-ouverture__date { font-size: .9em; color: color-mix(in srgb, var(--lv-encre) 75%, var(--lv-papier)); }
.fe-ouverture__date b { color: var(--lv-cire); font-weight: 700; }
.fe-devise { margin: 8px 0 !important; padding: 10px 12px !important; border-radius: 8px; text-align: center; border: 1px solid color-mix(in srgb, var(--lv-cire) 30%, transparent) !important; background: color-mix(in srgb, var(--lv-cire) 7%, transparent) !important; }
.fe-devise p { margin: 0 !important; font: 400 1.15em/1.4 var(--font-h1), serif; color: var(--lv-titre); }
.fe-devise .fe-devise__fr { margin-top: 4px !important; font: italic .85em var(--font-body), serif; color: color-mix(in srgb, var(--lv-encre) 75%, var(--lv-papier)); }
.fe-etiquettes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 6px 0 !important; }
.fe-etiquettes > span { padding: 3px 9px; border-radius: 6px; border: 1px solid var(--lv-filet); background: color-mix(in srgb, var(--lv-papier) 70%, #fff); font-size: .82em; }
.fe-intro p { margin: .4em 0 !important; }
.fe-intro > p:first-child::first-letter { float: left; font: 400 2.8em/.9 var(--font-h1), serif; color: var(--lv-cire); margin: 4px 8px 0 0; }
.fe-theme { text-align: center; margin: 10px 0 0 !important; }
.fe-theme__btn { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 16px 0 10px; border: 0; border-radius: 8px; cursor: pointer; color: #fbeedd; font: 700 12px var(--font-ui, system-ui), sans-serif;
    background: linear-gradient(90deg, var(--t1), color-mix(in srgb, var(--t1) 60%, var(--t3))); box-shadow: 0 0 0 1px color-mix(in srgb, var(--t2) 60%, transparent); }
.fe-theme__btn i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #fff4; }
.fe-theme__btn i:nth-child(1) { background: var(--t1); } .fe-theme__btn i:nth-child(2) { background: var(--t2); } .fe-theme__btn i:nth-child(3) { background: var(--t3); margin-right: 6px; }
.fe-titre-rituels { margin: 0 0 .5em !important; padding-bottom: 4px; border-bottom: 1px solid var(--lv-filet); font: 400 1.5em var(--font-h1), serif !important; color: var(--lv-titre); }
.fe-etapes { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 10px; }
.fe-etapes li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; }
.fe-etapes__n { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font: 400 12px var(--font-h1), serif; color: #fbeedd;
    background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--lv-cire) 65%, #fff), var(--lv-cire) 60%, color-mix(in srgb, var(--lv-cire) 55%, #000)); }
.fe-etapes b { font: 400 1.12em var(--font-h1), serif; color: var(--lv-titre); }
.fe-etapes p { margin: 2px 0 0 !important; font-size: .92em; line-height: 1.55; }
.fe-vie h3 { font: 400 1.35em var(--font-h1), serif; color: var(--lv-titre); border-bottom: 1px solid var(--lv-filet); padding-bottom: 4px; }
.fe-vie ul { padding-left: 1.1em; }
.fe-vie li { margin-bottom: .5em; }
/* Sans JavaScript : les fêtes l'une sous l'autre, les sauts n'existent pas */
.lv-source .lv-saut { display: none; }

/* ---------- La petite bibliothèque ---------- */
.fe-biblio { margin-top: 2.4rem; padding: 20px 24px 0; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--surface, #2a1220) 90%, #000), color-mix(in srgb, var(--bg, #1a0b14) 90%, #000)); border: 1px solid color-mix(in srgb, var(--lv-or) 25%, transparent); border-bottom: 0; }
.fe-biblio__titre { font: 700 12px var(--font-ui, system-ui), sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.fe-biblio__livres { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 14px; padding-bottom: 16px; }
.fe-biblio__livre { display: flex; gap: 16px; align-items: center; color: inherit; text-decoration: none; }
.fe-biblio__livre:hover { text-decoration: none; color: inherit; }
.fe-biblio__livre:hover .fe-biblio__couv { transform: translateY(-6px) rotate(-1deg); }
.fe-biblio__couv { position: relative; width: 120px; height: 170px; flex: none; border-radius: 3px 8px 8px 3px; display: grid; place-items: center; padding: 14px; box-sizing: border-box; text-align: center; transition: transform .25s;
    font: 400 17px/1.15 var(--font-h1), serif; color: #e9c87a; background: radial-gradient(ellipse at 40% 30%, color-mix(in srgb, var(--cuir) 85%, #fff 12%), var(--cuir) 60%, color-mix(in srgb, var(--cuir) 70%, #000)); box-shadow: inset 6px 0 8px -4px #0009, 0 16px 24px -12px #000; }
.fe-biblio__couv:not(.fe-biblio__couv--image)::before { content: ""; position: absolute; inset: 8px 8px 8px 14px; border: 1.5px solid color-mix(in srgb, #e9c87a 60%, transparent); border-radius: 3px; }
.fe-biblio__couv--image { background: var(--couv) center / contain no-repeat, var(--cuir); }
.fe-biblio__txt b { display: block; font: 400 1.35rem var(--font-h1), serif; color: var(--accent); }
.fe-biblio__txt small { display: block; margin: 4px 0 8px; color: var(--text-dim); line-height: 1.5; }
.fe-biblio__txt em { font: 700 12px var(--font-ui, system-ui), sans-serif; font-style: normal; color: var(--accent); }
.fe-biblio__planche { height: 16px; margin: 0 -24px; background: linear-gradient(180deg, #6a4a30, #3d2716); box-shadow: 0 10px 16px -8px #000; }
/* Présentation compacte : elle tient sur la page de gauche, les rituels commencent à droite */
.fe-ouverture { gap: 2px; margin-bottom: 6px; }
.fe-ouverture__sceau { width: 46px; height: 46px; font-size: 20px; margin: 2px 0; }
.fe-ouverture h2 { font-size: 1.8em; }
.fe-devise { margin: 6px 0 !important; padding: 8px 10px !important; }
.fe-devise p { font-size: 1.05em; }
.fe-etiquettes { align-items: center; }
.fe-etiquettes .fe-theme__btn { min-height: 30px; padding: 0 12px 0 8px; font-size: 11px; }
.fe-intro { font-size: .95em; }
.fe-sceau { width: 17%; }
.fe-theme__btn { background: linear-gradient(90deg, #1a0b14, #2e1a3e); box-shadow: 0 0 0 1px color-mix(in srgb, var(--t2) 70%, transparent); }
.fe-theme__btn i { border-color: #fff8; }
.fe-theme__retirer { display: none; }
.fe-theme__btn[aria-pressed="true"] .fe-theme__mettre { display: none; }
.fe-theme__btn[aria-pressed="true"] .fe-theme__retirer { display: inline; }
.fe-theme__btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--t2), 0 0 14px color-mix(in srgb, var(--t2) 60%, transparent); }
