/* ────────────────────────────────────────────────────────────────
   La vitrine de tabello.app : l'accueil et la page des tarifs.

   Tout vient de la charte du produit (docs/design-system.md) et de ses
   jetons (apps/web/src/styles/tokens.css), recopiés ici parce que ces
   pages ne chargent pas l'application :
   - le fond est la **table** du plateau : papier blanc, maille fine,
     axes et croix à la décade forte ;
   - une seule police, Outfit ; l'encre presque noire pour l'action ;
   - le cyan de tracé (`--trait`) ne dit que l'état — cote, sélection,
     poignée —, jamais la décoration ;
   - le crème n'existe que comme papier d'une feuille de calque ;
   - aucun orange, aucun ambre.
   ──────────────────────────────────────────────────────────────── */

@font-face {
  font-family: Outfit; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/polices/outfit-latin-ext.woff2) format("woff2");
  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;
}
@font-face {
  font-family: Outfit; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/polices/outfit-latin.woff2) format("woff2");
  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;
}

:root {
  color-scheme: light;
  --table:          #FFFFFF;
  --table-creux:    #F4F6F7;
  --instrument:     #FFFFFF;
  --instrument-voile: rgba(255, 255, 255, .86);
  --hairline:       #E2E7EA;
  --hairline-fort:  #C8D0D5;
  --encre:          #0E1216;
  --encre-pale:     #5C6D77;
  --trait:          #0C7488;
  --trait-voile:    rgba(12, 116, 136, .10);
  --papier-canari:  #FBF7E5;
  --marque-cyan:    #6EC6D9;
  --police:         Outfit, "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --interlettrage-capitale: .14em;
  --interlettrage-marque:   .3em;
  --ombre-instrument: 0 1px 2px rgba(14, 18, 22, .06), 0 6px 24px rgba(14, 18, 22, .07);
  --r: 8px;
  --largeur: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.site {
  margin: 0;
  font-family: var(--police);
  color: var(--encre);
  -webkit-font-smoothing: antialiased;
  background-color: var(--table);
  /* La table du plateau : croix et axes de la décade forte, maille fine. */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='190' height='190'><path d='M88.5 95.5h14M95.5 88.5v14' stroke='%232B343B' stroke-opacity='.27' stroke-width='1'/></svg>"),
    linear-gradient(to right,  rgb(43 52 59 / .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(43 52 59 / .08) 1px, transparent 1px),
    linear-gradient(to right,  rgb(138 151 160 / .16) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(138 151 160 / .16) 1px, transparent 1px);
  background-size: 190px 190px, 190px 190px, 190px 190px, 19px 19px, 19px 19px;
  background-position: 0 0, 95px 0, 0 95px, 0 0, 0 0;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.cadre { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .cadre { padding: 0 32px; } }

/* ── En-tête ──────────────────────────────────────────────────── */
.entete {
  position: sticky; top: 0; z-index: 10;
  background: var(--instrument-voile);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.entete .cadre { display: flex; align-items: center; gap: 24px; height: 60px; }
.entete-marque { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.entete-marque img { height: 26px; width: auto; }
.entete-marque span { font-size: 19px; letter-spacing: .12em; font-weight: 400; }
.entete nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14px; }
.entete nav a { text-decoration: none; color: var(--encre-pale); }
.entete nav a:hover, .entete nav a[aria-current="page"] { color: var(--encre); }
@media (max-width: 640px) {
  .entete nav .facultatif { display: none; }
  .entete nav { gap: 14px; }
}

/* ── Boutons ──────────────────────────────────────────────────── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--r);
  font: 500 14px/1 var(--police); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--encre); color: var(--encre); background: var(--instrument);
  transition: background .15s, color .15s, border-color .15s;
}
.bouton:hover { background: var(--table-creux); }
.bouton--plein { background: var(--encre); color: #fff; }
.bouton--plein:hover { background: #2B343B; }
.bouton--petit { height: 34px; padding: 0 14px; font-size: 13px; }
.bouton:focus-visible, a:focus-visible, label:focus-within { outline: 2px solid var(--trait); outline-offset: 3px; }
.entete .bouton { color: #fff; }

/* ── Typographie ──────────────────────────────────────────────── */
.repere {
  margin: 0 0 14px; font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--interlettrage-capitale); color: var(--encre-pale);
}
.repere-num { color: var(--encre); margin-right: 10px; font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
.titre-1 { font-size: clamp(36px, 6.4vw, 68px); line-height: 1.04; letter-spacing: -.02em; }
.titre-2 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.1; letter-spacing: -.012em; }
.chapeau { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; color: var(--encre-pale); max-width: 34em; text-wrap: pretty; }
.texte { font-size: 16px; line-height: 1.65; color: var(--encre-pale); text-wrap: pretty; }
.texte strong { color: var(--encre); font-weight: 500; }

/* Une plaque : le blanc des instruments, posé sur la trame — pour que le
   texte se lise sans qu'on efface la table. */
.plaque {
  background: var(--instrument);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: var(--ombre-instrument);
}

/* ── Accueil : l'ouverture ───────────────────────────────────── */
.ouverture { padding: 72px 0 40px; }
.ouverture .cadre { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .ouverture .cadre { grid-template-columns: 1fr 1.08fr; gap: 56px; } .ouverture { padding: 96px 0 72px; } }
.ouverture-texte { display: grid; gap: 22px; justify-items: start; }
.ouverture-texte .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ouverture-note { font-size: 13px; color: var(--encre-pale); margin: 0; }

/* Le texte de l'ouverture tient sur un voile, la trame restant visible autour. */
.voile { background: rgba(255,255,255,.78); border-radius: 12px; box-shadow: 0 0 0 14px rgba(255,255,255,.78); }

/* ── Accueil : la bande des métiers ──────────────────────────── */
.bande { border-block: 1px solid var(--hairline); background: var(--instrument-voile); }
.bande ul {
  list-style: none; margin: 0 auto; padding-block: 18px;
  display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: center;
  font-size: 13px; color: var(--encre-pale); letter-spacing: .02em;
}
.bande li::before { content: "+"; margin-right: 10px; color: var(--hairline-fort); }

/* ── Accueil : les fonctions ─────────────────────────────────── */
.fonctions { padding: 72px 0 24px; }
.fonctions-tete { max-width: 40em; margin-bottom: 40px; display: grid; gap: 16px; }
.fonction {
  display: grid; gap: 28px; align-items: center;
  padding: 40px 0; border-top: 1px solid var(--hairline);
}
.fonction:last-child { border-bottom: 1px solid var(--hairline); }
.fonction-texte { display: grid; gap: 14px; align-content: start; }
.fonction-texte .texte { margin: 0; }
.fonction-points { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--encre); }
.fonction-points li { display: flex; gap: 10px; align-items: baseline; }
.fonction-points li::before { content: ""; flex: none; width: 10px; height: 1px; background: var(--encre); transform: translateY(-4px); }
@media (min-width: 880px) {
  .fonction { grid-template-columns: 1fr 1.15fr; gap: 64px; padding: 64px 0; }
  .fonction:nth-child(even) .fonction-texte { order: 2; }
}
.texte-voile { background: rgba(255,255,255,.82); border-radius: 10px; box-shadow: 0 0 0 12px rgba(255,255,255,.82); }

/* ── Les scènes animées ───────────────────────────────────────── */
.scene { position: relative; overflow: hidden; }
.scene svg { width: 100%; height: auto; }
.scene-legende {
  position: absolute; left: 12px; bottom: 10px; margin: 0;
  font-size: 10.5px; font-weight: 600; letter-spacing: var(--interlettrage-capitale);
  text-transform: uppercase; color: var(--encre-pale);
}

/* ── Accueil : ce qui tient la promesse ──────────────────────── */
.promesses { padding: 72px 0; }
.promesses-grille { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 720px) { .promesses-grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .promesses-grille { grid-template-columns: repeat(4, 1fr); } }
.promesse { padding: 22px; display: grid; gap: 10px; align-content: start; }
.promesse h3 { font-size: 17px; font-weight: 500; }
.promesse p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--encre-pale); }
.promesse svg { width: 28px; height: 28px; }

/* ── Appel final ─────────────────────────────────────────────── */
.appel { padding: 24px 0 88px; }
.appel .plaque { padding: clamp(28px, 5vw, 56px); display: grid; gap: 18px; justify-items: start; }
@media (min-width: 860px) { .appel .plaque { grid-template-columns: 1fr auto; align-items: center; } }

/* ── Pied ────────────────────────────────────────────────────── */
.pied { border-top: 1px solid var(--hairline); background: var(--instrument); }
.pied .cadre { padding-block: 28px 36px; display: grid; gap: 12px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; }
.pied nav a { color: var(--encre-pale); text-decoration: none; }
.pied nav a:hover { color: var(--encre); text-decoration: underline; }
.pied p { margin: 0; font-size: 12px; color: var(--encre-pale); }

/* ── Tarifs ───────────────────────────────────────────────────── */
.tarifs-tete { padding-block: 64px 28px; display: grid; gap: 18px; justify-items: start; }
.pastille-appel {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px;
  border: 1px solid var(--encre); border-radius: 999px; background: var(--instrument);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.pastille-appel::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--encre); }

/* La bascule mensuel / annuel : deux boutons radio, aucun script. */
.periode { position: absolute; opacity: 0; pointer-events: none; }
.bascule {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--hairline-fort); border-radius: 999px; background: var(--instrument);
}
.bascule label {
  height: 34px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; font-size: 14px; cursor: pointer; color: var(--encre-pale);
}
.bascule .economie { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
#periode-mois:checked ~ .tarifs-corps .bascule label[for="periode-mois"],
#periode-an:checked ~ .tarifs-corps .bascule label[for="periode-an"] { background: var(--encre); color: #fff; }
#periode-mois:focus-visible ~ .tarifs-corps .bascule label[for="periode-mois"],
#periode-an:focus-visible ~ .tarifs-corps .bascule label[for="periode-an"] { outline: 2px solid var(--trait); outline-offset: 2px; }
#periode-mois:checked ~ .tarifs-corps .si-an,
#periode-an:checked ~ .tarifs-corps .si-mois { display: none; }

.offres { display: grid; gap: 14px; margin: 28px 0 12px; }
@media (min-width: 640px) { .offres { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .offres { grid-template-columns: repeat(3, 1fr); } }
.offre { padding: 24px; display: grid; gap: 16px; align-content: start; position: relative; }
.offre--conseillee { border-color: var(--encre); }
.offre-marque {
  position: absolute; top: -11px; left: 22px; height: 22px; padding: 0 10px;
  display: inline-flex; align-items: center; border-radius: 999px;
  background: var(--encre); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.offre h3 { font-size: 20px; font-weight: 500; }
.offre-pour { margin: -10px 0 0; font-size: 14px; color: var(--encre-pale); }
.offre-prix { display: grid; gap: 4px; min-height: 66px; align-content: start; }
.offre-montant { font-size: 38px; line-height: 1; letter-spacing: -.02em; }
.offre-montant small { font-size: 14px; letter-spacing: 0; color: var(--encre-pale); margin-left: 4px; }
.offre-detail { font-size: 13px; color: var(--encre-pale); }
.offre ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--hairline); display: grid; gap: 9px; font-size: 14px; }
.offre li { display: flex; justify-content: space-between; gap: 12px; }
.offre li span:first-child { color: var(--encre-pale); }
.offre .bouton { width: 100%; }

.tarifs-section { padding-block: 40px 8px; display: grid; gap: 14px; }
.tarifs-section .plaque { padding: 8px 4px; overflow-x: auto; }
.tarifs-note { font-size: 13.5px; color: var(--encre-pale); margin: 0; max-width: 60em; line-height: 1.6; }
.tarifs-site table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tarifs-site th, .tarifs-site td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--hairline); white-space: nowrap; vertical-align: top; }
.tarifs-site tr:last-child td { border-bottom: 0; }
.tarifs-site th { font-weight: 500; color: var(--encre-pale); font-size: 12.5px; }
.tarifs-site .conf-fin { color: var(--encre-pale); font-size: 12.5px; }
.tarifs-savoir { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tarifs-savoir li { padding: 16px 18px; font-size: 14.5px; line-height: 1.6; color: var(--encre-pale); }
.tarifs-savoir strong { color: var(--encre); font-weight: 500; }
@media (min-width: 860px) { .tarifs-savoir { grid-template-columns: repeat(2, 1fr); } }
.tarifs-fin { padding-block: 32px 80px; }
@media (max-width: 640px) {
  .tarifs-site table, .tarifs-site thead, .tarifs-site tbody, .tarifs-site tr, .tarifs-site th, .tarifs-site td { display: block; width: 100%; }
  .tarifs-site thead { display: none; }
  .tarifs-site tr { border-bottom: 1px solid var(--hairline); padding: 8px 0; }
  .tarifs-site tr:last-child { border-bottom: 0; }
  .tarifs-site td { border: 0; padding: 3px 12px; white-space: normal; }
  .tarifs-site td[data-libelle]::before { content: attr(data-libelle) " : "; color: var(--encre-pale); }
}

/* Une grille ne descend pas sous la largeur propre d'un SVG : sans ce
   plancher à zéro, les scènes (560 px de dessin) élargissaient la page
   sur téléphone. */
.ouverture .cadre, .fonction, .promesses-grille, .offres { grid-template-columns: minmax(0, 1fr); }
.ouverture .cadre > *, .fonction > *, .offre { min-width: 0; }
@media (min-width: 960px) { .ouverture .cadre { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } }
@media (min-width: 880px) { .fonction { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
@media (min-width: 720px) { .promesses-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .promesses-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) { .offres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .offres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
