/* =========================================================================
   Gomano — site vitrine (www.gomano.app)
   Chargée APRÈS gomano-ds.css : uniquement les styles propres au site.
   Couleurs exclusivement via les jetons du design system (aucune valeur en
   dur, aucune redéclaration de jeton) ; le focus vient de gomano-ds.css et
   n'est jamais retiré. Aucun attribut style= dans les pages : la CSP n'admet
   que style-src 'self'.
   ========================================================================= */

/* ---- Base --------------------------------------------------------------- */
/* L'en-tête collant masquerait les titres visés par les ancres. */
html { scroll-padding-top: 80px; }
body { line-height: 1.6; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }

/* ---- Mise en page ------------------------------------------------------- */
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: var(--s-5); }
.measure { max-width: 40rem; }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); }
.fine { font-size: .8125rem; color: var(--ink-3); }

/* ---- Boutons (surcharges du DS) ----------------------------------------- */
/* La règle .btn du DS ne retire pas le soulignement des liens. */
a.btn { text-decoration: none; }
.btn { min-height: 48px; font-size: .9375rem; }

/* ---- Statuts (tableau « Où en est-on ») --------------------------------- */
/* Le statut n'est jamais porté par la seule couleur : pastille + libellé.
   Classes status--<etat> rendues par StatutsRenderer (castor site:build). */
.status { white-space: nowrap; }
.status--disponible { background: var(--ok-soft); color: var(--ok); }
.status--en-cours { background: var(--warn-soft); color: var(--warn); }
.status--prevu { background: var(--accent-soft); color: var(--accent); }
.status--pas-prevu { background: var(--surface-2); color: var(--ink-2); }

/* ---- En-tête ------------------------------------------------------------ */
.topbar { top: env(safe-area-inset-top, 0px); }
/* Le DS fixe height: 64px, ce qui casse au retour à la ligne. */
.topbar .row { height: auto; min-height: 64px; flex-wrap: wrap; gap: var(--s-2) var(--s-4); padding-block: var(--s-2); }
.wordmark { min-height: 44px; }
.wordmark:hover { color: var(--accent); }
.wordmark--small { font-size: 1rem; gap: var(--s-2); }
.wordmark--small .glyph { width: 26px; height: 26px; }
.nav ul { display: flex; gap: var(--s-1); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; border-radius: var(--r-md); }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
/* Page courante dans la navigation : texte plus contrasté et fond, en plus de aria-current. */
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

/* ---- Sélecteur de thème (composant de l'app, 40 px sur le site) --------- */
/* Neutralise la version « maquette » de .theme-toggle (gomano-ds.css). */
.theme-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 2px; min-height: 0; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-pill); cursor: auto; }
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle__btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; border-radius: var(--r-pill); color: var(--ink-2); cursor: pointer; }
.theme-toggle__btn svg { width: 18px; height: 18px; }
.theme-toggle__btn:hover { color: var(--ink); }
.theme-toggle__btn[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-1); }
/* Sans JS : sélecteur masqué, la page suit prefers-color-scheme. */
html:not(.js) .theme-toggle { display: none; }

/* ---- Accroche ----------------------------------------------------------- */
.hero { padding-block: var(--s-8); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.03em; margin-block: var(--s-4) var(--s-5); }
.hero h1 em { font-style: normal; color: var(--accent); }
.cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero .cta { margin-top: var(--s-6); }
.facts { display: flex; gap: var(--s-2) var(--s-5); flex-wrap: wrap; margin: var(--s-6) 0 0; padding: 0; list-style: none; font-size: .875rem; color: var(--ink-2); }
.facts li { display: inline-flex; gap: var(--s-2); align-items: center; }
.facts svg { width: 16px; height: 16px; stroke: var(--ok); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- Illustration : fil d'annonces -------------------------------------- */
.board { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); overflow: hidden; }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); flex-wrap: wrap; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.board-top strong { font-size: .9375rem; }
.board-top span { font-size: .8125rem; color: var(--ink-2); }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-1) var(--s-3); align-items: start; padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); }
.board-list li:first-child { border-top: 0; }
.board-list .nature { grid-row: span 2; align-self: start; margin-top: 2px; min-width: 88px; }
.board-list .item-title { font-weight: 600; color: var(--ink); line-height: 1.3; }
.board-list .item-meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); font-size: .8125rem; color: var(--ink-2); }
.board-list .item-meta b { color: var(--ink); font-weight: 700; }
.remote { display: inline-flex; align-items: center; gap: var(--s-1); }
.remote svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.board figcaption { padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); background: var(--surface-2); font-size: .8125rem; color: var(--ink-2); }

/* ---- Sections ----------------------------------------------------------- */
.section { padding-block: var(--s-9); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); letter-spacing: -.025em; }
.section-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; margin-top: var(--s-7); }
.section-cta .fine { max-width: 44ch; }

/* ---- Natures d'annonce -------------------------------------------------- */
.natures { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
.natures li { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.natures .nature { justify-self: start; }
.natures h3 { font-size: 1.125rem; }
.natures p { color: var(--ink-2); font-size: .9375rem; }
.aside-note { margin-top: var(--s-6); max-width: 46rem; color: var(--ink-2); }

/* ---- Raisons ------------------------------------------------------------ */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-7); margin: 0; }
.reasons div { display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 2px solid var(--ink); }
.reasons dt { font-size: 1.1875rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.reasons dd { margin: 0; color: var(--ink-2); max-width: 46ch; }
.host-note { margin-top: var(--s-6); color: var(--ink-2); max-width: 46rem; }

/* ---- Captures réelles (gomano:captures) --------------------------------- */
.captures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--s-6); list-style: none; margin: 0; padding: 0; }
.captures figure { margin: 0; display: grid; gap: var(--s-3); }
.captures img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); background: var(--surface); }
.captures figcaption { color: var(--ink-2); font-size: .9375rem; }

/* ---- Instances publiques (gomano:instances) ----------------------------- */
.instances { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
.instances li { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.instances h3 { font-size: 1.125rem; }
.instance-domain, .instance-city { color: var(--ink-2); font-size: .9375rem; overflow-wrap: anywhere; }
.instance-figures { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: 0; }
.instance-figures dt { color: var(--ink-2); font-size: var(--t-xs); }
.instance-figures dd { margin: 0; font-weight: 700; }
/* ---- Promesse : aucune transaction en ligne ----------------------------- */
.principle { background: var(--accent-soft); border-top: 1px solid var(--accent-line); border-bottom: 1px solid var(--accent-line); }
/* h2 titré pour la structure (RGAA 9.1), à la taille d'un sur-titre. */
.principle h2.eyebrow { font-size: var(--t-xs); line-height: 1.6; color: var(--ink-2); }
.principle-body { margin-top: var(--s-4); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-7); align-items: end; }
.principle blockquote { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; max-width: 22ch; text-wrap: balance; }
.principle blockquote p { color: var(--ink); }
.principle-body > div { display: grid; gap: var(--s-3); }
.principle-body > div p { color: var(--ink-2); }

/* ---- Tableau « Où en est-on » ------------------------------------------- */
.table-scroll { overflow-x: auto; }
.roadmap { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.roadmap th, .roadmap td { text-align: left; padding: var(--s-4) var(--s-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.roadmap thead th { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.roadmap tbody th { font-weight: 600; }
.roadmap td:last-child { color: var(--ink-2); }

/* ---- Appel final -------------------------------------------------------- */
.final { text-align: center; }
.final h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); letter-spacing: -.025em; max-width: 22ch; margin-inline: auto; }
.final p { margin: var(--s-4) auto 0; }
.final .cta { justify-content: center; margin-top: var(--s-6); }

/* ---- Pied de page ------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding-block: var(--s-7); font-size: .875rem; color: var(--ink-2); }
.foot .row { display: flex; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; align-items: start; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-2) var(--s-5); flex-wrap: wrap; }
.foot nav a { color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; }
.foot nav a:hover { color: var(--accent); }
.foot-licence { margin-top: var(--s-3); }

/* ---- Pages annexes ------------------------------------------------------ */
.prose { max-width: var(--measure); padding-block: var(--s-8); }
.prose h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.025em; }
.prose h2 { margin-top: var(--s-7); font-size: 1.375rem; }
.prose p, .prose ul { margin-top: var(--s-3); color: var(--ink-2); }
.legal-host { margin-top: var(--s-3); color: var(--ink-2); }
.notfound { padding-block: var(--s-9); }
.notfound h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.025em; margin-block: var(--s-3) var(--s-4); }
.notfound .glyph { width: 56px; height: 56px; }
.notfound .cta { margin-top: var(--s-6); }

/* ---- Page « Installer Gomano » ------------------------------------------ */
.install { padding-block: var(--s-8) var(--s-9); }
.page-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3rem); letter-spacing: -.025em; }
.install-block + .install-block { margin-top: var(--s-8); }
.install-block > h2 { font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -.02em; margin-bottom: var(--s-4); }
.install-block > p { max-width: var(--measure); color: var(--ink-2); }
.install-block > p + p { margin-top: var(--s-4); }
/* Liste numérotée native (::marker) : la numérotation reste annoncée par les
   lecteurs d'écran. Pas de display: grid sur les li, qui supprimerait le marqueur. */
.steps { display: grid; gap: var(--s-7); max-width: 46rem; margin: var(--s-6) 0 0; padding-left: var(--s-6); }
.steps > li { padding-top: var(--s-4); border-top: 2px solid var(--ink); }
.steps > li::marker { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.steps > li > * + * { margin-top: var(--s-3); }
.steps h3 { font-size: 1.25rem; line-height: 1.3; }
.steps p { color: var(--ink-2); }
/* Commandes : retour à la ligne plutôt que défilement (pas de zone défilante à
   rendre focusable, WCAG 2.1.1) ; une copie par sélection rend la ligne d'origine. */
.cmd { margin: 0; padding: var(--s-3) var(--s-4); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); font-family: var(--font-mono); font-size: .875rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd code { font: inherit; color: inherit; }
.install :not(pre) > code { padding: 0 .3em; background: var(--surface-2); border-radius: var(--r-sm); color: var(--ink); font-family: var(--font-mono); font-size: .875em; overflow-wrap: anywhere; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-grid, .principle-body { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .section { padding-block: var(--s-8); }
}
@media (max-width: 480px) {
  .wrap { padding-inline: var(--s-4); }
  .hero { padding-block: var(--s-6) var(--s-7); }
  .nav a { padding: 0 var(--s-2); }
  .board-list li { grid-template-columns: 1fr; }
  .board-list .nature { grid-row: auto; justify-self: start; }
  .steps { padding-left: var(--s-5); }
  .cmd { padding: var(--s-3); }
}
