/* Site SlotPiste – d'après docs/charte.md (section 5). 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;
  --accent: #d0182b;
  --accent-hover: #a8121f;
  --accent2: #ff3347;
  --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: #ff6b7a; }
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 { width: 36px; height: 36px; flex: none; background: var(--accent); border-radius: 8px; display: grid; place-items: center; }
.brand-tile svg { width: 28px; height: 28px; }
.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; }
.brand-name-xs { font-size: 14px; letter-spacing: 1px; }

/* ---------- 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; }

/* ---------- listes à coches ---------- */
.checks { margin: 30px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 16px; color: var(--body); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks .check { flex: none; }
.checks-col { display: grid; gap: 14px; margin-top: 26px; color: var(--text); }
.checks-col li { align-items: flex-start; }
.checks-col .check { margin-top: 4px; }

/* ---------- 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-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.app-preview { margin: 0; flex: 1 1 540px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.ap-bar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; background: #17191d; border-bottom: 3px solid var(--accent); white-space: nowrap; overflow: hidden; font-size: 12.5px; color: var(--muted); }
.ap-brand { display: flex; align-items: center; gap: 7px; flex: none; }
.ap-tile { width: 22px; height: 22px; background: var(--accent); border-radius: 5px; display: grid; place-items: center; }
.ap-tile svg { width: 18px; height: 18px; }
.ap-board { background: var(--foot); padding: 22px; }
.ap-board svg { display: block; height: auto; }
.ap-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ap-stats strong { color: var(--text); font-weight: 600; }
.ap-ok { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: rgba(46, 204, 113, .14); color: var(--ok); font-weight: 600; }

/* vibreur rouge et blanc, modules de 32 px */
.vibreur { height: 10px; background: repeating-linear-gradient(90deg, var(--accent) 0 32px, #f2f2f2 32px 64px); }

/* ---------- 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-top: 48px; display: flex; flex-wrap: wrap; gap: 24px; }
.cards-feat { gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.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; 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; color: #fff; }
.feature p { font-size: 16px; }
.pill { width: 44px; height: 44px; border-radius: 10px; background: rgba(208, 24, 43, .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; }

/* plan de découpe (illustration) */
.plan { margin: 0; flex: 1 1 520px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.plan figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; margin-bottom: 16px; }
.plan-title { font-weight: 600; color: #fff; font-size: 18px; }
.plan-ex { color: var(--muted); font-size: 14px; }
.sheet { background: #fff; border-radius: 10px; padding: 18px; }
.sheet svg { display: block; height: auto; }
.table-scroll { margin-top: 16px; overflow-x: auto; }
.boards { width: 100%; border-collapse: collapse; font-size: 15px; }
.boards th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.boards td { padding: 8px 6px; border-bottom: 1px solid var(--line-soft); }
.boards td:first-child { font-weight: 600; }
.plan-foot { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--body); font-size: 15px; }
.plan-foot strong { color: #fff; font-weight: 600; }
.fake-btns { display: flex; gap: 8px; }
.fake-btns span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }

/* soutien */
.support { flex: 1 1 380px; min-width: 0; padding: 30px; border-top: 3px solid var(--warn); }
.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 { 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); }

/* ---------- petits écrans ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 0; }
  .site-head { position: static; } /* sur trois lignes, collé en haut il prendrait un quart de l'écran */
  .head-row { gap: 10px 16px; }
  .main-nav { order: 3; flex-basis: 100%; gap: 0 16px; font-size: 15px; }
  .head-actions { margin-left: auto; }
  .hero { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .lead { font-size: 18px; }
  .band { padding: 64px 0; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .cta { padding: 72px 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; } /* seulement les côtés : le haut et le bas restent ceux des sections */
  .prose { padding-top: 48px; padding-bottom: 72px; }
  .notfound { padding-top: 64px; padding-bottom: 72px; }
  .ap-ok { margin-left: 0; }
}
@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; }
}

/* ---------- images des sections (captures de l'application, photos) ---------- */
.shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; border-radius: 8px; border: 1px solid var(--line); background: var(--foot); }
.step .shot { margin-bottom: 22px; }
.feature .shot { margin-bottom: 20px; }
.shot-plan { object-position: center bottom; } /* plan de découpe : la vue d'ensemble des planches */
.shot-photo { border-radius: 12px; }
.free-side { flex: 1 1 380px; min-width: 0; display: grid; gap: 20px; }
.free-side .support { flex: none; }

/* mention obligatoire sur toute photo générée par IA (charte, section 1) */
.shot-wrap { position: relative; margin: 0; }
.step .shot-wrap { margin-bottom: 22px; }
.step .shot-wrap .shot { margin-bottom: 0; }
.ai-label { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(17, 18, 21, .82); color: var(--text); font-size: 12px; line-height: 1.5; }

/* lien « Suivre SlotPiste sur Facebook » (simple lien : rien n'est chargé depuis Facebook) */
.follow { margin-top: 18px; }
.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; }

/* ---------- téléphone : sections centrées et harmonisées ---------- */
@media (max-width: 720px) {
  /* en-tête : logo et langue sur une ligne, navigation centrée dessous ; le bouton est dans le héros */
  .head-row { justify-content: space-between; padding-top: 10px; padding-bottom: 6px; }
  .head-actions .btn-sm { display: none; }
  .main-nav { justify-content: center; gap: 0 18px; }
  .main-nav a { padding: 8px 0; }

  /* héros centré, boutons de même largeur */
  .hero { text-align: center; }
  .hero-text .eyebrow { margin-bottom: 12px; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  .checks { justify-content: center; }
  .ap-bar > span:not(.ap-brand) { display: none; } /* aperçu : pas de libellés coupés */
  .ap-stats { justify-content: center; }

  /* titres et introductions de section centrés ; le texte des cartes reste aligné à gauche */
  .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; }
  .checks-col { display: inline-grid; text-align: left; }
  .cards { margin-top: 32px; gap: 16px; }
  .more { text-align: center; }
  .plan figcaption { justify-content: center; text-align: center; }
  .plan-foot { justify-content: center; text-align: center; }
  .support { text-align: center; }
  .support-head { justify-content: center; }
  #faq .title { margin-bottom: 20px; }
  .cta .btn-xl { width: 100%; max-width: 340px; }

  /* 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 .title, .prose .updated { text-align: center; }
}
.follow { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }

/* 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; }
}
