/* Blog : « le journal de bord ». Repose sur site-panorama.css (barre du haut, polices, couleurs) et
   site-applis.css (boutons, liens, pied de page). Deux gabarits :
   la liste (.page-journal) : tout est écrit à l'encre dans le carnet ouvert de la photo ;
   l'article (.page-article) : le carnet fermé sous la lampe en ouverture, puis une feuille de papier. */
.page-journal { --encre: #2a1a10; --encre-douce: rgba(42, 26, 16, 0.78); --sepia: #96481f; --papier: #f1e7d2; background: #150e08; }

/* ------------------------------------------------------------------ la liste */
.table-bord .stage { position: relative; overflow: hidden; background: #150e08; isolation: isolate; }
.table-bord .table { position: absolute; max-width: none; }
.table-bord .stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 8, 4, 0.55), rgba(14, 8, 4, 0) 16%); pointer-events: none; }
/* une page du carnet : l'encre se fond dans le papier de la photo */
.page { position: absolute; z-index: 2; display: grid; align-content: start; padding: calc(var(--cq) * 5) calc(var(--cq) * 6) calc(var(--cq) * 4); color: var(--encre); font: 500 max(12.5px, calc(var(--cq) * 3.6))/1.45 DM, sans-serif; mix-blend-mode: multiply; }
.page p, .page h1, .page h2 { margin: 0; }
.page-gauche { grid-template-rows: auto auto auto 1fr; gap: calc(var(--cq) * 4); }
.j-sur { font-size: max(10.5px, calc(var(--cq) * 2.9)); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sepia); }
.page h1 { font: 600 calc(var(--cq) * 12)/0.98 Bricolage, DM, sans-serif; letter-spacing: -0.035em; text-wrap: balance; }
.page h1 em { display: block; font-family: "Iowan Old Style", Baskerville, Georgia, serif; font-weight: 400; color: var(--sepia); }
.j-chapeau { font-size: max(13px, calc(var(--cq) * 4.1)); color: var(--encre-douce); }
.j-une { align-self: end; padding-top: calc(var(--cq) * 3.4); border-top: 1.5px solid rgba(42, 26, 16, 0.55); }
.j-une-titre { margin-bottom: calc(var(--cq) * 2) !important; font: italic 400 max(14px, calc(var(--cq) * 4.6))/1 "Iowan Old Style", Baskerville, Georgia, serif; color: var(--sepia); }
/* une entrée du journal */
.entree a { display: grid; gap: calc(var(--cq) * 1.3); color: inherit; text-decoration: none; }
.e-genre { font-size: max(10px, calc(var(--cq) * 2.7)); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sepia); }
.entree h2 { font: 600 max(16px, calc(var(--cq) * 5.3))/1.14 Bricolage, DM, sans-serif; letter-spacing: -0.02em; text-wrap: balance; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 500ms cubic-bezier(0.16, 1, 0.3, 1); display: inline; padding-bottom: 2px; }
.entree.une h2 { font-size: max(17px, calc(var(--cq) * 6)); }
.entree a:hover h2, .entree a:focus-visible h2 { background-size: 100% 1.5px; }
.e-resume { color: var(--encre-douce); font-size: max(12.5px, calc(var(--cq) * 3.5)); }
.e-lire { font-size: max(12px, calc(var(--cq) * 3.3)); font-weight: 700; color: var(--sepia); }
.e-lire i { display: inline-block; font-style: normal; transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.entree a:hover .e-lire i { transform: translateX(6px); }
.entree a:focus-visible { outline: 2px solid var(--sepia); outline-offset: 6px; border-radius: 4px; }
.page-droite { grid-template-rows: 1fr auto; }
.feuille { display: grid; align-content: space-between; gap: calc(var(--cq) * 3); }
.feuille[hidden] { display: none; }
.feuille .entree + .entree { padding-top: calc(var(--cq) * 3.4); border-top: 1.5px dashed rgba(42, 26, 16, 0.4); }
.tourner { display: flex; align-items: center; justify-content: flex-end; gap: calc(var(--cq) * 2.4); padding-top: calc(var(--cq) * 2.4); font: italic 400 max(13px, calc(var(--cq) * 3.8))/1 "Iowan Old Style", Baskerville, Georgia, serif; color: var(--encre-douce); }
.tourner button { width: calc(var(--cq) * 8); height: calc(var(--cq) * 8); min-width: 28px; min-height: 28px; border: 1.5px solid rgba(42, 26, 16, 0.6); border-radius: 50%; background: none; color: var(--encre); font-size: calc(var(--cq) * 5); line-height: 1; cursor: pointer; }
.tourner button:disabled { opacity: 0.3; cursor: default; }
/* l'encre arrive : chaque bloc se révèle, un peu flou d'abord */
.page > *, .feuille > .entree { opacity: 0; filter: blur(3px); transition: opacity 900ms ease, filter 900ms ease; }
.stage.la .page > *, .stage.la .feuille > .entree { opacity: 1; filter: none; }
.stage.la .page-gauche > :nth-child(2) { transition-delay: 120ms; } .stage.la .page-gauche > :nth-child(3) { transition-delay: 260ms; } .stage.la .page-gauche > :nth-child(4) { transition-delay: 420ms; }
.stage.la .feuille > .entree:nth-child(1) { transition-delay: 520ms; } .stage.la .feuille > .entree:nth-child(2) { transition-delay: 660ms; } .stage.la .feuille > .entree:nth-child(3) { transition-delay: 800ms; }

/* ------------------------------------------------------------------ l'article */
.carnet { position: relative; display: grid; align-items: end; min-height: min(78vh, 760px); padding: clamp(120px, 18vh, 190px) max(clamp(28px, 5vw, 90px), (100vw - 1560px) / 2) clamp(90px, 15vh, 150px); overflow: hidden; isolation: isolate; color: var(--cream); }
.carnet > img, .carnet > picture > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.carnet::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(12, 7, 3, 0.74), rgba(12, 7, 3, 0.42) 46%, rgba(12, 7, 3, 0) 70%), linear-gradient(0deg, #150e08, rgba(21, 14, 8, 0) 34%); }
.carnet-texte { display: grid; gap: clamp(12px, 2vh, 20px); max-width: min(62vw, 980px); }
.carnet-texte p, .carnet-texte h1 { margin: 0; }
.ariane { font: 600 clamp(12px, 0.9vw, 14px)/1 DM, sans-serif; letter-spacing: 0.06em; color: rgba(247, 241, 227, 0.72); }
.ariane a { color: inherit; text-underline-offset: 4px; }
.ariane a:hover { color: #fff; }
.carnet .sur::before { transform: scaleX(1); }
.carnet h1 { font: 600 clamp(38px, 5vw, 92px)/0.98 Bricolage, DM, sans-serif; letter-spacing: -0.04em; text-wrap: balance; }
.carnet-accroche { max-width: 56ch; font-size: clamp(16px, 1.25vw, 22px); line-height: 1.5; color: rgba(247, 241, 227, 0.92); }
.carnet-texte > * { opacity: 0; translate: 0 18px; transition: opacity 800ms ease, translate 1000ms cubic-bezier(0.16, 1, 0.3, 1); }
.carnet.la .carnet-texte > * { opacity: 1; translate: 0 0; }
.carnet.la .carnet-texte > :nth-child(2) { transition-delay: 90ms; } .carnet.la .carnet-texte > :nth-child(3) { transition-delay: 180ms; } .carnet.la .carnet-texte > :nth-child(4) { transition-delay: 300ms; }
/* la feuille de papier, posée sur la table sombre : elle remonte un peu sur l'ouverture */
.feuille-article { position: relative; z-index: 1; width: min(100% - 40px, 860px); margin: clamp(-110px, -11vh, -60px) auto 0; padding: clamp(34px, 5vw, 76px) clamp(24px, 5.4vw, 88px) clamp(34px, 5vw, 70px); border-radius: 3px; background: radial-gradient(120% 80% at 20% 0%, #f8f0de, var(--papier) 60%, #e9dcc2); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 40px 90px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3); color: var(--encre); font: 400 clamp(17px, 1.22vw, 19.5px)/1.68 DM, sans-serif; }
.feuille-article > * { margin: 0; }
.feuille-article > * + * { margin-top: 1.15em; }
.feuille-article .lead { font: 400 1.26em/1.5 "Iowan Old Style", Baskerville, Georgia, serif; color: #3a2414; }
.feuille-article h2 { margin-top: 2em; padding-top: 0.9em; border-top: 1.5px solid rgba(42, 26, 16, 0.22); font: 600 clamp(25px, 2.3vw, 36px)/1.12 Bricolage, DM, sans-serif; letter-spacing: -0.025em; text-wrap: balance; }
.feuille-article h3 { margin-top: 1.6em; font: 600 1.16em/1.25 Bricolage, DM, sans-serif; letter-spacing: -0.01em; }
.feuille-article strong { font-weight: 700; color: #1d1109; }
.feuille-article a:not(.bouton):not(.lien) { color: var(--sepia); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.feuille-article a:not(.bouton):not(.lien):hover { color: #6e3112; }
.feuille-article ul { display: grid; gap: 0.6em; padding: 0; list-style: none; }
.feuille-article ul li { position: relative; padding-left: 1.5em; }
.feuille-article ul li::before { content: ""; position: absolute; left: 0.1em; top: 0.72em; width: 0.7em; height: 1.5px; background: var(--sepia); }
/* la photo de l'article : collée dans le carnet, deux bouts d'adhésif */
.f-photo { position: relative; margin: 0 0 clamp(26px, 3.6vw, 44px) !important; padding: 10px 10px 12px; background: #fbf7ee; box-shadow: 0 14px 34px rgba(42, 26, 16, 0.28), 0 1px 3px rgba(42, 26, 16, 0.3); rotate: -0.9deg; }
.f-photo img { display: block; width: 100%; height: auto; }
.f-photo::before, .f-photo::after { content: ""; position: absolute; top: -13px; width: 108px; height: 28px; background: rgba(226, 205, 160, 0.78); box-shadow: 0 1px 2px rgba(42, 26, 16, 0.2); }
.f-photo::before { left: 7%; rotate: -5deg; } .f-photo::after { right: 7%; rotate: 4deg; }
/* les tableaux : un registre, lignes à l'encre */
.ptable-wrap { margin-top: 1.4em; overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: 0.92em; line-height: 1.4; }
.ptable th { padding: 0 14px 10px 0; border-bottom: 2px solid var(--encre); font: 700 0.76em/1.2 DM, sans-serif; letter-spacing: 0.13em; text-transform: uppercase; text-align: left; color: var(--sepia); vertical-align: bottom; }
.ptable td { padding: 12px 14px 12px 0; border-bottom: 1px dashed rgba(42, 26, 16, 0.38); vertical-align: top; }
.ptable td:first-child { font-weight: 700; color: #1d1109; }
.ptable tr:last-child td { border-bottom: 1.5px solid rgba(42, 26, 16, 0.5); }
/* la note en marge */
.callout { margin-top: 1.6em !important; padding: 1em 1.2em 1em 1.3em; border-left: 3px solid var(--sepia); background: rgba(150, 72, 31, 0.09); font: 400 1.06em/1.55 "Iowan Old Style", Baskerville, Georgia, serif; color: #33200f; }
/* la suite : un encart sombre, comme le bois de la table */
.f-suite { display: grid; justify-items: start; gap: 12px; margin-top: 2.6em !important; padding: clamp(24px, 3vw, 40px); border-radius: 4px; background: #1c130b; color: var(--cream); }
.f-suite h2 { margin: 0; padding: 0; border: 0; color: #fff; font-size: clamp(24px, 2.2vw, 34px); }
.f-suite p { margin: 0; color: rgba(247, 241, 227, 0.86); }
.f-suite .actions { margin-top: 8px; }
/* à lire aussi */
.a-lire { width: min(100% - 40px, 860px); margin: clamp(46px, 7vh, 80px) auto clamp(30px, 5vh, 56px); color: var(--cream); }
.a-lire > h2 { margin: 0 0 clamp(12px, 2vh, 18px); font: italic 400 clamp(24px, 2.2vw, 34px)/1 "Iowan Old Style", Baskerville, Georgia, serif; color: #ffd9b0; }
.a-lire ul { margin: 0 0 clamp(18px, 3vh, 28px); padding: 0; list-style: none; border-top: 1px solid rgba(247, 241, 227, 0.25); }
.a-lire li a { display: grid; grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr) auto; align-items: baseline; gap: 10px 24px; padding: clamp(14px, 2.2vh, 20px) 0; border-bottom: 1px solid rgba(247, 241, 227, 0.25); color: var(--cream); text-decoration: none; transition: padding 420ms cubic-bezier(0.16, 1, 0.3, 1), background 300ms ease; }
.a-lire li span { font: 700 clamp(11px, 0.8vw, 13px)/1.2 DM, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-clair); }
.a-lire li b { font: 600 clamp(18px, 1.5vw, 25px)/1.2 Bricolage, DM, sans-serif; letter-spacing: -0.015em; }
.a-lire li i { font-style: normal; color: var(--copper-clair); transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.a-lire li a:hover { padding-left: 12px; background: rgba(247, 241, 227, 0.05); }
.a-lire li a:hover i { transform: translateX(6px); }
.a-lire li a:focus-visible { outline: 2px solid var(--copper-clair); outline-offset: 2px; }

/* ------------------------------------------------------------------ le pied de page */
.pied-quai { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(28px, 5vw, 90px); row-gap: clamp(14px, 2.2vh, 22px); align-items: start; padding: clamp(36px, 6vh, 64px) max(clamp(28px, 5vw, 90px), (100vw - 1560px) / 2) clamp(20px, 3.4vh, 34px); background: #150e08; color: var(--cream); }
.pied-quai .pied-meta { grid-column: 1 / -1; margin: 0; }
.pied-quai h3 { margin: 0; }
@media (max-width: 760px) {
  .pied-quai { grid-template-columns: 1fr; } .pied-quai .pied-colonnes { grid-template-columns: 1fr 1fr; }
  .a-lire li a { grid-template-columns: 1fr auto; } .a-lire li span { grid-column: 1 / -1; }
  .carnet-texte { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page > *, .feuille > .entree { opacity: 1; filter: none; transition: none; }
  .carnet-texte > * { opacity: 1; translate: 0 0; transition: none; }
}

/* ============ Sur téléphone ============ */
@media (max-width: 760px) {
  /* la liste : une seule page de carnet (photo en hauteur). En haut le titre et la dernière entrée, dessous les autres ; pas de résumés, la place manque */
  .page { padding: calc(var(--cq) * 4.4) calc(var(--cq) * 6.4) 0 calc(var(--cq) * 7); font-size: max(13px, calc(var(--cq) * 3.8)); }
  .page-gauche { grid-template-rows: auto auto 1fr; gap: calc(var(--cq) * 2.6); }
  .page h1 { font-size: calc(var(--cq) * 10.4); }
  .j-chapeau { display: none; }
  .j-une { align-self: start; padding-top: calc(var(--cq) * 2.8); }
  .j-une-titre { margin-bottom: calc(var(--cq) * 1.4) !important; }
  .entree h2 { font-size: max(17px, calc(var(--cq) * 5)); }
  .entree.une h2 { font-size: max(18px, calc(var(--cq) * 5.5)); }
  .e-resume, .e-lire { display: none; }
  .page-droite { border-top: 1.5px dashed rgba(42, 26, 16, 0.4); }
  .page-droite { padding-top: calc(var(--cq) * 3.4); padding-bottom: calc(var(--cq) * 3); }
  .feuille { align-content: start; gap: calc(var(--cq) * 2.6); }
  .feuille .entree + .entree { padding-top: calc(var(--cq) * 2.6); }
  .tourner button { width: 36px; height: 36px; font-size: 20px; }
  /* l'article : le titre prend la largeur, la feuille aussi */
  .carnet { min-height: 0; padding: 120px 20px 96px; }
  .carnet-texte { max-width: none; }
  .carnet h1 { font-size: clamp(32px, 9.4vw, 44px); }
  .carnet-accroche { font-size: 16px; }
}
