/* Livret d'accueil : style « livret imprimé » (titres Poppins, mot manuscrit Allura, ovales beiges, photos en arche) */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-700-latin.woff2) format('woff2'); }
@font-face { font-family: 'Allura'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/allura-latin.woff2) format('woff2'); }

.lv-page { --beige: #e9e1d1; --beige-2: #f5f1e8; --ink: #151515; --lv-font: 'Poppins', 'Segoe UI', system-ui, sans-serif; --lv-script: 'Allura', 'Segoe Script', cursive; padding: 1.5rem 0 3rem; }
.lv-lead { display: block; font-family: var(--lv-script); font-weight: 400; font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: .9; color: var(--ink); text-transform: none; letter-spacing: 0; margin-bottom: -.15em; position: relative; left: .1em; }

/* Couverture */
.lv-cover { position: relative; display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr) auto; gap: 2rem; align-items: stretch; background: var(--beige-2); border-radius: 28px; overflow: hidden; margin-bottom: 1.4rem; }
.lv-cover__photo { min-height: 420px; }
.lv-cover__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-cover__body { align-self: center; padding: 2rem 0; }
.lv-cover h1 { font-family: var(--lv-font); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 1rem; color: var(--ink); }
.lv-cover h1 .lv-lead { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: -.1em; }
.lv-cover__name { margin: 0; font-family: var(--lv-font); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; color: var(--ink); }
.lv-cover__addr { margin: .2rem 0 1.2rem; color: var(--ink-soft); }
.lv-chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.lv-chips li { margin: 0; background: var(--beige); border-radius: 999px; padding: .3rem .85rem; font-size: .88rem; font-weight: 600; color: var(--ink); }
.lv-cover__word { margin: 0; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--lv-font); font-weight: 700; font-size: clamp(3rem, 8vw, 5.6rem); line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); padding: 1rem 1.2rem; align-self: center; }

/* Repères rapides + sommaire */
.lv-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; list-style: none; margin: 0 0 1.2rem; padding: 0; }
.lv-facts li { display: flex; align-items: center; justify-content: center; gap: .55rem; margin: 0; padding: .8rem 1rem; background: var(--beige); border-radius: 999px; text-align: center; }
.lv-facts .icon { width: 1.25rem; height: 1.25rem; color: var(--ink); flex: none; }
.lv-facts strong { font-family: var(--lv-font); font-size: .92rem; color: var(--ink); }
.lv-toc { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 2rem; }
.lv-toc__title { margin: 0; font: 700 .8rem/1 var(--lv-font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lv-toc ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; flex: 1 1 100%; }
.lv-toc li { margin: 0; }
.lv-toc li a { display: block; padding: .28rem .8rem; border: 1px solid #d9cdb8; border-radius: 999px; font-size: .9rem; text-decoration: none; color: var(--ink); }
.lv-toc li a:hover { background: var(--beige); }
.lv-actions { margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; }

/* Rubriques */
.lv-body { display: grid; gap: 1.6rem; }
.lv-sec { position: relative; overflow: hidden; background: #fff; border: 1px solid #ece4d3; border-radius: 28px; padding: clamp(1.4rem, 4vw, 2.8rem); scroll-margin-top: calc(var(--header-h) + 16px); }
.lv-sec::before { content: ''; position: absolute; top: -46px; right: -46px; width: 130px; height: 130px; border-radius: 50%; background: var(--beige); border: 2px solid var(--ink); opacity: .9; pointer-events: none; }
.lv-sec:nth-child(even)::before { right: auto; left: -46px; }
.lv-head { margin-bottom: 1.4rem; position: relative; }
.lv-head h2 { margin: 0; font-family: var(--lv-font); font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; color: var(--ink); }
.lv-rule { display: block; height: 2px; background: var(--ink); margin-top: .7rem; max-width: 460px; }
.lv-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: center; }
.lv-grid--left { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.lv-grid--left .lv-photo { order: -1; }
.lv-grid--solo { grid-template-columns: minmax(0, 1fr); }
.lv-text p { margin: 0 0 .8rem; }
.lv-text .checklist { margin: 0 0 .8rem; }
.lv-text strong { color: var(--ink); }

/* Photos : arche, cercle, bandeau, colonne */
.lv-photo { margin: 0; overflow: hidden; background: var(--beige); }
.lv-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lv-photo--arch { border-radius: 999px 999px 24px 24px; aspect-ratio: 3 / 4; max-width: 360px; width: 100%; justify-self: center; }
.lv-photo--circle { border-radius: 50%; aspect-ratio: 1; max-width: 320px; width: 100%; justify-self: center; border: 6px solid #fff; box-shadow: 0 0 0 2px var(--ink); }
.lv-photo--side { border-radius: 24px; aspect-ratio: 3 / 4; max-width: 340px; width: 100%; justify-self: center; }
.lv-photo--wide { border-radius: 24px; aspect-ratio: 21 / 8; width: 100%; margin: 0 0 1.4rem; }
.lv-photo--wide + .lv-text { margin-top: 0; }
.lv-text + .lv-photo--wide { margin: 1.4rem 0 0; }
.lv-sec > .lv-photo--arch { aspect-ratio: 16 / 7; border-radius: 999px 999px 24px 24px / 160px 160px 24px 24px; max-width: none; margin: 0 0 1.4rem; }
.lv-avatar { float: right; width: 96px; height: 96px; margin: 0 0 .6rem 1rem; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--ink); }
.lv-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-strip { display: flex; flex-wrap: wrap; gap: .8rem; margin: -.4rem 0 1.4rem; }
.lv-strip div { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ink); }
.lv-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Pastilles, ovales, badge */
.lv-badge { display: inline-flex; align-items: center; margin: 0 0 1rem !important; padding: .45rem 1.3rem; background: var(--beige); border-radius: 999px; font: 700 1.05rem/1.2 var(--lv-font); color: var(--ink); text-transform: uppercase; }
.lv-ovals { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; list-style: none; margin: 0 0 .8rem; padding: 0; counter-reset: lv; }
.lv-ovals li { counter-increment: lv; margin: 0; background: var(--beige); border-radius: 34px; padding: 1.3rem 1.2rem 1.4rem; text-align: center; display: flex; flex-direction: column; gap: .4rem; }
.lv-ovals li::before { content: counter(lv, decimal-leading-zero); font: 700 1.7rem/1 var(--lv-font); color: var(--ink); }
.lv-ovals strong { font: 700 .82rem/1.25 var(--lv-font); letter-spacing: .05em; text-transform: uppercase; }
.lv-ovals span { display: block; font-size: .93rem; color: #2d2d2d; }
.lv-ovals span::first-letter { text-transform: uppercase; }
.lv-ovals span strong { font: inherit; font-weight: 700; letter-spacing: 0; text-transform: none; }
.lv-pills { display: flex; flex-wrap: wrap; gap: .7rem; list-style: none; margin: 0 0 .8rem; padding: 0; }
.lv-pills li { margin: 0; background: var(--beige); border-radius: 999px; padding: .7rem 1.5rem; display: flex; align-items: baseline; gap: .6rem; }
.lv-pills strong { font: 700 .95rem/1.2 var(--lv-font); text-transform: uppercase; letter-spacing: .03em; }
.lv-pills span { font-size: 1rem; }
.lv-cols { columns: 2 300px; column-gap: 2rem; }
.lv-cols li { break-inside: avoid; }
.callout { background: var(--beige-2); border-left: 4px solid var(--ink); color: var(--ink); border-radius: 0 14px 14px 0; padding: .8rem 1.1rem; }
.lv-foot { margin-top: 1.6rem; text-align: center; }

@media screen and (max-width: 960px) {
  .lv-cover { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lv-cover__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .lv-cover__body { padding: 1.6rem; }
  .lv-cover__word { display: none; }
  .lv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lv-grid, .lv-grid--left { grid-template-columns: minmax(0, 1fr); }
  .lv-grid--left .lv-photo { order: 0; }
  .lv-photo--arch, .lv-photo--circle, .lv-photo--side { max-width: 300px; }
}

/* Impression / PDF */
@media print {
  .lv-page { padding: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .lv-toc, .lv-actions { display: none !important; }
  .lv-cover { break-after: page; min-height: 225mm; grid-template-columns: 300px minmax(0, 1fr) auto; }
  .lv-cover__photo { min-height: 225mm; }
  .lv-cover__word { font-size: 4.2rem; }
  .lv-facts { break-after: avoid; }
  .lv-sec { break-inside: avoid; border-radius: 20px; padding: 1.2rem 1.4rem; margin-bottom: 0; }
  .lv-sec::before { display: none; }
  .lv-body { gap: 1rem; }
  .lv-photo--circle, .lv-photo--arch, .lv-photo--side { max-width: 230px; }
  .lv-photo--wide { aspect-ratio: 21 / 6; }
  .lv-cols { columns: 2 200px; }
}

.lv-video { margin-bottom: 1.6rem; text-align: center; }
.lv-video .lv-head { text-align: left; }
.lv-video video { display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 24px; background: #151515; }
@media print { .lv-video { display: none; } }

.lv-vidcard { display: flex; align-items: center; gap: 1.4rem; text-align: left; text-decoration: none; color: var(--ink); background: var(--beige-2); border-radius: 24px; padding: 1rem 1.4rem 1rem 1rem; max-width: 560px; margin: 0 auto 1rem 0; }
.lv-vidcard:hover { background: var(--beige); }
.lv-vidcard__thumb { position: relative; flex: none; width: 90px; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--beige); }
.lv-vidcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-vidcard__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(21, 21, 21, .32); color: #fff; }
.lv-vidcard__play .icon { width: 2rem; height: 2rem; fill: #fff; stroke: #fff; }
.lv-vidcard__text { display: grid; gap: .25rem; }
.lv-vidcard__text strong { font: 700 1.1rem/1.2 var(--lv-font); text-transform: uppercase; }
.lv-vidcard__text span { font-size: .95rem; color: var(--ink-soft); }
.lv-note { margin: 0; padding: .7rem 1rem; border-left: 4px solid #c9a74f; background: #fbf6e6; border-radius: 0 12px 12px 0; font-size: .95rem; text-align: left; color: #4a3d12; }
