/* Je viens du livre · app.ludovicnoel.fr/jeviensdulivre — charte reprise de la couverture « Compose tes ailes » (2026-12-03)
   Crème #f4eee2, encre #23252e, sable #ead9b3, ocre #b7761c, bleu Compostelle #1f4d9b, jaune coquille #f2c230, rouge balisage #c9342b.
   Cinzel (titres en capitales), Cormorant Garamond (texte), Caveat (écriture à la main). Trait d'encre fin, comme le dessin. */
@font-face { font-family: "Cinzel"; font-weight: 400 900; font-display: swap; src: url(fonts/cinzel.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant-italic.woff2) format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 400 700; font-display: swap; src: url(fonts/caveat.woff2) format("woff2"); }

:root {
  --cream: #f4eee2; --paper: #fbf7ef; --ink: #23252e; --ink-2: #423c38; --muted: #6b655e; --line: #bcb4a5;
  --sand: #ead9b3; --ochre: #b7761c; --blue: #1f4d9b; --yellow: #f2c230; --red: #c9342b;
  --title: "Cinzel", Georgia, serif; --text: "Cormorant", Garamond, Georgia, serif; --hand: "Caveat", "Segoe Print", cursive;
  --r: 18px; --stroke: 1.5px solid var(--ink);
  --spring: cubic-bezier(.22, 1, .36, 1);
  --glass: rgba(244, 238, 226, .8);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 1.2rem/1.5 var(--text); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; font-family: var(--title); font-weight: 700; line-height: 1.1; letter-spacing: .02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--sand); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .wrap { padding: 0 18px; } }
.muted { color: var(--muted); }

/* Bandeau démo */
.demo-band { background: var(--ink); color: var(--cream); text-align: center; font: 600 .95rem var(--text); padding: 6px 12px; letter-spacing: .02em; }
.demo-band b { font-family: var(--title); letter-spacing: .12em; color: var(--yellow); margin-right: 6px; }

/* Barre du haut : verre translucide */
.bar { position: relative; z-index: 50; background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid rgba(35, 37, 46, .12); }
.bar-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 14px; }
.brand { font-family: var(--title); font-weight: 700; letter-spacing: .22em; font-size: 1rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bar-tag { font-family: var(--hand); font-size: 1.3rem; color: var(--ink-2); }
@media (max-width: 520px) { .bar-tag { display: none; } }

/* Étapes 1-2-3 */
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; font-family: var(--title); font-size: .76rem; letter-spacing: .12em; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.steps li + li::before { content: ""; width: 20px; height: 1px; background: var(--line); }
.steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: var(--stroke); font-size: .8rem; }
.steps .on { color: var(--ink); } .steps .on b { background: var(--ink); color: var(--cream); }
.steps .done b { background: var(--sand); }
@media (max-width: 520px) { .steps span { display: none; } .steps .on span { display: inline; } }

/* Héros + formulaire */
.hero { padding: 40px 0 70px; }
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.hero-txt { display: flex; flex-direction: column; gap: 16px; }
.kicker { font-family: var(--hand); font-size: 1.7rem; color: var(--ochre); line-height: 1.1; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.lead { font-size: 1.3rem; color: var(--ink-2); max-width: 30em; }
.art { width: min(400px, 100%); margin-top: 4px; -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent); mask-image: radial-gradient(closest-side, #000 78%, transparent); }
.quote { font-style: italic; color: var(--ink-2); border-left: 2px solid var(--ochre); padding-left: 14px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero-txt { position: static; } .art { width: min(220px, 60%); margin: 0 auto; } .hero { padding-top: 26px; } }

.card { background: var(--paper); border: var(--stroke); border-radius: var(--r); box-shadow: 0 18px 40px -24px rgba(35, 37, 46, .45); }
.form-card { padding: 30px 28px 24px; }
.form-card h2 { font-size: 1.55rem; }
.form-sub { margin: 6px 0 6px; color: var(--ink-2); }
.sect { font-family: var(--title); font-size: .8rem; letter-spacing: .16em; color: var(--muted); margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.sect::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; gap: 0; } .form-card { padding: 24px 18px 18px; } }
.field { margin-bottom: 14px; position: relative; }
.field label { display: block; font-weight: 700; font-size: 1.08rem; margin-bottom: 5px; }
.opt { font-weight: 500; font-size: .95rem; color: var(--muted); font-style: italic; }
.field input { width: 100%; min-height: 52px; padding: 10px 14px; font: 600 1.15rem var(--text); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s var(--spring); caret-color: var(--ochre); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(183, 118, 28, .18); }
.field input[aria-invalid=true] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(201, 52, 43, .12); }
.f-err { color: var(--red); font-size: 1rem; font-weight: 700; margin-top: 4px; }
.f-err:empty { display: none; }
.hint { font-size: 1rem; color: var(--muted); margin-top: 4px; font-style: italic; }

/* Lieu de départ : recherche dans les étapes (combobox) */
.ac { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; max-height: 300px; overflow: auto; overscroll-behavior: contain;
  background: rgba(251, 247, 239, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: var(--stroke); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(35, 37, 46, .45);
  transform-origin: top center; animation: ac-in 180ms var(--spring); }
@keyframes ac-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.ac li { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; min-height: 44px; justify-content: center; border-radius: 10px; cursor: pointer; }
.ac li[aria-selected=true] { background: var(--sand); }
@media (hover: hover) { .ac li:hover { background: var(--sand); } }
.ac .n { font-weight: 700; font-size: 1.12rem; }
.ac .n mark { background: none; color: var(--ochre); }
.ac .v { font-size: .95rem; color: var(--muted); font-style: italic; }
.ac .empty { cursor: default; color: var(--muted); font-style: italic; }
.chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 3px 12px; border-radius: 99px; background: var(--sand); font-size: 1rem; font-style: italic; }
.chip img { width: 18px; }

/* Cases à cocher */
.choice { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 12px 14px; margin-top: 10px; min-height: 44px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { width: 28px; height: 28px; border: var(--stroke); border-radius: 8px; display: grid; place-items: center; background: #fff; color: transparent; transition: background .15s, transform .1s; }
.box svg { width: 18px; height: 18px; }
.choice:active .box { transform: scale(.88); }
.choice:has(input:checked) { border-color: var(--ink); background: #fffaf0; }
.choice input:checked ~ .box { background: var(--ink); color: var(--yellow); }
.choice input:focus-visible ~ .box { outline: 3px solid var(--blue); outline-offset: 3px; }
.choice-txt { font-size: 1.1rem; line-height: 1.35; }
.choice-txt strong { font-weight: 700; }
.choice-txt .opt { display: block; margin-top: 2px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 26px; border-radius: 999px; border: var(--stroke);
  font: 700 .98rem var(--title); letter-spacing: .08em; text-decoration: none; cursor: pointer; transition: transform 100ms ease-out, background .2s, box-shadow .15s; }
.btn-ink { background: var(--ink); color: var(--cream); box-shadow: 0 5px 0 -1px var(--ochre); }
.btn-ink:active:not(:disabled) { box-shadow: 0 1px 0 -1px var(--ochre); transform: translateY(3px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:active { transform: scale(.97); }
.btn-block { width: 100%; margin-top: 18px; }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--spring); }
@media (hover: hover) { .btn-ink:hover { background: #31343f; } .btn:hover svg { transform: translateX(3px); } }
.btn.is-busy { pointer-events: none; opacity: .85; }
.btn.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(244, 238, 226, .35); border-top-color: var(--cream); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.f-global { margin-top: 12px; text-align: center; color: var(--red); font-weight: 700; }
.f-global:empty { display: none; }
.rgpd { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .98rem; color: var(--muted); line-height: 1.4; }

/* Étape 2 : contenu supplémentaire */
.page { padding: 36px 0 80px; }
.head { max-width: 760px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.note { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: var(--r); background: var(--paper); border: 1.5px dashed var(--ochre); margin-bottom: 28px; }
.note img { width: 42px; flex: none; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.tile { aspect-ratio: 4 / 3; border: var(--stroke); border-radius: 14px; background: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 14px 16px; position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(234, 217, 179, .55) 14px 15px); }
.tile > * { position: relative; }
.tile .d { font-family: var(--title); font-size: .75rem; letter-spacing: .14em; color: var(--muted); }
.tile .t { font-family: var(--title); font-size: 1.02rem; letter-spacing: .04em; }
.tile .s { font-family: var(--hand); font-size: 1.3rem; color: var(--ochre); line-height: 1.1; }
.tile-ico { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: var(--stroke); display: grid; place-items: center; background: var(--cream); }
.tile-ico svg { width: 16px; height: 16px; }
.next { margin-top: 34px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.next h2 { font-size: 1.3rem; }
.next p { color: var(--ink-2); margin-top: 4px; }

/* Étape 3 : crédentiale en cours */
.cred { padding: 44px 0 80px; }
.cred-card { max-width: 560px; margin: 0 auto; padding: 34px 28px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cred-title { display: flex; align-items: center; gap: 14px; font-size: clamp(1.5rem, 5vw, 2.2rem); }
.cred-title img { width: 46px; }
.compass { width: 124px; height: 124px; border-radius: 50%; border: 2px solid var(--ink); position: relative; background: var(--paper); margin: 6px 0 2px; box-shadow: inset 0 0 0 8px var(--cream), inset 0 0 0 9px var(--ink); }
.compass .nn { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-family: var(--hand); font-size: 1.15rem; line-height: 1; }
.needle { position: absolute; left: 50%; top: 50%; width: 12px; height: 80px; margin: -40px 0 0 -6px; animation: seek 3.4s var(--spring) infinite; }
.needle::before, .needle::after { content: ""; position: absolute; left: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; }
.needle::before { top: 0; border-bottom: 40px solid var(--ochre); }
.needle::after { bottom: 0; border-top: 40px solid var(--ink); }
.compass.done .needle { animation: none; transform: rotate(0); }
@keyframes seek { 0% { transform: rotate(-50deg); } 30% { transform: rotate(28deg); } 55% { transform: rotate(-14deg); } 75%, 100% { transform: rotate(0); } }
.progress { width: 100%; height: 8px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.progress span { display: block; height: 100%; width: 6%; background: var(--ink); border-radius: 99px; transition: width .7s var(--spring); }
.cred-step { font-family: var(--hand); font-size: 1.5rem; color: var(--ochre); min-height: 1.6em; }
.recap { width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 16px 18px; margin: 0; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); font-size: 1.1rem; }
.recap dt { color: var(--muted); font-style: italic; }
.recap dd { margin: 0; font-weight: 700; }
.demo { font-size: 1rem; color: var(--muted); font-style: italic; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding: 24px 0 34px; font-size: 1.02rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot a { min-height: 44px; display: inline-flex; align-items: center; }
.foot-quote { font-style: italic; }

/* Accessibilité : moins de mouvement, moins de transparence, plus de contraste */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) { .bar, .ac { background: var(--cream); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) {
  :root { --muted: #3a3530; --line: #23252e; }
  .field input, .choice { border-color: var(--ink); }
}

/* Photos du chemin (2026-12-03, v2) : façon carnet de voyage — tirages photo inclinés qu'on fait glisser, agrandis en plein écran au toucher */
.album { margin: 8px 0 44px; }
.album-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.album-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.strip { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 28px; padding: 26px 28px 34px; margin: 0 -28px; overscroll-behavior-x: contain; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.polaroid { flex: none; margin: 0; scroll-snap-align: center; background: #fff; padding: 12px 12px 10px; box-shadow: 0 1px 2px rgba(35,37,46,.15), 0 18px 34px -16px rgba(35,37,46,.45);
  transform: rotate(var(--rot, -1.6deg)); transition: transform .45s var(--spring), box-shadow .45s var(--spring); }
.polaroid:nth-child(2n) { --rot: 1.4deg; } .polaroid:nth-child(3n) { --rot: -.6deg; }
.polaroid::before { content: ""; position: absolute; top: -10px; left: 50%; width: 76px; height: 22px; margin-left: -38px; background: rgba(234, 217, 179, .85); transform: rotate(-3deg); }
.polaroid { position: relative; }
.pol-btn { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pol-btn img { height: min(50vh, 400px); width: auto; max-width: 70vw; object-fit: cover; }
.polaroid figcaption { padding: 8px 4px 0; display: flex; flex-direction: column; }
.polaroid .when, .lb-slide .when { font-family: var(--hand); font-size: 1.45rem; color: var(--ochre); line-height: 1.1; }
.polaroid .leg { font-family: var(--hand); font-size: 1.25rem; color: var(--ink-2); }
@media (hover: hover) { .polaroid:hover { transform: rotate(0) translateY(-6px) scale(1.015); box-shadow: 0 2px 4px rgba(35,37,46,.15), 0 28px 44px -18px rgba(35,37,46,.5); } }
.polaroid:active { transform: rotate(0) scale(.98); transition-duration: .12s; }
@media (max-width: 600px) { .strip { gap: 18px; padding: 22px 18px 30px; margin: 0 -18px; scroll-padding: 0 18px; } .pol-btn img { height: 52vh; max-width: 82vw; } }

/* Plein écran */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 21, 26, .94); color: var(--cream); overflow: hidden; }
.lightbox[open] { animation: lb-in 260ms var(--spring); }
.lightbox::backdrop { background: rgba(20, 21, 26, .6); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 56px 16px 20px; }
.lb-slide img { max-width: 100%; max-height: calc(100dvh - 130px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lb-slide figcaption { font-size: 1.05rem; color: rgba(244, 238, 226, .85); }
.lb-slide .when { color: var(--yellow); }
.lb-slide .cnt { font-family: var(--title); font-size: .8rem; letter-spacing: .14em; margin-left: 10px; opacity: .7; }
.lb-close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(244,238,226,.4); background: rgba(244,238,226,.12); color: var(--cream); display: grid; place-items: center; cursor: pointer; }
.lb-close svg { width: 22px; height: 22px; }
.lb-close:active { transform: scale(.92); }
.nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid rgba(244,238,226,.4); display: grid; place-items: center; cursor: pointer; color: var(--cream);
  background: rgba(244, 238, 226, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform 100ms ease-out, opacity .2s; }
.nav svg { width: 24px; height: 24px; }
.nav:active { transform: scale(.92); }
.nav:disabled { opacity: 0; pointer-events: none; }
.prev { left: 16px; } .next { right: 16px; }
@media (max-width: 600px) { .nav { display: none; } }
.soon-title { font-size: 1.2rem; margin: 10px 0 12px; }
@media (prefers-reduced-motion: reduce) { .polaroid { transform: none; } .lightbox[open] { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .nav { background: #333; -webkit-backdrop-filter: none; backdrop-filter: none; } }

.cred-ready { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; animation: ac-in 400ms var(--spring); }
.cred-ready .demo { flex-basis: 100%; }
.next-step { margin-top: 4px; }

.strip-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: -14px; }
.sbtn { width: 48px; height: 48px; border-radius: 50%; border: var(--stroke); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform 100ms ease-out, background .2s; }
.sbtn svg { width: 22px; height: 22px; }
.sbtn:active { transform: scale(.92); background: var(--sand); }
@media (hover: none) { .strip-nav { display: none; } }

/* Défiler à la souris (2026-12-03) */
.album-txt { font-size: 1.25rem; color: var(--ink-2); max-width: 40em; }
.tip-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
  .tip-touch { display: none; } .tip-mouse { display: inline; }
  .strip { cursor: grab; } .pol-btn { cursor: grab; }
  .strip.dragging, .strip.dragging .pol-btn { cursor: grabbing; }
}
.strip.dragging { scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.strip.dragging .polaroid { transition: none; }
.strip img { -webkit-user-drag: none; user-select: none; }

/* Mot de la fin (fin du livre) */
.outro { max-width: 680px; margin: 64px auto 0; padding: 40px 24px 0; border-top: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.outro img { width: 64px; }
.outro-txt { font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.45; color: var(--ink); text-wrap: balance; }
.outro-sign { font-family: var(--hand); font-size: clamp(2rem, 5vw, 2.6rem); color: var(--ochre); line-height: 1.1; }
.outro-name { font-family: var(--title); letter-spacing: .2em; font-size: .9rem; color: var(--muted); }

/* Bandeau « réservé aux lecteurs » (toutes les pages) */
.excl-band { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; background: var(--sand); color: var(--ink); border-bottom: 1px solid rgba(35,37,46,.15); text-align: center; font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.excl-band img { width: 22px; flex: none; }

/* Ailes animées de l'accueil (2026-12-03) : dessin vectoriel de la couverture (app/views/_ailes.php).
   Chaque plume tourne un peu autour de sa base, en vague (--k = rang de la plume) ; les ailes respirent autour de l'épaule ;
   la plume ocre flotte. Automatique seulement (le survol faisait sauter l animation, retiré). Rien ne bouge si « réduire les animations ». */
svg.ailes { display: block; height: auto; aspect-ratio: 280 / 272; -webkit-mask-image: none; mask-image: none; overflow: visible; }
.ailes .wing, .ailes .f, .ailes .fl, .ailes .needle { transform-box: view-box; transform-origin: 0 0; }
.ailes .wing { animation: wing-breathe 5.2s ease-in-out infinite; }
.ailes .f { --amp: 2.4deg; animation: plume 3.6s ease-in-out infinite; animation-delay: calc(var(--k) * -0.23s); }
.ailes .f2 { --amp: 3.2deg; animation-duration: 3.1s; }
.ailes .f3 { --amp: 4deg; animation-duration: 2.7s; }
.ailes .loose { animation: drift 7s ease-in-out infinite; }
.ailes .fl { animation: plume 2.9s ease-in-out infinite; --amp: 9deg; }
.ailes .needle { transform-origin: 140px 102px; animation: needle 9s ease-in-out infinite; }
@keyframes wing-breathe { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-5deg); } }
@keyframes plume { 0%, 100% { transform: rotate(calc(var(--amp) * -1)); } 50% { transform: rotate(var(--amp)); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -9px); } }
@keyframes needle { 0%, 100% { transform: rotate(-6deg); } 45% { transform: rotate(5deg); } 70% { transform: rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .ailes .wing, .ailes .f, .ailes .loose, .ailes .fl, .ailes .needle { animation: none; } }

/* Case « seulement le contenu » en haut du formulaire ; téléphone + départ masqués quand elle est cochée */
.choice-top { margin: 0 0 18px; }
.cred-fields:not([hidden]) { animation: ac-in 300ms var(--spring); }
@media (prefers-reduced-motion: reduce) { .cred-fields:not([hidden]) { animation: none; } }

/* Retour à sa crédentiale (cookie 7 jours) + mentions de conservation */
.form-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.back-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 18px 20px; background: var(--sand); }
.back-card h2 { font-size: 1.25rem; margin: 0; }
.back-card p { margin: 2px 0 0; }
.back-card .btn { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
.keep { flex-basis: 100%; background: var(--sand); border-radius: 10px; padding: 10px 14px; text-align: center; }
.rgpd p { margin: 0 0 6px; }
.legal h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 1.12rem; line-height: 1.55; }
.legal ul { padding-left: 1.2em; }

/* Page « Ta crédentiale est prête » : couverture à gauche (clic = PDF), texte à droite */
.prete { padding: 28px 0 56px; }
.prete-grid { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 36px; align-items: start; margin-top: 14px; }
.prete-head { max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.prete-head h1 { margin: 0; }
.prete-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.prete-head .keep { text-align: left; }
.livret { margin: 0; padding-left: 12px; border-left: 3px solid var(--ochre); font-style: italic; }
.cover-dl { position: relative; display: block; border-radius: 3px; perspective: 900px; -webkit-tap-highlight-color: transparent; }
.cover-dl img { display: block; width: 100%; height: auto; background: #fff; border-radius: 3px; transform-origin: left center;
  box-shadow: 0 1px 2px rgba(35,37,46,.18), 0 14px 28px -14px rgba(35,37,46,.45);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1); }
.cover-hint { position: absolute; left: 50%; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: rgba(35,37,46,.78); color: #fff; font-weight: 600; white-space: nowrap;
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  opacity: 0; transform: translate(-50%, 8px); transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.cover-hint svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .cover-dl:hover img { transform: translateY(-6px) rotateY(-8deg); box-shadow: 0 2px 4px rgba(35,37,46,.18), 18px 26px 40px -18px rgba(35,37,46,.55); }
  .cover-dl:hover .cover-hint { opacity: 1; transform: translate(-50%, 0); }
}
.cover-dl:focus-visible { outline: 3px solid var(--ochre); outline-offset: 6px; }
.cover-dl:focus-visible .cover-hint { opacity: 1; transform: translate(-50%, 0); }
.cover-dl:active img { transform: scale(.98); transition-duration: .12s; }
@media (hover: none) { .cover-hint { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .cover-dl img, .cover-hint { transition: none; } .cover-dl:hover img { transform: none; } }
@media (prefers-reduced-transparency: reduce) { .cover-hint { background: #23252e; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (max-width: 720px) { .prete-grid { grid-template-columns: 1fr; gap: 22px; } .cover-dl { max-width: 260px; margin: 0 auto; } }
.btn-big { font-size: 1.05rem; }
/* Liste des autres pèlerins (seulement ceux qui ont coché la case) */
.pelerins { margin-top: 40px; padding: 22px 22px 14px; }
.pelerins h2 { font-size: 1.35rem; margin: 0 0 14px; }
.pel-scroll { overflow-x: auto; }
.pel-pages { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 14px; }
.pel-pages .btn[rel=prev] { justify-self: start; }
.pel-pages .btn[rel=next] { justify-self: end; }
.pel-num { font-size: .9rem; color: var(--muted); text-align: center; }
@media (max-width: 600px) { .pel-pages { grid-template-columns: 1fr 1fr; } .pel-num { grid-column: 1 / -1; grid-row: 1; } }
.pelerins table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.pelerins th { position: sticky; top: 0; background: var(--sand); text-align: left; font-family: Cinzel, serif; font-size: .78rem; letter-spacing: .12em; padding: 10px 12px; }
.pelerins td { padding: 11px 12px; border-top: 1px solid rgba(35,37,46,.12); }
.pelerins td:first-child { font-family: var(--hand); font-size: 1.35rem; line-height: 1; }
.pel-vide { margin: 0 0 8px; font-style: italic; }
.pel-out { margin: 6px 0 0; text-align: right; }
.pel-discret { appearance: none; background: none; border: 0; padding: 12px 2px; min-height: 44px; font: inherit; font-size: .85rem; color: var(--muted);
  text-decoration: underline; text-decoration-color: rgba(107,101,94,.4); text-underline-offset: 3px; cursor: pointer; transition: color .2s ease; }
.pel-discret:hover { color: var(--ink); text-decoration-color: currentColor; }
.pel-discret:active { opacity: .6; }
.pel-discret:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; border-radius: 4px; }
.pel-ok { margin: 10px 0 4px; text-align: right; font-size: .85rem; font-style: italic; color: var(--muted); }
@media (max-width: 600px) { .pelerins { padding: 18px 12px 8px; } .pelerins th, .pelerins td { padding: 9px 8px; } }
@media (max-width: 600px) { .prete-actions .btn { width: 100%; justify-content: center; } }

/* ---------- Carnet de voyage public (/carnet-de-voyage-compostelle) ---------- */
.page-tight { padding-top: 0; }
.sent-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sent-card img { width: 56px; }
.sent-card a { color: var(--ink); }
.book { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 36px; align-items: start; padding: 30px; margin-top: 40px; }
.book-cover { display: block; border-radius: 3px; perspective: 900px; }
.book-cover img { display: block; width: 100%; height: auto; border-radius: 3px; transform-origin: left center;
  box-shadow: 0 1px 2px rgba(35,37,46,.18), 0 14px 28px -14px rgba(35,37,46,.45); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) { .book-cover:hover img { transform: translateY(-6px) rotateY(-8deg); box-shadow: 0 2px 4px rgba(35,37,46,.18), 18px 26px 40px -18px rgba(35,37,46,.55); } }
.book-cover:active img { transform: scale(.98); transition-duration: .12s; }
.book-cover:focus-visible { outline: 3px solid var(--ochre); outline-offset: 6px; }
.book-txt { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.book-txt h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0; }
.book-sub { margin-top: -6px; color: var(--muted); font-style: italic; }
.book-txt p { margin: 0; font-size: 1.12rem; line-height: 1.55; color: var(--ink-2); }
.book-txt p strong { color: var(--ink); }
.book-inc { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: var(--sand); border-radius: 10px; font-size: 1rem !important; }
.book-txt .btn { margin-top: 6px; }
.news > div { flex: 1 1 320px; min-width: 0; }
.news-ok { animation: ac-in 300ms var(--spring); outline: none; }
@media (prefers-reduced-motion: reduce) { .news-ok { animation: none; } }
.news form { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.news .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; }
.news .btn svg { flex: 0 0 auto; }
@media (max-width: 720px) {
  .book { grid-template-columns: 1fr; padding: 22px 18px; gap: 22px; }
  .book-cover { max-width: 220px; margin: 0 auto; }
  .news { padding: 20px 16px; }
  .news form { flex: 1 1 100%; }
  .news .btn { width: 100%; padding: 12px 18px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) { .book-cover img { transition: none; } .book-cover:hover img { transform: none; } }

/* « Là où je suis passé » : carte Leaflet + liste des étapes */
.chemin { margin-top: 56px; }
.chemin-map { position: relative; height: min(68vh, 540px); min-height: 340px; overflow: hidden; padding: 0; isolation: isolate; background: #e9e1cf; }
.chemin-map .leaflet-container, .chemin-map.leaflet-container { background: #e9e1cf; font: inherit; }
.chemin-map .leaflet-tile-pane { filter: sepia(.35) saturate(.8) contrast(.95) brightness(1.03); }
.chemin-hint { display: none; }
@media (hover: hover) and (pointer: fine) {
  .chemin-hint { display: block; position: absolute; z-index: 800; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 999px; pointer-events: none; white-space: nowrap;
    background: rgba(35,37,46,.72); color: #fbf7ef; font-size: .9rem; -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); opacity: 0; transition: opacity .25s ease; }
  .chemin-map:hover:not(.is-wheel) .chemin-hint { opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) { .chemin-hint { background: #23252e; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.chemin-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-family: var(--hand); font-size: 1.5rem; color: var(--muted); }
.chemin-map .leaflet-marker-pane img.ch-pin { display: block; width: 20px; height: auto; margin: 7px 6px; opacity: 1; filter: drop-shadow(0 1px 1px rgba(35,37,46,.55)); transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.chemin-map .leaflet-marker-pane .leaflet-marker-icon:hover img.ch-pin, .chemin-map .leaflet-marker-pane .leaflet-marker-icon:focus img.ch-pin { transform: scale(1.3); opacity: 1; }
.chemin-map .leaflet-marker-pane img.ch-pin.is-fin { width: 30px; margin: 6px 5px; opacity: 1; filter: drop-shadow(0 0 0 #fbf7ef) drop-shadow(0 2px 3px rgba(35,37,46,.7)); }
.chemin-map .leaflet-popup-content-wrapper, .chemin-map .leaflet-popup-tip { background: var(--paper); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(35,37,46,.55); }
.chemin-map .leaflet-popup-content-wrapper { border: var(--stroke); border-radius: 14px; }
.chemin-map .leaflet-popup-content { margin: 12px 16px; }
.ch-pop { display: flex; flex-direction: column; gap: 2px; font-family: var(--text); }
.ch-pop b { font-family: var(--title); font-size: 1.05rem; letter-spacing: .02em; }
.ch-pop .d { font-family: var(--hand); font-size: 1.2rem; color: var(--ochre); line-height: 1.1; }
.ch-pop .t { font-size: .95rem; color: var(--ink-2); }
.ch-pop .a { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: .95rem; font-style: italic; color: var(--ink); max-width: 260px; }
.chemin-map .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; color: var(--ink); background: rgba(251,247,239,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chemin-map .leaflet-control-attribution { background: rgba(251,247,239,.8); font-size: 11px; }
.chemin-map .leaflet-control-attribution a { color: var(--ink-2); }
.chemin-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 2px 0; font-size: .95rem; color: var(--muted); }
.lg-trace { display: inline-block; width: 28px; height: 4px; border-radius: 2px; background: var(--ochre); box-shadow: 0 0 0 2px #fbf7ef; }
.lg-pin { margin-left: 10px; display: inline-flex; }
.lg-pin img { width: 20px; height: auto; }
.chemin-list { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 6px; }
.chemin-list summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; font-size: 1.08rem; }
.chemin-list summary:hover { color: var(--ochre); }
.chemin-list h3 { margin: 14px 0 6px; font-size: 1.15rem; }
.chemin-list h3 span { font-family: var(--hand); font-weight: 400; font-size: 1.3rem; color: var(--ochre); margin-left: 6px; }
.chemin-list ol { margin: 0; padding: 0 0 0 1.6em; columns: 2 300px; column-gap: 28px; }
.chemin-list li { break-inside: avoid; }
.chemin-list li button { all: unset; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; width: 100%; min-height: 44px; padding: 6px 6px; border-radius: 10px; cursor: pointer; }
.chemin-list li button:hover { background: rgba(234,217,179,.45); }
.chemin-list li button:active { background: var(--sand); }
.chemin-list li button:focus-visible { outline: 2px solid var(--ochre); outline-offset: 1px; }
.chemin-list .d { font-family: var(--hand); font-size: 1.15rem; color: var(--ochre); }
.chemin-list .t { flex-basis: 100%; font-size: .92rem; color: var(--muted); }
.chemin-list .a { flex-basis: 100%; font-size: .92rem; font-style: italic; color: var(--ink-2); }
@media (max-width: 600px) { .chemin-map { height: 62vh; min-height: 320px; } }
@media (prefers-reduced-motion: reduce) { .ch-pin { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .chemin-map .leaflet-bar a { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Ma crédentiale tamponnée (fin de page) : grandes pages pour lire les tampons */
.cred-ludo { margin-top: 64px; }
.cred-ludo .pol-btn img { height: min(64vh, 560px); max-width: 86vw; object-fit: contain; }
.cred-ludo .polaroid { padding: 10px 10px 8px; }
.lb-slide img { object-fit: contain; }

/* Crédentiale envoyée par e-mail (2026-12-04) : couverture affichée, pas de téléchargement */
.cover-sent { position: relative; margin: 0; }
.cover-sent img { display: block; width: 100%; height: auto; background: #fff; border-radius: 3px; box-shadow: 0 2px 4px rgba(35,37,46,.18), 12px 18px 32px -16px rgba(35,37,46,.45); transform: rotate(-1.5deg); }
.cover-sent .cover-hint { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 720px) { .cover-sent { max-width: 260px; margin: 0 auto; } }

/* Menu du site composetesailes.fr (Accueil · Carnet de bord · Budget), 2026-12-05 */
.brand { white-space: nowrap; }
.site-nav { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(35, 37, 46, .06); }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; text-decoration: none; font: 700 .8rem var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); transition: background .2s, color .2s, transform .1s; white-space: nowrap; }
.site-nav a:active { transform: scale(.95); }
@media (hover: hover) { .site-nav a:hover { background: rgba(35, 37, 46, .08); color: var(--ink); } }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }
@media (max-width: 640px) {
  .bar-in { flex-direction: column; align-items: stretch; gap: 0; padding-top: 4px; padding-bottom: 8px; }
  .brand { justify-content: center; font-size: .9rem; }
  .site-nav { justify-content: space-between; }
  .site-nav a { flex: 1; justify-content: center; padding: 0 8px; font-size: .72rem; letter-spacing: .04em; }
}

/* Récit dans un album (ex. « Ma première tentative », album Entraînement, 2026-12-05) : début visible, suite repliée */
.recit { margin: 26px auto 0; max-width: 44em; background: var(--paper); border: var(--stroke); border-radius: var(--r); padding: 28px 30px 22px; box-shadow: 0 18px 40px -26px rgba(35, 37, 46, .5); }
@media (max-width: 600px) { .recit { padding: 20px 16px 16px; } }
.recit p { margin: 0 0 14px; font-size: 1.22rem; line-height: 1.55; }
.recit-k { font-family: var(--hand); font-size: 1.6rem !important; color: var(--ochre); line-height: 1 !important; margin-bottom: 6px !important; }
.recit-t { font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.2; margin-bottom: 14px; }
.recit-chapo { font-style: italic; color: var(--ink-2); border-left: 2px solid var(--ochre); padding-left: 14px; }
.recit-suite > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 22px; border-radius: 999px; background: var(--ink); color: var(--cream); font: 700 .9rem var(--title); letter-spacing: .06em; box-shadow: 0 4px 0 var(--ochre); transition: transform .15s; -webkit-user-select: none; user-select: none; }
.recit-suite > summary::-webkit-details-marker { display: none; }
.recit-suite > summary:active { transform: scale(.96); }
.recit-suite > summary svg { width: 18px; height: 18px; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.recit-suite[open] > summary { background: transparent; color: var(--ink); border: var(--stroke); box-shadow: none; margin-bottom: 18px; }
.recit-suite[open] > summary svg { transform: rotate(180deg); }
.rs-close, .recit-suite[open] .rs-open { display: none; }
.recit-suite[open] .rs-close { display: inline; }
.recit-suite[open] > :not(summary) { animation: recit-in .45s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes recit-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.recit h4 { font-family: var(--title); font-size: 1.3rem; margin: 26px 0 10px; scroll-margin-top: 20px; }
.recit h5 { font-family: var(--title); font-size: 1.05rem; margin: 16px 0 6px; }
.recit-som { background: var(--cream); border-radius: 14px; padding: 14px 18px 6px; margin-bottom: 8px; }
.recit-som p { font-family: var(--hand); font-size: 1.4rem; color: var(--ochre); margin: 0 0 4px; }
.recit-som ol { margin: 0; padding-left: 1.3em; }
.recit-som li { margin-bottom: 6px; } .recit-som a { display: inline-block; min-height: 32px; }
.recit-fig { margin: 18px 0; } .recit-fig img { width: 100%; border-radius: 12px; border: var(--stroke); }
.recit-fig figcaption { font-family: var(--hand); font-size: 1.3rem; text-align: center; color: var(--ink-2); margin-top: 6px; }
.recit-quote { margin: 18px 0; padding: 16px 20px; background: var(--sand); border-radius: 14px; font-style: italic; font-size: 1.35rem; line-height: 1.4; }
.recit-tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 8px; }
@media (max-width: 700px) { .recit-tips { grid-template-columns: 1fr; } }
.recit-tips section { background: var(--cream); border-radius: 14px; padding: 4px 16px 2px; border-left: 3px solid var(--ochre); }
.recit-tips section:last-child:nth-child(odd) { grid-column: 1 / -1; }
.recit-tips p { font-size: 1.12rem; }
.recit-faq details { border-bottom: 1px solid var(--line); }
.recit-faq summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 700; font-size: 1.18rem; padding: 8px 0; }
.recit-faq details p { margin-top: 0; }
.recit-src { margin-top: 18px !important; font-size: 1rem !important; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .recit-suite[open] > :not(summary) { animation: none; } .recit-suite > summary svg { transition: none; } }
.recit-list { margin: 0 0 14px; padding-left: 1.2em; font-size: 1.2rem; line-height: 1.5; }
.recit-list li { margin-bottom: 6px; }
.recit-list li::marker { color: var(--ochre); }
.recit-portrait { max-height: 520px; width: auto !important; margin: 0 auto; }
.recit-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 22px; border-radius: 999px; border: var(--stroke); font: 700 .9rem var(--title); letter-spacing: .06em; text-decoration: none; }
.recit-btn:active { transform: scale(.96); }
.recit-seul { padding-top: 10px; }

/* Popup « Les nouvelles de Ludovic » (carnet, 2026-12-05) */
.news-dlg { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; background: transparent; overflow: visible; color: var(--ink); }
.news-dlg::backdrop { background: rgba(35, 37, 46, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.news-dlg[open] { animation: nd-in .35s var(--spring); }
@keyframes nd-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.nd-card { position: relative; max-height: calc(100dvh - 24px); overflow-y: auto; background: var(--paper); border: var(--stroke); border-radius: var(--r); padding: 30px 28px 24px; box-shadow: 0 30px 60px -30px rgba(35, 37, 46, .7); }
@media (max-width: 600px) { .nd-card { padding: 24px 18px 18px; } }
.nd-close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; background: var(--cream); color: var(--ink); cursor: pointer; }
.nd-close svg { width: 22px; height: 22px; } .nd-close:active { transform: scale(.92); }
.nd-shell { margin-bottom: 8px; }
.news-dlg h2 { font-size: 1.5rem; padding-right: 48px; }
.nd-lead { margin: 8px 0 14px; font-size: 1.2rem; color: var(--ink-2); }
.nd-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.nd-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 1.15rem; line-height: 1.35; }
.nd-list svg { width: 22px; height: 22px; color: var(--green, #4f7a3a); margin-top: 2px; }
.nd-facts { display: grid; gap: 8px; padding: 14px 16px; background: var(--cream); border-radius: 14px; margin-bottom: 14px; }
.nd-facts p { display: flex; flex-direction: column; font-size: 1.05rem; line-height: 1.35; margin: 0; }
.nd-facts b { font-family: var(--title); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nd-facts span { overflow-wrap: anywhere; }
.nd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nd-actions .btn { flex: 1 1 200px; justify-content: center; }
.news-dlg .news-ok { display: flex; flex-direction: column; gap: 10px; }
.news-dlg .news-ok .btn { align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .news-dlg[open] { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .news-dlg::backdrop { background: rgba(35, 37, 46, .75); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.news-dlg:focus, .news-dlg:focus-visible { outline: none; }

/* ---------- Lecteur vidéo du carnet (2026-12-05) : sable, encre, ocre ; cibles 44 px ---------- */
.vids { display: flex; align-items: flex-start; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; margin-top: 10px; scrollbar-width: thin; }
.vplayer { margin: 0; flex: 0 0 auto; scroll-snap-align: start; width: min(560px, 86vw); }
.vplayer.vert { width: min(300px, 62vw); }
.vp-box { position: relative; border: var(--stroke); border-radius: var(--r); overflow: hidden; background: var(--ink); box-shadow: 0 18px 40px -24px rgba(35, 37, 46, .55); }
.vp-box video { display: block; width: 100%; height: auto; background: var(--ink); }
.vp-big { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--paper); background: rgba(183, 118, 28, .88); color: var(--paper); display: grid; place-items: center; cursor: pointer; transition: transform .35s var(--spring), opacity .25s; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); }
.vp-big svg { width: 34px; height: 34px; margin-left: 4px; }
.vp-big:active { transform: scale(.94); }
.vplayer.playing .vp-big { opacity: 0; pointer-events: none; transform: scale(.85); }
.vp-bar { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 14px; background: rgba(35, 37, 46, .62); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); color: var(--paper); transition: opacity .3s; }
.vplayer:not(.started) .vp-bar { opacity: 0; pointer-events: none; }
.vplayer.playing.idle .vp-bar { opacity: 0; }
.vp-btn { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 10px; }
.vp-btn:active { background: rgba(251, 247, 239, .16); }
.vp-btn svg { width: 22px; height: 22px; }
.vp-btn .i-pause, .vplayer.playing .vp-btn .i-play, .vp-btn .i-mute, .vplayer.muted .vp-btn .i-snd { display: none; }
.vplayer.playing .vp-btn .i-pause, .vplayer.muted .vp-btn .i-mute { display: block; }
.vp-seek { flex: 1; min-width: 40px; height: 44px; accent-color: var(--yellow); background: none; cursor: pointer; }
.vp-time { font: 600 .9rem var(--title); letter-spacing: .04em; min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.vplayer figcaption { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 1rem; }
.vplayer figcaption .when { font-family: var(--hand); font-size: 1.25rem; color: var(--ochre); }
.vplayer figcaption .leg { color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .vp-big, .vp-bar { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .vp-bar { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .vp-bar { background: #000; } .vp-big { background: var(--ochre); } }

/* ---------- Retouches du 2026-12-05 (soir) ---------- */
/* Légende jamais plus large que la photo : plus de vide blanc dans le polaroïd */
.polaroid figcaption { width: 0; min-width: 100%; }
/* Flèche « suivante » de la visionneuse : ne plus hériter de .next (bloc « On reste en contact ») */
.nav { padding: 0; margin: -26px 0 0; flex-wrap: nowrap; }
/* Vidéo rangée dans la bande, en polaroïd, même hauteur que les photos */
.polaroid.vpol { scroll-snap-align: center; }
.vpol .vp-box { border: 0; border-radius: 0; box-shadow: none; height: min(50vh, 400px); aspect-ratio: 9 / 16; }
.vpol .vp-box video { width: 100%; height: 100%; object-fit: cover; }
.vpol .vp-big { width: 64px; height: 64px; }
@media (max-width: 600px) { .vpol .vp-box { height: 52vh; } }
/* Grands moments : cartes cliquables avec la photo du jour */
.gallery > li { list-style: none; }
a.tile { color: var(--ink); text-decoration: none; transition: transform .35s var(--spring), box-shadow .35s var(--spring); }
a.tile:active { transform: scale(.98); }
@media (hover: hover) { a.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -18px rgba(35, 37, 46, .5); } }
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.has-img::before { background: linear-gradient(180deg, rgba(35, 37, 46, 0) 30%, rgba(35, 37, 46, .78)); z-index: 1; }
.tile.has-img > :not(.tile-img) { z-index: 2; }
.tile.has-img .d, .tile.has-img .t { color: var(--paper); }
.tile.has-img .s { color: var(--yellow); }

/* ---------- Menu « Sur cette page » du carnet (2026-12-05) : barre collée en haut, panneau en verre ---------- */
.bar-sticky { position: sticky; top: 0; }
html:has(.bar-sticky) { scroll-padding-top: 96px; }
@media (max-width: 640px) { html:has(.bar-sticky) { scroll-padding-top: 128px; } }
.toc-btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 16px; border: 0; border-radius: 999px; background: var(--ochre); color: var(--paper); font: 700 .8rem var(--title); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: transform .1s, background .2s; }
.toc-btn svg { width: 16px; height: 16px; transition: transform .3s var(--spring); }
.toc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.toc-btn:active { transform: scale(.95); }
.toc { position: absolute; left: 0; right: 0; top: 100%; background: rgba(244, 238, 226, .94); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid rgba(35, 37, 46, .14); box-shadow: 0 24px 40px -24px rgba(35, 37, 46, .45); max-height: calc(100dvh - 140px); overflow-y: auto; overscroll-behavior: contain; animation: toc-in .32s var(--spring); }
@keyframes toc-in { from { opacity: 0; transform: translateY(-8px); } }
.toc-in { display: grid; grid-template-columns: 1fr 2fr; gap: 10px 40px; padding-top: 18px; padding-bottom: 22px; }
.toc-col { display: flex; flex-direction: column; }
.toc-albums { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-content: start; }
.toc-albums .toc-k { grid-column: 1 / -1; }
.toc-k { font-family: var(--hand); font-size: 1.45rem; color: var(--ochre); margin: 0 0 4px; }
.toc a { min-height: 44px; display: flex; flex-direction: column; justify-content: center; padding: 4px 10px; margin: 0 -10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 1.12rem; line-height: 1.2; }
.toc a b { font: 700 .7rem var(--title); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc a:active { background: rgba(35, 37, 46, .08); }
@media (hover: hover) { .toc a:hover { background: rgba(35, 37, 46, .06); } }
@media (max-width: 760px) { .toc-in { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .toc-btn { flex: 1.3; justify-content: center; padding: 0 6px; font-size: .68rem; letter-spacing: .02em; }
  .toc-albums { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .toc { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .toc { background: var(--cream); -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* Grands moments : plus de petites cartes */
#moments .gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { #moments .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { #moments .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } #moments .tile { padding: 10px 11px; } #moments .tile .t { font-size: .86rem; } #moments .tile .s { font-size: 1.1rem; } #moments .tile .d { font-size: .62rem; letter-spacing: .08em; } #moments .tile-ico { width: 30px; height: 30px; } }
#moments .tile .t { font-size: .95rem; }
/* Titre de la partie albums (après le livre) */
.albums-chemin { margin-top: 56px; }
.albums-head { margin-bottom: 18px; }
@media (max-width: 640px) {
  .site-nav:has(.toc-btn) { flex-wrap: wrap; border-radius: 22px; }
  .site-nav .toc-btn { flex: 1 0 100%; justify-content: center; font-size: .74rem; letter-spacing: .06em; margin-top: 2px; }
}

/* ---------- Visionneuse v2 (2026-12-05) : flèches centrées et visibles sur téléphone, miniatures en bas ---------- */
html.lb-lock, html.lb-lock body { overflow: hidden; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox .lb-track { flex: 1; min-height: 0; height: auto; }
.lb-slide { padding: 60px 16px 8px; }
.lb-slide img { max-height: calc(100dvh - 210px); }
.nav { justify-content: center; align-content: center; gap: 0; top: calc(50% - 46px); }
.nav svg { display: block; }
@media (max-width: 600px) {
  .nav { display: grid; width: 44px; height: 44px; margin-top: -22px; background: rgba(20, 21, 26, .45); }
  .prev { left: 6px; } .next { right: 6px; }
  .lb-slide { padding: 56px 8px 6px; }
}
.lb-thumbs { flex: 0 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-th { flex: 0 0 auto; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: rgba(244, 238, 226, .08); cursor: pointer; opacity: .55; scroll-snap-align: center; transition: opacity .2s, border-color .2s, transform .1s; }
.lb-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-th.on { opacity: 1; border-color: var(--yellow); }
.lb-th:active { transform: scale(.94); }
@media (hover: hover) { .lb-th:hover { opacity: .9; } }
@media (max-width: 600px) { .lb-th { width: 54px; height: 54px; } }
@media (prefers-reduced-motion: reduce) { .lb-th { transition: none; } }

/* ---------- Anecdote du livre dans la visionneuse (2026-12-05) : verre à gauche, fermable ---------- */
.lb-anec { position: absolute; left: 92px; top: 50%; transform: translateY(calc(-50% - 46px)); width: min(300px, 26vw); max-height: calc(100dvh - 260px); overflow-y: auto; padding: 18px 20px 18px; border-radius: 16px; background: rgba(244, 238, 226, .12); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border: 1px solid rgba(244, 238, 226, .22); color: var(--cream); z-index: 3; animation: anec-in .35s var(--spring); }
@keyframes anec-in { from { opacity: 0; transform: translateY(calc(-50% - 46px)) translateX(-10px); } }
.lb-anec[hidden] { display: none; }
.lb-anec-k { font-family: var(--hand); font-size: 1.35rem; color: var(--yellow); margin: 0 30px 6px 0; line-height: 1.1; }
.lb-anec-t { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.lb-anec-x { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--cream); cursor: pointer; transition: background .2s, transform .1s; }
.lb-anec-x svg { width: 18px; height: 18px; }
.lb-anec-x:active { transform: scale(.9); }
@media (hover: hover) { .lb-anec-x:hover { background: rgba(244, 238, 226, .14); } }
.lb-anec-open { position: absolute; left: 16px; top: 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(244, 238, 226, .3); background: rgba(20, 21, 26, .45); color: var(--cream); font: 700 .75rem var(--title); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; z-index: 3; }
.lb-anec-open[hidden] { display: none; }
.lb-anec-open:active { transform: scale(.95); }
@media (max-width: 900px) {
  .lb-anec { left: 10px; right: 10px; top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); transform: none; width: auto; max-height: 38dvh; padding: 14px 16px; background: rgba(20, 21, 26, .72); }
  @keyframes anec-in { from { opacity: 0; transform: translateY(10px); } }
  .lb-anec-t { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .lb-anec { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .lb-anec { background: #2a2b31; -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* Bouton « Lire l'anecdote » plus gros (2026-12-05) */
.lb-anec-open { min-height: 54px; padding: 0 22px; gap: 10px; font-size: .9rem; background: rgba(20, 21, 26, .6); border-color: rgba(244, 238, 226, .45); }
.lb-anec-open img { width: 26px; height: auto; }
@media (max-width: 600px) { .lb-anec-open { min-height: 50px; padding: 0 18px; font-size: .84rem; } }
/* Glisser à la souris dans la visionneuse */
@media (pointer: fine) { .lb-track { cursor: grab; } .lb-track img { -webkit-user-drag: none; user-select: none; } }
.lb-track.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }

/* ---------- Visionneuse v3 (2026-12-05) : photo plus grande, zoom + / − en haut au centre ---------- */
.lb-slide { padding: 8px 12px 4px; gap: 6px; }
.lb-slide img { max-height: calc(100dvh - 150px); }
@media (max-width: 600px) { .lb-slide { padding: 6px 4px 4px; } .lb-slide img { max-height: calc(100dvh - 160px); } }
.lb-slide img { transition: transform .25s var(--spring); transform-origin: center; will-change: transform; }
.lb-track.is-zoom { overflow-x: hidden; touch-action: none; cursor: move; }
.lb-track.is-zoom .lb-slide { overflow: hidden; }
.lb-track.is-zoom img { transition: none; }
.lb-zoom { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(20, 21, 26, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(244, 238, 226, .3); color: var(--cream); }
.lb-zoom button { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background .2s, transform .1s, opacity .2s; }
.lb-zoom button svg { width: 22px; height: 22px; }
.lb-zoom button:active { transform: scale(.9); }
.lb-zoom button:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { .lb-zoom button:not(:disabled):hover { background: rgba(244, 238, 226, .14); } }
.lb-zoom span { min-width: 54px; text-align: center; font: 700 .78rem var(--title); letter-spacing: .06em; }
@media (max-width: 600px) { .lb-zoom button { width: 44px; height: 44px; } .lb-zoom span { min-width: 46px; font-size: .72rem; } }
@media (prefers-reduced-motion: reduce) { .lb-slide img { transition: none; } }
/* Zoom collé à gauche de la croix (2026-12-05) */
.lb-zoom { left: auto; right: 76px; transform: none; }
@media (max-width: 600px) { .lb-zoom { right: 64px; } }
/* Téléphone : zoom compact (sans le %), bouton anecdote raccourci → plus de chevauchement */
@media (max-width: 600px) {
  .lb-zoom span { display: none; }
  .lb-zoom { right: 66px; padding: 2px; }
  .lb-anec-open { left: 10px; padding: 0 14px; }
  .lb-anec-lire { display: none; }
}

/* ---------- « Grands moments » façon Netflix (2026-12-05) : une rangée horizontale de cartes 16:9, effet au survol ---------- */
.nf-row { position: relative; margin: 0 -16px; }
#moments .gallery.nf { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; scroll-padding: 0 16px; padding: 26px 16px 34px; scrollbar-width: none; overscroll-behavior-x: contain; }
#moments .gallery.nf::-webkit-scrollbar { display: none; }
#moments .nf > li { flex: 0 0 clamp(220px, 27vw, 300px); scroll-snap-align: start; }
#moments .nf .tile { aspect-ratio: 16 / 9; border: 0; border-radius: 8px; padding: 12px 14px; gap: 0; box-shadow: 0 10px 22px -14px rgba(35, 37, 46, .6); transform-origin: center; transition: transform .35s var(--spring), box-shadow .35s var(--spring); will-change: transform; }
#moments .nf .tile:not(.has-img) { background: var(--ink); }
#moments .nf .tile:not(.has-img)::before { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(244, 238, 226, .07) 14px 15px); }
#moments .nf .tile:not(.has-img) .d, #moments .nf .tile:not(.has-img) .t { color: var(--paper); }
#moments .nf .tile:not(.has-img) .s { color: var(--yellow); }
#moments .nf .tile .d { font-size: .62rem; letter-spacing: .12em; opacity: .85; }
#moments .nf .tile .t { font-size: .92rem; line-height: 1.2; }
#moments .nf .tile .s { font-size: 1.15rem; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(6px); transition: max-height .35s var(--spring), opacity .25s, transform .35s var(--spring); }
#moments .nf .tile-ico { width: 30px; height: 30px; top: 8px; right: 8px; background: rgba(244, 238, 226, .85); border: 0; }
#moments .nf .tile-img { transition: transform .6s var(--spring), filter .35s; }
#moments .nf .tile.has-img::before { background: linear-gradient(180deg, rgba(20, 21, 26, 0) 35%, rgba(20, 21, 26, .85)); }
/* survol (souris) ou focus clavier : la carte grandit, la photo zoome, la phrase apparaît */
@media (hover: hover) {
  #moments .nf .tile:hover, #moments .nf .tile:focus-visible { transform: scale(1.1); z-index: 5; box-shadow: 0 22px 40px -16px rgba(20, 21, 26, .75), 0 0 0 2px var(--yellow); }
  #moments .nf .tile:hover .tile-img { transform: scale(1.08); filter: saturate(1.15); }
  #moments .nf .tile:hover .s, #moments .nf .tile:focus-visible .s { max-height: 3em; opacity: 1; transform: none; }
  #moments .nf li:first-child .tile:hover { transform-origin: left center; } #moments .nf li:last-child .tile:hover { transform-origin: right center; }
}
/* écrans tactiles : la phrase est toujours visible */
@media (hover: none) { #moments .nf .tile .s { max-height: 3em; opacity: 1; transform: none; font-size: 1.05rem; } }
#moments .nf .tile:active { transform: scale(.97); }
.nf-btn { position: absolute; top: 26px; bottom: 34px; width: 52px; display: grid; place-items: center; border: 0; color: var(--paper); background: linear-gradient(90deg, rgba(20, 21, 26, .7), rgba(20, 21, 26, 0)); cursor: pointer; z-index: 6; opacity: 0; transition: opacity .25s; }
.nf-btn svg { width: 30px; height: 30px; transition: transform .2s var(--spring); }
.nf-prev { left: 0; border-radius: 0 8px 8px 0; } .nf-next { right: 0; transform: scaleX(-1); border-radius: 0 8px 8px 0; }
.nf-next svg { transform: scaleX(-1); }
@media (hover: hover) { .nf-row:hover .nf-btn:not(:disabled) { opacity: 1; } .nf-btn:hover svg { transform: scale(1.25); } .nf-next:hover svg { transform: scaleX(-1) scale(1.25); } }
.nf-btn:disabled { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .nf-btn { display: none; } }
@media (max-width: 600px) { #moments .nf > li { flex-basis: 72vw; } #moments .gallery.nf { padding: 14px 16px 22px; } }
@media (prefers-reduced-motion: reduce) { #moments .nf .tile, #moments .nf .tile-img, #moments .nf .tile .s { transition: none; } #moments .nf .tile:hover { transform: none; } }

/* ---------- « Grands moments » v3 (2026-12-05) : cartes verticales 2:3, toutes visibles (grille, sans défilement), même effet au survol ---------- */
.nf-row { margin: 0; }
.nf-btn { display: none !important; }
#moments .gallery.nf { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; overflow: visible; scroll-snap-type: none; padding: 14px 0 20px; }
#moments .nf > li { flex: none; min-width: 0; }
#moments .nf .tile { aspect-ratio: 2 / 3; padding: 10px; }
#moments .nf .tile-img { object-position: center; }
#moments .nf .tile .d { font-size: .56rem; letter-spacing: .08em; }
#moments .nf .tile .t { font-size: .8rem; letter-spacing: .02em; }
#moments .nf .tile .s { font-size: 1rem; line-height: 1.05; }
#moments .nf .tile-ico { width: 26px; height: 26px; } #moments .nf .tile-ico svg { width: 13px; height: 13px; }
@media (hover: hover) { #moments .nf li:nth-child(8n + 1) .tile:hover { transform-origin: left center; } #moments .nf li:nth-child(8n) .tile:hover { transform-origin: right center; } #moments .nf li:first-child .tile:hover, #moments .nf li:last-child .tile:hover { transform-origin: center; } }
@media (max-width: 1000px) { #moments .gallery.nf { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { #moments .gallery.nf { grid-template-columns: repeat(4, 1fr); gap: 6px; } #moments .nf .tile { padding: 6px; border-radius: 6px; } #moments .nf .tile .d { display: none; } #moments .nf .tile .t { font-size: .6rem; } #moments .nf .tile .s { font-size: .78rem; } #moments .nf .tile-ico { width: 20px; height: 20px; top: 4px; right: 4px; } #moments .nf .tile-ico svg { width: 10px; height: 10px; } }
/* 5 cartes par ligne (demande de Ludovic) ; textes un peu plus grands */
@media (min-width: 1001px) {
  #moments .gallery.nf { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  #moments .nf .tile { padding: 14px; }
  #moments .nf .tile .d { font-size: .66rem; letter-spacing: .1em; }
  #moments .nf .tile .t { font-size: 1rem; }
  #moments .nf .tile .s { font-size: 1.3rem; }
  #moments .nf .tile-ico { width: 32px; height: 32px; } #moments .nf .tile-ico svg { width: 15px; height: 15px; }
}
@media (hover: hover) and (min-width: 1001px) { #moments .nf li .tile:hover { transform-origin: center; } #moments .nf li:nth-child(5n + 1) .tile:hover { transform-origin: left center; } #moments .nf li:nth-child(5n) .tile:hover { transform-origin: right center; } #moments .nf .tile:hover { transform: scale(1.07); } }
/* Téléphone : 2 cartes par ligne pour les grands moments (carnet + accueil public), textes lisibles */
@media (max-width: 600px) {
  #moments .gallery.nf { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  #moments .nf .tile { padding: 10px; border-radius: 8px; }
  #moments .nf .tile .d { display: block; font-size: .58rem; letter-spacing: .06em; }
  #moments .nf .tile .t { font-size: .86rem; }
  #moments .nf .tile .s { font-size: 1.08rem; }
  #moments .nf .tile-ico { width: 28px; height: 28px; top: 8px; right: 8px; } #moments .nf .tile-ico svg { width: 13px; height: 13px; }
}
/* Polaroids vidéo (figure.vpol[data-vplayer], sans .vplayer) : mêmes états que le lecteur (2026-12-05) */
.vpol.playing .vp-big { opacity: 0; pointer-events: none; transform: scale(.85); }
.vpol:not(.started) .vp-bar { opacity: 0; pointer-events: none; }
.vpol.playing.idle .vp-bar { opacity: 0; }
.vpol.playing .vp-btn .i-play, .vpol.muted .vp-btn .i-snd { display: none; }
.vpol.playing .vp-btn .i-pause, .vpol.muted .vp-btn .i-mute { display: block; }
/* Vidéos : le polaroid ouvre la visionneuse plein écran et lance la vidéo (2026-12-05) */
.vpol-btn { position: relative; cursor: pointer; }
.vpol-btn .vp-big { pointer-events: none; }
.vpol-btn img { aspect-ratio: 9 / 16; }
@media (hover: hover) { .vpol-btn:hover .vp-big { transform: scale(1.08); } }
.lb-slide video { display: block; max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 4px; background: transparent; }
@media (max-width: 600px) { .lb-slide video { max-height: calc(100dvh - 160px); } }
.lb-th.is-vid { position: relative; }
.lb-th.is-vid::after { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; background: rgba(183, 118, 28, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23fbf7ef'/%3E%3C/svg%3E") center / 14px no-repeat; }
/* Visionneuse : lecteur vidéo aux couleurs du site (bouton ocre, barre encre translucide, curseur jaune) — 2026-12-05 */
.lb-vp { display: inline-block; max-width: 100%; border: 0; border-radius: 6px; background: transparent; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .8); line-height: 0; }
.lb-vp video { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 150px); background: transparent; border-radius: 6px; cursor: pointer; }
@media (max-width: 600px) { .lb-vp video { max-height: calc(100dvh - 160px); } }
.lb-vp .vp-bar { line-height: normal; }
.lb-vp.playing .vp-big { opacity: 0; pointer-events: none; transform: scale(.85); }
.lb-vp:not(.started) .vp-bar { opacity: 0; pointer-events: none; }
.lb-vp.playing.idle .vp-bar { opacity: 0; }
.lb-vp.playing .vp-btn .i-play, .lb-vp.muted .vp-btn .i-snd { display: none; }
.lb-vp.playing .vp-btn .i-pause, .lb-vp.muted .vp-btn .i-mute { display: block; }
.lb-vp .vp-seek { accent-color: var(--yellow); }
.lb-vp:fullscreen { display: grid; place-items: center; background: var(--ink); border-radius: 0; }
.lb-vp:fullscreen video { max-height: 100vh; max-width: 100vw; }
/* Volume (2026-12-05) : curseur aux couleurs du site ; masqué sur téléphone (le volume se règle avec les boutons du téléphone) */
.vp-vol { flex: 0 0 84px; width: 84px; height: 44px; margin: 0 4px 0 -2px; accent-color: var(--yellow); background: none; cursor: pointer; }
@media (hover: none), (max-width: 600px) { .vp-vol { display: none; } }
/* (2026-12-06) Entraînement Parthenay → Niort sur la carte : point encre (pas de tampon) + légende pointillée */
.chemin-map .ch-dot { display: block; width: 14px; height: 14px; margin: 9px; border-radius: 50%; background: #23252e; box-shadow: 0 0 0 3px #fbf7ef, 0 2px 4px rgba(35,37,46,.5); transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.chemin-map .leaflet-marker-icon:hover .ch-dot, .chemin-map .leaflet-marker-icon:focus .ch-dot { transform: scale(1.3); }
.lg-libre { margin-left: 10px; display: inline-block; width: 28px; height: 3px; border-radius: 2px; background: #23252e; box-shadow: 0 0 0 2px #fbf7ef; }
@media (prefers-reduced-motion: reduce) { .chemin-map .ch-dot { transition: none; } }


/* Titre du menu « Compose tes ailes » (2026-12-06) : 2 lignes */
.brand { flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.15; }
.brand-sub { font-family: var(--body, inherit); font-weight: 400; font-style: italic; letter-spacing: .04em; font-size: .72em; text-transform: none; opacity: .85; }
@media (max-width: 720px) { .brand { align-items: center; } }

/* Page Livre (2026-12-06) */
.livre-page .book { margin-top: 24px; }
.livre-page .book-txt h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0; }
.livre-suite { margin: 28px auto 0; max-width: 720px; text-align: center; font-size: 1.08rem; color: var(--ink-2); }
@media (max-width: 720px) { .site-nav a { padding: 0 5px; font-size: .68rem; letter-spacing: .02em; } }
@media (max-width: 720px) { .site-nav a { white-space: normal; text-align: center; line-height: 1.15; } }   /* « Combien ça coûte ? » sur 2 lignes (2026-12-06) */
