/* Cartographe : cadre sombre « reliure verte », carte et plans seuls surfaces claires. */
@font-face { font-family: "IM Fell English"; font-style: normal; font-weight: 400; font-display: swap; src: url("polices/im-fell-english-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-style: italic; font-weight: 400; font-display: swap; src: url("polices/im-fell-english-400-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English SC"; font-style: normal; font-weight: 400; font-display: swap; src: url("polices/im-fell-english-sc-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("polices/alegreya-sans-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("polices/alegreya-sans-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("polices/alegreya-sans-400-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("polices/alegreya-sans-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("polices/alegreya-sans-700-latin.woff2") format("woff2"); }

:root {
  --reliure: #17201b;
  --reliure-2: #1f2a24;
  --reliure-3: #29362f;
  --filet: #3a4a40;
  --texte: #ece3cc;
  --texte-doux: #b9b39c;
  --or: #d4a94e;
  --or-fonce: #a9822f;
  --cire: #c0533a;
  --vert-de-gris: #7fae9b;
  --papier: #f1e6cc;
  --encre: #2a1f16;
  --rayon: 6px;
  --ombre: 0 10px 30px -12px rgba(0, 0, 0, 0.6), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
  --ui: "Alegreya Sans", system-ui, sans-serif;
  --gravure: "IM Fell English", Georgia, serif;
  --gravure-sc: "IM Fell English SC", Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--reliure); color: var(--texte); font: 17px/1.5 var(--ui); -webkit-font-smoothing: antialiased; }
::selection { background: var(--or); color: var(--reliure); }
a { color: var(--or); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #e8c271; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--filet) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--filet); border-radius: 5px; border: 2px solid var(--reliure-2); }
h1, h2, h3 { font-family: var(--gravure); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0 0 .4em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 .8em; }
.chiffres { font-variant-numeric: tabular-nums; }

/* boutons */
.btn { display: inline-flex; align-items: center; gap: .45em; min-height: 38px; padding: 0 14px; border-radius: var(--rayon);
  border: 1px solid var(--filet); background: var(--reliure-3); color: var(--texte); font: 500 15px/1 var(--ui); cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: #33433a; border-color: #4d6155; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.or { background: var(--or); border-color: var(--or); color: #1b1408; font-weight: 700; }
.btn.or:hover { background: #e2b960; }
.btn.fin { background: transparent; border-color: transparent; color: var(--texte-doux); }
.btn.fin:hover { color: var(--texte); background: var(--reliure-3); }
.btn.actif { border-color: var(--or); color: var(--or); background: #2c3a2a; }
.btn svg, .ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn.carre { padding: 0; width: 38px; justify-content: center; }

input[type=text], input[type=number], textarea, select {
  background: #121915; border: 1px solid var(--filet); border-radius: var(--rayon); color: var(--texte);
  font: 16px var(--ui); padding: 8px 10px; caret-color: var(--or); }
input::placeholder, textarea::placeholder { color: #8f8a77; }
input:focus, textarea:focus, select:focus { border-color: var(--or); outline: none; }
label { font-size: 14px; color: var(--texte-doux); }

.robots-masque { display: none; }
.pied { font-size: 13px; color: var(--texte-doux); padding: 18px 20px; border-top: 1px solid var(--filet); }
.pied a { color: var(--texte-doux); }

/* bandeau de recette */
.recette { position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 50; background: rgba(23,32,27,.9); color: var(--texte-doux);
  border: 1px solid var(--filet); border-radius: 20px; padding: 3px 12px; font-size: 12px; pointer-events: none; }

/* notification */
.toast { position: fixed; left: 50%; top: 70px; transform: translate(-50%, -8px); opacity: 0; background: var(--papier); color: var(--encre);
  border-radius: var(--rayon); padding: 10px 16px; box-shadow: var(--ombre); z-index: 60; transition: opacity .25s, transform .35s cubic-bezier(.2,.8,.2,1); font-weight: 500; max-width: 90vw; }
.toast.vu { opacity: 1; transform: translate(-50%, 0); }

@media print {
  body { background: #fff; color: #000; }
  .pas-imprime { display: none !important; }
}
