/* 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 compostelle.ludovicnoel.com (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; }
}
