
/* Animation d'entrée (intro.js) */
html.smli-on, html.smli-on body { overflow: hidden; }
.smli { position: fixed; inset: 0; z-index: 1000; background: #05070f; overflow: hidden; }
.smli-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.smli-cockpit { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 45%; pointer-events: none; }
.smli-lights circle { animation: smliBlink 1.6s ease-in-out infinite; }
.smli-lights circle:nth-child(2n) { animation-delay: .5s; }
@keyframes smliBlink { 50% { opacity: .25; } }
.smli-hud { position: absolute; left: 50%; bottom: max(28px, 9vh); transform: translateX(-50%); display: grid; justify-items: center; gap: 2px;
  font-family: var(--ui); color: var(--gold); text-align: center; pointer-events: none; }
.smli-dest { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
.smli-dist { font-size: 15px; color: var(--ivory); font-variant-numeric: tabular-nums; }
.smli-dist b { font-weight: 500; font-size: 22px; }
.smli-arrived .smli-dist::after { content: " · arrivée"; color: var(--gold); }
.smli-title { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 16px; text-align: center; opacity: 0;
  font-family: var(--display); font-size: clamp(34px, 7vw, 72px); line-height: 1.05; color: var(--ivory); text-shadow: 0 2px 24px rgba(0,0,0,.7); pointer-events: none; }
.smli-skip { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: max(16px, env(safe-area-inset-top, 0px)); font: 500 13px var(--ui);
  color: var(--ivory); background: rgba(14, 19, 40, .7); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.smli-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.smli-video .smli-title { transition: opacity .6s ease; }
.smli.smli-out { opacity: 0; transition: opacity .8s ease; }
.smli-skip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
:root { color-scheme: dark; --night: #0e1328; --night-2: #161c38; --ivory: #ece6d6; --ivory-soft: #b9b4a8; --gold: #e2b866; --line: rgba(236, 230, 214, 0.18);
  /* rouge : --red pour le texte (lisible sur le bleu nuit), --wax pour les aplats (cire, boutons) */
  --red: #e8616b; --wax: #b3262f;
  --display: "Cormorant Garamond", "Garamond", "Baskerville", Georgia, serif; --ui: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--night); color: var(--ivory); font-family: var(--ui); font-size: 16px; line-height: 1.6; }
a { color: var(--gold); }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: .01em; color: var(--ivory); text-decoration: none; }
.brand em { font-style: italic; font-weight: 500; color: var(--red); }
.brand svg { width: 40px; height: 40px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; letter-spacing: .04em; }
.nav a { color: var(--ivory-soft); text-decoration: none; } .nav a:hover { color: var(--red); }
.intro { text-align: center; padding-block: 12px 4px; color: var(--ivory-soft); max-width: 640px; margin: 0 auto; text-wrap: balance; }
.intro strong { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.2em; color: var(--red); }
section.block { padding-block: 56px 8px; }
h2.title { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 5.5vw, 54px); line-height: 1.08; letter-spacing: -.005em; text-align: center; margin: 0 0 10px; text-wrap: balance; }
h2.title em { font-style: italic; color: var(--red); }
h2.title::after { content: ""; display: block; width: 150px; height: 16px; margin: 12px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 16'%3E%3Cpath d='M0 8h58M92 8h58' stroke='%23e2b866' stroke-opacity='.6'/%3E%3Cpath d='M76 1.5a6.5 6.5 0 1 0 0 13a5 5 0 1 1 0-13z' fill='%23e8616b'/%3E%3Ccircle cx='66' cy='8' r='1.4' fill='%23e2b866'/%3E%3Ccircle cx='84' cy='8' r='1.4' fill='%23e2b866'/%3E%3C/svg%3E") center / contain no-repeat; }
p.lead { text-align: center; color: var(--ivory-soft); margin: 0 auto 28px; max-width: 620px; text-wrap: balance; }
.occasions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 900px) { .occasions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .occasions { gap: 10px; } .occasion { padding: 16px 14px; } .occasion h3 { font-size: 19px; } .occasion p { font-size: 13.5px; } .occasion svg { width: 34px; height: 34px; margin-bottom: 6px; } }
.occasion { padding: 22px 20px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--night-2); transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .5s ease, box-shadow .5s ease; }
.occasion:hover { transform: translateY(-5px); border-color: rgba(226,184,102,.45); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.occasion svg { width: 42px; height: 42px; color: var(--gold); margin-bottom: 10px; }
.occasion h3 { font-family: var(--display); font-weight: 600; font-size: 23px; line-height: 1.15; margin: 0 0 6px; }
.occasion p { margin: 0; font-size: 14.5px; color: var(--ivory-soft); }
.sv { display: flex; align-items: center; gap: 18px; max-width: 820px; margin: 26px auto 0; padding: 14px 22px; border-radius: 14px; border: 1px solid rgba(226,184,102,.35); background: var(--night-2); }
.sv-cachet { flex: none; width: 50px; } .sv-seal { display: block; width: 100%; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); transform: rotate(-10deg); }
.sv-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.sv-txt strong { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.2; }
.sv-txt span { font-size: 13.5px; color: var(--ivory-soft); }
.sv-j { flex: none; text-align: center; display: grid; line-height: 1; padding-left: 18px; border-left: 1px solid var(--line); }
.sv-j b { font-family: var(--display); font-weight: 600; font-size: 40px; color: var(--gold); font-variant-numeric: lining-nums; }
.sv-j small { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-soft); margin-top: 4px; }
@media (max-width: 600px) { .sv { flex-wrap: wrap; justify-content: center; text-align: center; } .sv-txt { flex-basis: 100%; order: 2; } .sv-j { border-left: 0; padding-left: 0; } }
.rassure { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 4px auto 0; padding: 0; font-size: 13px; letter-spacing: .04em; color: var(--ivory-soft); }
.rassure li + li::before { content: "·"; color: var(--gold); margin: 0 10px; }
.rassure li:first-child { color: var(--gold); font-weight: 500; }
@media (max-width: 600px) { .rassure { gap: 6px; max-width: 340px; } .rassure li { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; } .rassure li + li::before { display: none; } }
.confiance-paiement { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px auto 0; font-size: 13.5px; color: var(--ivory-soft); text-align: center; }
.confiance-paiement svg { color: var(--gold); flex: none; }
.cta-fixe { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; white-space: nowrap;
  padding: 12px 22px; border-radius: 999px; background: var(--gold); color: #1a1405; font-weight: 500; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.cta-fixe[hidden] { display: none; }
@media (min-width: 761px) { .cta-fixe { display: none !important; } }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 600px) { .top { flex-direction: column; align-items: center; gap: 8px; padding-block: 14px 6px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; gap: 13px; max-width: 100%; scrollbar-width: none; font-size: 13px; letter-spacing: .02em; } .nav::-webkit-scrollbar { display: none; } .nav a { white-space: nowrap; } }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 820px; margin: 0 auto; }
.offer { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--night-2); display: grid; gap: 10px; align-content: start; }
.offer.best { border-color: rgba(232, 97, 107, .7); box-shadow: 0 0 0 1px rgba(232, 97, 107, .25), 0 18px 40px rgba(0,0,0,.35); }
.offer .tag { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.offer h3 { font-family: var(--display); font-weight: 600; font-size: 38px; margin: 0; line-height: 1; }
.offer .price { font-family: var(--display); font-weight: 600; font-size: 34px; font-variant-numeric: lining-nums tabular-nums; }
.offer.best .cta { background: var(--wax); color: #fff6f2; }
.offer .sub { font-size: 13px; color: var(--ivory-soft); }
.offer ul { margin: 0; padding-left: 18px; color: var(--ivory-soft); font-size: 15px; display: grid; gap: 4px; }
.cta { display: inline-block; text-align: center; font-weight: 500; border-radius: 8px; padding: 11px 16px; background: var(--gold); color: var(--night); text-decoration: none; }
.rare { text-align: center; color: var(--ivory-soft); font-size: 14px; margin-top: 16px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li { border-top: 1px solid var(--line); padding-top: 14px; color: var(--ivory-soft); }
.steps li::before { counter-increment: s; content: counter(s); display: block; font-family: var(--display); font-size: 34px; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.steps strong { color: var(--ivory); font-weight: 500; display: block; }
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; background: var(--night-2); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 20px; }
.faq summary::marker { color: var(--red); }
.faq details[open] { border-color: rgba(232, 97, 107, .45); }
.faq p { color: var(--ivory-soft); margin: 8px 0 0; }
footer { margin-top: 64px; border-top: 1px solid var(--line); padding-block: 24px 40px; font-size: 13px; color: var(--ivory-soft); display: grid; gap: 8px; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.doc { max-width: 760px; margin: 0 auto; padding-block: 24px 40px; }
.doc h1 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 6vw, 48px); line-height: 1.1; margin: 8px 0 16px; }
.doc h2 { font-weight: 500; font-size: 19px; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--ivory-soft); }
.todo { color: #f0a868; font-style: italic; }
.warn { border: 1px solid #f0a868; border-radius: 10px; padding: 12px 16px; color: #f0a868; }

/* ===== Décor postal ===== */
:root { --ink: #d23a44; --paper: #f2ead8; --paper-2: #e6dcc4; --paper-ink: #2a2a3a; --kraft: #c9a874; --kraft-2: #b48f59;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive; --type: "Special Elite", "Courier New", monospace; }
.post { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; max-width: 1000px; margin: 0 auto; }
@media (max-width: 760px) { .post { grid-template-columns: minmax(0, 1fr); } }
.scene { display: grid; place-items: center; padding-block: 36% 4%; min-width: 0; }
.env { position: relative; width: min(440px, 100%); aspect-ratio: 1.55; perspective: 1100px; }
.env-back, .env-front, .env-flap { position: absolute; inset: 0; border-radius: 6px; }
.env-back { background: linear-gradient(160deg, var(--kraft) 0%, var(--kraft-2) 100%); box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.env-front { background: linear-gradient(170deg, #d6b885 0%, var(--kraft) 60%, #ab8650 100%);
  clip-path: polygon(0 34%, 50% 66%, 100% 34%, 100% 100%, 0 100%); z-index: 3; }
.env-front::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 3px, rgba(0,0,0,.02) 3px 6px); }
.env-flap { background: linear-gradient(180deg, #d8bc8b 0%, var(--kraft-2) 100%); clip-path: polygon(0 0, 100% 0, 50% 60%);
  transform-origin: 50% 0; transform: rotateX(180deg); z-index: 1; backface-visibility: visible; }
.letter-clip { position: absolute; left: 0; right: 0; bottom: 0; height: 260%; overflow: hidden; z-index: 2; pointer-events: none; }
.letter { position: absolute; left: 6%; right: 6%; top: 39.5%; height: 45.4%;
  background: var(--paper); color: var(--paper-ink); border-radius: 3px; padding: 6% 7%; display: grid; align-content: start; gap: .45em;
  box-shadow: 0 10px 28px rgba(0,0,0,.35); background-image: linear-gradient(transparent 96%, rgba(42,42,58,.07) 96%); background-size: 100% 1.55em;
  font-family: var(--hand); font-size: clamp(15px, 2.2vw, 19px); line-height: 1.15; }
.letter p { margin: 0; }
.l-date { font-family: var(--type); font-size: .62em; letter-spacing: .08em; color: #7b6f5a; text-transform: uppercase; }
.l-hello { font-size: 1.35em; }
.l-word { color: var(--ink); font-size: 1.1em; }
.l-sign { text-align: right; font-size: 1.3em; }
.seal { position: absolute; left: 50%; top: 66%; width: 19%; transform: translate(-50%, -50%) rotate(-8deg); z-index: 6; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.timbre { position: absolute; right: 6%; bottom: 11%; width: 14%; z-index: 4; padding: 4px; background: #f6f1e4;
  -webkit-mask: radial-gradient(circle 3px at 3px 3px, #0000 98%, #000) -3px -3px / 8px 8px; mask: radial-gradient(circle 3px at 3px 3px, #0000 98%, #000) -3px -3px / 8px 8px;
  transform: rotate(3deg); filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.timbre-in svg { display: block; width: 100%; height: auto; }
.pm { position: absolute; right: 1%; bottom: 5%; width: 42%; z-index: 5; transform: rotate(-11deg); opacity: .88; pointer-events: none; }
.pm svg, .rubber svg { display: block; width: 100%; height: auto; overflow: visible; }
.post-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; min-width: 0; }
.post-notes li { color: var(--ivory-soft); padding-left: 34px; position: relative; }
.post-notes li::before { content: ""; position: absolute; left: 0; top: .25em; width: 22px; height: 15px; border: 1.5px solid var(--gold); border-radius: 2px;
  background: linear-gradient(to bottom right, transparent 47%, var(--gold) 48% 52%, transparent 53%), linear-gradient(to bottom left, transparent 47%, var(--gold) 48% 52%, transparent 53%);
  background-size: 100% 70%; background-repeat: no-repeat; }
.post-notes strong { display: block; color: var(--ivory); font-weight: 500; }
.post-notes .post-ex { font-size: 13px; padding-left: 0; font-style: italic; }
.post-notes .post-ex::before { display: none; }

/* Tampons rouges des forfaits */
.offer { position: relative; overflow: visible; }
.rubber { position: absolute; top: -18px; right: -10px; width: 150px; transform: rotate(9deg); opacity: .9; pointer-events: none; }
.offer.best .rubber { transform: rotate(-7deg); }

/* Étapes : numéros frappés au tampon, route postale en pointillés */
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { border-top: 2px dashed rgba(226, 184, 102, .35); }
.steps li::before { content: counter(s); font-family: var(--type); font-size: 22px; color: var(--ink); width: 46px; height: 46px; display: grid; place-items: center;
  border: 2.5px double var(--ink); border-radius: 50%; transform: rotate(-10deg); margin-bottom: 10px; filter: url(#encre); }

/* ===== Animations (seulement à l'arrivée à l'écran, jamais en mode « moins d'animations ») ===== */
@media (prefers-reduced-motion: no-preference) {
  .scene.play .env-flap { animation: flapOpen 1.1s .35s cubic-bezier(.6,.05,.3,1) both; }
  .scene.play .letter { animation: letterOut 1.2s 1.15s cubic-bezier(.2,.8,.2,1) both; }
  .scene.play .seal { animation: sealIn .7s 0s cubic-bezier(.3,1.6,.5,1) both; }
  .scene.play .pm { animation: slam .55s 2.35s cubic-bezier(.2,1.4,.4,1) both; }
  .scene.play .timbre { animation: stampDrop .6s 2.05s ease-out both; }
  .offer.play .rubber { animation: slam .55s .25s cubic-bezier(.2,1.4,.4,1) both; }
  .offer.best.play .rubber { animation-name: slamLeft; animation-delay: .45s; }
  .steps.play li::before { animation: slamSmall .45s cubic-bezier(.2,1.4,.4,1) both; }
  .steps.play li:nth-child(2)::before { animation-delay: .25s; }
  .steps.play li:nth-child(3)::before { animation-delay: .5s; }
  .steps.play li:nth-child(4)::before { animation-delay: .75s; }
}
@keyframes flapOpen { 0% { transform: rotateX(0deg); z-index: 5; } 45% { z-index: 5; } 46% { z-index: 1; } 100% { transform: rotateX(180deg); z-index: 1; } }
@keyframes letterOut { 0% { top: 63.1%; } 100% { top: 39.5%; } }
@keyframes sealIn { 0% { transform: translate(-50%, -50%) scale(1.6) rotate(-30deg); opacity: 0; } 100% { transform: translate(-50%, -50%) rotate(-8deg); opacity: 1; } }
@keyframes stampDrop { 0% { transform: translateY(-30px) rotate(-12deg); opacity: 0; } 100% { transform: rotate(3deg); opacity: 1; } }
@keyframes slam { 0% { transform: scale(2.3) rotate(24deg); opacity: 0; } 60% { transform: scale(.94) rotate(-9deg); opacity: .95; } 100% { transform: scale(1) rotate(-11deg); opacity: .88; } }
@keyframes slamLeft { 0% { transform: scale(2.3) rotate(-30deg); opacity: 0; } 60% { transform: scale(.94) rotate(-5deg); opacity: .95; } 100% { transform: scale(1) rotate(-7deg); opacity: .9; } }
@keyframes slamSmall { 0% { transform: scale(2) rotate(20deg); opacity: 0; } 100% { transform: scale(1) rotate(-10deg); opacity: 1; } }
/* ===== Animations de défilement (v2) ===== */
.scroll-bar { position: fixed; left: 0; top: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, #c9963f, #f6dc9c); box-shadow: 0 0 8px rgba(246,220,156,.5); }
body { background: transparent !important; }
.ciel { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ciel i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .ciel i { animation: scintille var(--t, 4s) var(--d, 0s) ease-in-out infinite; }
  .rv { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(6px);
    transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), filter .9s ease; transition-delay: var(--rd, 0s); }
  .rv.vu { opacity: 1; transform: none; filter: none; }
  h2.title.rv::after { transform: scaleX(0); transition: transform 1.1s .35s cubic-bezier(.6,0,.2,1); }
  h2.title.rv.vu::after { transform: scaleX(1); }
  h2.title.rv em { display: inline-block; clip-path: inset(0 100% 0 0); transition: clip-path 1s .45s cubic-bezier(.6,0,.2,1); }
  h2.title.rv.vu em { clip-path: inset(0 0 0 0); }
  .offer { transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease, border-color .5s ease; }
  .offer:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(226,184,102,.25); }
  .offer.best:hover { box-shadow: 0 22px 60px rgba(179,38,47,.4), 0 0 0 1px rgba(232,97,107,.5); }
  .cta, .sml-cta, button.cta { position: relative; overflow: hidden; }
  .cta::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: reflet 4.5s 1.5s ease-in-out infinite; }
  .faq details { transition: border-color .4s ease, background-color .4s ease, transform .4s ease; }
  .faq details:hover { transform: translateX(4px); }
  .faq details[open] > :not(summary) { animation: deplie .5s cubic-bezier(.2,.8,.2,1) both; }
  .brand svg { transition: transform .6s cubic-bezier(.3,1.6,.5,1); }
  .brand:hover svg { transform: rotate(-14deg) scale(1.08); }
  .scene.play .seal { animation: sealIn .7s 0s cubic-bezier(.3,1.6,.5,1) both, sealGlow 3.5s 1s ease-in-out infinite; }
}
@keyframes scintille { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: .9; transform: scale(1.2); } }
@keyframes reflet { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@keyframes deplie { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes remplit { from { width: 0; } }
@keyframes lueur { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 8px rgba(143,24,34,.5); } 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 18px rgba(232,97,107,.75); } }
@keyframes sealGlow { 0%, 100% { filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); } 50% { filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)) drop-shadow(0 0 10px rgba(232,97,107,.55)); } }

/* ===== Carnet des lettres ===== */
.cn-fond { position: fixed; inset: 0; z-index: 900; background: rgba(5, 7, 15, .78); backdrop-filter: blur(3px); display: grid; place-items: start center; overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.cn-fond[hidden] { display: none; }
.cn { width: min(760px, 100%); margin-block: 24px; background: var(--paper); color: var(--paper-ink); border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.55);
  padding: clamp(18px, 4vw, 36px); display: grid; gap: 18px; position: relative; font-family: var(--ui);
  background-image: linear-gradient(90deg, transparent 38px, rgba(210,58,68,.25) 38px 39px, transparent 39px); }
.cn h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 5vw, 40px); margin: 0; line-height: 1.1; color: #1b2040; }
.cn-resume { font-family: var(--type); font-size: 13px; color: #6b5f49; letter-spacing: .04em; }
.cn-fermer { position: absolute; top: 12px; right: 12px; font: 500 22px var(--ui); background: none; border: 0; color: #6b5f49; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; }
.cn-fermer:hover { background: rgba(0,0,0,.06); }
.cn-noms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .cn-noms { grid-template-columns: minmax(0, 1fr); } }
.cn label { display: grid; gap: 4px; font-size: 13px; color: #5c5240; }
.cn input, .cn textarea, .cn select { font: 400 16px var(--ui); color: var(--paper-ink); background: #fffaf0; border: 1px solid #d6c9ac; border-radius: 6px; padding: 9px 11px; width: 100%; min-width: 0; }
.cn textarea { font-family: var(--hand); font-size: 21px; line-height: 1.25; min-height: 120px; resize: vertical; }
.cn input:focus-visible, .cn textarea:focus-visible, .cn select:focus-visible, .cn button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cn-aide-txt { font-size: 14px; color: #5c5240; margin: 0; }
.cn-pages { display: grid; gap: 16px; }
.cn-page { border-top: 1px dashed #cbbd9c; padding-top: 14px; display: grid; gap: 8px; }
.cn-page-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cn-num { font-family: var(--type); font-size: 13px; letter-spacing: .06em; color: var(--ink); text-transform: uppercase; }
.cn-btn { font: 500 14px var(--ui); border-radius: 8px; padding: 8px 12px; cursor: pointer; border: 1px solid #1b2040; background: #1b2040; color: #f2ead8; }
.cn-btn.cn-clair { background: transparent; color: #1b2040; }
.cn-btn[disabled] { opacity: .55; cursor: wait; }
.cn-ia { display: grid; gap: 10px; background: rgba(27,32,64,.05); border-radius: 8px; padding: 10px; }
.cn-ia[hidden] { display: none; }
.cn-ia label { max-width: 260px; }
.cn-liste { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.cn-choix { text-align: left; font-family: var(--hand); font-size: 18px; line-height: 1.25; color: var(--paper-ink); background: #fffaf0; border: 1px solid #d6c9ac; border-radius: 8px; padding: 10px 12px; cursor: pointer; display: grid; gap: 4px; }
.cn-choix:hover { border-color: var(--ink); }
.cn-choix small { font-family: var(--type); font-size: 11px; letter-spacing: .05em; color: #8a7d62; text-transform: uppercase; }
.cn-choix.pris { opacity: .55; }
.cn-nb { font-size: 12px; color: #7b6f5a; }
.cn-compte { font-size: 12px; color: #8a7d62; text-align: right; }
.cn-msg { font-size: 14px; margin: 0; min-height: 1.2em; }
.cn-msg.err { color: #a3222c; }
.cn-pied { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid #d6c9ac; padding-top: 16px; }
.cn-payer { font: 600 16px var(--ui); border-radius: 8px; padding: 12px 18px; cursor: pointer; border: 0; background: var(--ink); color: #fff; }
.cn-code { font-family: var(--type); font-size: 22px; color: var(--ink); letter-spacing: .1em; }
.cn-note { font-size: 12px; color: #7b6f5a; margin: 0; }
