/* ==========================================================================
   falling-pickaxe-jeu.fr : feuille de style
   Direction visuelle : page blanche, titres en serif d'affichage, filets fins,
   accent orange et cyan repris du logo, notes en marge à droite du texte.
   ========================================================================== */

@font-face {
  font-family: "Instrument Serif";
  src: url("https://falling-pickaxe-jeu.fr/assets/fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------- Variables */
:root {
  --paper:  #ffffff;
  --ink:    #171310;
  --ink-2:  #55504b;
  --ink-3:  #857e77;
  --line:   #e6e1db;
  --line-2: #c9c2b9;
  --ore:    #e07b1e;
  --ore-d:  #a8570c;
  --ore-l:  #fdf3e8;
  --ice:    #2aa6bd;
  --ice-l:  #e8f7fa;
  --coal:   #1c1815;
  --good:   #2f7d4f;
  --bad:    #b3372c;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --col: 74rem;
  --read: 40rem;
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
.pixel { image-rendering: pixelated; }

a { color: var(--ore-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ore); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.7rem + 4vw, 4.6rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.85rem, 1.4rem + 2vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
h4 { font-family: var(--sans); font-weight: 700; font-size: 1rem; margin: 0 0 .4em; }

p { margin: 0 0 1.2em; }
strong, b { font-weight: 700; color: #0d0a08; }

.wrap { width: min(100% - 2.5rem, var(--col)); margin-inline: auto; }

.tag {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ore-d);
  margin: 0 0 .9rem;
}

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--coal); color: #fff; padding: .7rem 1.2rem; }
.skip:focus { left: .75rem; top: .75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --------------------------------------------------------------- En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); line-height: 1; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; padding: .3rem 0; border-bottom: 1px solid transparent; display: block; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--ore); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ore); }
.adult { font-family: var(--sans); font-size: .74rem; font-weight: 700; color: var(--bad); border: 1px solid var(--bad); border-radius: 50%; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; }
@media (max-width: 940px) {
  .site-nav { display: none; }
  .site-header .wrap { justify-content: space-between; }
  .adult { margin-left: auto; }
}

/* ----------------------------------------------------------- Fil d'Ariane */
.crumbs { font-size: .82rem; color: var(--ink-3); padding: 1.1rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "→"; margin-right: .45rem; color: var(--line-2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ore-d); text-decoration: underline; }

/* ---------------------------------------------------------------- Ouverture */
.opening { padding: 2.5rem 0 3rem; border-bottom: 1px solid var(--line); }
.opening img.logo { width: min(100%, 30rem); margin-bottom: 1.75rem; }
.opening h1 { max-width: 20ch; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 42rem; }
.lede strong { color: var(--ink); }

.sheet { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin: 2rem 0 0; }
@media (max-width: 720px) { .sheet { grid-template-columns: repeat(2, 1fr); } }
.sheet div { padding: .9rem 1.1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sheet div:nth-child(3n) { border-right: 0; }
@media (max-width: 720px) { .sheet div:nth-child(3n) { border-right: 1px solid var(--line); } .sheet div:nth-child(2n) { border-right: 0; } }
.sheet dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .15rem; }
.sheet dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.btn {
  --bg: var(--ore); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 700; font-size: .98rem;
  text-decoration: none; cursor: pointer; text-align: center;
  padding: .85rem 1.6rem; border: 1px solid transparent;
  color: var(--fg); background: var(--bg);
  transition: background .12s linear;
}
.btn:hover { background: var(--ore-d); color: #fff; }
.btn-ice { --bg: var(--ice); }
.btn-ice:hover { background: #1b8397; }
.btn-line { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-wide { width: 100%; }

.byline { display: flex; align-items: center; gap: .85rem; margin-top: 1.75rem; font-size: .9rem; color: var(--ink-2); }
.byline img { width: 46px; height: 46px; border-radius: 50%; }
.byline a { font-weight: 700; }

/* ----------------------------------------- Affiche cliquable de la démo */
.poster { display: block; position: relative; border: 1px solid var(--line); margin: 2rem 0 0; text-decoration: none; }
.poster img { width: 100%; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,19,16,.05), rgba(23,19,16,.55)); }
.poster .play { position: absolute; inset: auto 0 0 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; padding: 1.1rem 1.25rem; }
.poster .disc { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--ore); color: #fff; display: grid; place-items: center; flex: none; }
.poster .disc svg { width: 1.4rem; height: 1.4rem; margin-left: .2rem; }
.poster b { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: #fff; }
.poster small { display: block; color: #efe9e3; font-size: .85rem; }
.poster:hover .disc { background: #f28c2c; }

/* -------------------------------------------------------- Corps de page */
.layout { display: grid; grid-template-columns: minmax(0, var(--read)) minmax(0, 17rem); gap: 4rem; justify-content: center; padding: 3rem 0 4rem; align-items: start; }
@media (max-width: 1040px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

.prose section { scroll-margin-top: 6rem; }
.prose section + section { margin-top: 3.25rem; }
.prose h2 { position: relative; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.prose h2::before { content: ""; position: absolute; top: -1px; left: 0; width: 4rem; height: 3px; background: var(--ore); }
.prose h3 { margin-top: 2rem; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.3em; }
.prose ul li { position: relative; padding-left: 1.4rem; margin-bottom: .55em; }
.prose ul li::before { content: "◆"; position: absolute; left: 0; color: var(--ice); font-size: .8em; top: .15em; }
.prose ol { padding-left: 1.3rem; margin: 0 0 1.3em; }
.prose ol li { margin-bottom: .55em; }
.prose ol li::marker { font-family: var(--serif); font-size: 1.15em; color: var(--ore-d); }

figure { margin: 2rem 0; }
figure img { width: 100%; border: 1px solid var(--line); }
figcaption { font-size: .84rem; color: var(--ink-3); padding-top: .55rem; font-style: italic; }

/* Colonne de droite : notes et repères */
.aside { position: sticky; top: 6rem; display: grid; gap: 1.5rem; }
@media (max-width: 1040px) { .aside { position: static; } }
.note-card { border-top: 3px solid var(--ink); padding-top: .9rem; }
.note-card h2 { font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); border: 0; padding: 0; margin-bottom: .8rem; }
.note-card h2::before { display: none; }
.note-card ol, .note-card ul { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.note-card li { margin-bottom: .45rem; }
.note-card a { color: var(--ink-2); text-decoration: none; }
.note-card a:hover { color: var(--ore-d); text-decoration: underline; }
.note-card p { font-size: .93rem; color: var(--ink-2); }

/* ------------------------------------------------------------- Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); margin: 0 0 1.7rem; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
caption { text-align: left; font-family: var(--serif); font-size: 1.3rem; padding: .8rem 1rem .3rem; }
th, td { padding: .72rem 1rem; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ore-l); font-family: var(--sans); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ore-d); border-top: 0; }
tbody th { font-weight: 700; }

/* ------------------------------------------------------------- Encadrés */
.box { border: 1px solid var(--line); border-left: 4px solid var(--ore); background: var(--ore-l); padding: 1.1rem 1.3rem; margin: 0 0 1.7rem; }
.box p:last-child { margin-bottom: 0; }
.box-ice { border-left-color: var(--ice); background: var(--ice-l); }
.box-ice .tag { color: #12768a; }

.pull { font-family: var(--serif); font-size: 1.7rem; line-height: 1.25; color: var(--ink); border-left: 4px solid var(--ice); padding-left: 1.2rem; margin: 2rem 0; }

/* --------------------------------- Signature : la règle des profondeurs */
.depths { border: 1px solid var(--line); padding: 1.3rem; margin: 2rem 0; }
.depths h3 { margin: 0 0 .1rem; font-size: 1.3rem; }
.depths .hint { font-size: .86rem; color: var(--ink-3); margin: 0 0 1.2rem; }
.depths .row { display: grid; grid-template-columns: 7.5rem 1fr 4.5rem; gap: .9rem; align-items: center; padding: .55rem 0; border-top: 1px dotted var(--line-2); font-size: .93rem; }
.depths .row:first-of-type { border-top: 0; }
.depths .bar { height: .65rem; background: #f2efea; position: relative; }
.depths .bar i { position: absolute; inset: 0 auto 0 0; display: block; }
.depths .val { text-align: right; font-family: var(--serif); font-size: 1.2rem; }
@media (max-width: 560px) { .depths .row { grid-template-columns: 1fr 3.5rem; } .depths .bar { grid-column: 1 / -1; } }

/* -------------------------------------------------------------- Verdict */
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0 0 1.8rem; }
@media (max-width: 640px) { .verdict { grid-template-columns: 1fr; gap: 1rem; } }
.verdict h3 { font-size: 1.2rem; margin-bottom: .7rem; padding-top: .9rem; border-top: 2px solid var(--ink); }
.verdict .pros h3 { border-top-color: var(--good); color: var(--good); }
.verdict .cons h3 { border-top-color: var(--bad); color: var(--bad); }
.verdict ul { list-style: none; margin: 0; padding: 0; }
.verdict li { position: relative; padding-left: 1.3rem; margin-bottom: .5rem; font-size: .95rem; }
.verdict .pros li::before { content: "+"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.verdict .cons li::before { content: "\2212"; position: absolute; left: 0; color: var(--bad); font-weight: 700; }

/* ----------------------------------------------------------------- Note */
.score { display: flex; align-items: baseline; gap: 1rem; border-top: 3px solid var(--ore); padding-top: 1rem; margin: 0 0 1.6rem; }
.score .val { font-family: var(--serif); font-size: 3.6rem; line-height: 1; }
.score .val sub { font-size: 1rem; color: var(--ink-3); vertical-align: baseline; }
.score p { margin: 0; font-size: .93rem; color: var(--ink-2); }

/* -------------------------------------------------------------- Casinos */
.casinos { display: grid; gap: 0; border: 1px solid var(--line); margin: 0 0 1.5rem; }
.casino { display: grid; grid-template-columns: 9rem 1fr auto; gap: 1.25rem; align-items: center; padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--line); }
.casino:last-child { border-bottom: 0; }
@media (max-width: 720px) { .casino { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.casino-brand { width: 100%; height: auto; border: 1px solid var(--line); }
.casino h3 { margin: 0 0 .1rem; font-size: 1.35rem; }
.casino p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.casino .meta { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ore-d); }

/* ------------------------------------------------------------------ FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem .2rem; font-weight: 700; list-style: none; display: flex; gap: .75rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--ore); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 .2rem 1rem; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- Auteur */
.author { display: grid; grid-template-columns: 6rem 1fr; gap: 1.4rem; border-top: 3px solid var(--ink); padding-top: 1.3rem; margin-top: 3rem; }
@media (max-width: 620px) { .author { grid-template-columns: 1fr; } }
.author img { width: 6rem; height: 6rem; border-radius: 50%; }
.author h2, .author h3 { font-size: 1.5rem; margin-bottom: .1rem; border: 0; padding: 0; }
.author h2::before { display: none; }
.author .role { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ore-d); margin-bottom: .7rem; }
.author p { font-size: .94rem; color: var(--ink-2); }

/* ------------------------------------------------------- Barre CTA mobile */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: .4rem; padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line-2); }
.sticky-cta .btn { flex: 1 1 0; min-width: 0; font-size: .86rem; padding: .8rem .5rem; }
@media (max-width: 780px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 4.4rem; }
}

/* ---------------------------------------------------------- Pied de page */
.site-footer { background: var(--coal); color: #b3aca5; padding: 3rem 0; font-size: .93rem; }
.site-footer strong, .site-footer b { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin-bottom: .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: #ddd6cf; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #332d29; font-size: .83rem; color: #8f8880; }
.site-footer .legal strong { color: #f0a08a; }

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