/* Fillina — l'Écrin : laque framboise, satin poudré, or rose réservé à « protégé ». */
@font-face { font-family: 'Bodoni Moda'; src: url(/fonts/bodoni-moda.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url(/fonts/bodoni-moda-italic.woff2) format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --laque: #4a0d26; --laque-2: #63143a; --laque-3: #2f0717;
  --satin: #f6e3e5; --satin-2: #efd3d8; --satin-line: #e3c3ca;
  --ivoire: #fffafa;
  --prune: #2a0b17; --prune-2: #6b4553; --prune-3: #85606d;
  --or: #c8957a; --or-clair: #ecc9b0; --or-fonce: #7f5240;
  --rouge: #a3132e;
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --r: 12px;
  --ombre: 0 1px 2px rgb(74 13 38 / .07), 0 22px 44px -22px rgb(74 13 38 / .38);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; font: 15px/1.55 var(--sans); color: var(--prune); background: var(--satin); caret-color: var(--laque); scrollbar-color: var(--satin-line) transparent; }
::selection { background: var(--laque); color: var(--ivoire) }
a { color: var(--laque); text-underline-offset: .2em; text-decoration-thickness: 1px }
:focus-visible { outline: 2px solid var(--laque); outline-offset: 3px; border-radius: 6px }
h1, h2 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance }

/* Wordmark : capitales Bodoni très espacées, comme sur un flacon. */
.wordmark { font-family: var(--serif); font-weight: 500; letter-spacing: .34em; text-transform: uppercase; margin-right: -.34em }
.mono { display: block; flex: none }

/* Champs */
label, .label { display: block; font-size: 13px; font-weight: 600; color: var(--prune); margin-bottom: 6px }
.aide { font-weight: 400; color: var(--prune-2) }
input[type=text], input[type=email], input[type=password], textarea {
  width: 100%; padding: 11px 13px; font: inherit; color: var(--prune); background: var(--ivoire);
  border: 1px solid var(--satin-line); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
  box-shadow: inset 0 1px 2px rgb(74 13 38 / .05);
}
textarea { resize: vertical; min-height: 84px }
input::placeholder, textarea::placeholder { color: var(--prune-3) }
input:hover, textarea:hover { border-color: #d6aab4 }
input:focus, textarea:focus { outline: none; border-color: var(--laque); box-shadow: 0 0 0 3px rgb(74 13 38 / .14) }

/* Curseurs */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: none; margin: 0 }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--laque), var(--laque)) 0/var(--p, 50%) 100% no-repeat, var(--satin-2) }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--satin-2) }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--laque) }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--laque); border: 3px solid var(--ivoire); box-shadow: 0 1px 4px rgb(74 13 38 / .4) }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--laque); border: 3px solid var(--ivoire); box-shadow: 0 1px 4px rgb(74 13 38 / .4) }
input[type=checkbox] { accent-color: var(--laque); width: 18px; height: 18px; margin: 0 }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 999px; border: 0;
  font: 600 15px/1 var(--sans); letter-spacing: .01em; cursor: pointer; text-decoration: none; transition: background .2s, transform .2s var(--ease), box-shadow .2s }
.btn-laque { background: var(--laque); color: var(--ivoire); box-shadow: 0 8px 20px -10px rgb(74 13 38 / .8) }
.btn-laque:hover { background: var(--laque-2) }
.btn-laque:active { transform: translateY(1px) }
.btn-laque:disabled { background: var(--satin-2); color: var(--prune-2); box-shadow: none; cursor: not-allowed }
.btn-ligne { background: transparent; color: var(--laque); box-shadow: inset 0 0 0 1px var(--laque); padding: 9px 16px; font-size: 14px }
.btn-ligne:hover { background: var(--laque); color: var(--ivoire) }

/* Sceau or rose : n'apparaît que sur ce qui est protégé. */
.sceau { color: var(--or) }
@keyframes frappe { 0% { transform: scale(1.6) rotate(-18deg); opacity: 0 } 60% { opacity: 1 } 100% { transform: scale(1) rotate(-8deg); opacity: 1 } }
.sceau.frappe { animation: frappe .55s var(--ease) both }
@media (prefers-reduced-motion: reduce) { .sceau.frappe { animation: none; transform: rotate(-8deg) } * { transition: none !important } }
