/**
 * Feuille de style du site de presentation.
 *
 * Les jetons sont repris tels quels de `apps/web/src/index.css` du depot Tick&.
 * Les recopier plutot que d'importer Tailwind garde le site en HTML statique
 * sans etape de construction — un site vitrine qui exige un build finit par ne
 * plus etre mis a jour.
 *
 * Trois partis pris herites du produit, et chacun s'oppose au reglage par
 * defaut des bibliotheques :
 *
 *  1. Le fond est du papier, pas du gris ecran.
 *  2. Aucune ombre floue : la separation se fait au filet d'un pixel.
 *  3. Une seule couleur de signal, rare — le vermillon ne sert qu'a l'action.
 */

/* --- Police, servie en local ------------------------------------------------
 * Pas de Google Fonts : sur un site en .fr, l'appel a un tiers transmet
 * l'adresse IP du visiteur et pose un probleme de RGPD que rien ne justifie
 * pour deux fichiers de 34 ko.
 */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/archivo-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/archivo-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Jetons ---------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  --canvas: #f7f4ee;
  --surface: #fffdf9;
  --sunken: #efeae1;

  --line: #e2dbcf;
  --line-strong: #c6bcaa;

  --ink: #14120f;
  --muted: #5c564c;
  --faint: #8b8274;

  --brand: #d4451f;
  --brand-hover: #b53916;
  --brand-soft: #fbe9e2;
  --brand-ink: #8f2c11;
  --on-brand: #fffdf9;

  --positive: #2f7a4d;

  --radius: 3px;
  --radius-lg: 4px;

  --mesure: 74rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #14120e;
    --surface: #1c1915;
    --sunken: #100e0b;

    --line: #322d25;
    --line-strong: #4b4437;

    --ink: #f0ece3;
    --muted: #a79f90;
    --faint: #7b7365;

    --brand: #ef6743;
    --brand-hover: #f4805f;
    --brand-soft: #35190f;
    --brand-ink: #f7a288;
    --on-brand: #14120e;

    --positive: #5fa87a;
  }
}

/* --- La teinte de Flow& ----------------------------------------------------
   La collection partage tout sauf une chose : sa couleur de marque. Vermillon
   pour Tick&, violet encre pour Flow&. Les neutres, la geometrie, les ombres et
   les jetons de sens restent communs -- c'est ce qui fait qu'on reconnait deux
   outils de la meme famille plutot que deux sites sans rapport.

   Pose sur `body` : la page de Flow& porte la classe, et tout ce qui lit
   `--brand` suit sans qu'aucune regle ne soit dupliquee.
   -------------------------------------------------------------------------- */
.flow {
  --brand: #4c3d99;
  --brand-hover: #3d3080;
  --brand-soft: #ece9f7;
  --brand-ink: #352a6b;
}

@media (prefers-color-scheme: dark) {
  .flow {
    /* `#4c3d99` sur le papier eteint tombe sous le contraste lisible d'un
       texte : la teinte sombre n'est pas le meme violet eclairci, elle est
       choisie pour tenir sur ce fond-la. */
    --brand: #8b7ce0;
    --brand-hover: #a397e9;
    --brand-soft: #1e1935;
    --brand-ink: #b7aeef;
  }
}

/* --- Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Archivo Variable', 'Archivo', ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-ink);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--brand-hover);
}

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

code {
  font-family: ui-monospace, 'JetBrains Mono', 'Cascadia Code', monospace;
  font-size: 0.875em;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.1em 0.35em;
}

/* Lien d'evitement : premier element focusable, invisible tant qu'on ne
   navigue pas au clavier. */
.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--on-brand);
  padding: 0.75rem 1rem;
  z-index: 10;
}

.evitement:focus {
  left: 0;
}

.enveloppe {
  max-width: var(--mesure);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* --- En-tete --------------------------------------------------------------- */
.entete {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 5;
}

.entete .enveloppe {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
  flex-wrap: wrap;
}

.marque {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.marque img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius);
}

.navigation {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.navigation a {
  color: var(--muted);
  text-decoration: none;
}

.navigation a:hover {
  color: var(--ink);
}

.langue {
  color: var(--faint);
  font-size: 0.875rem;
  white-space: nowrap;
}

.langue [aria-current] {
  color: var(--ink);
  font-weight: 600;
}

/* --- Boutons --------------------------------------------------------------- */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.bouton-primaire {
  background: var(--brand);
  color: var(--on-brand);
}

.bouton-primaire:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
}

.bouton-secondaire {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.bouton-secondaire:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* --- Sections -------------------------------------------------------------- */
section {
  padding-block: 4.5rem;
  border-bottom: 1px solid var(--line);
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.chapeau {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 46rem;
  margin: 0 0 2.5rem;
  text-wrap: pretty;
}

/* --- Heros ----------------------------------------------------------------- */
.heros {
  padding-block: 5rem 3.5rem;
}

.heros p.accroche {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 44rem;
  margin: 1.25rem 0 0;
  text-wrap: pretty;
}

.surtitre {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.25rem 0.625rem;
  margin-bottom: 1.25rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.appoint {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--faint);
}

/* --- Figures --------------------------------------------------------------- */
figure {
  margin: 0;
}

.capture {
  margin-top: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

figcaption {
  font-size: 0.875rem;
  color: var(--faint);
  margin-top: 0.75rem;
  text-wrap: pretty;
}

/* --- Grilles --------------------------------------------------------------- */
/*
 * Cartes bordees une a une, et non une grille dont l'espacement d'un pixel
 * laisse voir le fond. Cette astuce-la donne un filet continu tant que le
 * dernier rang est plein — mais des qu'il ne l'est pas, les pistes vides
 * s'affichent en aplat gris, et le nombre de colonnes depend de la largeur de
 * la fenetre : il n'existe aucun nombre d'elements qui tombe juste partout.
 */
.grille {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.grille > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.grille p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

/* --- Listes ---------------------------------------------------------------- */
.franc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  max-width: 52rem;
}

/* Une liste franche qui suit une grille a besoin d'air. Regle de voisinage
   plutot que style en ligne : la politique de contenu du site interdit les
   seconds, et elle a raison. */
.grille + .franc {
  margin-top: 2rem;
}

.franc li {
  padding-left: 1.125rem;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  text-wrap: pretty;
}

.franc strong {
  color: var(--ink);
}

/* --- Pied ------------------------------------------------------------------ */
.pied {
  padding-block: 3rem;
  color: var(--faint);
  font-size: 0.9375rem;
}

.pied .enveloppe {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: baseline;
}

.pied nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-left: auto;
}

.pied a {
  color: var(--muted);
  text-decoration: none;
}

.pied a:hover {
  color: var(--ink);
}
