/*
 * GoodEleveurs — feuille de style du logiciel. 16.10.2026 (GELEV-01)
 * Identité propre au logiciel (pas celle de l'élevage) : vert sapin profond, crème, accent « résine » pour l'action.
 * Police auto-hébergée : Figtree (licence OFL), lisible au téléphone, zéros non barrés et chiffres tabulaires.
 * Téléphone d'abord ; navigation latérale à partir de 1024 px. Contrastes AA. prefers-reduced-motion respecté.
 */

@font-face { font-family: "Figtree"; src: url("fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --sapin-900: #0F2A1E;
  --sapin-800: #163828;
  --sapin-700: #1F4B36;
  --sapin-600: #2A5E45;
  --sapin-200: #C9DACE;
  --sapin-100: #E3ECE5;
  --sapin-50: #F0F5F1;
  --creme: #F5F1E6;
  --creme-2: #ECE5D3;
  --papier: #FFFDF8;
  --ligne: #E4DCC8;
  --ligne-2: #CFC5AC;
  --encre: #1B2620;
  --encre-2: #45524A;
  --encre-3: #5C6660;
  --resine: #E8A33D;
  --resine-fonce: #C98418;
  --resine-texte: #2B1B04;
  --resine-pale: #FBEBCF;
  --rouge: #A8231B;
  --rouge-pale: #FCECE9;
  --orange: #8F4700;
  --orange-pale: #FFF0DA;
  --bleu: #1E5585;
  --bleu-pale: #E7F0F8;
  --vert: #1F6A44;
  --vert-pale: #E1F1E7;
  --prune: #74386A;
  --prune-pale: #F4E8F1;
  --police: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 22px;
  --ombre: 0 1px 0 rgba(22, 56, 40, .04), 0 10px 28px -16px rgba(22, 56, 40, .28);
  --lateral: 272px;
  --nav-basse: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--encre); font: 400 1rem/1.5 var(--police); font-variant-numeric: lining-nums; overflow-x: hidden; }
img, svg, video { max-width: 100%; }
a { color: var(--sapin-700); text-underline-offset: .18em; }
a:hover { color: var(--sapin-900); }
h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--encre); }
h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.015em; }
h2 { font-size: 1.12rem; font-weight: 800; letter-spacing: -.005em; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .75em; }
:focus-visible { outline: 3px solid var(--resine); outline-offset: 2px; border-radius: 4px; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--sapin-800); color: #fff; padding: 10px 14px; border-radius: var(--r-m); }
.evitement:focus { top: 12px; }
.chiffre, td, .tab { font-variant-numeric: tabular-nums; }
.discret { color: var(--encre-3); font-size: .875rem; }

/* ------------------------------------------------------------ Coque, navigation */
.coque { min-height: 100vh; }
.principal { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; padding-bottom: calc(var(--nav-basse) + env(safe-area-inset-bottom)); }
.lateral { display: none; }
.barre { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: rgba(245, 241, 230, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ligne); }
.barre__marque { text-decoration: none; color: var(--sapin-800); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; color: var(--sapin-800); }
.logo__patte { width: 28px; height: 28px; fill: var(--sapin-700); }
.logo__texte b { font-weight: 800; }
.logo--clair { color: #F5F1E6; }
.logo--clair .logo__patte { fill: var(--resine); }
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sapin-700); color: #F5F1E6; font-weight: 800; font-size: .9rem; text-decoration: none; flex: none; }
.avatar--barre:hover { color: #fff; background: var(--sapin-600); }

.bandeau-demo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; padding: 7px 16px; background: var(--resine-pale); color: #4A3005; font-size: .84rem; border-bottom: 1px solid #F1D9AA; }
.bandeau-demo p { margin: 0; display: flex; gap: 8px; align-items: center; }
.bandeau-demo .ic { width: 16px; height: 16px; }
.bandeau-demo__form { margin: 0; }
.bandeau-demo .bouton-lien { color: #4A3005; font-weight: 700; }

.contenu { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 18px 16px 28px; }
.contenu:focus { outline: none; }
.pied { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; padding: 14px 16px 18px; font-size: .82rem; color: var(--encre-3); border-top: 1px solid var(--ligne); }
.mention-gw { color: var(--sapin-700); font-weight: 700; }

.nav-basse { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--papier); border-top: 1px solid var(--ligne); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px -14px rgba(22, 56, 40, .35); }
.nav-basse ul { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-basse li { flex: 1; min-width: 0; }
.nav-basse a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--nav-basse); color: var(--encre-2); text-decoration: none; font-size: .72rem; font-weight: 700; }
.nav-basse .ic { width: 24px; height: 24px; padding: 3px 14px; box-sizing: content-box; border-radius: 999px; transition: background-color .2s; }
.nav-basse a[aria-current="page"] { color: var(--sapin-800); }
.nav-basse a[aria-current="page"] .ic { background: var(--sapin-100); }

@media (min-width: 1024px) {
  .coque { display: grid; grid-template-columns: var(--lateral) minmax(0, 1fr); background: linear-gradient(90deg, var(--sapin-800) var(--lateral), var(--creme) var(--lateral)); }
  .lateral { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--sapin-800); color: #E6EEE8; padding: 20px 14px 14px; }
  .lateral__marque { text-decoration: none; padding: 0 10px; }
  .lateral__elevage { margin: 14px 10px 4px; padding: 10px 12px; border-radius: var(--r-m); background: rgba(255, 255, 255, .06); font-size: .88rem; line-height: 1.35; }
  .lateral__elevage strong { display: block; color: #fff; }
  .lateral__elevage span { color: #C3D2C7; }
  .lateral__groupe { margin: 14px 12px 4px; font-size: .78rem; font-weight: 700; color: #A9BDAF; }
  .lateral__nav ul { list-style: none; margin: 0; padding: 0; }
  .lateral__nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-radius: 10px; color: #E6EEE8; text-decoration: none; font-weight: 600; font-size: .95rem; }
  .lateral__nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
  .lateral__nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
  .lateral__nav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--resine); }
  .lateral__nav .ic { color: #BFD0C4; }
  .lateral__nav a[aria-current="page"] .ic { color: var(--resine); }
  .compteur { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--resine); color: var(--resine-texte); font-size: .78rem; display: inline-grid; place-items: center; }
  .lateral__pied { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .utilisateur { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: #fff; text-decoration: none; }
  .utilisateur:hover, .utilisateur[aria-current="page"] { background: rgba(255, 255, 255, .08); color: #fff; }
  .utilisateur .avatar { background: var(--resine); color: var(--resine-texte); }
  .utilisateur small { display: block; color: #B9CBBE; font-size: .8rem; }
  .lateral__sortie { margin: 4px 0 0; }
  .lateral__sortie .bouton-lien { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: #D6E2D9; text-decoration: none; font-weight: 700; font-size: .9rem; }
  .lateral__sortie .bouton-lien:hover { color: #fff; }
  .principal { padding-bottom: 0; }
  .barre, .nav-basse { display: none; }
  .contenu { padding: 26px 36px 40px; }
  .bandeau-demo { padding: 8px 36px; }
  .pied { padding: 16px 36px 20px; }
  h1 { font-size: 2rem; }
}

/* ------------------------------------------------------------ En-tête de page */
.entete { margin-bottom: 18px; }
.entete__retour { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; color: var(--encre-2); font-weight: 700; font-size: .9rem; text-decoration: none; }
.entete__retour .ic { width: 18px; height: 18px; }
.entete__retour:hover { color: var(--sapin-800); }
.entete__ligne { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.entete__titres { min-width: 0; }
.entete__surtitre { margin: 0 0 4px; color: var(--encre-2); font-weight: 700; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.entete__sous { margin: 6px 0 0; color: var(--encre-2); }
.entete__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------ Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 16px; border-radius: var(--r-m); border: 1.5px solid transparent; font: 700 .95rem/1.2 var(--police); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .1s; }
.bouton:active { transform: translateY(1px); }
.bouton .ic { width: 18px; height: 18px; }
.bouton--action { background: var(--resine); color: var(--resine-texte); }
.bouton--action:hover { background: var(--resine-fonce); color: var(--resine-texte); }
.bouton--sapin { background: var(--sapin-800); color: #F5F1E6; }
.bouton--sapin:hover { background: var(--sapin-700); color: #fff; }
.bouton--clair { background: var(--papier); border-color: var(--ligne-2); color: var(--encre); }
.bouton--clair:hover { border-color: var(--sapin-600); color: var(--sapin-800); }
.bouton--danger { background: var(--rouge-pale); border-color: #EFC3BD; color: var(--rouge); }
.bouton--danger:hover { border-color: var(--rouge); color: var(--rouge); }
.bouton--petit { min-height: 36px; padding: 6px 12px; font-size: .875rem; border-radius: 10px; }
.bouton--icone { min-height: 40px; width: 40px; padding: 0; }
.bouton--large { width: 100%; }
.bouton[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.bouton.est-bloque { border-style: dashed; color: var(--encre-2); cursor: not-allowed; transform: none; }
.bouton-lien { background: none; border: 0; padding: 0; font: inherit; color: var(--sapin-700); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }

/* ------------------------------------------------------------ Panneaux, grilles */
.panneau { background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--r-l); padding: 16px; min-width: 0; }
.panneau + .panneau { margin-top: 14px; }
.panneau__tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-bottom: 12px; }
.panneau__tete h2 { min-width: 0; flex: 1 1 auto; }
.panneau__tete h2 .ic { color: var(--sapin-600); margin-right: 8px; vertical-align: -3px; }
.panneau__tete a { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.panneau__note { color: var(--encre-2); font-size: .9rem; }
.colonnes { display: grid; gap: 14px; }
.colonnes > .panneau + .panneau { margin-top: 0; }
@media (min-width: 760px) {
  .panneau { padding: 20px 22px; }
  .colonnes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colonnes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pile > * + * { margin-top: 14px; }

/* ------------------------------------------------------------ Puces de statut et pastilles */
.puce { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1.35; white-space: nowrap; background: var(--creme-2); color: var(--encre-2); }
.puce .ic { width: 14px; height: 14px; }
.puce--disponible { background: var(--vert-pale); color: var(--vert); }
.puce--option { background: var(--resine-pale); color: #7A4500; }
.puce--reserve { background: var(--bleu-pale); color: var(--bleu); }
.puce--vendu { background: var(--prune-pale); color: var(--prune); }
.puce--garde { background: var(--sapin-100); color: var(--sapin-700); }
.puce--verifie { background: var(--vert-pale); color: var(--vert); }
.puce--declare { background: var(--creme-2); color: var(--encre-2); }
.puce--rouge { background: var(--rouge-pale); color: var(--rouge); }
.puce--orange { background: var(--orange-pale); color: var(--orange); }
.puce--bleu { background: var(--bleu-pale); color: var(--bleu); }
.puce--vert { background: var(--vert-pale); color: var(--vert); }
.puce--sombre { background: rgba(255, 255, 255, .14); color: #fff; }

/* ------------------------------------------------------------ Messages flash et alertes */
.message { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--r-m); border: 1px solid; }
.message p { margin: 0; font-weight: 700; }
.message ul { margin: 6px 0 0; padding-left: 18px; font-weight: 400; }
.message .ic { margin-top: 1px; }
.message--ok { background: var(--vert-pale); border-color: #B9DCC6; color: #154B30; }
.message--erreur { background: var(--rouge-pale); border-color: #EFC3BD; color: #7D1913; }
.message--alerte { background: var(--orange-pale); border-color: #F2D3A6; color: #6E3700; }
.message--info { background: var(--bleu-pale); border-color: #C6DAEC; color: #17436A; }

.alertes { display: grid; gap: 8px; }
.alerte { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 11px 12px 11px 12px; border-radius: var(--r-m); border-left: 4px solid; text-decoration: none; color: var(--encre); background: var(--papier); }
.alerte strong { display: block; font-size: .95rem; }
.alerte > span > span { display: block; font-size: .875rem; color: var(--encre-2); margin-top: 2px; }
a.alerte:hover { color: var(--encre); filter: brightness(.985); }
.alerte .ic { margin-top: 1px; }
.alerte__fleche { color: var(--encre-3); align-self: center; }
.alerte--rouge { background: var(--rouge-pale); border-color: var(--rouge); }
.alerte--rouge > .ic:first-child { color: var(--rouge); }
.alerte--orange { background: var(--orange-pale); border-color: #D97C14; }
.alerte--orange > .ic:first-child { color: var(--orange); }
.alerte--bleu { background: var(--bleu-pale); border-color: #4C86BA; }
.alerte--bleu > .ic:first-child { color: var(--bleu); }
.alerte--vert { background: var(--vert-pale); border-color: #3E9A68; }
.alerte--vert > .ic:first-child { color: var(--vert); }

/* ------------------------------------------------------------ Tableau de bord */
.bonjour { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.bonjour h1 { font-size: 1.7rem; }
.bonjour p { margin: 0; color: var(--encre-2); font-weight: 700; }
.chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.chiffre-tuile { background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--r-l); padding: 12px 14px; text-decoration: none; color: var(--encre); }
.chiffre-tuile b { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: var(--sapin-800); font-variant-numeric: tabular-nums; }
.chiffre-tuile span { font-size: .84rem; color: var(--encre-2); font-weight: 700; }
a.chiffre-tuile:hover { border-color: var(--sapin-200); color: var(--encre); }
@media (min-width: 760px) { .chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tableau-bord { display: flex; flex-direction: column; gap: 14px; }
.tableau-bord > *, .tb-col > * { min-width: 0; }
.tableau-bord .panneau + .panneau { margin-top: 0; }
.tb-col { display: contents; }
.tb-duo { display: grid; gap: 14px; align-items: start; }
.tb-gestation { order: 1; } .tb-frise { order: 2; } .tb-echeances { order: 3; } .tb-soins { order: 4; }
.tb-chaleurs { order: 5; } .tb-duo { order: 6; } .tb-demandes { order: 7; } .tb-activite { order: 8; }
@media (min-width: 760px) { .tb-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .tableau-bord { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .tb-col { display: grid; gap: 14px; align-content: start; }
  .tableau-bord > *, .tb-col > * { order: 0; }
  .tb-gestation { grid-column: span 5; }
  .tb-frise { grid-column: span 7; }
  .tb-col--g { grid-column: span 7; }
  .tb-col--d { grid-column: span 5; }
  .tableau-bord--simple > * { grid-column: span 6; }
}

.carte-gestation { position: relative; overflow: hidden; background: var(--sapin-800); color: #EEF3EF; border-radius: var(--r-xl); padding: 20px; }
.carte-gestation::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 163, 61, .16), transparent 70%); pointer-events: none; }
.carte-gestation__haut { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; }
.carte-gestation__haut p { margin: 0; font-weight: 700; color: #C7D7CB; font-size: .9rem; }
.carte-gestation__corps { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.carte-gestation h2 { color: #fff; font-size: 1.35rem; }
.carte-gestation ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; color: #DCE6DE; }
.carte-gestation li { display: flex; gap: 8px; align-items: flex-start; }
.carte-gestation li .ic { width: 18px; height: 18px; color: var(--resine); margin-top: 1px; }
.carte-gestation .bouton { margin-top: 16px; position: relative; z-index: 1; }
.jauge { position: relative; width: 116px; height: 116px; flex: none; }
.jauge svg { width: 100%; height: 100%; display: block; }
.jauge circle { fill: none; stroke-width: 11; }
.jauge__fond { stroke: rgba(255, 255, 255, .13); }
.jauge__arc { stroke: var(--resine); stroke-linecap: round; animation: jauge 1.3s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes jauge { from { stroke-dashoffset: var(--longueur); } }
.jauge__centre { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.jauge__centre b { font-size: 2.3rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.jauge__centre span { font-size: .8rem; color: #C7D7CB; font-weight: 700; margin-top: 3px; }
@media (min-width: 420px) { .jauge { width: 132px; height: 132px; } .jauge__centre b { font-size: 2.6rem; } }

/* ------------------------------------------------------------ Frise de portée */
.frise { --hauteur: 10px; }
.frise__piste { position: relative; height: var(--hauteur); margin: 34px 8px 6px; border-radius: 999px; background: var(--creme-2); }
.frise__rempli { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--sapin-600), var(--sapin-800)); transform-origin: left; animation: remplir 1.1s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes remplir { from { transform: scaleX(0); } }
.frise__jalon { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--papier); border: 2.5px solid var(--ligne-2); }
.frise__jalon.est-fait { background: var(--sapin-700); border-color: var(--papier); }
.frise__jalon--depart { width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 4px; transform: rotate(45deg); border-color: var(--resine-fonce); background: var(--resine); }
.frise__repere { position: absolute; top: -30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.frise__repere span { padding: 2px 8px; border-radius: 8px; background: var(--resine); color: var(--resine-texte); font-weight: 800; font-size: .78rem; }
.frise__repere::after { content: ""; width: 2px; height: 14px; background: var(--resine-fonce); }
.frise__semaines { position: relative; list-style: none; height: 18px; margin: 4px 8px 10px; padding: 0; }
.frise__semaines li { position: absolute; transform: translateX(-50%); font-size: .72rem; color: var(--encre-3); font-weight: 700; }
.frise__legende { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; font-size: .9rem; }
.frise__legende li { display: flex; gap: 8px; align-items: flex-start; color: var(--encre-2); }
.frise__legende li .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--sapin-600); }
.frise__legende strong { color: var(--encre); }
.frise__legende em { font-style: normal; color: var(--encre-3); }
.frise__legende .est-fait .ic { color: var(--vert); }
.frise__legende .est-depart .ic { color: var(--resine-fonce); }
.frise__regle { margin: 10px 0 0; font-size: .84rem; color: var(--encre-3); }
.frise-titre { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: space-between; }
.frise-titre h3 { font-size: 1.02rem; }
.frise-titre span { color: var(--encre-2); font-size: .9rem; }
.frise-bloc + .frise-bloc { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ligne); }

/* ------------------------------------------------------------ Listes compactes */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ligne); }
.liste > li:first-child { border-top: 0; padding-top: 2px; }
.liste__icone { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--sapin-50); color: var(--sapin-700); }
.liste__icone--retard { background: var(--rouge-pale); color: var(--rouge); }
.liste__icone--jour { background: var(--resine-pale); color: #7A4500; }
.liste__corps { flex: 1; min-width: 0; }
.liste__corps strong { display: block; font-size: .95rem; }
.liste__corps span, .liste__corps p { display: block; font-size: .86rem; color: var(--encre-2); margin: 0; }
.liste__corps a { text-decoration-thickness: 1px; text-decoration-color: rgba(31, 75, 54, .5); }
.liste__corps a:hover { text-decoration-color: currentColor; }
.liste__droite { flex: none; text-align: right; font-size: .85rem; color: var(--encre-2); }
.liste__droite form { margin: 0; }
.date-pastille { flex: none; width: 46px; text-align: center; border-radius: 10px; background: var(--creme); border: 1px solid var(--ligne); padding: 4px 0; line-height: 1.1; }
.date-pastille b { display: block; font-size: 1.05rem; font-weight: 800; }
.date-pastille span { font-size: .7rem; color: var(--encre-2); font-weight: 700; }
.groupe-titre { margin: 16px 0 4px; font-size: .9rem; font-weight: 800; color: var(--encre-2); display: flex; align-items: center; gap: 8px; }
.groupe-titre:first-child { margin-top: 0; }

/* ------------------------------------------------------------ Cartes d'animaux */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filtre { min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--ligne-2); background: var(--papier); color: var(--encre); font: 700 .9rem var(--police); cursor: pointer; }
.filtre[aria-pressed="true"] { background: var(--sapin-800); border-color: var(--sapin-800); color: #fff; }
.grille-animaux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grille-animaux { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; } }
.carte-animal { display: flex; flex-direction: column; background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--r-l); overflow: hidden; text-decoration: none; color: var(--encre); transition: border-color .15s, box-shadow .15s; }
.carte-animal:hover { color: var(--encre); border-color: var(--sapin-200); box-shadow: var(--ombre); }
.carte-animal__visuel { position: relative; display: block; }
.carte-animal__puce { position: absolute; left: 8px; top: 8px; }
.carte-animal__texte { padding: 10px 12px 12px; display: grid; gap: 2px; }
.carte-animal__texte strong { font-size: 1.05rem; font-weight: 800; }
.carte-animal__texte > span { font-size: .85rem; color: var(--encre-2); }
.carte-animal__l2 { font-size: .8rem; color: var(--encre-3); }
.carte-animal.est-cache { display: none; }
.ge-visuel { border-radius: 0; }

/* ------------------------------------------------------------ Fiches */
.fiche { display: grid; gap: 16px; }
.fiche > * { min-width: 0; }
@media (min-width: 960px) {
  .fiche { grid-template-columns: 320px minmax(0, 1fr); align-items: start; gap: 22px; }
  .fiche__cote { position: sticky; top: 20px; }
}
@media (max-width: 959px) { .fiche--vente .fiche__visuel { display: none; } .fiche--vente .fiche__cote .panneau { margin-top: 0; } }
.fiche__visuel { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--ligne); background: var(--papier); }
.fiche__visuel .ge-video { border-top: 1px solid var(--ligne); }
.fiche__cote .panneau { margin-top: 14px; }
.infos { margin: 0; display: grid; gap: 0; }
.infos > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--ligne); }
.infos > div:first-child { border-top: 0; }
.infos dt { color: var(--encre-2); font-size: .88rem; font-weight: 700; }
.infos dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.statuts { display: flex; flex-wrap: wrap; gap: 8px; }
.statuts form { margin: 0; }
.statut-bouton { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--ligne-2); background: var(--papier); font: 700 .9rem var(--police); color: var(--encre); cursor: pointer; }
.statut-bouton:hover { border-color: var(--sapin-600); }
.statut-bouton[aria-pressed="true"] { cursor: default; background: var(--sapin-800); border-color: var(--sapin-800); color: #fff; }
.statut-bouton[aria-pressed="true"].puce--disponible { background: var(--vert); border-color: var(--vert); color: #fff; }
.statut-bouton[aria-pressed="true"].puce--option { background: var(--resine); border-color: var(--resine-fonce); color: var(--resine-texte); }
.statut-bouton[aria-pressed="true"].puce--reserve { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.statut-bouton[aria-pressed="true"].puce--vendu { background: var(--prune); border-color: var(--prune); color: #fff; }
.statut-bouton[aria-pressed="true"].puce--garde { background: var(--sapin-700); border-color: var(--sapin-700); color: #fff; }

/* ------------------------------------------------------------ Courbe de poids */
.courbe { color: var(--encre-2); }
.courbe__large { display: none; }
@media (min-width: 700px) { .courbe__large { display: block; } .courbe__etroite { display: none; } }
.courbe .ge-trace:not(.ge-trace--ref) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.5s cubic-bezier(.3, .7, .2, 1) forwards; }
.courbe .ge-trace--ref { animation: apparaitre .8s .6s both; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes apparaitre { from { opacity: 0; } }
.legende { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 10px 0 0; font-size: .86rem; }
.legende li { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.legende i.pointille { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; height: 2px; }

/* ------------------------------------------------------------ Formulaires */
.formulaire { display: grid; gap: 14px; align-content: start; }
.formulaire--ligne { grid-template-columns: 1fr auto; align-items: end; }
.formulaire--echange { margin-bottom: 16px; }
@media (min-width: 640px) { .formulaire--echange { grid-template-columns: minmax(0, 160px) 1fr auto; align-items: end; } }
.grille-champs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.champ { display: grid; gap: 6px; min-width: 0; }
.champ label { font-weight: 700; font-size: .92rem; }
.champ__opt { font-weight: 400; color: var(--encre-3); }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--ligne-2); border-radius: 10px; background: #fff; color: var(--encre); font: 400 1rem var(--police); }
.champ textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--sapin-600); box-shadow: 0 0 0 3px rgba(232, 163, 61, .4); }
.champ__aide { margin: 0; font-size: .82rem; color: var(--encre-3); }
.champ--case { grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; }
.champ--case input { width: 22px; height: 22px; min-height: 0; accent-color: var(--sapin-700); }
.champ--case .champ__aide { grid-column: 2; }
.champ.est-erreur input, .champ.est-erreur select { border-color: var(--rouge); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 800; padding: 0; margin-bottom: 8px; }
.sous-formulaire { border-top: 1px dashed var(--ligne-2); padding-top: 14px; }
.details-form summary { cursor: pointer; font-weight: 700; color: var(--sapin-700); list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.details-form summary::-webkit-details-marker { display: none; }
.details-form[open] summary { margin-bottom: 10px; }

/* Saisie rapide des pesées */
.pesee-ligne { display: grid; grid-template-columns: 56px 1fr minmax(110px, 140px); gap: 10px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--ligne); }
.pesee-ligne:first-of-type { border-top: 0; }
.pesee-ligne .ge-visuel, .pesee-ligne .mini-visuel { width: 56px; border-radius: 12px; overflow: hidden; }
.pesee-ligne strong { display: block; }
.pesee-ligne small { display: block; color: var(--encre-2); font-size: .84rem; }
.pesee-champ { position: relative; }
.pesee-champ input { width: 100%; min-height: 48px; padding: 10px 30px 10px 12px; border: 1.5px solid var(--ligne-2); border-radius: 10px; font: 700 1.1rem var(--police); text-align: right; background: #fff; }
.pesee-champ input:focus { outline: none; border-color: var(--sapin-600); box-shadow: 0 0 0 3px rgba(232, 163, 61, .4); }
.pesee-champ input::-webkit-inner-spin-button, .pesee-champ input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pesee-champ input { -moz-appearance: textfield; appearance: textfield; }
.pesee-champ::after { content: "g"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--encre-3); font-weight: 700; }
.pesee-ecart { grid-column: 2 / -1; font-size: .82rem; font-weight: 700; color: var(--vert); min-height: 1em; margin-top: -4px; text-align: right; }
.pesee-ecart.est-baisse { color: var(--rouge); }

/* ------------------------------------------------------------ Tableaux */
.tableau-conteneur { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tableau th { text-align: left; font-size: .8rem; font-weight: 700; color: var(--encre-2); padding: 8px 10px; border-bottom: 1.5px solid var(--ligne-2); vertical-align: bottom; }
.tableau td { padding: 10px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau tr:last-child td { border-bottom: 0; }
@media (max-width: 759px) {
  .tableau--empile thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau--empile, .tableau--empile tbody, .tableau--empile tr, .tableau--empile td { display: block; width: 100%; }
  .tableau--empile tr { padding: 10px 0; border-bottom: 1px solid var(--ligne); }
  .tableau--empile td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 42% 1fr; gap: 8px; }
  .tableau--empile td::before { content: attr(data-label); font-weight: 700; color: var(--encre-2); font-size: .82rem; }
  .tableau--empile td[data-label=""]::before { content: none; }
}

/* ------------------------------------------------------------ Liste d'attente */
.attente-ligne { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--ligne); }
.attente-ligne:first-child { border-top: 0; }
.rang { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sapin-800); color: #fff; font-weight: 800; }
.attente-ligne__corps strong { font-size: 1rem; }
.attente-ligne__corps p { margin: 2px 0 0; color: var(--encre-2); font-size: .88rem; }
.attente-ligne__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.attente-ligne__actions form { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.attente-ligne__actions select { min-height: 36px; border: 1.5px solid var(--ligne-2); border-radius: 10px; padding: 4px 8px; font: 400 .9rem var(--police); background: #fff; max-width: 100%; }

/* ------------------------------------------------------------ Étapes de vente (kit de cession) */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.etape { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 0 0 18px; }
.etape::before { content: ""; position: absolute; left: 18px; top: 38px; bottom: 0; width: 2px; background: var(--ligne); }
.etape:last-child::before { display: none; }
.etape__pastille { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--creme-2); color: var(--encre-2); border: 2px solid var(--papier); z-index: 1; }
.etape--fait .etape__pastille { background: var(--sapin-700); color: #fff; }
.etape--encours .etape__pastille { background: var(--resine); color: var(--resine-texte); }
.etape--bloque .etape__pastille { background: var(--rouge-pale); color: var(--rouge); }
.etape__corps { min-width: 0; padding-top: 6px; }
.etape__corps h3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.etape__corps > p { margin: 4px 0 0; color: var(--encre-2); font-size: .92rem; }
.etape__corps form { margin-top: 10px; }
.blocage { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-m); background: var(--rouge-pale); border: 1px solid #EFC3BD; color: #6F1712; }
.blocage strong { display: flex; gap: 8px; align-items: center; }
.blocage ul { margin: 6px 0 0; padding-left: 20px; }
.blocage__date { margin: 8px 0 0; font-weight: 800; }

.documents { display: grid; gap: 10px; }
@media (min-width: 640px) { .documents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.document-carte { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--ligne); border-radius: var(--r-m); background: var(--papier); text-decoration: none; color: var(--encre); }
.document-carte:hover { border-color: var(--sapin-200); color: var(--encre); }
.document-carte .ic { width: 26px; height: 26px; color: var(--sapin-600); }
.document-carte strong { display: block; }
.document-carte span { display: block; font-size: .84rem; color: var(--encre-2); }
.empreinte { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .78rem; overflow-wrap: anywhere; color: var(--encre-2); }

/* ------------------------------------------------------------ Mentions d'annonce */
.mentions { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mentions li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; font-size: .92rem; }
.mentions li .ic { width: 20px; height: 20px; }
.mentions .est-ok .ic { color: var(--vert); }
.mentions .est-manquant .ic { color: var(--rouge); }
.mentions .est-manquant strong { color: var(--rouge); }
.mentions small { display: block; color: var(--encre-2); }
.apercu-annonce { border: 1px dashed var(--ligne-2); border-radius: var(--r-m); padding: 14px; background: var(--creme); }
.apercu-annonce h3 { font-size: 1.05rem; }
.badge-verifie { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--vert-pale); color: var(--vert); font-weight: 800; font-size: .85rem; }
.badge-verifie .ic { width: 16px; height: 16px; }

/* ------------------------------------------------------------ Familles, échanges */
.recherche { position: relative; margin-bottom: 12px; }
.recherche input { width: 100%; min-height: 46px; padding: 10px 12px 10px 40px; border: 1.5px solid var(--ligne-2); border-radius: 12px; font: 400 1rem var(--police); background: #fff; }
.recherche .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--encre-3); }
.carte-famille { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--r-m); text-decoration: none; color: var(--encre); }
.carte-famille + .carte-famille { margin-top: 8px; }
.carte-famille:hover { border-color: var(--sapin-200); color: var(--encre); }
.carte-famille strong { display: block; }
.carte-famille span.sous { display: block; font-size: .85rem; color: var(--encre-2); }
.carte-famille.est-cache { display: none; }
.monogramme { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--sapin-100); color: var(--sapin-800); font-weight: 800; }
.chrono { list-style: none; margin: 0; padding: 0 0 0 4px; }
.chrono li { position: relative; padding: 0 0 14px 22px; }
.chrono li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--sapin-600); }
.chrono li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 2px; background: var(--ligne); }
.chrono li:last-child::after { display: none; }
.chrono small { display: block; color: var(--encre-3); font-size: .8rem; font-weight: 700; }

/* ------------------------------------------------------------ Avis, nouvelles */
.avis { padding: 14px 0; border-top: 1px solid var(--ligne); }
.avis:first-child { border-top: 0; padding-top: 0; }
.etoiles { display: inline-flex; gap: 2px; vertical-align: middle; }
.etoiles .ic { width: 17px; height: 17px; }
.etoile--pleine { color: var(--resine-fonce); fill: var(--resine); }
.etoile--vide { color: var(--ligne-2); }
.reponse { margin: 10px 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--sapin-200); background: var(--sapin-50); border-radius: 0 10px 10px 0; font-size: .92rem; }
.lien-secret { display: flex; gap: 8px; align-items: stretch; }
.lien-secret input { flex: 1; min-width: 0; min-height: 40px; padding: 6px 10px; border: 1.5px solid var(--ligne-2); border-radius: 10px; font: 400 .82rem ui-monospace, Menlo, Consolas, monospace; background: var(--creme); color: var(--encre-2); }

/* ------------------------------------------------------------ Généalogie */
.arbre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: .84rem; }
.arbre__col { display: grid; gap: 8px; align-content: center; }
.arbre__case { padding: 8px 10px; border-radius: 10px; background: var(--creme); border: 1px solid var(--ligne); line-height: 1.3; min-height: 44px; overflow-wrap: anywhere; }
.arbre__case small { display: block; color: var(--encre-3); font-size: .74rem; font-weight: 700; }
.arbre__case--m { border-left: 3px solid #B95A86; }
.arbre__case--p { border-left: 3px solid #3F74A6; }
@media (max-width: 640px) {
  .arbre { grid-template-columns: 1fr !important; }
  .arbre__col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------ Divers */
.vide { text-align: center; padding: 34px 18px; border: 1.5px dashed var(--ligne-2); border-radius: var(--r-l); color: var(--encre-2); }
.vide h2 { margin-bottom: 6px; }
.vide--erreur { max-width: 560px; margin: 24px auto; background: var(--papier); }
.vide__code { font-size: 3rem; font-weight: 800; color: var(--sapin-600); margin: 0; line-height: 1; }
.encadre-demo { padding: 12px 14px; border-radius: var(--r-m); background: var(--resine-pale); color: #4A3005; font-size: .9rem; border: 1px solid #F1D9AA; }
.encadre-demo strong { color: #3A2503; }
.menu-tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.menu-tuiles a { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-l); border: 1px solid var(--ligne); background: var(--papier); color: var(--encre); text-decoration: none; font-weight: 700; min-height: 92px; }
.menu-tuiles a .ic { width: 26px; height: 26px; color: var(--sapin-600); }
.menu-tuiles a:hover { border-color: var(--sapin-200); }
.compteur-inline { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--resine); color: var(--resine-texte); font-size: .78rem; font-weight: 800; }
.matrice td, .matrice th { text-align: center; }
.matrice td:first-child, .matrice th:first-child { text-align: left; }
.oui { color: var(--vert); font-weight: 800; }
.non { color: var(--encre-3); }
.copie-ok { color: var(--vert); font-weight: 700; font-size: .85rem; }

/* ------------------------------------------------------------ Connexion */
.ge--simple { background: var(--creme); }
.simple { min-height: 100vh; }
.connexion { min-height: 100vh; display: grid; }
.connexion__marque { background: var(--sapin-800); color: #E9F0EA; padding: 22px 20px 26px; position: relative; overflow: hidden; }
.connexion__marque::after { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; border: 44px solid rgba(232, 163, 61, .1); pointer-events: none; }
.connexion__marque h1 { color: #fff; font-size: 1.55rem; margin: 22px 0 8px; max-width: 22ch; }
.connexion__marque p { color: #C9D8CD; max-width: 46ch; margin: 0; }
.connexion__atouts { display: none; }
.connexion__corps { padding: 22px 16px 30px; display: grid; align-content: start; gap: 18px; max-width: 520px; width: 100%; margin: 0 auto; }
.connexion__corps h2 { font-size: 1.3rem; }
.connexion__elevage { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-m); background: var(--papier); border: 1px solid var(--ligne); }
.connexion__elevage strong { display: block; }
.connexion__elevage span { font-size: .86rem; color: var(--encre-2); }
.profils { display: grid; gap: 8px; }
.profil { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; width: 100%; padding: 10px 12px; border-radius: var(--r-m); border: 1.5px solid var(--ligne); background: var(--papier); text-align: left; font: inherit; color: var(--encre); cursor: pointer; }
.profil:hover, .profil.est-choisi { border-color: var(--sapin-600); }
.profil.est-choisi { box-shadow: 0 0 0 3px rgba(232, 163, 61, .35); }
.profil strong { display: block; }
.profil small { display: block; color: var(--encre-2); font-size: .82rem; overflow-wrap: anywhere; }
.profil .role { display: inline-block; margin-left: 4px; font-size: .74rem; font-weight: 800; color: var(--sapin-700); background: var(--sapin-100); padding: 1px 8px; border-radius: 999px; vertical-align: 1px; }
.connexion__pied { text-align: center; font-size: .86rem; color: var(--encre-3); }
@media (min-width: 960px) {
  .connexion { grid-template-columns: minmax(380px, 46%) 1fr; }
  .connexion__marque { padding: 44px 48px; display: flex; flex-direction: column; }
  .connexion__marque h1 { font-size: 2.3rem; margin-top: 64px; }
  .connexion__atouts { display: grid; gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; }
  .connexion__atouts li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; color: #DCE6DE; }
  .connexion__atouts .ic { width: 22px; height: 22px; color: var(--resine); margin-top: 2px; }
  .connexion__atouts strong { color: #fff; display: block; }
  .connexion__corps { align-content: center; padding: 48px 32px; }
}

/* ------------------------------------------------------------ Page paiement simulé */
.paiement { max-width: 460px; margin: 0 auto; padding: 28px 16px; display: grid; gap: 16px; }
.paiement__carte { background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--ombre); }
.paiement__montant { font-size: 2.2rem; font-weight: 800; color: var(--sapin-800); margin: 6px 0 2px; }

/* ------------------------------------------------------------ Registres (vue d'écran) */
.registre-entete { display: grid; gap: 4px; margin-bottom: 14px; font-size: .92rem; color: var(--encre-2); }

/* ------------------------------------------------------------ Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .courbe .ge-trace:not(.ge-trace--ref) { stroke-dashoffset: 0; animation: none; }
  .jauge__arc, .frise__rempli { animation: none; }
}

/* ------------------------------------------------------------ Impression (registres) */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; font-size: 10.5pt; }
  .lateral, .barre, .nav-basse, .bandeau-demo, .pied, .non-imprime, .entete__actions, .entete__retour { display: none !important; }
  .principal { padding: 0; }
  .contenu { padding: 0; max-width: none; }
  .panneau { border: 0; padding: 0; }
  .tableau { font-size: 9pt; }
  .tableau--empile thead { position: static; width: auto; height: auto; clip: auto; }
  a { color: inherit; text-decoration: none; }
}
