/* ==========================================================================
   Invoicio — la vitrine (v2, maquette approuvée le 24 octobre 2026)
   La rigueur vient de la Matrice Design ; l'allure vient de l'app.
   Toutes les valeurs sont celles de la fiche d'identité de la v2 (relevées
   dans PaletteDInvoicio.swift, TonDEtat, le gabarit PDF et le dossier de la
   designer). Aucune n'est inventée pour le site.
   ========================================================================== */

/* Archivo — Omnibus-Type, SIL Open Font License 1.1 (fonts/OFL.txt). Hébergée
   sur le site : il promet de ne contacter aucun tiers. Police variable 100–900,
   sous-ensemble latin (français, €, guillemets, espaces fines). */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  /* Le fichier porte aussi le latin étendu (ł ř ș ő ā ħ…) : vérifié glyphe
     par glyphe le 25 octobre 2026. L'ancienne plage s'arrêtait à U+00FF, et
     les titres polonais, tchèques ou roumains prenaient ces lettres dans la
     police du système, au milieu d'un mot. */
  unicode-range: U+0000-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD;
}

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

  /* L'accent, dédoublé selon ce qu'il porte */
  --i-accent: #2B7FFF;          /* marque, icônes, points — jamais du texte en clair */
  --i-accent-texte: #1A63D8;    /* liens, montant mis en avant : 5,50 sur blanc */
  --i-accent-plein: #1A63D8;    /* aplat sous du blanc : 5,50 */
  --i-sur-accent: #FFFFFF;

  /* Le dégradé de marque de l'app : le rail de l'ouverture, et la tuile
     « À encaisser » dans la reproduction de l'accueil. Blanc dessus ≥ 4,61:1 */
  --i-degrade-marque: linear-gradient(160deg, #2A70E6 0%, #1F6AE4 60%, #1A5FD0 100%);
  --i-degrade-rail: linear-gradient(180deg, #2A70E6 0%, #1F6AE4 55%, #14509E 100%);
  --i-retard-sur-accent: #FFFFFF;

  /* Surfaces de l'app : blanc bleuté, pas le blanc et le gris d'apple.com */
  --i-fond: #FBFCFD;
  --i-carte: #FFFFFF;
  --i-bloc: #F6F8FB;
  --i-champ: #F4F6FA;
  --i-segmente: rgba(27, 29, 33, .05);
  --i-segment-choisi: #FFFFFF;
  --i-papier: #FFFFFF;

  /* Texte */
  --i-encre: #1B1D21;
  --i-texte-2: #5A5F66;
  --i-texte-3: #696E76;

  /* Filets : la forme même des panneaux de l'app */
  --i-filet: rgba(27, 29, 33, .07);
  --i-filet-rangee: rgba(27, 29, 33, .05);
  --i-bordure-bouton: rgba(27, 29, 33, .12);
  --i-bord-flottant: rgba(27, 29, 33, .10);

  /* Couleurs à sens (TonDEtat) : trait · texte · fond opaque de pastille */
  --t-retard-trait: #D4442A;  --t-retard-texte: #C03D24;  --t-retard-fond: #F9ECE9;
  --t-payee-trait: #17914B;   --t-payee-texte: #127A3F;   --t-payee-fond: #E7F2EC;
  --t-partiel-trait: #C2680D; --t-partiel-texte: #A75A0B; --t-partiel-fond: #F9F0E7;
  --t-info-trait: #2B7FFF;    --t-info-texte: #1A63D8;    --t-info-fond: #E6F0FF;
  --t-brouillon-trait: #6C7178; --t-brouillon-texte: #5A5F66; --t-brouillon-fond: #EFEFF0;
  --t-succes-plein: #127A3F;


  /* Les deux seules ombres : la page A4 et la fenêtre photographiée */
  --ombre-page: 0 3px 8px rgba(0, 0, 0, .25);
  --ombre-fenetre: 0 24px 48px -12px rgba(27, 29, 33, .22), 0 2px 6px rgba(27, 29, 33, .06);

  /* Typographie */
  --f-marque: "Archivo", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --f-corps: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;

  /* Rayons de l'app (Design.Rayon) */
  --r-puce: 3px; --r-encadre: 6px; --r-segment: 8px; --r-bouton: 9px; --r-champ: 10px;
  --r-panneau: 14px; --r-fenetre: 15px;

  --section: clamp(4rem, 7vw, 6rem);
  --gouttiere: 24px;
}

/* ---------- Jetons : sombre (le gris neutre de macOS, pas le noir) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --i-accent: #64A6FF;
    --i-accent-texte: #64A6FF;
    --i-accent-plein: #1D67DE;
    --i-degrade-marque: linear-gradient(160deg, #1F5FCC 0%, #1A52B8 60%, #1646A0 100%);
    --i-degrade-rail: linear-gradient(180deg, #1F5FCC 0%, #1A52B8 55%, #123C8A 100%);
    --i-retard-sur-accent: #FFD9D2;

    --i-fond: #1E1E1E;
    --i-carte: #282828;
    --i-bloc: #222222;
    --i-champ: #2F2F2F;
    --i-segmente: rgba(255, 255, 255, .07);
    --i-segment-choisi: #464646;

    --i-encre: #E8E8E8;
    --i-texte-2: #B8B8B8;
    --i-texte-3: #A0A0A0;

    --i-filet: rgba(255, 255, 255, .10);
    --i-filet-rangee: rgba(255, 255, 255, .07);
    --i-bordure-bouton: rgba(255, 255, 255, .14);
    --i-bord-flottant: rgba(255, 255, 255, .12);

    --t-retard-trait: #FF6F6A;  --t-retard-texte: #FF8A80;  --t-retard-fond: #4A3333;
    --t-payee-trait: #6CD08A;   --t-payee-texte: #8EDCA0;   --t-payee-fond: #334338;
    --t-partiel-trait: #F0A23A; --t-partiel-texte: #F7B13C; --t-partiel-fond: #483C2B;
    --t-info-trait: #64A6FF;    --t-info-texte: #64A6FF;    --t-info-fond: #303A46;
    --t-brouillon-trait: #A0A0A0; --t-brouillon-texte: #B8B8B8; --t-brouillon-fond: #393939;
    --t-succes-plein: #1E7A44;


    --ombre-page: 0 3px 8px rgba(0, 0, 0, .45);
    --ombre-fenetre: 0 24px 48px -12px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .35);
  }
}

/* ---------- Socle ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--i-fond);
  color: var(--i-encre);
  font: 400 1.0625rem/1.5 var(--f-corps);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Un mot plus long que sa boîte (« Einkommensteuererklärung » à 320 px) se coupe au lieu de déborder */
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--i-accent-texte); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--i-accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.lien-evitement { position: absolute; left: -9999px; }
.lien-evitement:focus { left: 16px; top: 12px; z-index: 10; background: var(--i-carte); padding: 8px 12px; border-radius: var(--r-bouton); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.contenu { max-width: calc(1120px + 2 * var(--gouttiere)); margin: 0 auto; padding: 0 var(--gouttiere); }
.section { padding: var(--section) 0; }
.section-bloc { background: var(--i-bloc); border-block: 1px solid var(--i-filet); }

/* Titres : Archivo, interlettrages de l'app */
.titre-page, .titre-section, .titre-panneau, .chiffre, .marque-nom {
  font-family: var(--f-marque);
  font-weight: 600;
}
.titre-page { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.030em; max-width: 15em; text-wrap: balance; }
.titre-section { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.028em; max-width: 20em; text-wrap: balance; }
/* Les titres des panneaux reproduits n'ont plus de resserrement : l'app l'a
   abandonné le 25 octobre 2026 (Design.Police, « plus d'interlettrage négatif »).
   Les titres du site, eux, gardent le leur. */
.titre-panneau { font-size: 1.25rem; line-height: 1.25; }
.chapeau { font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); line-height: 1.45; color: var(--i-texte-2); max-width: 36em; text-wrap: pretty; }
.explication { color: var(--i-texte-2); max-width: 40em; margin-top: 14px; text-wrap: pretty; }
.explication + .explication { margin-top: 12px; }
.tete-section { margin-bottom: clamp(32px, 4vw, 48px); }
.mention { font-size: .8125rem; color: var(--i-texte-3); }

/* ---------- Icônes (Lucide, trait 1,75) ---------- */
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico-accent { color: var(--i-accent); }

/* ---------- Boutons : ceux de l'app, rayon 9, jamais en pilule ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: var(--r-bouton);
  font: 500 .9375rem/1 var(--f-corps);
  text-decoration: none; white-space: nowrap;
}
.bouton-secondaire { background: var(--i-carte); color: var(--i-encre); border: 1px solid var(--i-bordure-bouton); }
.bouton-secondaire:hover { background: var(--i-champ); }
.bouton-principal { background: var(--i-accent-plein); color: var(--i-sur-accent); font-weight: 600; }
@media (pointer: fine) { .bouton { min-height: 38px; } }

/* ---------- Pastilles d'état (TonDEtat) : le fil conducteur ---------- */
.pastille {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font: 600 .8125rem/1.35 var(--f-corps); letter-spacing: 0;
  white-space: nowrap;
}
.pastille .ico { width: 13px; height: 13px; stroke-width: 2.25; }
.p-brouillon { background: var(--t-brouillon-fond); color: var(--t-brouillon-texte); }
.p-info { background: var(--t-info-fond); color: var(--t-info-texte); }
.p-partiel { background: var(--t-partiel-fond); color: var(--t-partiel-texte); }
.p-payee { background: var(--t-payee-fond); color: var(--t-payee-texte); }
.p-retard { background: var(--t-retard-fond); color: var(--t-retard-texte); }
.p-facturx { background: var(--t-succes-plein); color: #FFFFFF; }
.point { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--t-brouillon-trait); }
.point-retard { background: var(--t-retard-trait); }
.point-info { background: var(--t-info-trait); }
.point-payee { background: var(--t-payee-trait); }

/* ---------- Panneaux : cartes blanches à filet, rayon 14, sans ombre ---------- */
.panneau { background: var(--i-carte); border: 1px solid var(--i-filet); border-radius: var(--r-panneau); overflow: hidden; }
.panneau-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 14px 18px 10px; }
.panneau-tete h3, .panneau-tete .h { font: 600 1rem/1.3 var(--f-corps); white-space: nowrap; }
.panneau-tete .mention { text-align: right; margin-left: auto; }
.rangee { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--i-filet-rangee); }
.rangee-texte { flex: 1; min-width: 0; }
.rangee-titre { font-weight: 500; font-size: .9375rem; line-height: 1.35; }
.rangee-note { font-size: .8125rem; line-height: 1.4; color: var(--i-texte-3); margin-top: 2px; }
.rangee-note.retard { color: var(--t-retard-texte); }
.montant { font-weight: 600; font-size: .9375rem; white-space: nowrap; text-align: right; }
/* Les boutons du système (.bordered, .borderedProminent) depuis le 25 octobre
   2026 : un aplat, sans dégradé ni ombre, libellé en graisse ordinaire ; un
   seul plein par panneau, les autres simplement bordés. */
.bouton-app {
  display: inline-flex; align-items: center; justify-content: center; min-width: 88px;
  padding: 5px 12px; border-radius: 7px; font: 400 .8125rem/1.2 var(--f-corps);
  border: 1px solid var(--i-bordure-bouton); background: var(--i-carte); color: var(--i-encre); white-space: nowrap;
}
.bouton-app.plein { background: var(--i-accent-plein); border-color: transparent; color: #FFFFFF; }

/* Bandeau d'information de l'app (« Le numéro définitif n'est attribué qu'à la finalisation ») */
.bandeau-info { display: flex; gap: 10px; align-items: baseline; padding: 12px 16px; border-radius: var(--r-champ); background: var(--t-info-fond); color: var(--t-info-texte); font-size: .9375rem; }
.bandeau-info .point { transform: translateY(-1px); }

/* ---------- Barre : celle de la barre d'outils de l'app ---------- */
.barre {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--i-fond) 92%, transparent);
  border-bottom: 1px solid var(--i-filet);
}
.barre-dedans { display: flex; align-items: center; gap: 24px; height: 60px; }
.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--i-encre); text-decoration: none; margin-right: auto; }
.marque img { width: 28px; height: 28px; }
.marque-nom { font-size: 1.1875rem; letter-spacing: -.02em; }
.barre-nav { display: flex; gap: 4px; }
.barre-nav a { color: var(--i-texte-2); text-decoration: none; font-size: .9375rem; padding: 8px 10px; border-radius: var(--r-segment); }
.barre-nav a:hover { color: var(--i-encre); background: var(--i-segmente); }
@media (max-width: 920px) { .barre-nav { display: none; } }
/* La pastille a ses deux longueurs entières, pour que chaque langue écrive la sienne */
.barre .pastille .court { display: none; }
@media (max-width: 420px) { .barre .pastille .long { display: none; } .barre .pastille .court { display: inline; } }

/* ---------- Ouverture : la première ouverture de l'app ----------
   Le rail bleu à gauche (degradeRailAccueil), le contenu sur le fond de bloc
   à droite : c'est la fenêtre que chaque utilisateur voit en premier. Le rail
   est la surface de marque du site ; la tuile « À encaisser », plus bas, fait
   partie de la reproduction de l'accueil. Les deux ne se voient jamais ensemble. */
.ouverture { padding: clamp(24px, 3.4vw, 48px) 0 var(--section); }
.ouverture-cadre {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--i-filet); border-radius: var(--r-panneau); overflow: hidden;
  background: var(--i-bloc);
}
.rail {
  background: var(--i-degrade-rail); color: var(--i-sur-accent);
  padding: clamp(28px, 3vw, 40px) clamp(24px, 3.6vw, 48px);
  display: flex; flex-direction: column;
}
.rail-icone { width: 64px; height: 64px; margin-bottom: clamp(24px, 2.4vw, 32px); }
.rail .titre-page { font-size: clamp(2.125rem, 3.4vw, 2.875rem); line-height: 1.07; color: #FFFFFF; max-width: 12em; }
.rail .chapeau { margin-top: 18px; color: #FFFFFF; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.5; max-width: 30em; }
/* Les étapes du rail : un rond blanc par engagement, coché comme une étape faite */
.rail-etapes { margin-top: clamp(24px, 2.6vw, 32px); display: grid; gap: 16px; max-width: 32em; }
.rail-etapes li { display: flex; gap: 14px; align-items: flex-start; }
/* Pas de rangée surlignée comme l'étape en cours de l'app : blanc sur un voile blanc à 14 % tombe à 3,9:1 */
.rail-rond { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid #FFFFFF; margin-top: 1px; }
.rail-rond .ico { width: 14px; height: 14px; stroke-width: 2.5; }
.rail-etapes strong { display: block; font-weight: 600; font-size: 1rem; line-height: 1.35; }
.rail-etapes span:not(.rail-rond) { display: block; font-size: .875rem; line-height: 1.4; margin-top: 1px; }
.ouverture-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; padding-top: clamp(24px, 2.6vw, 32px); }
/* Le seul bouton de la page : blanc sur le rail, texte en accent (5,50:1) */
.bouton-sur-rail { background: #FFFFFF; color: #1A63D8; font-weight: 600; }
.bouton-sur-rail:hover { background: #EEF4FF; }
.rail :focus-visible { outline-color: #FFFFFF; }
.statut-lancement { font-size: .9375rem; color: #FFFFFF; }

/* ---------- Le papier de la facture (gabarit PDF de l'app) ---------- */
.scene-papier { padding: clamp(28px, 3vw, 40px) clamp(28px, 4.4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.papier-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .875rem; color: var(--i-texte-3); }
.papier {
  --bleu: #1976D2; --gris: #5F6368; --noir: #1B1D21; --trait: #D5D8DC;
  container-type: inline-size;
  aspect-ratio: 1 / 1.414;
  background: var(--i-papier); color: var(--noir);
  border-radius: 2px; box-shadow: var(--ombre-page);
  font-family: var(--f-corps);
  color-scheme: light;
}
.papier-page { display: flex; flex-direction: column; height: 100%; padding: 8.2cqw 7.4cqw 6.4cqw; font-size: 1.62cqw; line-height: 1.38; }
.papier .ph { margin: 0; color: var(--bleu); font-weight: 650; }
.papier-titre { font-size: 4.3cqw; letter-spacing: -.01em; line-height: 1.1; }
.papier-date { color: var(--gris); font-size: 2.15cqw; margin-top: .9cqw; }
.papier-meta { color: var(--gris); margin-top: .6cqw; }
.papier-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; margin-top: 6.4cqw; }
.papier-parties .ph, .papier-section { font-size: 2.55cqw; margin-bottom: 1cqw; }
.papier dl { display: grid; grid-template-columns: max-content 1fr; column-gap: 1.6cqw; row-gap: .35cqw; }
.papier dt { color: var(--gris); }
.papier dd { font-weight: 600; }
.papier .papier-section { margin-top: 5.2cqw; margin-bottom: 1.2cqw; }
.papier table { width: 100%; border-collapse: collapse; }
.papier th { background: var(--bleu); color: #FFFFFF; font-weight: 700; text-align: left; padding: 1.25cqw 1.4cqw; }
.papier td { padding: 1.3cqw 1.4cqw; border-bottom: 1px solid var(--trait); font-weight: 600; }
.papier .n { text-align: right; white-space: nowrap; }
.papier-totaux { margin: 1.6cqw 0 0 auto; width: 52%; border: 1px solid rgba(25, 118, 210, .3); background: #F4F8FD; border-radius: 1.1cqw; padding: 1.6cqw 2.2cqw; }
.papier-totaux div { display: flex; justify-content: space-between; color: var(--gris); padding: .25cqw 0; }
.papier-totaux .ttc { color: #1565C0; font-weight: 700; font-size: 2.6cqw; border-top: 1px solid rgba(25, 118, 210, .3); margin-top: 1cqw; padding-top: 1.2cqw; }
.papier-conditions { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqw 4cqw; font-size: 1.4cqw; }
.papier-conditions b { font-weight: 700; }
.papier-pied { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; color: var(--gris); font-size: 1.32cqw; }

/* ---------- Données ---------- */
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.donnees-panneau .panneau-haut { padding: 28px 24px 8px; text-align: center; }
.rond-icone { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--t-info-fond); color: var(--i-accent); }
.rond-icone .ico { width: 28px; height: 28px; }
.donnees-panneau .titre-panneau { font-size: 1.375rem; }
.donnees-panneau .panneau-haut p { color: var(--i-texte-2); font-size: .9375rem; margin-top: 6px; }
.liste-icones { padding: 12px 8px 14px; }
.liste-icones li { display: flex; gap: 14px; padding: 11px 16px; font-size: .9375rem; line-height: 1.45; }
.liste-icones .ico { width: 20px; height: 20px; margin-top: 1px; color: var(--i-accent); }
.appui { margin-top: 24px; padding-left: 16px; border-left: 3px solid var(--i-accent); font-weight: 500; max-width: 38em; }

/* ---------- Ce qui sort ---------- */
.sortie .rangee { align-items: flex-start; }
.sortie .rangee .ico { width: 20px; height: 20px; margin-top: 1px; }
.ico-sort { color: var(--t-partiel-trait); }
.ico-entre { color: var(--t-info-trait); }
.ico-systeme { color: var(--i-texte-3); }
.ico-jamais { color: var(--i-texte-3); }
.sortie .quand { font-size: .8125rem; font-weight: 600; color: var(--i-texte-2); margin-top: 3px; }
.preuves { margin-top: 28px; display: grid; gap: 16px; }
.preuves li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; }
.num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 .8125rem/1 var(--f-marque); background: var(--i-champ); color: var(--i-encre); border: 1px solid var(--i-filet); }
.preuves p { color: var(--i-texte-2); font-size: 1rem; }
.preuves strong { color: var(--i-encre); font-weight: 600; }

/* ---------- Réforme ---------- */
.reforme-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.echeance { align-items: flex-start; }
.echeance-date { text-align: right; flex: none; }
.echeance-date b { display: block; font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.echeance-date span { display: block; font-size: .8125rem; color: var(--i-texte-3); margin-top: 2px; white-space: nowrap; }
.echeance .rangee-texte .pastille { margin-top: 8px; }
.reforme-cote { display: grid; gap: 16px; margin-top: 16px; }
.cout { padding: 18px; }
.cout h3 { font: 600 1rem/1.3 var(--f-corps); margin-bottom: 6px; }
.cout p { color: var(--i-texte-2); font-size: .9375rem; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.etiquette { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-segment); background: var(--i-champ); border: 1px solid var(--i-filet); font-size: .875rem; font-weight: 500; color: var(--i-encre); }

/* ---------- Accueil de l'app reproduit ---------- */
.accueil-app { display: grid; gap: 11px; }
.tuiles { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 11px; }
.tuile { background: var(--i-carte); border: 1px solid var(--i-filet); border-radius: var(--r-panneau); padding: 16px 18px 18px; min-width: 0; }
.tuile-libelle { font-size: .875rem; font-weight: 500; color: var(--i-texte-2); }
.tuile .chiffre { font-size: 1.5rem; margin-top: 8px; white-space: nowrap; }
.tuile-note { font-size: .8125rem; color: var(--i-texte-3); margin-top: 6px; }
.tuile-note.retard { color: var(--t-retard-texte); }
/* Les deux comptes de la tuile « En retard » passent à la ligne d'un bloc, jamais au milieu de « la plus vieille : 28 jours ». */
.tuile-note .morceau { display: inline-block; }
/* La tuile bleue « À encaisser » : la seule surface en dégradé de l'accueil,
   sans halo, comme dans l'app depuis le 25 octobre 2026 */
.tuile-marque { background: var(--i-degrade-marque); border-color: transparent; color: #FFFFFF; }
.tuile-marque .tuile-libelle { color: #FFFFFF; font-weight: 600; font-size: .9375rem; }
.tuile-marque .chiffre { font-size: clamp(2.25rem, 4vw, 2.75rem); margin-top: 10px; }
.tuile-marque .tuile-note { color: var(--i-retard-sur-accent); font-weight: 600; font-size: .875rem; margin-top: 10px; }
.accueil-bas { display: grid; grid-template-columns: 1.5fr 1fr; gap: 11px; }
.accueil-bas .rangee .point { margin-right: 2px; }

/* ---------- La vie d'une facture ---------- */
.vie-premier { display: grid; gap: 28px; }
.etape-texte { max-width: 40em; }
.etape-texte .pastilles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.etape-texte h3 { font-family: var(--f-marque); font-weight: 600; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -.022em; text-wrap: balance; }
.etape-texte p { color: var(--i-texte-2); margin-top: 10px; text-wrap: pretty; }
.etapes { margin-top: clamp(56px, 7vw, 88px); display: grid; gap: clamp(48px, 6vw, 72px); position: relative; }
.etape { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }

/* Fenêtre photographiée : rayon 15, filet, ombre de fenêtre */
.fenetre { border-radius: var(--r-fenetre); overflow: hidden; border: 1px solid var(--i-bord-flottant); box-shadow: var(--ombre-fenetre); background: var(--i-carte); }
.fenetre img { width: 100%; }
.legende { font-size: .875rem; color: var(--i-texte-3); margin-top: 14px; max-width: 60em; }

/* Liste des factures reproduite */
.segmente { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--r-champ); background: var(--i-segmente); }
.segmente span { padding: 4px 10px; border-radius: var(--r-segment); font-size: .8125rem; font-weight: 500; color: var(--i-texte-2); white-space: nowrap; }
.segmente span b { font-weight: 500; color: var(--i-texte-3); margin-left: 3px; }
.segmente .choisi { background: var(--i-segment-choisi); color: var(--i-encre); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.liste-factures .panneau-tete { padding-bottom: 12px; align-items: center; }
.tableau { width: 100%; border-collapse: collapse; font-size: .875rem; }
/* Six colonnes dans l'app, cinq ici : la gouttière de l'app entre elles
   (Design.Espace.colonne, 14), 18 aux deux bords. */
.tableau th { text-align: left; font-weight: 600; font-size: .75rem; color: var(--i-texte-3); padding: 8px 7px; border-top: 1px solid var(--i-filet-rangee); }
.tableau td { padding: 12px 7px; border-top: 1px solid var(--i-filet-rangee); vertical-align: middle; }
.tableau :is(th, td):first-child { padding-left: 18px; }
.tableau :is(th, td):last-child { padding-right: 18px; }
.tableau .n { text-align: right; white-space: nowrap; }
/* Le numéro en gris secondaire, appuyé ; le client à l'encre (InvoiceRow) */
.tableau .num-doc { font-weight: 600; color: var(--i-texte-2); white-space: nowrap; }
.tableau .client { font-weight: 500; }
/* Une facture en retard : la rangée reste neutre (25 octobre 2026) ; seules la
   pastille « En retard » et l'échéance, rouge et appuyée, portent le rouge. */
.tableau .date { color: var(--i-texte-2); white-space: nowrap; }
.tableau .date-retard { color: var(--t-retard-texte); font-weight: 600; }
.tableau .reste { display: block; font-size: .75rem; font-weight: 500; color: var(--t-retard-texte); white-space: normal; }
.tableau td.total { font-weight: 600; }

/* Totaux de la fiche facture */
.fiche-tete { padding: 16px 18px 4px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.fiche-tete .pastilles { display: flex; gap: 6px; flex-wrap: wrap; }
.fiche-num { font: 600 1.625rem/1.1 var(--f-marque); margin-top: 10px; }
.fiche-etat { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .875rem; color: var(--t-payee-texte); font-weight: 500; }
.fiche-etat .ico { width: 16px; height: 16px; }
.fiche-reste { text-align: right; }
.fiche-reste .mention { display: block; }
.fiche-reste .chiffre { font-size: 1.75rem; }
.totaux { margin: 14px 18px 18px; border: 1px solid var(--i-filet); border-radius: var(--r-panneau); padding: 14px 18px; }
.totaux .h { font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.totaux div { display: flex; justify-content: space-between; padding: 5px 0; font-size: .9375rem; }
.totaux div span:last-child { font-weight: 600; }
.totaux .paye span:last-child { color: var(--t-payee-texte); }
.totaux .reste-a-payer { border-top: 1px solid var(--i-filet-rangee); margin-top: 6px; padding-top: 10px; align-items: baseline; }
.totaux .reste-a-payer span:last-child { font: 600 1.625rem/1 var(--f-marque); }

/* Relances */
.pile { display: grid; gap: 11px; }
.relance-file .rangee { align-items: flex-start; }
.relance-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: .8125rem; }
.relance-meta .retard { color: var(--t-retard-texte); display: inline-flex; gap: 4px; align-items: center; }
.relance-meta .prete { color: var(--t-info-texte); display: inline-flex; gap: 4px; align-items: center; }
.relance-meta .ico { width: 13px; height: 13px; }
.relance-droite { display: grid; justify-items: end; gap: 8px; }
.delai { font-size: .875rem; color: var(--i-texte-3); white-space: nowrap; }

/* ---------- Comptabilité ---------- */
.compta-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }

/* ---------- Ce qu'elle fait : les familles de la barre latérale ---------- */
.familles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.famille { padding: 10px 6px 12px; }
.famille-nom { display: flex; align-items: center; gap: 8px; padding: 10px 14px 8px; font-size: .8125rem; font-weight: 600; color: var(--i-texte-3); }
.famille li { display: flex; gap: 12px; padding: 9px 14px; border-radius: var(--r-champ); }
.famille li .ico { color: var(--i-accent); margin-top: 2px; }
.famille li b { display: block; font-weight: 500; font-size: .9375rem; line-height: 1.4; }
.famille li span { display: block; font-size: .8125rem; color: var(--i-texte-3); line-height: 1.4; margin-top: 1px; }

/* ---------- Achat ---------- */
.offre-tete { display: flex; align-items: center; gap: 14px; padding: 20px 22px 16px; border-bottom: 1px solid var(--i-filet-rangee); }
.offre-tete img { width: 44px; height: 44px; }
.offre-tete .h { font: 600 1.125rem/1.25 var(--f-marque); }
.offre-tete p { font-size: .875rem; color: var(--i-texte-2); }
.offre-liste { padding: 10px 8px; }
.coche { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--t-info-fond); color: var(--i-accent-texte); margin-top: 1px; }
.coche .ico { width: 14px; height: 14px; stroke-width: 2.5; }
.offre-liste li { display: flex; gap: 12px; padding: 10px 14px; }
.offre-liste li > div > b { display: block; font-weight: 500; font-size: .9375rem; }
.offre-liste li > div > span { display: block; font-size: .875rem; color: var(--i-texte-2); }
.offre-pied { padding: 12px 22px 16px; border-top: 1px solid var(--i-filet-rangee); font-size: .8125rem; color: var(--i-texte-3); }

/* ---------- Disponibilité ---------- */
.dispo { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.dispo-icone { width: 88px; height: 88px; }
.appareils .rangee { padding: 12px 18px; }
.appareils .rangee:first-of-type { border-top: 0; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--i-filet); background: var(--i-bloc); padding: 40px 0 32px; font-size: .875rem; color: var(--i-texte-2); }
.pied-haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--i-filet); }
.pied .marque { margin: 0; }
.pied .marque img { width: 24px; height: 24px; }
.pied .marque-nom { font-size: 1.0625rem; }
.pied-editeur { margin-top: 6px; color: var(--i-texte-3); font-size: .8125rem; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pied-liens a { color: var(--i-texte-2); }
.pied-liens a:hover { color: var(--i-encre); }
.langue { display: inline-flex; align-items: center; gap: 8px; }
.langue select { font: inherit; color: var(--i-encre); background: var(--i-carte); border: 1px solid var(--i-bordure-bouton); border-radius: var(--r-bouton); padding: 7px 10px; min-height: 38px; }
.pied-notes { display: grid; gap: 8px; padding-top: 20px; font-size: .8125rem; color: var(--i-texte-3); max-width: 72em; }
.langue a { color: var(--i-texte-2); }
.langue a:hover { color: var(--i-encre); }

/* ---------- Les tarifs : seulement quand config-site.php les publie ---------- */
.tarifs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.tarifs .note { padding: 12px 18px 16px; font-size: .8125rem; color: var(--i-texte-3); border-top: 1px solid var(--i-filet-rangee); }
.cinq-ans { width: 100%; border-collapse: collapse; font-size: .875rem; }
.cinq-ans th, .cinq-ans td { text-align: left; padding: 10px 18px; border-top: 1px solid var(--i-filet-rangee); font-weight: 400; color: var(--i-texte-2); }
.cinq-ans th { font-weight: 500; color: var(--i-encre); }
.cinq-ans .total { text-align: right; font-weight: 600; color: var(--i-encre); white-space: nowrap; }

/* ---------- Pages légales : un texte à lire, sur la même barre et le même pied ---------- */
.legal { padding: clamp(40px, 6vw, 72px) 0 var(--section); }
.legal-texte { max-width: 44em; }
.legal-retour { display: inline-block; margin-bottom: 18px; font-size: .9375rem; }
.legal-texte .titre-page { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.legal-blocs { margin-top: clamp(28px, 3.4vw, 40px); }
.legal-blocs h2 { font: 600 1.125rem/1.3 var(--f-corps); letter-spacing: -.01em; margin-top: 28px; }
.legal-blocs h2:first-child { margin-top: 0; }
.legal-blocs p { margin-top: 8px; color: var(--i-texte-2); text-wrap: pretty; }
.legal-blocs strong { color: var(--i-encre); font-weight: 600; }
.legal-blocs code { font: .875em/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--i-champ); border: 1px solid var(--i-filet); border-radius: var(--r-puce); padding: 1px 5px; color: var(--i-encre); }
/* La date de mise à jour, sous le titre ; les services un par un ; les
   questions de l'assistance ; les coordonnées, intitulé puis valeur. */
.legal-maj { margin-top: 10px; font-size: .875rem; color: var(--i-texte-3); }
.legal-chapeau { margin-top: 12px; font-size: 1.0625rem; color: var(--i-texte-2); max-width: 40em; text-wrap: pretty; }
.legal-blocs ul { margin-top: 10px; padding-left: 1.25em; list-style: disc; color: var(--i-texte-2); }
.legal-blocs li { margin-top: 8px; text-wrap: pretty; }
.legal-blocs li::marker { color: var(--i-texte-3); }
.legal-blocs h3 { font: 600 1rem/1.35 var(--f-corps); color: var(--i-encre); margin-top: 20px; }
.legal-coordonnees { margin-top: 10px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; color: var(--i-texte-2); }
.legal-coordonnees dt { color: var(--i-texte-3); }
.legal-coordonnees dd { color: var(--i-encre); }
@media (max-width: 640px) {
  .legal-coordonnees { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal-coordonnees dd + dt { margin-top: 8px; }
}

/* ---------- Mouvement : seulement le passage d'une pastille, jamais sous « Réduire les animations » ---------- */
@media (prefers-reduced-motion: no-preference) {
  .bouton, .barre-nav a { transition: background-color .18s ease-out, color .18s ease-out; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accueil-bas { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .ouverture-cadre { grid-template-columns: minmax(0, 1fr); }
  .scene-papier { max-width: 600px; width: 100%; margin: 0 auto; }
  .deux-colonnes, .reforme-grille, .etape, .compta-tete, .tarifs { grid-template-columns: minmax(0, 1fr); }
  .dispo { grid-template-columns: auto minmax(0, 1fr); }
  .dispo .appareils { grid-column: 1 / -1; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 640px) {
  :root { --gouttiere: 16px; }
  body { font-size: 1rem; }
  .barre-dedans { height: 56px; gap: 12px; }
  .ouverture { padding-top: 16px; }
  .rail-icone { width: 56px; height: 56px; }
  .scene-papier { padding: 20px 16px 24px; }
  .ouverture-actions { flex-direction: column; align-items: stretch; }
  .ouverture-actions .bouton { width: 100%; white-space: normal; text-align: center; line-height: 1.3; padding-block: 10px; }
  /* Les langues à mots longs (allemand, finnois, estonien) se coupent au trait d'union plutôt qu'au bord */
  .titre-page, .titre-section, .rangee-titre, .rangee-note { -webkit-hyphens: auto; hyphens: auto; }
  .familles { grid-template-columns: minmax(0, 1fr); }
  .tuiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tuile-marque { grid-column: 1 / -1; }
  .tuile { padding: 14px 14px 16px; }
  .tuile:not(.tuile-marque) .chiffre { font-size: 1.25rem; }
  .tableau .col-client { display: none; }
  .tuile-optionnelle { display: none; }
  .papier { aspect-ratio: auto; }
  .papier-pied { margin-top: 7cqw; }
  /* La liste des factures devient des rangées : numéro et client, pastille et
     échéance dessous, total à droite */
  .tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 6px; padding: 12px 14px; border-top: 1px solid var(--i-filet-rangee); }
  .tableau td, .tableau td:is(:first-child, :last-child) { padding: 0; border: 0; }
  .tableau td.num-doc { grid-column: 1 / span 2; grid-row: 1; }
  .tableau td:nth-child(4) { grid-column: 1; grid-row: 2; }
  .tableau td.col-echeance { grid-column: 2; grid-row: 2; align-self: center; font-size: .8125rem; }
  .tableau td.total { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .tableau .client-ligne { display: block; font-size: .8125rem; color: var(--i-texte-3); font-weight: 400; margin-top: 1px; }
  .tableau .client-ligne, .tableau td.total .reste { white-space: normal; }
  .tableau td.total { max-width: 9rem; }
  .relance-file .panneau-tete .mention { margin-left: 0; text-align: left; flex-basis: 100%; }
  .relance-file .rangee { flex-direction: column; align-items: stretch; }
  .relance-droite { grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .liste-factures .panneau-tete { flex-direction: column; align-items: flex-start; }
  .segmente { max-width: 100%; overflow: hidden; }
  .seg-optionnel { display: none; }
  .rangee { padding: 12px 14px; }
  .accueil-bas .rangee { flex-wrap: wrap; }
  .accueil-bas .bouton-app { display: none; }
  .dispo { grid-template-columns: minmax(0, 1fr); }
  .dispo-icone { width: 72px; height: 72px; }
  .pied-haut { flex-direction: column; }
}
@media (min-width: 641px) { .tableau .client-ligne { display: none; } }
