/* =========================================================
   LE BOOK — LANDING PAGE
   Direction "coupon imprimé" : papier crème, encre navy,
   bleu d'accent, chiffres en monospace tabulaire.
   ========================================================= */

:root{
  --paper:#f2efe6;
  --sheet:#fffdf8;
  --ink:#0d1b33;
  --ink-soft:#5c6a86;
  --ink-faint:#93a0b8;
  --blue:#1f4fd8;
  --blue-wash:#e7edfd;
  --green:#1c7a45;
  --green-wash:#e5f2ea;
  --stamp:#c0392b;
  --rule:rgba(13,27,51,.16);
  --rule-soft:rgba(13,27,51,.09);
  --r:4px;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
}

/* La page a sa propre identité imprimée : même rendu
   quel que soit le thème système. */
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ color-scheme: light; } }
:root[data-theme="dark"]{ color-scheme: light; }


/* =========================================================
   RESET
   ========================================================= */

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Archivo,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}

button,input{font:inherit;color:inherit}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

.num{font-family:var(--mono);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.shell{width:min(1120px,calc(100% - 48px));margin-inline:auto}

/* fibre du papier */
body::before{
  content:"";
  position:fixed;inset:0;z-index:-1;pointer-events:none;
  opacity:.5;
  background-image:
    radial-gradient(rgba(13,27,51,.10) .5px,transparent .5px),
    radial-gradient(rgba(13,27,51,.06) .5px,transparent .5px);
  background-size:9px 9px,14px 14px;
  background-position:0 0,4px 6px;
}


/* =========================================================
   EN-TÊTE
   ========================================================= */

.masthead{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:24px 0 14px;
  border-bottom:2px solid var(--ink);
}
.wordmark{font-size:28px;font-weight:900;letter-spacing:-.055em;line-height:1}
.masthead nav{display:flex;align-items:center;gap:20px;font-size:14px;font-weight:600}
.masthead nav a.txt{padding-bottom:2px;border-bottom:1px solid transparent}
.masthead nav a.txt:hover{border-bottom-color:var(--ink)}

.li{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--rule);border-radius:var(--r)}
.li svg{width:15px;height:15px;fill:var(--ink)}
.li:hover{background:var(--ink)}
.li:hover svg{fill:var(--sheet)}


/* =========================================================
   HERO
   ========================================================= */

.hero{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(290px,.9fr);
  gap:56px;align-items:center;
  padding:62px 0 48px;
}
.hero h1{
  margin:0 0 20px;
  font-size:clamp(42px,5.4vw,74px);
  line-height:.93;font-weight:900;letter-spacing:-.055em;
  text-wrap:balance;
}
.hero h1 em{font-style:normal;display:block;text-indent:.06em;color:var(--blue)}
.hero .lead{max-width:44ch;margin:0;font-size:17px;line-height:1.55;color:#2a3854}
.hero .manifesto{
  margin:22px 0 0;padding-left:16px;
  border-left:2px solid var(--blue);
  font-size:14px;letter-spacing:.02em;color:var(--ink-soft);
}
.hero .manifesto b{color:var(--ink);font-weight:800}


/* =========================================================
   TALON — AFFICHE DU JOUR
   ========================================================= */

.stub{
  position:relative;width:100%;text-align:left;cursor:pointer;
  background:var(--sheet);
  border:1px solid var(--rule);border-radius:var(--r);
  padding:28px 26px 24px;
  box-shadow:14px 14px 0 rgba(13,27,51,.07);
  transform:rotate(-1.4deg);
  transition:transform .18s ease,box-shadow .18s ease;
}
.stub:hover{transform:rotate(-.4deg) translateY(-2px);box-shadow:16px 18px 0 rgba(13,27,51,.09)}

/* bords perforés */
.stub::before,.stub::after{
  content:"";position:absolute;left:-7px;right:-7px;height:13px;
  background-image:radial-gradient(circle at 6.5px 6.5px,var(--paper) 6.5px,transparent 6.7px);
  background-size:13px 13px;background-repeat:repeat-x;
}
.stub::before{top:-6px}
.stub::after{bottom:-6px}

.stub .kicker{
  display:flex;justify-content:space-between;gap:12px;
  padding-bottom:12px;border-bottom:1px dashed var(--rule);
  font-family:var(--mono);font-size:10.5px;color:var(--ink-soft);
}
.stub h2{margin:16px 0 6px;font-size:24px;font-weight:800;letter-spacing:-.035em;line-height:1.1}
.stub .sel{font-size:14px;color:var(--ink-soft)}
.stub .sel b{color:var(--ink);font-weight:600}
.stub .figs{display:flex;align-items:flex-end;gap:24px;margin-top:20px;padding-top:16px;border-top:1px dashed var(--rule)}
.stub .figs small{display:block;font-family:var(--mono);font-size:10.5px;color:var(--ink-soft);margin-bottom:6px}
.stub .figs b{font-size:26px;font-weight:700;line-height:1}
.stub .figs .pos{color:var(--green)}
.stub .go{margin-top:18px;display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--blue)}
.stub .go i{width:24px;height:1px;background:var(--blue);display:block}


/* =========================================================
   CHOIX DU MATCH
   ========================================================= */

.choose{padding:6px 0 10px}
.choose h2{margin:0 0 4px;font-size:20px;font-weight:800;letter-spacing:-.03em}
.choose>p{margin:0 0 16px;color:var(--ink-soft);font-size:14.5px}

.finder{position:relative;display:flex;gap:10px;flex-wrap:wrap;align-items:center}

.find{position:relative;flex:1 1 320px;min-width:240px}
.find input{
  width:100%;height:50px;padding:0 14px 0 42px;
  background:var(--sheet);border:1px solid var(--rule);border-radius:var(--r);outline:0;
}
.find input::placeholder{color:var(--ink-faint)}
.find input:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-wash)}
.find svg{position:absolute;left:14px;top:16px;width:18px;height:18px;fill:none;stroke:var(--ink-faint);stroke-width:2;stroke-linecap:round}

.all{
  height:50px;padding:0 16px;background:transparent;
  border:1px solid var(--rule);border-radius:var(--r);
  font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap;
}
.all:hover{border-color:var(--ink)}

.panel{
  margin-top:12px;background:var(--sheet);
  border:1px solid var(--rule);border-radius:var(--r);
  overflow:hidden;box-shadow:0 14px 30px rgba(13,27,51,.07);
}
.panel[hidden]{display:none}
.panel-head{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;
  padding:12px 16px;border-bottom:1px solid var(--rule-soft);
}
.chips{display:flex;flex-wrap:wrap;gap:7px}
.chip{
  height:30px;padding:0 11px;background:transparent;
  border:1px solid var(--rule);border-radius:var(--r);
  font-size:12.5px;font-weight:600;cursor:pointer;
}
.chip:hover{border-color:var(--ink)}
.chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--sheet)}
.close{border:0;background:transparent;font-family:var(--mono);font-size:11.5px;color:var(--ink-soft);cursor:pointer;padding:6px 2px}
.close:hover{color:var(--ink)}
.panel-scroll{max-height:390px;overflow:auto}


/* =========================================================
   TABLEAU DES MATCHS
   ========================================================= */

table.program{width:100%;border-collapse:collapse}
table.program th{
  position:sticky;top:0;background:var(--sheet);
  padding:10px 16px;border-bottom:1px solid var(--rule-soft);
  font-family:var(--mono);font-size:10.5px;font-weight:500;color:var(--ink-soft);text-align:left;
}
table.program th.r,table.program td.r{text-align:right}
table.program tr.row{cursor:pointer;border-bottom:1px solid var(--rule-soft)}
table.program tr.row:hover,table.program tr.row.on{background:var(--blue-wash)}
table.program td{padding:13px 16px;vertical-align:middle}

.tag{
  display:inline-block;padding:3px 7px;
  border:1px solid var(--rule);border-radius:var(--r);
  font-family:var(--mono);font-size:10px;color:var(--ink-soft);white-space:nowrap;
}
.fix{font-size:15px;font-weight:700;letter-spacing:-.02em}
.when{font-family:var(--mono);font-size:11.5px;color:var(--ink-soft);white-space:nowrap}
.pick{font-size:13px;color:var(--ink-soft)}
.pick b{color:var(--ink);font-weight:600}
.delta{font-family:var(--mono);font-size:15px;font-weight:600}
.delta.pos{color:var(--green)}
.delta.flat{color:var(--ink-faint)}

.empty-row td{padding:30px 16px;color:var(--ink-soft);font-size:14px}
.empty-row b{display:block;color:var(--ink);margin-bottom:4px;font-size:15px}


/* =========================================================
   ÉTAT VIDE
   ========================================================= */

.invite{max-width:560px;margin:56px auto 0;text-align:center;padding-bottom:70px}
.invite[hidden]{display:none}
.invite h3{margin:0 0 10px;font-size:21px;font-weight:800;letter-spacing:-.03em}
.invite p{margin:0;color:var(--ink-soft);font-size:15px}
.invite .marks{display:flex;justify-content:center;align-items:flex-end;gap:5px;margin-bottom:20px}
.invite .marks i{display:block;width:5px;height:20px;background:var(--rule);border-radius:1px}
.invite .marks i:nth-child(2){height:32px;background:var(--blue)}
.invite .marks i:nth-child(3){height:44px;background:var(--blue)}
.invite .marks i:nth-child(4){height:26px}


/* =========================================================
   FEUILLE (chargement + analyse)
   ========================================================= */

.loader-wrap,.sheet-wrap{padding:24px 0 48px}
.loader-wrap[hidden],.sheet-wrap[hidden]{display:none}

.sheet{
  position:relative;background:var(--sheet);
  border:1px solid var(--rule);border-radius:var(--r);
  box-shadow:18px 18px 0 rgba(13,27,51,.06);
}
.sheet::before{
  content:"";position:absolute;left:-7px;right:-7px;top:-6px;height:13px;
  background-image:radial-gradient(circle at 6.5px 6.5px,var(--paper) 6.5px,transparent 6.7px);
  background-size:13px 13px;background-repeat:repeat-x;
}
.sheet-pad{padding:24px 32px 26px}


/* ---------- chargement ---------- */

.load-meta{margin:0 0 10px;font-family:var(--mono);font-size:11.5px;color:var(--ink-soft)}
.load-fix{margin:0;font-size:clamp(26px,3.4vw,40px);line-height:1;font-weight:900;letter-spacing:-.05em}

.load-state{display:flex;align-items:center;gap:12px;margin:22px 0 28px}
.load-state p{margin:0;font-size:14px;color:var(--ink-soft)}
.spin{
  width:16px;height:16px;flex:0 0 16px;border-radius:50%;
  border:2px solid var(--rule);border-top-color:var(--blue);
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

.skeleton{display:grid;gap:26px}
.sk{
  display:block;height:14px;border-radius:3px;margin-bottom:10px;
  background:linear-gradient(90deg,#eceae2 25%,#f6f4ee 37%,#eceae2 63%);
  background-size:400% 100%;
  animation:shimmer 1.4s ease infinite;
}
.sk-band{height:96px;margin-bottom:0}
.sk-tall{height:120px}
.sk.w60{width:60%}
.sk-cols{display:grid;grid-template-columns:1.2fr 1fr;gap:44px}
@keyframes shimmer{0%{background-position:100% 0}100%{background-position:0 0}}


/* ---------- en-tête du match ---------- */

.fixture{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:20px}
.fixture .meta{margin:0 0 6px;font-family:var(--mono);font-size:11px;color:var(--ink-soft)}
.fixture h2{margin:0;font-size:clamp(25px,3vw,36px);line-height:1;font-weight:900;letter-spacing:-.05em}
.fixture h2 span.d{color:var(--ink-faint);font-weight:400;padding:0 6px}


/* ---------- cotes & value ---------- */

.verdict{margin-top:18px;border:1px solid var(--rule);border-radius:var(--r);overflow:hidden}
.verdict-top{
  display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between;
  padding:13px 18px;background:var(--green-wash);
}
.verdict-top.none{background:#f0f1f3}
.verdict-top p{margin:0;max-width:58ch;font-size:15px;font-weight:700;letter-spacing:-.02em;line-height:1.25}
.big{font-family:var(--mono);font-size:30px;font-weight:700;line-height:1;color:var(--green);white-space:nowrap}
.verdict-top.none .big{color:var(--ink-faint)}

.ledger{display:grid;grid-template-columns:repeat(3,1fr)}
.ledger div{padding:9px 18px;border-right:1px solid var(--rule-soft)}
.ledger div:last-child{border-right:0}
.ledger small{display:block;margin-bottom:2px;font-size:10.5px;color:var(--ink-soft)}
.ledger b{font-size:19px;font-weight:600;letter-spacing:-.02em}
.ledger b.pos{color:var(--green)}


/* ---------- ligne de découpe ---------- */

.tear{position:relative;height:1px;margin:18px 0;border-top:1px dashed var(--rule)}
.tear span{
  position:absolute;left:50%;top:-10px;transform:translateX(-50%);
  background:var(--sheet);padding:0 14px;
  font-family:var(--mono);font-size:10.5px;color:var(--ink-faint);
}


/* ---------- blocs ---------- */

.cols{display:grid;grid-template-columns:minmax(0,1.28fr) minmax(0,.92fr);gap:34px}
.block+.block{margin-top:18px}
.block h3{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  margin:0 0 9px;padding-bottom:6px;border-bottom:1px solid var(--rule);
  font-size:13px;font-weight:700;
}
.block h3 em{font-style:normal;font-family:var(--mono);font-size:10.5px;font-weight:400;color:var(--ink-faint)}
.block p{margin:0 0 8px;max-width:68ch;font-size:13.5px;line-height:1.48}
.block p:last-child{margin-bottom:0}

.synth{font-size:13.8px;line-height:1.5}
.synth .lead-p::first-letter{float:left;font-size:40px;line-height:.82;font-weight:900;padding:3px 7px 0 0;color:var(--blue)}

ul.points{margin:0;padding:0;list-style:none}
ul.points li{
  display:flex;gap:11px;padding:7px 0;
  border-bottom:1px solid var(--rule-soft);
  font-size:13px;line-height:1.38;
}
ul.points li:last-child{border-bottom:0}
ul.points i{width:6px;height:6px;flex:0 0 6px;margin-top:9px;background:var(--blue);border-radius:50%}


/* ---------- book index ---------- */

.score{display:flex;align-items:flex-end;gap:12px;margin-bottom:10px}
.score b{font-size:44px;font-weight:700;line-height:.85;letter-spacing:-.04em}
.score small{font-family:var(--mono);font-size:13px;color:var(--ink-soft);padding-bottom:4px}
.score .lvl{
  margin-left:auto;padding:5px 10px;
  border:1px solid var(--ink);border-radius:var(--r);
  font-size:11.5px;font-weight:700;
}
.segs{display:flex;gap:3px}
.segs i{flex:1;height:10px;background:#e6e3da;border-radius:1px}
.segs i.on{background:var(--blue)}


/* ---------- probabilité de victoire ---------- */

.axis .rail{position:relative;height:48px;margin:15px 0 6px}
.axis .line{position:absolute;left:0;right:0;top:26px;height:2px;background:#e6e3da}
.axis .gap{
  position:absolute;top:22px;height:10px;border-radius:2px;
  background:repeating-linear-gradient(135deg,rgba(28,122,69,.55) 0 3px,rgba(28,122,69,.16) 3px 6px);
  transition:left .5s ease,width .5s ease;
}
.axis .pin{position:absolute;top:0;transform:translateX(-50%);text-align:center;transition:left .5s ease}
.axis .pin i{display:block;width:2px;height:38px;margin:16px auto 0;background:var(--ink)}
.axis .pin b{font-family:var(--mono);font-size:13px;font-weight:600;white-space:nowrap}
.axis .pin.mkt i{background:var(--ink-faint)}
.axis .pin.mkt b{color:var(--ink-soft);font-weight:400}
.axis .pin.low{padding-top:42px}
.axis .pin.low i{position:absolute;top:0;left:50%;margin:0;transform:translateX(-50%)}
.axis .scale{
  display:flex;justify-content:space-between;padding-top:6px;
  border-top:1px solid var(--rule-soft);
  font-family:var(--mono);font-size:10px;color:var(--ink-faint);
}
.axis .legend{margin-top:8px;font-size:12.5px;line-height:1.4;color:var(--ink-soft)}
.axis .legend b{font-family:var(--mono);color:var(--green)}


/* ---------- forme récente ---------- */

.form-row{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:6px 0;border-bottom:1px solid var(--rule-soft);
}
.form-row:last-child{border-bottom:0}
.form-row>span{font-size:12.5px;font-weight:600}
.form-row div{display:flex;gap:5px}
.form-row i{
  width:22px;height:22px;display:grid;place-items:center;border-radius:var(--r);
  font-family:var(--mono);font-style:normal;font-size:11px;font-weight:600;
  background:var(--green-wash);color:var(--green);
}
.form-row i.draw{background:#eceae3;color:var(--ink-soft)}
.form-row i.loss{background:#fbe6e3;color:var(--stamp)}
.form-key{margin-top:5px;font-family:var(--mono);font-size:9.5px;color:var(--ink-faint)}


/* ---------- avant-match (replié) ---------- */

.more{margin-top:16px;border-top:1px solid var(--rule)}
.more summary{
  list-style:none;cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 0 0;font-size:13px;font-weight:700;
}
.more summary::-webkit-details-marker{display:none}
.more summary span{font-family:var(--mono);font-size:11px;font-weight:400;color:var(--ink-soft)}
.more[open] summary span::after{content:" —"}
.more-in{padding-top:18px;display:grid;gap:22px}
.mini h4{margin:0 0 8px;font-size:12.5px;font-weight:700}
.mini p{margin:0 0 8px;font-size:14px;line-height:1.55;color:var(--ink-soft)}
.mini p b{color:var(--ink);font-weight:600}
.mini p:last-child{margin-bottom:0}


/* =========================================================
   APPROCHE
   ========================================================= */

.method{padding:70px 0;border-top:2px solid var(--ink)}
.method h2{
  margin:0 0 6px;max-width:20ch;
  font-size:clamp(26px,3.2vw,38px);line-height:1.04;
  font-weight:900;letter-spacing:-.05em;
}
.method>.shell>p{margin:0 0 40px;max-width:54ch;color:var(--ink-soft);font-size:16px}

.steps{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--rule);margin:0;padding:0}
.steps li{list-style:none;padding:24px 26px 4px;border-right:1px solid var(--rule)}
.steps li:first-child{padding-left:0}
.steps li:last-child{border-right:0}
.steps b{display:block;margin-bottom:12px;font-family:var(--mono);font-size:12px;color:var(--blue)}
.steps h3{margin:0 0 8px;font-size:17px;font-weight:800;letter-spacing:-.03em}
.steps p{margin:0;font-size:14.5px;line-height:1.55;color:var(--ink-soft)}


/* =========================================================
   PIED DE PAGE
   ========================================================= */

footer{background:var(--ink);color:var(--paper);padding:40px 0 30px}
.legal{
  display:flex;flex-wrap:wrap;gap:16px 28px;justify-content:space-between;
  font-size:12px;line-height:1.6;color:#8494b0;
}
.legal p{margin:0;max-width:66ch}
.legal .warn{display:flex;gap:12px;align-items:flex-start}
.legal .age{
  display:inline-grid;place-items:center;flex:0 0 28px;width:28px;height:28px;
  border:1.5px solid #8494b0;border-radius:50%;
  font-family:var(--mono);font-size:11px;font-weight:700;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width:980px){
  .hero{grid-template-columns:1fr;gap:40px;padding:46px 0 38px}
  .stub{transform:none;max-width:440px}
  .stub:hover{transform:translateY(-2px)}
  .cols,.sk-cols{grid-template-columns:1fr;gap:30px}
  .steps{grid-template-columns:1fr}
  .steps li{padding:22px 0;border-right:0;border-bottom:1px solid var(--rule)}
}

@media (max-width:680px){
  .shell{width:calc(100% - 28px)}
  .sheet-pad{padding:24px 18px}
  .ledger{grid-template-columns:1fr}
  .ledger div{border-right:0;border-bottom:1px solid var(--rule-soft)}
  .ledger div:last-child{border-bottom:0}
  .hide-s{display:none}
  table.program td,table.program th{padding:12px}
  .big{font-size:32px}
  .verdict-top p{font-size:17px}
  .axis .pin b{font-size:11.5px}
  .all{flex:1}
}
