/* Olafiles — thème « atelier de papeterie » : papier kraft, chemises à onglets, tampon encreur.
   Propriétés logiques (inline/block) partout : prêt pour l'arabe, l'hébreu, le persan. */
@font-face { font-family: "Bricolage"; src: url(/assets/fonts/bricolage-latin-wght.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/assets/fonts/plexmono-latin-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/assets/fonts/plexmono-latin-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #efe7da; --paper-2: #e6dccb; --sheet: #fbf8f2; --ink: #1f1c18; --ink-2: #5b544a;
  --rule: #cbbfa9; --stamp: #c23b2a; --blue: #24449a; --ok: #2f6b3a;
  --pdf: #d9c2a0; --img: #b9cbb5; --ai: #c9bfd9;
  --r: 6px; --shadow: 0 1px 0 #fff8 inset, 0 2px 0 #0000000d, 0 10px 24px -14px #3b2d1a55;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  background-image: radial-gradient(#00000008 1px, transparent 1px); background-size: 5px 5px;
  font: 17px/1.55 "Bricolage", Georgia, serif; font-optical-sizing: auto;
}
a { color: var(--blue); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2 { line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 760; margin: 0 0 .4em; }
h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 .6em; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-inline-size: 46ch; margin: 0; }

/* Barre du haut : étiquette de classeur */
/* Barre du haut figée au défilement, pleine largeur */
.top { position: sticky; inset-block-start: 0; z-index: 30; background: #efe7daee; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-block-end: 1px solid #cbbfa966; }
.top-in { display: flex; align-items: center; gap: .9rem; padding: .6rem 16px; max-inline-size: 1120px; margin-inline: auto; }
.nav { display: flex; gap: .2rem; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 620; padding: .45rem .7rem; border-radius: 999px; }
.nav a:hover { background: #0000000d; }
.reglages { display: flex; gap: .4rem; min-block-size: 38px; }
.logo { font-weight: 780; font-size: 1.5rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo .mark { background: var(--ink); color: var(--paper); padding: 0 .28em .06em; border-radius: 3px; margin-inline-end: .06em; }
.tag { font: 500 .74rem "Plex Mono", monospace; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 1000px) { .tag { display: none; } }
.lang select { font: 500 .85rem "Plex Mono", monospace; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: .35rem .5rem; color: var(--ink); }

main { max-inline-size: 1120px; margin-inline: auto; padding: 1rem 16px 3rem; }

/* Accueil */
.hero { padding: 2.2rem 0 2.4rem; }
.hero h1 span { color: var(--stamp); font-weight: 600; }
.drawer { margin-block-end: 2.2rem; }
.drawer h2 { margin: 0; display: flex; }
.drawer h2 span {
  font: 500 .85rem "Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em;
  background: var(--tab); padding: .45rem 1.1rem .35rem; border-radius: 10px 10px 0 0;
}
.d-pdf { --tab: var(--pdf); } .d-img { --tab: var(--img); } .d-ai { --tab: var(--ai); }
.drawer ul {
  list-style: none; margin: 0; padding: 14px; background: var(--tab); border-radius: 0 var(--r) var(--r) var(--r);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px;
}
.drawer li a, .drawer li > span {
  display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: start;
  background: var(--sheet); border-radius: 4px; padding: .8rem .9rem; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); min-block-size: 100%; transition: transform .12s;
}
.drawer li a:hover { transform: translateY(-3px) rotate(-.4deg); }
.drawer i { font-style: normal; font-size: 1.5rem; line-height: 1; grid-row: span 2; color: var(--stamp); }
.drawer b { font-weight: 680; }
.drawer small { color: var(--ink-2); font-size: .86rem; line-height: 1.35; grid-column: 2; }
.drawer li.soon > span { background: transparent; box-shadow: none; border: 1.5px dashed #0000002a; grid-template-columns: 1fr; color: var(--ink-2); }
.drawer li.soon small { grid-column: 1; font: 500 .72rem "Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }

/* Page outil */
.intro { padding: 1.4rem 0 1.4rem; }
.fam { font: 500 .8rem "Plex Mono", monospace; text-transform: uppercase; letter-spacing: .1em; color: var(--stamp); margin: 0 0 .5rem; }
.desk { background: var(--sheet); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.tray {
  display: grid; place-items: center; gap: .3rem; text-align: center; cursor: pointer;
  padding: 2.4rem 1rem; border: 2px dashed var(--rule); border-radius: var(--r);
  background: repeating-linear-gradient(-45deg, transparent 0 12px, #0000000a 12px 13px);
  transition: border-color .15s, background-color .15s;
}
.tray input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.tray strong { font-size: 1.3rem; }
.tray span { color: var(--ink-2); }
.tray.over, .tray:focus-within { border-color: var(--blue); background-color: #24449a0d; }
.has-files .tray { padding: 1.1rem 1rem; }
.btn {
  display: inline-block; font: 650 1rem "Bricolage", sans-serif; color: var(--sheet); background: var(--ink);
  border: 0; border-radius: var(--r); padding: .75rem 1.5rem; cursor: pointer; text-decoration: none;
}
.btn:disabled { opacity: .35; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: .45rem 1rem; margin-block-start: .5rem; }
.files { list-style: none; padding: 0; margin: 1rem 0 0; counter-reset: f; }
.files li {
  display: flex; align-items: center; gap: .4rem; padding: .5rem 0; border-block-end: 1px solid var(--rule);
  font: 400 .9rem "Plex Mono", monospace; counter-increment: f;
}
.files li::before { content: counter(f, decimal-leading-zero); color: var(--stamp); font-weight: 500; }
.fn { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-inline-size: 0; }
.fs { color: var(--ink-2); white-space: nowrap; }
.files button { background: none; border: 1px solid var(--rule); border-radius: 4px; inline-size: 2rem; block-size: 2rem; cursor: pointer; color: var(--ink); font-size: 1rem; }
.opts { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; margin-block-start: 1.2rem; }
.opt { display: grid; gap: .3rem; font-size: .92rem; color: var(--ink-2); min-inline-size: 180px; }
.opt.chk { display: flex; align-items: center; gap: .5rem; align-self: end; }
.opt select, .opt input[type=number] { font: 500 .95rem "Plex Mono", monospace; padding: .45rem; border: 1px solid var(--rule); border-radius: 4px; background: #fff; color: var(--ink); }
.opt input[type=range] { accent-color: var(--stamp); }
.opt output { font-family: "Plex Mono", monospace; color: var(--ink); }
.go { display: flex; align-items: center; gap: 1rem; margin-block-start: 1.3rem; }
.bar { flex: 1; block-size: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.bar i { display: block; block-size: 100%; inline-size: 0; background: var(--ok); transition: inline-size .2s; }
.msg { min-block-size: 1.5em; margin: .8rem 0 0; }
.msg[data-kind=warn] { color: var(--stamp); }
.msg[data-kind=ok] { color: var(--ok); font-weight: 600; }
.msg[data-kind=pay] { color: var(--ink); font-weight: 600; }
.upsell { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem; margin-block-start: .6rem; border: 2px solid var(--stamp); border-radius: var(--r); }
.upsell[hidden], .opt[hidden] { display: none; }
.zip { justify-self: start; margin-block-end: .3rem; }
.upsell p { margin: 0; flex: 1; min-inline-size: 220px; }
.results { display: grid; gap: .5rem; margin-block-start: .6rem; }
.dl { display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding: .75rem 1rem; background: #2f6b3a14; border-radius: 4px; text-decoration: none; color: var(--ink); font-family: "Plex Mono", monospace; font-size: .92rem; }
.dl b { font-weight: 500; color: var(--ok); word-break: break-all; }
.dl em { font-style: normal; color: var(--ink-2); }

/* Blocs du bas */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-block-start: 2.6rem; }
.steps { padding-inline-start: 1.2rem; margin: 0; } .steps li { margin-block-end: .4rem; }
.stamp-box { position: relative; padding: 1.3rem 1.4rem; border: 2px solid var(--stamp); border-radius: var(--r); color: var(--ink); }
.stamp-box h2 { color: var(--stamp); }
.stamp-box::after {
  content: "NO UPLOAD"; position: absolute; inset-block-start: -.9rem; inset-inline-end: 1rem; transform: rotate(4deg);
  font: 500 .75rem "Plex Mono", monospace; letter-spacing: .12em; color: var(--stamp); background: var(--paper);
  border: 2px solid var(--stamp); padding: .2rem .5rem; border-radius: 3px;
}
:lang(fr) .stamp-box::after { content: "RIEN N’EST ENVOYÉ"; }
.stamp-box p { margin: 0; }
.faq { margin-block-start: 2.6rem; max-inline-size: 760px; }
.faq details { border-block-end: 1px solid var(--rule); padding: .8rem 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: .5rem 0 0; color: var(--ink-2); }
.more { margin-block-start: 2.6rem; }
.more ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.more a { display: inline-flex; gap: .5rem; align-items: center; background: var(--sheet); padding: .55rem .9rem; border-radius: 4px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.more i { font-style: normal; color: var(--stamp); }
.legal { max-inline-size: 760px; padding-block-start: 2rem; }
.legal h2 { margin-block-start: 1.8rem; font-size: 1.15rem; }
.legal p { color: var(--ink-2); }
.foot a { color: var(--ink-2); }
.foot { max-inline-size: 1120px; margin-inline: auto; padding: 1.5rem 16px 2.5rem; border-block-start: 1px solid var(--rule); font: 400 .8rem "Plex Mono", monospace; color: var(--ink-2); }

@media (max-width: 600px) {
  .top-in { gap: .4rem; padding-inline: 12px; }
  .nav a { padding: .4rem .45rem; font-size: .92rem; }
  .nav a:first-child { display: none; }
  .logo { font-size: 1.3rem; }
  .desk { padding: 12px; }
  .go { flex-direction: column; align-items: stretch; }
  .opt { min-inline-size: 0; flex: 1 1 100%; }
}

/* ---------- Sélecteurs devise / langue (modèle Olatok, habillage papeterie) ---------- */
.dv-btn { display: inline-flex; align-items: center; gap: 7px; font: 500 .8rem "Plex Mono", monospace; color: var(--ink);
  border: 0; cursor: pointer; border-radius: 999px; -webkit-tap-highlight-color: transparent; }
.dv-flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1.5px #fff, 0 1px 3px #0004; }
.dv-chev { width: 7px; height: 7px; margin: -3px 2px 0 1px; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(45deg); opacity: .6; transition: transform .2s; }
.dv-btn[aria-expanded="true"] .dv-chev { transform: rotate(225deg); margin-top: 3px; }
.dv-entete { padding: 7px 11px 7px 6px; background: #0000000f; transition: background .15s; }
.dv-entete .dv-flag { width: 24px; height: 24px; margin: -2px 0; }
.dv-entete:hover, .dv-entete[aria-expanded="true"] { background: #0000001f; }
.dv-entete:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }
@media (max-width: 420px) { .dv-entete { padding: 6px 8px 6px 5px; gap: 5px; } .dv-entete .dv-chev { display: none; } }
.dv-voile { position: fixed; inset: 0; z-index: 40; }
.dv-panneau { position: fixed; z-index: 41; width: 330px; max-width: calc(100vw - 24px); display: flex; flex-direction: column; max-height: min(520px, 70vh);
  background: var(--sheet); color: var(--ink); border-radius: 8px; overflow: hidden; border: 1px solid var(--rule);
  box-shadow: 0 22px 50px #3b2d1a55, 0 4px 10px #3b2d1a2e; animation: dv-entre .18s ease-out; }
@keyframes dv-entre { from { opacity: 0; transform: translateY(-6px); } }
.dv-tete { display: flex; align-items: center; gap: 10px; padding: 9px 9px 9px 14px; background: var(--ink); color: var(--paper);
  font: 500 .7rem "Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.dv-tete span:nth-child(2) { margin-inline-start: auto; color: #f3b9ad; }
.dv-x { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; background: #ffffff22; color: #fff; font-size: 1.1rem; line-height: 1; }
.dv-cherche { margin: 12px 12px 6px; padding: 9px 13px; border-radius: 6px; border: 1.5px solid var(--rule); background: #fff; font: inherit; font-size: .95rem; color: inherit; outline: none; }
.dv-cherche:focus { border-color: var(--blue); }
.dv-liste { list-style: none; margin: 0; padding: 4px 8px 8px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.dv-ligne { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.dv-ligne .dv-flag { width: 26px; height: 26px; }
.dv-ligne[hidden] { display: none; }
.dv-ligne:hover, .dv-ligne:focus { background: #c23b2a14; outline: none; }
.dv-ligne.dv-sep { margin-bottom: 6px; position: relative; }
.dv-ligne.dv-sep::after { content: ""; position: absolute; inset-inline: 10px; bottom: -4px; border-bottom: 1.5px dashed var(--rule); }
.dv-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.dv-txt b { font-size: .95rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-txt small { font: 400 .74rem "Plex Mono", monospace; color: var(--ink-2); }
.dv-coche { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: .8rem; font-weight: 800; }
.dv-actuelle { background: #c23b2a0d; }
.dv-actuelle .dv-coche { background: var(--stamp); color: #fff; }
.dv-pied { margin: 0; padding: 10px 14px 12px; font-size: .78rem; line-height: 1.4; color: var(--ink-2); border-top: 1.5px dashed var(--rule); }
@media (max-width: 640px) {
  .dv-voile { background: #1f1c1873; }
  .dv-panneau { inset-inline: 0; bottom: 0; top: auto !important; left: 0 !important; width: auto; max-width: none; max-height: 82vh; border-radius: 14px 14px 0 0;
    padding-bottom: env(safe-area-inset-bottom); animation: dv-monte .25s cubic-bezier(.2, .8, .2, 1); }
  .dv-cherche { font-size: 1rem; }
  @keyframes dv-monte { from { transform: translateY(100%); } }
}

/* ---------- Page Tarifs ---------- */
.offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.offre { position: relative; display: flex; flex-direction: column; gap: .35rem; background: var(--sheet); border-radius: 6px; padding: 1.1rem 1rem 1rem;
  box-shadow: var(--shadow); cursor: pointer; border: 2px solid transparent; transition: transform .12s, border-color .12s; }
.offre:hover { transform: translateY(-2px); }
.offre input { position: absolute; opacity: 0; }
.offre:has(input:checked) { border-color: var(--ink); }
.offre:has(input:checked)::after { content: "✓"; position: absolute; inset-block-start: 10px; inset-inline-end: 12px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: var(--sheet); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.offre:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.offre.gratuit { background: transparent; box-shadow: none; border: 1.5px dashed #0000002a; cursor: default; }
.offre.gratuit:hover { transform: none; }
.offre.gratuit ul { margin: .2rem 0 0; padding-inline-start: 1.1rem; color: var(--ink-2); font-size: .9rem; }
.o-nom { font: 500 .8rem "Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--stamp); }
.o-prix { font-size: 2rem; font-weight: 760; line-height: 1.1; }
.o-prix small { font-size: .9rem; font-weight: 500; color: var(--ink-2); margin-inline-start: .25rem; }
.o-mois { font: 400 .8rem "Plex Mono", monospace; color: var(--ink-2); }
.o-sous { color: var(--ink-2); font-size: .9rem; }
.badge { position: absolute; inset-block-start: -.75rem; inset-inline-start: .8rem; transform: rotate(-3deg); font: 500 .7rem "Plex Mono", monospace;
  letter-spacing: .1em; text-transform: uppercase; color: var(--stamp); background: var(--paper); border: 2px solid var(--stamp); padding: .15rem .45rem; border-radius: 3px; }
.caisse { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-block-start: 2rem; align-items: start; }
.inclus ul { list-style: none; padding: 0; margin: 0; }
.inclus li { padding: .35rem 0 .35rem 1.6rem; position: relative; }
.inclus li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--ok); font-weight: 800; }
.payer-box { background: var(--sheet); border-radius: 6px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: .9rem; }
.payer-box .opt { min-inline-size: 0; }
.payer-box input[type=email] { font: 400 1rem "Bricolage", sans-serif; padding: .6rem; border: 1px solid var(--rule); border-radius: 4px; }
.payer-box .chk { align-items: flex-start; color: var(--ink); font-size: .9rem; }
.payer-box .chk input { margin-block-start: .25rem; accent-color: var(--ink); }
.payer-box.a-cocher .chk span { color: var(--stamp); }
.payer { font-size: 1.1rem; padding: .9rem 1.4rem; }
.note { margin: 0; font-size: .82rem; color: var(--ink-2); }
.cles { margin-block-start: 2.6rem; display: grid; gap: .8rem; max-inline-size: 640px; }
.cle-ligne { display: flex; gap: .5rem; flex-wrap: wrap; }
.cle-ligne input { flex: 1; min-inline-size: 220px; font: 500 1rem "Plex Mono", monospace; text-transform: uppercase; padding: .65rem; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.cle-etat { margin: 0; font-family: "Plex Mono", monospace; font-size: .88rem; color: var(--ok); }
.lien { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; cursor: pointer; font: inherit; }
.merci { max-inline-size: 640px; padding-block-start: 3rem; }
.cle-box { margin: 1.6rem 0; padding: 1.2rem; border: 2px solid var(--stamp); border-radius: 6px; display: grid; gap: .3rem; }
.cle-box span { font: 500 .75rem "Plex Mono", monospace; text-transform: uppercase; letter-spacing: .1em; color: var(--stamp); }
.cle-box b { font: 600 1.4rem "Plex Mono", monospace; letter-spacing: .05em; word-break: break-all; }

/* =====================================================================
   Décor : table en bois (photos sources-images/ → assets/img/fond/), une seule lumière (fenêtre en haut à gauche).
   Le bureau au PC portable ouvre la page, puis les deux autres scènes s'enchaînent en fondu, retournées une fois sur deux.
   Le contenu est posé dessus comme des feuilles : ombres portées vers le bas à droite, comme la lumière des photos.
   ===================================================================== */
:root { --wood: #dc944e; --drop: 0 1px 1px #3b1f0a1f, 5px 12px 22px -8px #3b1f0a73; }
html { background: var(--wood); }
body { background: transparent; position: relative; z-index: 0; }
.scenes { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.scenes span {
  display: block; block-size: 56.25vw; margin-block-start: -6vw;
  background: var(--img) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.scenes span:first-child { margin-block-start: 0; -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
.scenes .s-bureau { --img: url(/assets/img/fond/bureau-1672.webp); }
.scenes .s-photo { --img: url(/assets/img/fond/fond-1-1672.webp); }
.scenes .s-papier { --img: url(/assets/img/fond/fond-2-1672.webp); }
.scenes .flip { transform: scaleX(-1); }
@media (max-width: 900px) {
  .scenes .s-bureau { --img: url(/assets/img/fond/bureau-900.webp); }
  .scenes .s-photo { --img: url(/assets/img/fond/fond-1-900.webp); }
  .scenes .s-papier { --img: url(/assets/img/fond/fond-2-900.webp); }
}
/* Téléphone : scène plus haute, cadrée sur le côté où sont les objets */
@media (max-width: 700px) {
  .scenes span { block-size: 78vh; margin-block-start: -10vh; background-size: auto 100%; background-position: left center; }
  .scenes span:nth-child(even) { background-position: right center; }
}

/* Barre du haut : bande de papier kraft posée sur la table */
.top { background: #f3ece0f2; box-shadow: 0 6px 18px -10px #3b1f0a80; border-block-end: 0; }

/* Feuilles posées sur la table */
.hero, .intro, .notes > div, .faq, .more, .legal, .cles, .inclus, .merci {
  background: var(--sheet); border-radius: 3px; box-shadow: var(--drop); padding: 1.6rem 1.7rem;
}
.notes > .stamp-box { background: var(--sheet); }
.stamp-box::after { background: var(--sheet); }
.more { padding-block: 1.3rem; }
.more a, .drawer li a { box-shadow: 0 1px 0 #fff8 inset, 0 1px 2px #3b1f0a1a, 0 3px 8px -4px #3b1f0a59; }
.legal, .merci { margin-block-start: 1.6rem; }

/* Accueil : grande note scotchée sur le bureau, à droite du PC portable */
.home .hero { position: relative; max-inline-size: 760px; margin: 2.2rem 0 2.6rem auto; padding: 2.2rem 2.2rem 2rem; transform: rotate(-.6deg); }
.home .hero::before, .tool .intro::before {
  content: ""; position: absolute; inset-block-start: -12px; inset-inline-start: 50%; inline-size: 120px; block-size: 26px; margin-inline-start: -60px;
  background: #fff6dcb3; transform: rotate(-3deg); box-shadow: 0 1px 2px #0000001a;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent 0);
}
.home .hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.tool .intro { position: relative; margin-block: 1.4rem 1.6rem; max-inline-size: 760px; }
.tool .intro .lead, .hero .lead { max-inline-size: none; }

/* Tiroirs de classeur : chemises kraft opaques, ombre sur la table */
.drawer ul { box-shadow: var(--drop); }
.drawer h2 span { box-shadow: 0 -2px 6px -3px #3b1f0a40; }
.drawer li.soon > span { border-color: #0000003a; color: #4a3a2a; }

/* Page outil : le plan de travail */
.desk { box-shadow: var(--drop); }

/* Tarifs */
.tarifs .intro { max-inline-size: 760px; margin-block: 1.4rem 1.6rem; }
.offre { box-shadow: var(--drop); }
.offre.gratuit { background: #fbf8f2cc; border-color: #0000002a; }
.payer-box { box-shadow: var(--drop); }

.foot { background: #f3ece0f2; max-inline-size: none; margin-block-start: 2rem; border: 0; padding-inline: max(16px, calc((100% - 1120px) / 2 + 16px)); }

@media (max-width: 600px) {
  .hero, .intro, .notes > div, .faq, .more, .legal, .cles, .inclus, .merci { padding: 1.2rem 1.1rem; }
  .home .hero { margin-block: 1.2rem 2rem; transform: none; }
}

/* ---------- Options des outils : pastilles « étiquette » (modèle du « Prix en » d'Olatok) ---------- */
.opt select, .opt input[type=number], .opt input[type=text] {
  -webkit-appearance: none; appearance: none;
  font: 600 .95rem "Bricolage", sans-serif; color: var(--ink);
  min-block-size: 44px; padding: .55rem 2.6rem .55rem 1rem; border-radius: 999px;
  background-color: #fff; border: 1.5px dashed #24449a8c;
  box-shadow: 0 2px 0 #3c1e0814, 0 6px 14px #3c1e081a;
  transition: transform .15s, box-shadow .15s, border-color .15s; cursor: pointer;
}
.opt select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231f1c18' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
[dir=rtl] .opt select { background-position: left 1rem center; padding: .55rem 1rem .55rem 2.6rem; }
.opt input[type=number], .opt input[type=text] { padding-inline-end: 1rem; cursor: text; font-family: "Plex Mono", monospace; font-weight: 500; }
.opt select:hover, .opt input:hover { transform: translateY(-1px); box-shadow: 0 2px 0 #3c1e0814, 0 10px 20px #3c1e0829; }
.opt select:focus-visible, .opt input[type=number]:focus, .opt input[type=text]:focus {
  outline: none; border-style: solid; border-color: var(--blue); box-shadow: 0 0 0 3px #24449a26, 0 6px 14px #3c1e081a;
}
.opt > span:first-child { font: 500 .74rem "Plex Mono", monospace; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.opt.chk { padding: .55rem 1rem; border-radius: 999px; background: #fff; border: 1.5px dashed #24449a8c; box-shadow: 0 2px 0 #3c1e0814, 0 6px 14px #3c1e081a; cursor: pointer; }
.opt.chk > span { font: 600 .95rem "Bricolage", sans-serif; text-transform: none; letter-spacing: 0; color: var(--ink); }
.opt.chk input { inline-size: 18px; block-size: 18px; accent-color: var(--ink); }
.opt input[type=range] { margin-block-start: .5rem; }
.opts { gap: 1.1rem 1.4rem; align-items: end; }
.payer-box .opt.chk { border-radius: 10px; background: transparent; border: 0; box-shadow: none; padding: 0; }
.payer-box .opt.chk > span { font-weight: 400; font-size: .9rem; }
.payer-box input[type=email] { border-radius: 999px; border: 1.5px dashed #24449a8c; padding: .65rem 1rem; box-shadow: 0 2px 0 #3c1e0814, 0 6px 14px #3c1e081a; }
.cle-ligne input { border-radius: 999px; border: 1.5px dashed #24449a8c; padding-inline: 1rem; box-shadow: 0 2px 0 #3c1e0814, 0 6px 14px #3c1e081a; }
.btn { border-radius: 999px; padding-inline: 1.6rem; box-shadow: 0 2px 0 #00000026, 0 8px 18px -6px #3c1e0866; transition: transform .15s, box-shadow .15s; }
.btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 2px 0 #00000026, 0 12px 22px -6px #3c1e0880; }
.btn.ghost { background: #fff; border: 1.5px dashed #24449a8c; box-shadow: 0 2px 0 #3c1e0814, 0 6px 14px #3c1e081a; padding: .5rem 1.2rem; }
.btn:disabled { box-shadow: none; }

/* ---------- Grain de papier (bruit SVG en ligne, aucune image à charger) ----------
   Fibres fines + marbrure lente ; lumière de la fenêtre en haut à gauche : la feuille s'assombrit vers le bas à droite. */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .24 0 0 0 0 .14 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibres: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --lumiere: linear-gradient(135deg, #fffdf7 0%, #faf5eb 45%, #f1e8d8 100%);
}
.hero, .intro, .notes > div, .faq, .more, .legal, .cles, .inclus, .merci, .desk, .payer-box, .offre:not(.gratuit), .drawer li a, .more a {
  background-color: var(--sheet);
  background-image: var(--grain), var(--fibres), var(--lumiere);
  background-size: 220px 220px, 400px 400px, 100% 100%;
  box-shadow: inset 1px 1px 0 #ffffffb3, inset -1px -1px 0 #6b4a2a14, var(--drop);
}
.drawer li a, .more a { box-shadow: inset 1px 1px 0 #ffffffb3, inset -1px -1px 0 #6b4a2a14, 0 1px 1px #3b1f0a1a, 3px 6px 10px -5px #3b1f0a66; }
/* Bords de feuille à peine irréguliers et coin bas droit qui se soulève */
.hero, .intro, .notes > div, .faq, .more, .legal, .cles, .inclus, .merci, .desk { border-radius: 2px 3px 4px 2px / 3px 2px 3px 4px; position: relative; }
.notes > div::before, .faq::before, .legal::before, .desk::before {
  content: ""; position: absolute; inset-block-end: 0; inset-inline-end: 0; inline-size: 38%; block-size: 22px; z-index: -1;
  box-shadow: 10px 12px 14px -6px #3b1f0a59; transform: skewY(2deg); transform-origin: right;
}
/* Chemises kraft : grain plus marqué, fibres visibles */
.drawer ul, .drawer h2 span {
  background-image: var(--grain), var(--fibres), linear-gradient(135deg, #ffffff26, #0000000f);
  background-size: 160px 160px, 300px 300px, 100% 100%;
}
.drawer ul { box-shadow: inset 1px 1px 0 #ffffff59, inset -1px -1px 0 #00000014, var(--drop); }
.top, .foot { background-image: var(--grain), var(--fibres); background-size: 220px 220px, 400px 400px; }

/* ---------- Recadrage ---------- */
.cropper { position: relative; inline-size: fit-content; max-inline-size: 100%; margin: 1.2rem auto 0; overflow: hidden; touch-action: none; user-select: none; border-radius: 3px; box-shadow: var(--drop); }
.cropper[hidden] { display: none; }
.cropper img { display: block; max-inline-size: 100%; max-block-size: 60vh; pointer-events: none; }
.cadre { position: absolute; outline: 2px dashed #fff; box-shadow: 0 0 0 9999px #1f1c1880; cursor: move;
  background-image: linear-gradient(#ffffff59 1px, transparent 1px), linear-gradient(90deg, #ffffff59 1px, transparent 1px);
  background-size: 33.333% 33.333%; background-position: -1px -1px; }
.cadre i { position: absolute; inline-size: 22px; block-size: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--stamp); box-shadow: 0 2px 6px #0006; }
.cadre i[data-coin="nw"] { left: 2px; top: 2px; cursor: nwse-resize; }
.cadre i[data-coin="ne"] { right: 2px; top: 2px; cursor: nesw-resize; }
.cadre i[data-coin="sw"] { left: 2px; bottom: 2px; cursor: nesw-resize; }
.cadre i[data-coin="se"] { right: 2px; bottom: 2px; cursor: nwse-resize; }
.taille { position: absolute; inset-block-start: 8px; inset-inline-start: 50%; transform: translateX(-50%); font: 500 .78rem "Plex Mono", monospace; color: #fff; background: #1f1c18b3; padding: .2rem .5rem; border-radius: 999px; }

/* ---------- Signer un PDF ---------- */
@font-face { font-family: "Caveat"; src: url(/assets/fonts/caveat-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
.sig { margin-block-start: 1.2rem; display: grid; gap: .6rem; }
.sig-tete { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sig-onglets { display: inline-flex; padding: 4px; border-radius: 999px; background: #0000000d; }
.sig-onglets button { border: 0; background: none; font: 600 .92rem "Bricolage", sans-serif; padding: .45rem 1rem; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.sig-onglets button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 6px #3c1e0826; }
.sig-effacer { margin: 0; }
.sig-pad { inline-size: 100%; block-size: 180px; border-radius: 6px; cursor: crosshair; touch-action: none;
  background: #fff linear-gradient(transparent calc(100% - 46px), #24449a40 calc(100% - 46px), #24449a40 calc(100% - 45px), transparent calc(100% - 45px));
  border: 1.5px dashed #24449a8c; }
.sig-pad[hidden] { display: none; }
.sig-texte { font: 400 2.6rem "Caveat", cursive; color: #1b2a6b; padding: .6rem 1.2rem; border-radius: 6px; border: 1.5px dashed #24449a8c; background: #fff; }
.sig-texte[hidden] { display: none; }
.sig-aide { margin: 0; font-size: .88rem; color: var(--ink-2); }
.sig-apercu { margin-block-start: 1.2rem; display: grid; gap: .5rem; }
.sig-apercu[hidden] { display: none; }
.sig-feuille { position: relative; inline-size: fit-content; max-inline-size: 100%; margin-inline: auto; cursor: copy; touch-action: none; box-shadow: var(--drop); }
.sig-page { display: block; max-inline-size: 100%; max-block-size: 75vh; inline-size: auto; }
.sig-place { position: absolute; cursor: move; outline: 1.5px dashed #c23b2a; outline-offset: 3px; }
.sig-num { font-family: "Plex Mono", monospace; }
