/* Site SlotCourse – la charte de slotpiste.app (son docs/charte.md, section 5), avec le bleu de la voie 1
   à la place du rouge. Voir docs/charte.md (section Site) et docs/site.md. Aucune ressource externe. */

/* Polices embarquées (SIL OFL 1.1). Tant qu'un fichier manque, la police du système prend le relais. */
@font-face { font-family: 'Barlow'; src: url('fonts/barlow-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('fonts/barlow-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('fonts/barlow-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('fonts/barlow-condensed-latin-700-italic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --bg: #111215;
  --band: #15171a;
  --foot: #0d0e10;
  --panel: #1a1c21;
  --panel2: #22252b;
  --line: #2c3038;
  --line-soft: #23262c;
  --text: #e9eaec;
  --body: #c9ccd1;
  --muted: #979ca5;
  /* le bleu de la voie 1 (slotpiste.app : #d0182b, #a8121f, #ff3347, #ff6b7a) */
  --accent: #3d5afe;        /* boutons, liseré de l'en-tête, pastilles à 16 % ; texte blanc dessus : 5,1 pour 1 */
  --accent-hover: #2c45d6;  /* survol des boutons */
  --accent2: #7d93ff;       /* mot fort des titres, surtitres, « SLOT », liens ; 6,6 pour 1 sur le fond */
  --accent2-hover: #a9b8ff; /* survol des liens */
  --ok: #2ecc71;
  --warn: #f1c40f;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-text-size-adjust: 100%; }
a { color: var(--accent2); }
a:hover { color: var(--accent2-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--warn); outline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; background: var(--warn); color: #111215; font-weight: 600; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; color: #111215; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }

/* ---------- marque ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-tile { display: block; width: 36px; height: 36px; flex: none; } /* la tuile de site/favicon.svg, telle quelle */
.brand-name { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 24px; letter-spacing: 1.5px; line-height: 1; color: #fff; }
.brand-name .slot { color: var(--accent2); }
.brand-name-sm { font-size: 22px; }

/* ---------- en-tête ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(17, 18, 21, .94); border-bottom: 3px solid var(--accent); }
.head-row { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 16px; font-weight: 500; flex: 1 1 auto; }
.main-nav a { color: var(--body); text-decoration: none; padding: 10px 0; }
.main-nav a:hover { color: #fff; }
.head-actions { display: flex; align-items: center; gap: 12px; }

/* sélecteur de langue : un menu dépliant sans script */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-weight: 500; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary svg { transform: rotate(180deg); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none; min-width: 200px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.lang li a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 15px; }
.lang li a:hover { background: var(--panel2); color: #fff; }
.lang li a[aria-current] { color: var(--accent2); font-weight: 600; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 18px; white-space: nowrap; }
.btn-sm { min-height: 44px; padding: 0 18px; border-radius: 8px; font-size: 16px; }
.btn-xl { min-height: 56px; padding: 0 30px; font-size: 19px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { border: 1px solid #4a4f59; color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: #fff; }
.btn-gold { min-height: 48px; padding: 0 20px; font-size: 17px; border: 1px solid var(--warn); color: var(--warn); }
.btn-gold:hover { background: rgba(241, 196, 15, .1); color: var(--warn); }

/* ---------- titres ---------- */
.eyebrow { margin-bottom: 14px; color: var(--accent2); font-weight: 600; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; }
.display, .title { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; color: #fff; }
.display { font-size: clamp(48px, 7vw, 96px); line-height: .95; letter-spacing: .5px; }
.display .hl, .title .hl { color: var(--accent2); }
.display-cta { margin: 0 auto; max-width: 16em; font-size: clamp(40px, 5.2vw, 68px); line-height: 1; }
.title { font-size: clamp(36px, 4.4vw, 56px); line-height: 1; }
.lead { margin-top: 26px; font-size: 20px; line-height: 1.55; color: var(--body); max-width: 34em; }
.section-lead { color: var(--body); font-size: 18px; }

/* ---------- motif « deux rainures » : une tranche de piste vue de face (remplace le vibreur de slotpiste.app) ---------- */
/* de haut en bas : asphalte 3, rail 1, rainure 2, rail 1, asphalte 4, rail 1, rainure 2, rail 1, asphalte 3 (18 px) */
.rainures {
  height: 18px;
  background: linear-gradient(to bottom,
    #3b4048 0 3px, #aab2bc 3px 4px, #15171b 4px 6px, #aab2bc 6px 7px,
    #3b4048 7px 11px,
    #aab2bc 11px 12px, #15171b 12px 14px, #aab2bc 14px 15px, #3b4048 15px 18px);
}

/* ---------- héros ---------- */
.hero { padding-top: 72px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 420px; min-width: 0; }
.hero-text .eyebrow { margin-bottom: 18px; }
.hero .display { font-size: clamp(46px, 5.6vw, 84px); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
/* la grande capture de la vue pilote, dans le cadre de l'aperçu de slotpiste.app */
.hero-shot { margin: 0; flex: 1 1 560px; min-width: 0; background: var(--foot); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.hero-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- sections ---------- */
.band { background: var(--band); padding: 96px 0; }
.band-lined { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-top { border-top: 1px solid var(--line); }
.section { padding-top: 104px; padding-bottom: 96px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.section-head .title { flex: 1 1 480px; }
.section-head .section-lead { flex: 1 1 380px; }

.cards { margin: 48px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 24px; }
.cards-feat { gap: 20px; }
.cards-small { margin-top: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }

/* trois étapes : une vraie suite, numérotée */
.step { flex: 1 1 300px; min-width: 0; padding: 30px 28px; }
.step-no { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 56px; line-height: 1; color: var(--accent2); }
.step h3 { margin: 14px 0 10px; font-size: 24px; font-weight: 600; line-height: 1.25; color: #fff; }
.step p:last-child, .feature p { color: var(--body); }

.feature { flex: 1 1 340px; min-width: 0; padding: 26px; }
.feature h3 { margin: 18px 0 8px; font-size: 21px; font-weight: 600; line-height: 1.3; color: #fff; }
.feature p { font-size: 16px; }
.pill { width: 44px; height: 44px; border-radius: 10px; background: rgba(61, 90, 254, .16); display: grid; place-items: center; }
.pill svg { width: 24px; height: 24px; fill: none; stroke: var(--accent2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill svg .dot { fill: var(--accent2); stroke: none; }
.more { margin-top: 28px; color: var(--muted); font-size: 16px; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.band .split { padding-top: 0; padding-bottom: 0; }
.split-text { flex: 1 1 400px; min-width: 0; }
.split-text .section-lead { margin-top: 22px; }
.split-shot { margin: 0; flex: 1 1 520px; min-width: 0; }

/* circuits du site : chaque ligne ouvre l'application sur ce circuit */
.circuit-list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.circuit-list li { border-bottom: 1px solid var(--line); }
.circuit-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 6px 4px; color: #fff; font-size: 18px; font-weight: 600; text-decoration: none; }
.circuit-link svg { flex: none; color: var(--accent2); }
.circuit-link:hover { color: #fff; }
.circuit-link:hover span { text-decoration: underline; }

/* la gamme : trois applications, celle-ci marquée d'un liseré */
.range { flex: 1 1 300px; min-width: 0; padding: 28px; display: flex; flex-direction: column; }
.range-here { border-top: 3px solid var(--accent); }
.range-head { display: flex; align-items: center; gap: 14px; }
.range-head svg { width: 44px; height: 44px; flex: none; }
.range-verb { color: var(--accent2); font-weight: 600; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; line-height: 1.3; }
.range h3 { font-size: 24px; font-weight: 600; line-height: 1.2; color: #fff; }
.range > p { margin: 16px 0 14px; flex: 1 1 auto; color: var(--body); font-size: 16px; }
.range > .range-link { margin: 0; flex: none; }
.range-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent2); font-weight: 600; text-decoration: none; }
.range-link:hover { text-decoration: underline; }
.range-you { color: var(--muted); font-weight: 500; }

/* soutien (seulement si paypalUrl est rempli dans site/config.json) */
.support { max-width: 560px; margin: 40px auto 0; padding: 30px; border-top: 3px solid var(--warn); text-align: left; }
.support-head { display: flex; align-items: center; gap: 12px; }
.support-head svg { fill: none; stroke: var(--warn); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.support h3 { font-size: 22px; font-weight: 600; color: #fff; }
.support p { margin: 14px 0 20px; color: var(--body); font-size: 16px; }

/* questions */
#faq .title { margin-bottom: 32px; }
#faq details { border-bottom: 1px solid var(--line); }
#faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 19px; font-weight: 600; color: #fff; }
#faq summary::-webkit-details-marker { display: none; }
#faq details p { margin: 0 0 22px; color: var(--body); }
.plus { flex: none; transition: transform .15s ease; }
#faq details[open] .plus { transform: rotate(45deg); }

/* appel final */
.cta { padding: 104px 24px; text-align: center; }
.cta .section-lead { margin: 20px auto 32px; max-width: 30em; }

/* ---------- pied ---------- */
.site-foot { background: var(--foot); }
.foot-row { padding-top: 40px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; align-items: flex-start; }
.foot-about { flex: 1 1 380px; min-width: 0; }
.foot-about p { margin-top: 10px; color: var(--muted); font-size: 14px; max-width: 34em; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 15px; }
.foot-nav a { color: var(--body); text-decoration: none; padding: 10px 0; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- pages de texte (mentions légales, confidentialité) ---------- */
.prose { padding-top: 72px; padding-bottom: 96px; }
.prose .title { margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.prose h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 600; color: #fff; }
.prose p, .prose li { color: var(--body); }
.prose p + p, .prose ul + p { margin-top: 12px; }
.prose ul { margin: 12px 0 0; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose address { font-style: normal; color: var(--body); padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; }
.prose address strong { color: #fff; }
.prose .summary { padding: 20px 24px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--ok); border-radius: 12px; }

/* ---------- 404 ---------- */
.notfound { padding-top: 96px; padding-bottom: 104px; }
.notfound .display { font-size: clamp(40px, 6vw, 72px); margin-bottom: 32px; }
.notfound-list p { color: var(--body); padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- images des sections (captures de l'application) ---------- */
.shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--foot); }
.feature .shot { margin-bottom: 20px; }

/* liens « Suivre SlotPiste sur Facebook » et YouTube (simples liens : rien n'est chargé depuis ces sites) */
.follow { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.follow-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--body); text-decoration: none; font-weight: 600; }
.follow-link svg { color: var(--accent2); }
.follow-link:hover { color: #fff; text-decoration: underline; }

/* ---------- tablette et petit portable : logo et actions sur une ligne, navigation centrée dessous ---------- */
@media (max-width: 1100px) {
  .head-actions { margin-left: auto; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: center; }
}

/* ---------- téléphone ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 0; }
  .wrap { padding-left: 16px; padding-right: 16px; } /* seulement les côtés : le haut et le bas restent ceux des sections */

  /* en-tête : logo et langue sur une ligne, navigation centrée dessous ; le bouton est dans le héros.
     Sur deux lignes, collé en haut, il prendrait un quart de l'écran : il défile avec la page. */
  .site-head { position: static; }
  .head-row { justify-content: space-between; gap: 10px 16px; padding-top: 10px; padding-bottom: 6px; }
  .head-actions .btn-sm { display: none; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: center; gap: 0 18px; font-size: 15px; }
  .main-nav a { padding: 8px 0; }

  /* héros centré, boutons de même largeur */
  .hero { padding-top: 40px; padding-bottom: 56px; gap: 40px; text-align: center; }
  .hero-text .eyebrow { margin-bottom: 12px; }
  .lead { font-size: 18px; margin-left: auto; margin-right: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }

  /* sections : titres et introductions centrés ; le texte des cartes et des listes reste aligné à gauche */
  .band { padding: 64px 0; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .title, .section-lead, .eyebrow { text-align: center; }
  .section-head { flex-direction: column; align-items: center; gap: 14px; }
  .section-head .title, .section-head .section-lead { flex: none; }
  .split { gap: 32px; }
  .split-text { text-align: center; }
  .circuit-list { text-align: left; }
  .cards { margin-top: 32px; gap: 16px; }
  .cards-small { margin-top: 16px; }
  .more { text-align: center; }
  #faq .title { margin-bottom: 20px; }
  .cta { padding: 72px 16px; }
  .cta .btn-xl { width: 100%; max-width: 340px; }
  .support { text-align: center; }
  .support-head { justify-content: center; }

  /* pied centré */
  .foot-row { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .foot-about { flex: none; }
  .foot-about p { margin-left: auto; margin-right: auto; }
  .foot-nav { justify-content: center; gap: 0 18px; }

  /* pages de texte : titre centré, texte aligné à gauche */
  .prose { padding-top: 48px; padding-bottom: 72px; }
  .prose .title, .prose .updated { text-align: center; }
  .notfound { padding-top: 64px; padding-bottom: 72px; }
  .notfound .display { text-align: center; } /* comme le surtitre « 404 » au-dessus */
}
@media (max-width: 420px) {
  .btn-sm { padding: 0 12px; font-size: 15px; }
  .brand-name { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plus { transition: none; }
}
