/* Gîte Les Hirondelles : maquette */

@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans-latin-standard-normal.woff2') format('woff2'); font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: 'La Belle Aurore'; src: url('../fonts/la-belle-aurore-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --creme: #F4EDE1;
  --papier: #FBF6EC;
  --pierre: #D8C3A0;
  --pierre-claire: #E8DAC0;
  --pierre-ombre: #8C7457;
  --nuit: #0E1A2B;
  --nuit-2: #15243A;
  --reflet: #2A4670;
  --brique: #B5462A;
  --brique-sombre: #8E3420;
  --or: #E2A75B;
  --or-pale: #EBD3AC;
  --encre: #15202F;
  --encre-douce: #5A5048;
  --vert: #7E9A5C;
  --vert-pale: #E6E9D2;
  --ombre-tirage: 0 1px 1px rgba(74, 52, 24, .1), 0 4px 8px -2px rgba(74, 52, 24, .14), 0 20px 36px -16px rgba(74, 52, 24, .34);
  --gouttiere: clamp(16px, 4.4vw, 64px);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --plume: 'La Belle Aurore', 'Snell Roundhand', cursive;
  --respiration: clamp(104px, 17vh, 220px);
  --sortie: cubic-bezier(.22, .8, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  position: relative;
  overflow-x: clip;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: var(--brique); color: var(--creme); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* grain photo, posé sur toute la page */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* typographie */
.cadre { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gouttiere); }
@media (min-width: 900px) { .cadre { padding-right: max(var(--gouttiere), 128px); } }
.petit { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4; }
.plume { font-family: var(--plume); font-weight: 400; line-height: 1.5; letter-spacing: .01em; }
.titre-xxl, .titre-xl { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; }
.titre-xxl { font-size: clamp(4rem, 17vw, 12.5rem); line-height: .86; letter-spacing: -.03em; }
.titre-xl { font-size: clamp(2.7rem, 9.4vw, 6.6rem); line-height: .94; letter-spacing: -.022em; }
.titre-xxl em, .titre-xl em { font-style: italic; letter-spacing: -.01em; }
.lead { font-family: var(--serif); font-size: clamp(1.55rem, 2.7vw, 2.4rem); line-height: 1.18; letter-spacing: -.008em; }
.chapitre { display: inline-flex; align-items: center; gap: .9em; margin-bottom: 1.6rem; }
.chapitre::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .5; }

.clair { background: var(--creme); color: var(--encre); }
.clair em { color: var(--brique); }
.clair-pierre { background: var(--pierre-claire); color: var(--encre); }
.clair-pierre em { color: var(--brique); }
.nuit { background: var(--nuit); color: var(--creme); }
.nuit em { color: var(--or-pale); }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 14px 26px; border-radius: 2px;
  background: var(--brique); color: var(--creme); text-decoration: none;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: transform .12s ease-out, background-color .2s ease;
}
.bouton:hover { background: var(--brique-sombre); }
.bouton:active { transform: scale(.97); }
.bouton-clair { background: var(--creme); color: var(--nuit); }
.bouton-clair:hover { background: #fff; }

/* révélation des photos : un cadre fixe, un volet qui monte, l'image qui contre-glisse */
.revele { overflow: clip; }
.revele-in { width: 100%; height: 100%; }
.revele img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- ouverture : lumière dorée de fin d'après-midi ---------- */
.ouverture { position: relative; height: 100svh; min-height: 560px; overflow: clip; color: var(--nuit); background: #D7E4EA; }
.ouverture-photo { position: absolute; inset: 0; }
.ouverture-photo picture, .ouverture-photo img { display: block; width: 100%; height: 100%; }
.ouverture-photo img { object-fit: cover; object-position: 50% 50%; }
.nid { position: absolute; left: 0; top: 0; width: clamp(11px, 1vw, 18px); height: auto; transform: translate(-50%, -6%); }
.ouverture-voile {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 34% at 40% 15%, rgba(255, 247, 228, .38), rgba(255, 247, 228, 0) 72%),
    linear-gradient(to top, rgba(58, 38, 14, .52) 0%, rgba(58, 38, 14, .18) 15%, rgba(58, 38, 14, 0) 27%);
}
.ouverture-voile::after { content: ''; position: absolute; inset: 0; mix-blend-mode: soft-light; background: linear-gradient(170deg, rgba(255, 208, 130, .55), rgba(255, 188, 106, .25) 55%, rgba(255, 172, 92, .2)); }
.ouverture-lieu { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: var(--gouttiere); color: var(--encre); text-shadow: 0 0 12px rgba(255, 248, 236, .95); }
.ouverture-texte { position: absolute; left: var(--gouttiere); right: var(--gouttiere); top: calc(56px + env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: flex-start; }
.ouverture-bonjour, .ouverture-phrase { color: var(--brique-sombre); text-shadow: 0 0 14px rgba(255, 248, 236, .95), 0 0 3px rgba(255, 248, 236, .9); }
.ouverture-bonjour { order: 1; padding-right: 58px; font-size: clamp(1.15rem, 4.6vw, 2.1rem); line-height: 1.3; }
.ouverture-phrase { order: 3; margin: .35em 0 0 .1em; font-size: clamp(1.3rem, 5.2vw, 2.6rem); line-height: 1.25; transform: rotate(-2.5deg); transform-origin: left bottom; }
.ouverture-texte .signe { width: 2.1em; }
.ouverture-texte .signe[data-pose="ailes"] { width: 1.8em; }
.ouverture-nom { order: 2; margin-top: .12em; white-space: nowrap; font-family: var(--serif); font-weight: 400; line-height: .84; letter-spacing: -.03em; color: var(--nuit); text-shadow: 0 0 30px rgba(255, 248, 236, .85), 0 0 4px rgba(255, 248, 236, .6); }
.ouverture-nom { font-size: clamp(3.4rem, 16vw, 9rem); }
.ouverture-les, .ouverture-hirondelles { display: inline-block; }
.ouverture-les { font-style: italic; font-size: .46em; letter-spacing: -.01em; margin-right: .14em; }
.ouverture-bas { position: absolute; left: var(--gouttiere); right: calc(var(--gouttiere) + 74px); bottom: calc(22px + env(safe-area-inset-bottom)); color: #FFF8EC; text-shadow: 0 1px 3px rgba(24, 14, 4, .75), 0 0 14px rgba(24, 14, 4, .6), 0 0 34px rgba(24, 14, 4, .45); }
.ouverture-sous { max-width: 36ch; margin-bottom: .9rem; font-size: .98rem; line-height: 1.5; }
.ouverture-suite { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.ouverture-suite svg { width: 10px; height: 26px; }
@media (min-width: 700px) {
  .ouverture-photo img { object-position: 50% 58%; }
}
@media (min-width: 900px) {
  .ouverture-voile { background: radial-gradient(46% 34% at 62% 19%, rgba(255, 247, 228, .72), rgba(255, 247, 228, .3) 60%, rgba(255, 247, 228, 0) 100%), linear-gradient(to top, rgba(58, 38, 14, .5) 0%, rgba(58, 38, 14, .16) 14%, rgba(58, 38, 14, 0) 26%); }
  .ouverture-lieu { left: 41vw; top: clamp(22px, 3.6vh, 44px); }
  .ouverture-texte { left: 41vw; right: 128px; top: calc(clamp(22px, 3.6vh, 44px) + 28px); }
  .ouverture-bonjour { order: 1; padding-right: 0; font-size: clamp(1.45rem, 1.9vw, 2.1rem); }
  .ouverture-voile::after { background: linear-gradient(170deg, rgba(255, 208, 130, .8), rgba(255, 188, 106, .4) 55%, rgba(255, 172, 92, .32)); }
  .ouverture-nom { font-size: min(7.8vw, 13.4vh, 8.6rem); }
  .ouverture-phrase { margin: .35em 0 0 .2em; font-size: clamp(1.6rem, 2.2vw, 2.4rem); text-shadow: 0 0 10px rgba(255, 248, 236, 1), 0 0 22px rgba(255, 248, 236, .95), 0 0 3px rgba(255, 248, 236, 1); }
  .ouverture-texte .signe { width: 2.6em; }
  .ouverture-texte .signe[data-pose="ailes"] { width: 2.2em; }
  .ouverture-bas { right: auto; max-width: 38vw; bottom: calc(26px + env(safe-area-inset-bottom)); }
}

/* signature des hirondelles : une petite hirondelle posée au bout de leurs phrases */
.insecable { white-space: nowrap; }
.signe { display: inline-block; width: 2.7em; margin-left: .3em; vertical-align: -.14em; }
.signe svg { width: 100%; height: auto; overflow: visible; }
.signe[data-pose="ailes"] { width: 2.3em; vertical-align: -.1em; }

/* tirages photo : bord crème, ombre portée fine, scotch */
.tirage { position: relative; background: #FCF8EF; padding: clamp(9px, 1.3vw, 18px); box-shadow: var(--ombre-tirage); }
.tirage::before, .tirage::after {
  content: ''; position: absolute; z-index: 3; width: clamp(70px, 8vw, 116px); height: clamp(22px, 2.3vw, 30px);
  background: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 60%), rgba(236, 226, 200, .8);
  box-shadow: 0 1px 2px rgba(74, 52, 24, .14);
  clip-path: polygon(2% 10%, 8% 0, 20% 6%, 38% 0, 60% 5%, 80% 0, 97% 4%, 100% 50%, 97% 94%, 82% 100%, 60% 95%, 40% 100%, 18% 94%, 4% 100%, 0 52%);
}
.tirage::after { display: none; }
.tirage-scotch { transform: rotate(1.3deg); }
.tirage-scotch::before { top: calc(clamp(22px, 2.3vw, 30px) / -2); left: 50%; transform: translateX(-50%) rotate(-3deg); }
.tirage-coins { transform: rotate(-.6deg); }
.tirage-coins::before { top: -6px; left: -18px; transform: rotate(-36deg); }
.tirage-coins::after { display: block; top: -6px; right: -18px; transform: rotate(36deg); }

/* ---------- le nid ---------- */
.nid-section { padding-block: var(--respiration) calc(var(--respiration) * .8); position: relative; }
.nid-grille { display: grid; grid-template-columns: minmax(0, 1fr); }
.nid-titre { margin-bottom: clamp(2.4rem, 6vw, 4.5rem); }
.perchoir { position: relative; display: inline-block; }
.nid-lead { max-width: 24ch; }
.nid-photo { margin-top: 3.4rem; width: 100%; }
.nid-photo .revele { aspect-ratio: 4 / 5; }
.nid-photo img { object-position: 38% 50%; }
.nid-texte { margin-top: 2.6rem; max-width: 40ch; color: var(--encre-douce); }
.nid-texte p + p { margin-top: 1em; }
.nid-mot { margin-top: 2.2rem; font-size: clamp(1.4rem, 3.4vw, 2rem); color: var(--brique); transform: rotate(-3deg); transform-origin: left; }
.chiffres { margin-top: clamp(4rem, 10vw, 8rem); display: grid; }
.chiffre { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); align-items: baseline; gap: 1rem; padding-block: 1.1rem; border-top: 1px solid rgba(21, 32, 47, .18); }
.chiffre-n { font-family: var(--serif); font-size: 4.6rem; line-height: .8; letter-spacing: -.03em; }
.chiffre-l { font-size: .98rem; color: var(--encre-douce); }
.chiffre:last-child .chiffre-n { color: var(--brique); font-style: italic; }

@media (min-width: 900px) {
  .nid-grille { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .nid-grille > .chapitre { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
  .nid-titre { grid-column: 1 / 10; grid-row: 2; }
  .nid-lead { grid-column: 1 / 7; grid-row: 3; align-self: start; }
  .nid-photo { grid-column: 8 / 13; grid-row: 3 / 6; margin-top: 0; padding-top: 1rem; }
  .nid-texte { grid-column: 2 / 6; grid-row: 4; margin-top: 3rem; }
  .nid-mot { grid-column: 2 / 7; grid-row: 5; margin-top: 2.4rem; }
  .chiffres { grid-column: 1 / -1; grid-row: 6; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .chiffre { grid-template-columns: 1fr; gap: .9rem; padding-top: 1.4rem; }
  .chiffre:nth-child(2) { margin-top: 5rem; }
  .chiffre:nth-child(3) { margin-top: 1.6rem; }
  .chiffre:nth-child(4) { margin-top: 7rem; }
  .chiffre-n { font-size: clamp(6rem, 10vw, 9.5rem); }
  .chiffre-l { max-width: 20ch; }
}

/* ---------- la visite en cartes postales ---------- */
.visite { position: relative; padding-block: var(--respiration); overflow: clip; }
.visite-entete { position: relative; z-index: 2; }
.visite-mot { margin-top: 2rem; font-size: clamp(1.35rem, 3.2vw, 1.9rem); color: var(--or-pale); transform: rotate(-2deg); transform-origin: left; }
.visite-astuce { margin-top: 1.8rem; opacity: .6; }
.visite-compteur { display: none; }
.visite-cartes {
  display: flex; gap: 16px; margin-top: 2rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 18px var(--gouttiere) 34px; scroll-padding-inline: var(--gouttiere);
  scrollbar-width: none;
}
.visite-cartes::-webkit-scrollbar { display: none; }

/* les tailles suivent la carte (unités cqw) : grandes cartes, détails à l'échelle */
.carte { container-type: inline-size; position: relative; flex: 0 0 min(86vw, 460px); aspect-ratio: 3 / 4; perspective: 1600px; scroll-snap-align: center; }
.carte-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .95s var(--sortie); }
.carte.retournee .carte-in { transform: rotateY(180deg); }
.recto, .verso {
  position: absolute; inset: 0; border-radius: 3px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--papier); color: var(--encre);
}
.recto { padding: 2.4cqw; }
.recto img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
.carte-legende { position: absolute; left: 7cqw; right: 7cqw; bottom: 6cqw; color: #fff; font-size: max(.6rem, 2.6cqw); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(10, 14, 20, .55), 0 0 18px rgba(10, 14, 20, .3); }
.carte-legende span { display: block; margin-top: .3rem; font-family: var(--serif); font-style: italic; font-size: 8.4cqw; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1; }
.verso {
  transform: rotateY(180deg);
  display: flex; flex-direction: column; padding: 6cqw 6cqw 5cqw;
  background: var(--papier) linear-gradient(170deg, rgba(232, 218, 192, .55), rgba(251, 246, 236, 0) 60%);
}
.verso::before { content: 'Carte postale'; position: absolute; left: 6cqw; top: 7cqw; font-size: max(.5rem, 2.3cqw); font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: var(--pierre-ombre); }
.carte-poste { position: relative; order: -1; align-self: flex-end; margin-bottom: 3cqw; }
.timbre {
  display: block; width: 19cqw; height: 23cqw; padding: 2.2cqw; background: #f8f1e2;
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 3.1px, #0000 95%, #000) -4.5px -4.5px / 9px 9px round;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 3.1px, #0000 95%, #000) -4.5px -4.5px / 9px 9px round;
}
.timbre img { width: 100%; height: 100%; object-fit: cover; outline: 2px solid #f8f1e2; outline-offset: -2px; filter: sepia(.25) saturate(.9); }
.cachet { position: absolute; right: 8cqw; top: 3cqw; width: 42cqw; max-width: none; height: auto; color: rgba(38, 48, 74, .74); transform: rotate(-11deg); }
.cachet text { fill: currentColor; font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-anchor: middle; }
.cachet .cachet-h { font-size: 9.5px; letter-spacing: .14em; }
.carte-mot { flex: 1; font-size: 5.3cqw; line-height: 1.55; }
.carte-signe { margin-top: 1cqw; font-size: 5.2cqw; color: var(--brique); text-align: right; }
.carte-adresse {
  margin-top: 3cqw; font-size: 4.6cqw; line-height: 9cqw; color: var(--encre-douce);
  background: repeating-linear-gradient(to bottom, transparent 0 calc(9cqw - 1px), rgba(21, 32, 47, .22) calc(9cqw - 1px) 9cqw);
}
.carte-bouton { position: absolute; inset: 0; z-index: 3; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.carte-bouton:focus-visible { outline: 2px solid var(--or); outline-offset: 4px; }
.carte:active .carte-in { scale: .985; }
.visite-scene { position: relative; }
.trajet { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: none; pointer-events: none; }
.hirondelle-livreuse { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 30; }

@media (min-width: 900px) {
  .carte { flex-basis: min(72vw, 820px); aspect-ratio: 3 / 2; }
  .recto { padding: 1.3cqw; }
  .carte-legende { left: 4cqw; bottom: 3.4cqw; font-size: 1.15cqw; }
  .carte-legende span { font-size: 4.3cqw; }
  .verso { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: 4.4cqw; padding: 3.6cqw 4cqw 3.2cqw; }
  .verso::before { left: 4cqw; top: 3.8cqw; font-size: 1.1cqw; }
  .verso::after { content: ''; position: absolute; left: 55%; top: 16%; bottom: 12%; width: 1px; background: rgba(21, 32, 47, .2); }
  .carte-mot { grid-column: 1; grid-row: 1 / 3; align-self: center; font-size: 2.6cqw; padding-top: 2.4cqw; }
  .carte-signe { grid-column: 1; grid-row: 3; text-align: left; font-size: 2.5cqw; }
  .carte-poste { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; margin: 0; }
  .timbre { width: 10.5cqw; height: 12.6cqw; padding: 1.1cqw; }
  .cachet { width: 22cqw; right: 5.6cqw; top: 2.8cqw; }
  .carte-adresse { grid-column: 2; grid-row: 3; align-self: end; font-size: 2.3cqw; line-height: 4.6cqw; background-image: repeating-linear-gradient(to bottom, transparent 0 calc(4.6cqw - 1px), rgba(21, 32, 47, .22) calc(4.6cqw - 1px) 4.6cqw); }
}

/* la scène épinglée, ordinateur seulement : une grande carte à la fois */
.visite.epinglee { padding: 0; }
.visite.epinglee .visite-scene { height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.visite.epinglee .visite-entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-top: clamp(26px, 5vh, 52px); }
.visite.epinglee .chapitre { margin-bottom: .7rem; }
.visite.epinglee .visite-entete .titre-xl { font-size: clamp(2.3rem, 3.4vw, 3.5rem); }
.visite.epinglee .visite-mot { margin-top: .5rem; font-size: clamp(1.25rem, 1.6vw, 1.6rem); }
.visite.epinglee .visite-astuce { display: none; }
.visite.epinglee .visite-compteur { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; text-align: right; padding-bottom: .3rem; }
.visite-lieu { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1; color: var(--or-pale); }
.visite-num { opacity: .6; }
.visite.epinglee .visite-cartes { position: relative; display: block; height: 100%; margin: 0; padding: 0; overflow: visible; }
.visite.epinglee .carte { position: absolute; left: 50%; top: 50%; width: min(calc((100svh - 250px) * 1.5), 80vw, 1180px); flex: none; }
.visite.epinglee .carte { perspective: 3600px; }
.visite.epinglee .carte-in { transition: none; }
.visite.epinglee .carte-bouton { display: none; }

/* ---------- d'en haut ---------- */
.haut { padding-block: var(--respiration); }
.haut-entete { display: grid; gap: 1.6rem; padding-bottom: clamp(2.8rem, 6vw, 4.8rem); }
.haut-intro { max-width: 38ch; color: var(--encre-douce); }
.haut-image { position: relative; aspect-ratio: 4 / 5; }
.haut-photo { position: absolute; inset: 0; overflow: hidden; background: #6f7d55; }
.haut-photo picture, .haut-photo img { display: block; width: 100%; height: 100%; }
.haut-photo img { object-fit: cover; transform-origin: 46% 62%; }
.haut-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(40, 30, 14, .2), rgba(40, 30, 14, 0) 40%, rgba(40, 30, 14, .16)); pointer-events: none; }
.hirondelle-dessus { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; }
.notes { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.note { position: absolute; left: var(--xm); top: var(--ym); width: 0; height: 0; }
.note::before { content: ''; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--creme); background: rgba(181, 70, 42, .9); }
.note > span {
  position: absolute; left: 0; bottom: 14px; width: max-content; max-width: min(46vw, 19rem);
  transform: translateX(calc(var(--axm) * -100%)); margin-left: calc((1 - 2 * var(--axm)) * 8px);
  font-size: clamp(1.15rem, 2.2vw, 1.75rem); line-height: 1.3; color: #FFF6E6;
  text-shadow: 0 1px 2px rgba(8, 12, 18, .7), 0 0 14px rgba(8, 12, 18, .45);
  padding-bottom: 4px; border-bottom: 1px solid rgba(255, 246, 230, .7);
}
@media (min-width: 700px) {
  .haut-image { aspect-ratio: 16 / 9; }
  .note { left: var(--x); top: var(--y); }
  .note > span { transform: translateX(calc(var(--ax) * -100%)); margin-left: calc((1 - 2 * var(--ax)) * 8px); }
}
.etang { width: min(78%, 420px); margin: clamp(2.6rem, 6vw, 4rem) 0 0 auto; }
.etang .tirage { transform: rotate(-1.6deg); }
.etang img { width: 100%; height: auto; }
.etang-mot { margin-top: 1.3rem; font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--brique); transform: rotate(-2deg); }
@media (min-width: 900px) {
  .etang { width: 34%; margin: -6rem 4% 0 auto; position: relative; z-index: 5; }
}
@media (min-width: 900px) {
  .haut-entete { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; column-gap: 24px; }
  .haut-entete .chapitre { grid-column: 1 / -1; margin-bottom: 0; }
  .haut-intro { padding-bottom: .8rem; }
}

/* ---------- les compagnons ---------- */
.vert { background: var(--vert-pale); color: var(--encre); }
.vert em { color: var(--brique); }
.animaux { padding-block: var(--respiration); position: relative; overflow: clip; }
.animaux-grille { display: grid; gap: 3rem; }
.animaux-photo { aspect-ratio: 4 / 5; order: 2; }
.animaux-photo img { object-position: 30% 50%; }
.animaux-mot { margin-top: 1.8rem; font-size: clamp(1.4rem, 3.2vw, 2rem); color: var(--brique); transform: rotate(-2.5deg); transform-origin: left; }
.liste-claire { margin-top: 2.4rem; max-width: 46ch; }
.liste-claire li { position: relative; padding: .85rem 0 .85rem 1.6rem; border-top: 1px solid rgba(21, 32, 47, .14); color: var(--encre-douce); }
.liste-claire li::before { content: ''; position: absolute; left: 2px; top: 1.45rem; width: 7px; height: 7px; border-radius: 50%; background: var(--vert); }
@media (min-width: 900px) {
  .animaux-grille { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
  .animaux-photo { order: 0; grid-column: 1 / 6; aspect-ratio: 3 / 4; }
  .animaux-texte { grid-column: 7 / 13; }
}

/* ---------- autour ---------- */
.autour { padding-block: var(--respiration); }
.autour-entete { display: grid; gap: 1.8rem; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.autour-entete .chapitre { margin-bottom: .4rem; }
.autour-mot { font-size: clamp(1.35rem, 3vw, 1.9rem); color: var(--brique); transform: rotate(-2deg); transform-origin: left; }
.autour-cartes { display: grid; gap: 22px; }
.fiche { position: relative; padding: 30px 26px 28px; background: var(--papier); border: 1px solid rgba(21, 32, 47, .16); outline: 1px solid rgba(21, 32, 47, .12); outline-offset: -8px; }
.fiche-num { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--brique); }
.fiche-titre { margin: .3rem 0 1.4rem; font-family: var(--serif); font-weight: 400; font-size: 2.1rem; line-height: 1; letter-spacing: -.012em; }
.semaine li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: .6rem; align-items: baseline; padding-block: .5rem; border-top: 1px solid rgba(21, 32, 47, .1); color: rgba(21, 32, 47, .38); }
.semaine .jour { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.semaine .jour-marche { color: var(--encre); }
.semaine .jour-marche .jour { color: var(--brique); }
.semaine .marche { font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; }
.semaine .detail { grid-column: 2; font-size: .86rem; color: var(--encre-douce); }
.tables li { display: flex; align-items: baseline; gap: .6rem; padding-block: .42rem; }
.tables li span:first-child { font-family: var(--serif); font-size: 1.32rem; line-height: 1.2; }
.tables li i { flex: 1; min-width: 1rem; border-bottom: 1px dotted rgba(21, 32, 47, .4); transform: translateY(-.3em); }
.tables li span:last-child { font-size: .86rem; color: var(--encre-douce); white-space: nowrap; }
.fiche-note { margin-top: 1.4rem; font-size: .92rem; color: var(--encre-douce); }
.fiche-grand { font-family: var(--serif); font-size: 2.05rem; line-height: 1.08; letter-spacing: -.01em; }
@media (min-width: 900px) {
  .autour-entete { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: 24px; }
  .autour-entete .chapitre { grid-column: 1 / -1; }
  .autour-mot { padding-bottom: 1rem; }
  .autour-cartes { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1.05fr) minmax(0, .9fr); gap: 26px; align-items: start; }
  .fiche-tables { margin-top: 5.5rem; }
  .fiche-chemins { margin-top: 11rem; }
}

/* ---------- tarifs : un ticket imprimé, une page d'agenda ---------- */
.tarifs { padding-block: var(--respiration); }
.tarifs-grille { display: grid; gap: clamp(2.8rem, 6vw, 4.4rem); }
.tarifs-intro { margin-top: 1.4rem; max-width: 40ch; color: var(--encre-douce); }

.ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 640px; background: #FBF4E3; border-radius: 4px; box-shadow: var(--ombre-tirage); transform: rotate(-.8deg); --souche: clamp(54px, 9vw, 82px); }
.ticket::before, .ticket::after { content: ''; position: absolute; right: calc(var(--souche) - 10px); width: 20px; height: 20px; border-radius: 50%; background: var(--pierre-claire); }
.ticket::before { top: -10px; }
.ticket::after { bottom: -10px; }
.ticket-corps { position: relative; padding: clamp(24px, 5vw, 38px) clamp(20px, 4.6vw, 40px) clamp(20px, 4vw, 30px); }
.ticket-corps::before, .ticket-corps::after { content: ''; position: absolute; pointer-events: none; border: 1px solid rgba(142, 52, 32, .38); }
.ticket-corps::before { inset: 9px; }
.ticket-corps::after { inset: 13px; border-color: rgba(142, 52, 32, .16); }
.ticket-tete { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(21, 32, 47, .2); font-size: .64rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--brique); }
.ticket-prix > div { display: flex; align-items: baseline; gap: .7rem; padding-block: 1rem; border-bottom: 1px dashed rgba(21, 32, 47, .22); }
.ticket-prix dt { font-family: var(--serif); font-size: clamp(1.35rem, 3.8vw, 1.8rem); line-height: 1.1; }
.ticket-prix dt small { display: block; margin-top: .25rem; font-family: var(--sans); font-size: .78rem; color: var(--encre-douce); }
.ticket-prix i { flex: 1; min-width: .8rem; border-bottom: 1px dotted rgba(21, 32, 47, .45); transform: translateY(-.35em); }
.ticket-prix dd { white-space: nowrap; text-align: right; line-height: 1; }
.ticket-prix dd b { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 7.4vw, 3.7rem); letter-spacing: -.02em; }
.ticket-prix dd small { display: block; margin-top: .35rem; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-douce); }
.ticket-pied { margin-top: 1.1rem; text-align: center; font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--encre-douce); }
.ticket-souche { width: var(--souche); display: grid; place-items: center; background: var(--brique); color: var(--creme); border-radius: 0 4px 4px 0; border-left: 2px dashed rgba(251, 244, 227, .9); }
.ticket-souche span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.6rem); }

.conditions { align-self: center; border-top: 1px solid rgba(21, 32, 47, .22); }
.conditions > div { display: grid; grid-template-columns: minmax(6.6rem, 36%) minmax(0, 1fr); gap: 1rem; align-items: baseline; padding-block: .85rem; border-bottom: 1px solid rgba(21, 32, 47, .14); }
.conditions dt { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brique); }
.conditions dd { font-family: var(--serif); font-size: 1.32rem; line-height: 1.25; }

.agenda { position: relative; padding: clamp(20px, 4vw, 40px); background: #FDF9F1; border-radius: 3px; box-shadow: var(--ombre-tirage); --ligne: clamp(2.5rem, 7.4vw, 2.9rem); }
.agenda-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; color: var(--encre-douce); }
.agenda-fleches { display: flex; gap: 8px; }
.agenda-fleche { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(21, 32, 47, .22); border-radius: 50%; background: transparent; cursor: pointer; transition: transform .12s ease-out, background-color .2s ease; }
.agenda-fleche:hover { background: rgba(216, 195, 160, .25); }
.agenda-fleche:active { transform: scale(.94); }
.agenda-fleche:disabled { opacity: .3; cursor: default; }
.agenda-fleche svg { width: 18px; height: 18px; }
.agenda-pages { position: relative; display: grid; }
.agenda-page { display: none; }
.agenda-page.vue { display: block; }
.agenda-mois { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: .5rem; border-bottom: 1.5px solid var(--encre); }
.agenda-mois b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.1rem, 6.4vw, 2.7rem); line-height: 1; }
.agenda-mois span { font-size: .7rem; font-weight: 600; letter-spacing: .2em; color: var(--encre-douce); }
.agenda-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--ligne) - 1px), rgba(42, 70, 112, .12) calc(var(--ligne) - 1px) var(--ligne)) 0 2.2rem / 100% calc(100% - 2.2rem) no-repeat; }
.agenda-grille .j { height: 2.2rem; display: grid; place-items: center; font-size: .62rem; font-weight: 600; letter-spacing: .14em; color: var(--encre-douce); }
.agenda-grille .d { position: relative; height: var(--ligne); display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; color: var(--encre); font-variant-numeric: lining-nums tabular-nums; }
.agenda-grille .d.dim { color: var(--brique); }
.agenda-grille .d.passe { color: rgba(21, 32, 47, .24); }
.agenda-grille .d.pris { color: rgba(21, 32, 47, .42); }
.agenda-grille .d.pris::after, .leg-pris::after {
  content: ''; position: absolute; left: 14%; right: 14%; top: 32%; bottom: 32%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 24' preserveAspectRatio='none'%3E%3Cfilter id='c'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2.2'/%3E%3C/filter%3E%3Cpath d='M3 17 C 16 14, 34 11, 57 6' stroke='%23463f38' stroke-width='2.4' stroke-linecap='round' fill='none' opacity='.82' filter='url(%23c)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.agenda-grille .d.pris:nth-child(3n)::after { transform: rotate(7deg) scaleX(.92); }
.agenda-grille .d.pris:nth-child(3n+1)::after { transform: rotate(-5deg) scaleX(1.06); }
.agenda-legende { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.2rem; font-size: .82rem; color: var(--encre-douce); }
.leg { position: relative; display: inline-grid; place-items: center; width: 2.2rem; height: 1.8rem; margin-right: .2rem; font-family: var(--serif); font-size: 1.25rem; color: var(--encre); }
.leg-pris { color: rgba(21, 32, 47, .42); }
.tarifs-fin { display: grid; gap: 1.8rem; justify-items: start; }
.tarifs-mot { font-size: clamp(1.4rem, 3.4vw, 2rem); color: var(--brique); transform: rotate(-2deg); transform-origin: left; }
.tarifs-fin .bouton { min-width: 220px; }
@media (min-width: 900px) {
  .tarifs-grille { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .tarifs-entete { grid-column: 1 / -1; }
  .ticket { grid-column: 1 / 7; }
  .conditions { grid-column: 8 / 13; }
  .agenda { grid-column: 1 / -1; max-width: 1080px; }
  .agenda-pages { grid-template-columns: 1fr 1fr; column-gap: 72px; }
  .agenda-pages::before { content: ''; position: absolute; left: 50%; top: -12px; bottom: -12px; width: 40px; transform: translateX(-50%); background: linear-gradient(to right, rgba(74, 52, 24, 0), rgba(74, 52, 24, .1) 48%, rgba(74, 52, 24, .16) 50%, rgba(74, 52, 24, .1) 52%, rgba(74, 52, 24, 0)); pointer-events: none; }
  .agenda-page.vue-2 { display: block; }
  .tarifs-fin { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; max-width: 1080px; }
}

/* ---------- fin ---------- */
.fin { position: relative; min-height: 100svh; overflow: clip; color: var(--creme); background: var(--nuit); display: flex; flex-direction: column; justify-content: flex-end; }
.fin-photo { position: absolute; inset: -6% 0 0; }
.fin-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.fin::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(14, 26, 43, .92) 0%, rgba(14, 26, 43, .6) 45%, rgba(14, 26, 43, .25) 100%); }
.fin-chaleur { position: absolute; inset: 0; z-index: 1; opacity: .2; background: radial-gradient(120% 80% at 70% 20%, rgba(242, 168, 84, .75), rgba(214, 112, 52, .35) 45%, rgba(214, 112, 52, 0) 75%); }
.fin-texte { position: relative; z-index: 2; padding-top: calc(var(--respiration) * 1.4); padding-bottom: clamp(3rem, 8vh, 5rem); }
.fin .chapitre { color: var(--or-pale); }
.fin-plume { font-size: clamp(1.7rem, 4.6vw, 3rem); color: #F7E3BE; transform: rotate(-2.5deg); transform-origin: left bottom; margin-bottom: .4rem; }
.fin-titre { max-width: 11ch; }
.fin-titre em { color: var(--or); }
.fin .bouton { margin-top: 2.4rem; }
.contact { margin-top: 3.4rem; display: grid; gap: 1.4rem; padding-top: 2rem; border-top: 1px solid rgba(244, 237, 225, .2); }
.contact p { display: grid; gap: .3rem; font-size: 1rem; line-height: 1.45; }
.contact .petit { opacity: .6; }
.contact a { text-decoration: none; border-bottom: 1px solid rgba(244, 237, 225, .35); justify-self: start; overflow-wrap: anywhere; }
.fin-pied { position: relative; z-index: 2; padding-block: 1.4rem calc(1.6rem + env(safe-area-inset-bottom)); opacity: .5; font-size: .62rem; }
@media (min-width: 900px) {
  .contact { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
}

/* ---------- le ciel des hirondelles ---------- */
.ciel { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: clip; pointer-events: none; z-index: 50; }
.vol { position: absolute; left: 0; top: 0; width: 88px; height: 88px; opacity: 0; will-change: transform; }
.vol svg, .posee svg { width: 100%; height: 100%; overflow: visible; }
.posee { position: absolute; left: 0; top: 0; width: 82px; aspect-ratio: 140 / 96; opacity: 0; }
.hirondelle-livreuse .vol, .hirondelle-dessus .vol { position: absolute; }
@media (min-width: 900px) {
  .vol { width: 118px; height: 118px; }
  .posee { width: 104px; }
}

/* ---------- marque-page, carnet, timbre ---------- */
.marque-page { position: fixed; top: 0; right: clamp(18px, 4.4vw, 64px); z-index: 80; width: 44px; height: 104px; padding: 0; border: 0; background: none; cursor: pointer; }
.ruban {
  position: absolute; left: 1px; top: 0; width: 42px; height: 96px; padding: 0 0 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brique) repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
  color: var(--creme);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 83%, 0 100%);
  transition: transform .35s var(--sortie);
}
.ruban::before { content: ''; position: absolute; inset: 0 5px 14px; border-inline: 1px dashed rgba(244, 237, 225, .35); }
.ruban span { position: relative; left: 1.4px; top: -1.75px; display: block; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .58rem; line-height: 1; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; margin-block-start: .26em; } /* compense le dessin des capitales : encre centrée au pixel */
.marque-page:hover .ruban { transform: translateY(6px); }
.marque-page:active .ruban { transform: translateY(10px) scaleX(.96); transition-duration: .1s; }

.timbre-reserver { position: fixed; z-index: 80; right: calc(14px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); width: 70px; height: 84px; text-decoration: none; color: var(--creme); }
.timbre-reserver-papier {
  position: absolute; inset: 0; padding: 6px; background: var(--papier);
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 3px, #0000 95%, #000) -4px -4px / 8px 8px round;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 3px, #0000 95%, #000) -4px -4px / 8px 8px round;
  transform: rotate(-5deg);
  transition: transform .3s var(--sortie);
}
.timbre-reserver-in { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 7px 4px 6px; background: var(--brique); outline: 1px solid rgba(251, 246, 236, .5); outline-offset: -4px; }
.timbre-reserver svg { width: 34px; height: 24px; }
.timbre-reserver b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.08rem; line-height: 1; }
.timbre-reserver small { font-size: .42rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.timbre-reserver:hover .timbre-reserver-papier { transform: translateY(-4px) rotate(2deg); }
.timbre-reserver:active .timbre-reserver-papier { transform: scale(.95) rotate(-5deg); transition-duration: .1s; }
@media (min-width: 900px) {
  .timbre-reserver { right: 28px; bottom: 28px; width: 84px; height: 100px; }
  .timbre-reserver-papier { padding: 7px; }
  .timbre-reserver b { font-size: 1.3rem; }
  .timbre-reserver svg { width: 42px; height: 30px; }
  .timbre-reserver small { font-size: .48rem; }
}

.carnet { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.carnet::backdrop { background: rgba(14, 26, 43, .6); }
.carnet-livre { position: absolute; top: 50%; left: 50%; width: min(90vw, 440px); height: min(80svh, 620px); transform: translate(-50%, -50%); }
.carnet-corps { position: absolute; inset: 0; perspective: 2000px; }
.carnet-page, .carnet-feuille, .carnet-couverture { position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; }
.carnet-page { background: var(--papier); color: var(--encre); padding: clamp(28px, 6vw, 44px) clamp(24px, 6vw, 40px); display: flex; flex-direction: column; overflow-y: auto; }
.carnet-page::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 18px; background: linear-gradient(to right, rgba(21, 32, 47, .12), rgba(21, 32, 47, 0)); pointer-events: none; }
.carnet-feuille, .carnet-couverture { transform-origin: left center; transform-style: preserve-3d; }
.carnet-feuille > div, .carnet-couverture > div { position: absolute; inset: 0; border-radius: inherit; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.carnet-feuille .face { background: var(--papier) repeating-linear-gradient(to bottom, transparent 0 31px, rgba(42, 70, 112, .1) 31px 32px); }
.carnet-feuille .dos, .carnet-couverture .dos { transform: rotateY(180deg); background: #F1E8D8; }
.carnet-couverture .face { background: var(--nuit) linear-gradient(135deg, rgba(42, 70, 112, .45), rgba(14, 26, 43, 0) 60%); color: var(--or-pale); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; outline: 1px solid rgba(235, 211, 172, .3); outline-offset: -14px; }
.carnet-couverture .face b { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 2.6rem; line-height: 1; }
.carnet-couverture .dos { display: grid; place-items: center; padding: 2rem; }
.carnet-couverture .dos p { font-size: 1.35rem; color: var(--encre-douce); transform: rotate(-4deg); text-align: center; }
.sommaire-tete { font-size: clamp(1.3rem, 5vw, 1.6rem); color: var(--brique); transform: rotate(-2deg); transform-origin: left; }
.sommaire-titre { margin: .2rem 0 clamp(.8rem, 3vh, 1.6rem); font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 8vw, 2.7rem); line-height: 1; letter-spacing: -.02em; }
.sommaire ol { display: grid; }
.sommaire a { display: flex; align-items: baseline; gap: .7rem; padding-block: clamp(.5rem, 1.6vh, .78rem); border-top: 1px solid rgba(21, 32, 47, .12); text-decoration: none; transition: color .2s ease; }
.sommaire li:last-child a { border-bottom: 1px solid rgba(21, 32, 47, .12); }
.sommaire a:hover { color: var(--brique); }
.s-num { width: 1.8rem; font-family: var(--serif); font-style: italic; color: var(--brique); }
.s-titre { font-family: var(--serif); font-size: clamp(1.3rem, 5vw, 1.55rem); line-height: 1.1; }
.sommaire a i { flex: 1; min-width: 1rem; border-bottom: 1px dotted rgba(21, 32, 47, .35); transform: translateY(-.28em); }
.s-page { font-size: .82rem; color: var(--encre-douce); font-variant-numeric: tabular-nums; }
.sommaire-pied { margin-top: auto; padding-top: 1.2rem; font-size: 1.1rem; color: var(--encre-douce); }
.carnet .marque-page { position: absolute; right: 24px; top: -6px; }
@media (min-width: 900px) {
  .carnet-livre { left: auto; right: clamp(24px, 7vw, 120px); transform: translateY(-50%); }
}

/* ---------- page en préparation ---------- */
.page-simple { min-height: 100svh; background: var(--creme); color: var(--encre); }
.page-simple em { color: var(--brique); }
.attente-scene { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: clip; padding-block: 64px; }
.attente-ciel { position: relative; height: 120px; margin-bottom: clamp(24px, 6vh, 64px); }
.attente-fil { position: absolute; inset: 0; width: 100%; height: 100%; }
.attente-oiseau { position: absolute; left: 62%; top: 75px; width: 110px; transform: translate(-65.7%, -66.7%) scaleX(-1); transform-origin: 65.7% 66.7%; }
.attente-texte { position: relative; }
.attente-texte .titre-xl { max-width: 12ch; }
.attente-mot { margin: 2.8rem 0 2.6rem; font-size: clamp(1.35rem, 3vw, 1.9rem); color: var(--brique); transform: rotate(-2deg); transform-origin: left; }

/* ---------- page de choix ---------- */
.choix main { padding-block: 120px 120px; }
.choix-entete { max-width: 60rem; }
.choix-intro { margin-top: 1.6rem; max-width: 52ch; color: var(--encre-douce); }
.choix-liste { margin-top: 5rem; display: grid; gap: 5rem; }
.choix-item { display: grid; gap: 1.4rem; padding-top: 2rem; border-top: 1px solid rgba(21, 32, 47, .18); }
.choix-num { margin-bottom: .15em; font-family: var(--serif); font-size: clamp(5rem, 14vw, 9rem); line-height: .8; color: var(--brique); }
.choix-info h2 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1.05; }
.choix-info p { margin-top: .7rem; max-width: 46ch; color: var(--encre-douce); }
.choix-ecrans { display: flex; gap: 16px; align-items: flex-end; }
.ecran { position: relative; overflow: clip; border-radius: 6px; background: var(--nuit); outline: 6px solid var(--nuit); }
.ecran img { width: 100%; height: 100%; object-fit: cover; }
.ecran::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 26, 43, .8), rgba(14, 26, 43, 0) 50%); }
.ecran figcaption { position: absolute; z-index: 1; left: 7%; bottom: 9%; color: var(--creme); font-family: var(--serif); line-height: .85; letter-spacing: -.03em; }
.ecran figcaption span { display: block; font-style: italic; font-size: .45em; }
.ecran-large { flex: 1 1 auto; aspect-ratio: 16 / 10; }
.ecran-large figcaption { font-size: clamp(1.6rem, 5vw, 3.6rem); }
.ecran-tel { flex: 0 0 27%; aspect-ratio: 9 / 19; border-radius: 14px; }
.ecran-tel figcaption { font-size: clamp(1rem, 3.4vw, 1.9rem); }
.choix-retour { margin-top: 5rem; }
@media (min-width: 900px) {
  .choix-item { grid-template-columns: 9rem minmax(0, 4fr) minmax(0, 8fr); column-gap: 32px; align-items: start; }
  .ecran-tel { flex-basis: 22%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
