/* ==========================================================================
   JMprojectlab — feuille de style
   Typographie : pile système. Sur Mac, iPhone et iPad, cela rend en SF Pro,
   la police d'Apple. Aucune police n'est téléchargée depuis un serveur tiers.
   ========================================================================== */

:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --hairline: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;

  --nav-h: 48px;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 980px;
  --max-wide: 1180px;

  /* Chaque système d'abord sur sa propre police d'interface : SF Pro (déjà
     installée) sur Apple, Segoe UI sur Windows, Roboto sur Android. Helvetica
     arrive en dernier recours seulement — sous Windows elle est mal rendue. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --bg: #000000;
    --bg-alt: #101012;
    --surface: #1d1d1f;
    --hairline: #2a2a2c;
    --blue: #2997ff;
    --blue-hover: #4aa8ff;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.07;
  text-wrap: balance;
}

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.container-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 22px; }

/* ---------- Barre de navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
/* Le sceau porte seul : il monte a 32 px dans une barre de 48. En dessous de
   48 px c'est la variante simplifiee qui sert — l'anneau de texte et le reseau
   du sceau detaille s'empatent a cette taille. Voir brand/charte.html. */
.logo img, .logo svg { display: block; height: 32px; width: auto; }
/* Sélecteurs qualifiés par `img` : sinon `.logo img` ci-dessus, plus
   spécifique, réimposerait `display: block` aux deux versions à la fois. */
.logo img.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo img.logo-light { display: none; }
  .logo img.logo-dark { display: block; }
}

nav { display: flex; gap: 28px; }
nav a {
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0.82;
  transition: opacity 0.2s;
}
nav a:hover { opacity: 1; }

/* ---------- Liens et boutons ---------- */

.link-arrow {
  color: var(--blue);
  font-size: 19px;
  letter-spacing: -0.012em;
}
.link-arrow::after { content: " \203A"; }
.link-arrow:hover { text-decoration: underline; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 980px;
  padding: 12px 23px;
  font-family: inherit;
  font-size: 17px;
  letter-spacing: -0.012em;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--blue-hover); }
.btn-full { width: 100%; }

/* ---------- Sections ---------- */

.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 5vw, 48px); }
.section-head p {
  margin: 14px auto 0;
  max-width: 34em;
  font-size: 19px;
  color: var(--ink-2);
}

/* ---------- Hero ---------- */

.hero { padding: 90px 0 80px; text-align: center; }

/* Logotype d'accueil. `width`/`height` sont posés dans le HTML pour réserver
   la place avant chargement — sans quoi le titre saute au moment où le SVG
   arrive. La hauteur réelle est fixée ici, la largeur suit. */
.hero-logo { display: block; height: 180px; width: auto; margin: 0 auto 38px; }
.hero-logo--dark { display: none; }
@media (prefers-color-scheme: dark) {
  .hero-logo--light { display: none; }
  .hero-logo--dark { display: block; }
}
.hero h1 {
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 auto;
}
.hero .lead {
  margin: 22px auto 0;
  max-width: 30em;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.4;
  color: var(--ink-2);
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 34px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Bandeau déclaratif ---------- */

.statement { background: var(--bg-alt); padding: 96px 0; text-align: center; }
.statement p {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(30px, 5.4vw, 54px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
}
.statement .free { color: var(--blue); }
.statement .sub {
  margin: 20px auto 0;
  max-width: 34em;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink-2);
}

/* ---------- Grille d'applications ---------- */

/* 2 colonnes dès qu'il y a la place : avec quatre cartes, cela donne un carré
   équilibré plutôt qu'une rangée de trois et une carte esseulée. */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 20px;
}

.app-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 48px 34px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.section-alt .app-card { background: var(--surface); }

/* Filet posé sur l'icône (outline, et non border, pour ne pas rogner l'image) :
   sans lui, une icône dont le fond approche celui de la carte perd ses bords —
   le fond encre en thème sombre, le fond crème de Vélo Brière en thème clair. */
.app-icon-img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  display: block;
  outline: 1px solid rgba(0, 0, 0, 0.09);
  outline-offset: -1px;
}
@media (prefers-color-scheme: dark) {
  .app-icon-img { outline-color: rgba(255, 255, 255, 0.13); }
}
.app-icon { font-size: 56px; line-height: 1; }

.app-card h3 { font-size: 26px; letter-spacing: -0.018em; }
.app-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 30ch;
}

.app-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.app-tags span {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-2);
  border: 1px solid var(--hairline);
  padding: 3px 11px;
  border-radius: 980px;
}

.app-status { font-size: 15px; color: var(--ink-2); margin-top: auto; padding-top: 6px; }
/* Statut d'une app en vente. Encre pleine et demi-gras plutôt que bleu :
   le bleu est réservé à ce qui se clique, et ce statut est posé juste
   au-dessus de deux liens. `.app-card p` (0,1,1) l'emporterait sur une
   simple classe, d'où la qualification par l'élément. */
.app-card p.app-status--live { color: var(--ink); font-weight: 500; }
.app-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.app-card--placeholder { justify-content: center; }

/* ---------- Étapes ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px 34px;
}
.step { text-align: center; }
.step-num {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- Formulaire ---------- */

.form-section { max-width: 640px; }
.request-form {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.section-alt .request-form { background: var(--bg); }

.form-row { display: flex; flex-direction: column; gap: 7px; }
label { font-size: 14px; color: var(--ink-2); }

input, textarea {
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--ink);
  font-family: inherit;
  font-size: 17px;
  letter-spacing: -0.012em;
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: var(--ink-2); opacity: 0.7; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }

.form-note { text-align: center; color: var(--blue); font-size: 15px; min-height: 1.3em; margin: 0; }
.form-legal { margin: 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.form-legal a { color: var(--blue); }
.form-legal a:hover { text-decoration: underline; }

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--hairline);
  padding: 30px 0 40px;
  font-size: 12px;
  color: var(--ink-2);
}
.footer-inner { max-width: var(--max-wide); margin: 0 auto; padding: 0 22px; }
.footer-links { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--hairline); }

/* ---------- Pages légales ---------- */

.legal { padding: 72px 0 96px; }
.legal-inner { max-width: 700px; margin: 0 auto; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal .updated { color: var(--ink-2); font-size: 15px; margin: 12px 0 44px; }
.legal h2 { font-size: 22px; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: var(--blue); }
.legal a:hover { text-decoration: underline; }
.legal .back { display: inline-block; margin-top: 52px; color: var(--blue); }

/* ---------- Réglages écrans étroits ---------- */

@media (max-width: 833px) {
  .section { padding: 74px 0; }
  .statement { padding: 74px 0; }
  .request-form { padding: 28px; }
  nav { gap: 18px; }
}

@media (max-width: 600px) {
  nav { display: none; }
  .hero { padding: 62px 0 56px; }
  .hero-logo { height: 124px; margin-bottom: 28px; }
}

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