/* Journal de création — complète ../css/style.css (variables, boutons, dialogues, lightbox) */
body.journal::before { background: linear-gradient(#6e3826, var(--bg-2)); animation: none; }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.back:hover { color: #fff; }
.jhero { padding-block: clamp(36px, 7vw, 80px) 24px; }
.jhero h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.05; color: var(--accent); text-transform: uppercase; margin: 0; }
.jhero h1 small { display: block; margin-top: 10px; color: var(--blue); font-size: .38em; font-style: italic; font-weight: 400; text-transform: none; }
.intro { max-width: 44em; margin: 18px 0 0; color: var(--muted); font-size: 1.05rem; }

/* frise de navigation */
.frise { position: sticky; top: 0; z-index: 20; background: #6e3826e6; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid #ffffff14; padding: 14px 0 10px; }
.fwrap { width: min(1120px, 100% - 32px); margin-inline: auto; position: relative; }
.track { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 20px; height: 2px; background: #ffffff26; border-radius: 2px; }
.fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--blue), var(--accent)); border-radius: 2px; transition: width .15s linear; }
.moon { position: absolute; top: -12px; width: 26px; height: 26px; transform: translateX(-50%); transition: left .15s linear; filter: drop-shadow(0 0 calc(var(--p, 0) * 9px) #ffd60acc); }
.moon .dark { fill: #5e2e1f; stroke: #f6e4c8; stroke-opacity: .55; stroke-width: 1; }
.moon .lit { fill: #f6e7bd; }
.nodes { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.node { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0 2px; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.node i { width: 12px; height: 12px; border-radius: 50%; background: #6e3826; border: 2px solid #ffffff55; margin-bottom: 12px; transition: all .25s; }
.node b { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.node:hover { color: #fff; }
.node.on { color: var(--text); }
.node.on i { border-color: var(--accent); background: var(--accent); transform: scale(1.3); box-shadow: 0 0 0 5px #ffd27a33; }
@media (max-width: 760px) { .node b { font-size: .64rem; white-space: normal; text-align: center; line-height: 1.15; } }

/* partenaires et filtres */
.journal main > .wrap { padding-block: 30px 0; }
#article hr { border: 0; border-top: 1px solid #ffffff22; margin: 1.4em 0; }
.partners { margin: 34px 0 4px; background: var(--panel-a); border-radius: var(--radius); padding: 26px 22px; }
.partners h2 { margin: 0 0 8px; font-size: 1.3rem; }
.partners p { margin: 0 0 14px; }
.partners ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.partners li { border: 1px solid #f6e4c855; border-radius: 999px; padding: 5px 12px; font-size: .85rem; }
.tools { padding-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hint { margin-right: 6px; font-size: .85rem; color: var(--muted); }
.tchip { font: 600 .8rem Exo, sans-serif; color: var(--text); background: transparent; border: 1px solid #f6e4c855; border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: all .2s; }
.tchip:hover { background: #ffffff14; }
.tchip.on { background: var(--accent); color: #1a1205; border-color: var(--accent); }

/* chapitres et cartes */
.chap .wrap { padding-block: clamp(72px, 11vw, 150px) 8px; }
.chap { scroll-margin-top: 20px; }
.chap h2 { margin-bottom: 8px; }
.chap h2 small { margin-left: 14px; font-size: .45em; color: var(--blue); font-style: italic; text-transform: none; font-weight: 700; display: inline; }
.chap-sub { margin: 0 0 20px; color: var(--muted); max-width: 40em; font-size: .95rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 18px; min-height: 120px; }
.tag { display: inline-block; font: 700 .7rem/1 Exo, sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: #ffffff1a; color: var(--text); }
.card { display: block; text-decoration: none; color: inherit; transition: opacity .3s, transform .3s; }
.card .imgbox { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 3; background: #5e2e1f; margin-bottom: 10px; }
.card .imgbox img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .imgbox img { transform: scale(1.05); }
.card:hover .vid { transform: scale(1.1); }
.card .ph { display: grid; place-items: center; background: linear-gradient(135deg, #8f5038, #6e3826); font-size: 2.6rem; color: #f6e4c888; }
.card .vid { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px; font-style: normal; font-size: 1.1rem; box-shadow: 0 4px 18px #0008; transition: transform .25s; background: var(--accent); color: #1a1205; }
.card h3 { margin: 8px 0 4px; font-size: 1.15rem; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.dim { opacity: .18; transform: scale(.97); }

/* planning de production (même esprit que l'agenda du site) */
section.wrap.plan { padding-block: clamp(140px, 22vw, 320px) 100px; scroll-margin-top: 20px; }
.planlist { list-style: none; margin: 0; padding: 0; }
.planlist li { display: grid; gap: 4px 20px; align-items: start; padding: 8px 12px; border-radius: 8px; font-size: .9rem; line-height: 1.4; transition: background-color .2s; }
.planlist li:nth-child(odd) { background: #ffffff0a; }
.planlist li:hover { background: #ffffff14; }
.planlist time { color: var(--blue); font-weight: 600; font-size: .85rem; padding-top: 2px; }
.planlist strong { display: block; color: inherit; }
.planlist span { color: var(--text); font-size: .85rem; }
.pl { display: flex; gap: 18px; align-items: flex-start; }
.pl > img { flex: 0 0 96px; width: 96px; height: 80px; object-fit: contain; }
.pl > .nologo { flex: 0 0 96px; }
@media (min-width: 720px) { .planlist li { grid-template-columns: 12.5em 1fr; } }

/* article en fenêtre */
#article .sheet { width: min(860px, 100% - 24px); max-height: calc(100svh - 32px); overflow-y: auto; background: var(--bg-2); border: 1px solid #ffffff1f; border-radius: var(--radius); box-shadow: 0 30px 80px #000a; padding: clamp(18px, 4vw, 40px); }
#article h2 { margin: 12px 0 6px; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
#article .sub { margin: 0 0 18px; color: var(--blue); font-style: italic; font-weight: 600; }
#article .body p { margin: 0 0 1em; }
#article .sub strong { font-weight: inherit; }
#article figure { margin: 18px 0; }
#article figure a { display: block; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
#article figure img { width: 100%; height: auto; }
#article figcaption { margin-top: 6px; font-size: .85rem; color: var(--muted); font-style: italic; }
#article .video { position: relative; height: 0; margin: 18px 0; border-radius: 8px; overflow: hidden; background: #000; }
#article .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#article a { color: var(--accent); }

/* mode réorganisation (?edit) */
body.edit .card { cursor: grab; outline: 1px dashed #ffffff44; outline-offset: 4px; border-radius: 8px; }
body.edit .card.dragging { opacity: .35; }
body.edit .grid { outline: 1px dashed #f3c98a66; outline-offset: 6px; border-radius: 8px; }
.mv { display: none; margin-top: 8px; width: 100%; font: .8rem Exo, sans-serif; background: #6e3826; color: var(--text); border: 1px solid #ffffff33; border-radius: 6px; padding: 4px; }
body.edit .mv { display: block; }
#editbar { position: fixed; inset: auto 0 0 0; z-index: 50; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 10px 16px; background: #ffd60a; color: #1a1205; font-size: .85rem; font-weight: 600; }
#editbar[hidden] { display: none; }
#editbar button { font: 700 .85rem Exo, sans-serif; padding: 7px 14px; border-radius: 999px; border: 0; background: #1a1205; color: #ffd60a; cursor: pointer; }

/* navigation entre articles */
.artnav { display: flex; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #ffffff22; }
.artnav button { flex: 1 1 0; max-width: calc(50% - 6px); min-width: 0; text-align: left; background: #ffffff0d; border: 1px solid #ffffff1f; border-radius: 10px; color: var(--text); padding: 10px 14px; cursor: pointer; font: inherit; transition: background-color .2s; }
.artnav button:hover { background: #ffffff1c; }
.artnav .newer { text-align: right; margin-left: auto; }
.artnav small { display: block; color: var(--blue); font-size: .75rem; font-weight: 600; }
.artnav span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#article .lb-nav[hidden] { display: none; }

.nodes { grid-template-columns: repeat(2, 1fr); }
.node b { white-space: nowrap; }
.chap:last-of-type .wrap { padding-bottom: 100px; }
#article .clip { display: block; width: 100%; margin: 18px 0; border-radius: 8px; background: #000; }
#article audio.clip { height: 54px; background: none; }
#article blockquote { margin: 18px 0 6px; padding: 6px 0 6px 18px; border-left: 3px solid var(--accent); font-style: italic; font-size: 1.05rem; }
#article .by { color: var(--blue); font-weight: 600; font-size: .9rem; }
.card .ph { aspect-ratio: 4 / 3; }
.card p time { color: var(--blue); font-weight: 600; }
.chap h2 small { margin-left: 14px; }

/* la frise : un caillou qui roule (à la place de la lune) */
.moon { filter: drop-shadow(0 2px 3px #0008); }
.moon .pebble { fill: #b7a58c; stroke: #f6e4c8; stroke-opacity: .7; stroke-width: 1; }
.moon .shine { fill: none; stroke: #f3e6cf; stroke-opacity: .55; stroke-width: 1.4; stroke-linecap: round; }
.moon .speck { fill: #7d6d58; }

/* navigation entre articles */
.artnav { display: flex; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #ffffff22; }
.artnav button { flex: 1 1 0; max-width: calc(50% - 6px); min-width: 0; text-align: left; background: #ffffff0d; border: 1px solid #ffffff1f; border-radius: 10px; color: var(--text); padding: 10px 14px; cursor: pointer; font: inherit; transition: background-color .2s; }
.artnav button:hover { background: #ffffff1c; }
.artnav .newer { text-align: right; margin-left: auto; }
.artnav small { display: block; color: var(--blue); font-size: .75rem; font-weight: 600; }
.artnav span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#article .lb-nav[hidden] { display: none; }
