@page { margin: 0 0 3.4cm 0; }
/* Facture Sanrival : charte 2026 (crème, bande brune, ruban des gestes, mot surligné rouge, Bricolage Grotesque + Figtree). */
<?php $sr_fonts = str_replace( '\\', '/', __DIR__ ) . '/fonts/'; ?>
@font-face { font-family: 'Bricolage'; font-weight: normal; src: url('<?php echo $sr_fonts; ?>bricolage-extrabold.ttf') format('truetype'); }
@font-face { font-family: 'Figtree'; font-weight: normal; src: url('<?php echo $sr_fonts; ?>figtree-regular.ttf') format('truetype'); }
@font-face { font-family: 'Figtree'; font-weight: bold; src: url('<?php echo $sr_fonts; ?>figtree-bold.ttf') format('truetype'); }
@font-face { font-family: 'FigtreeSemi'; font-weight: normal; src: url('<?php echo $sr_fonts; ?>figtree-semibold.ttf') format('truetype'); }


html, body {
	margin: 0;
	padding: 0;
	background: #fdf6ea;
}

body {
	color: #2a1a12;
	font-family: 'Figtree', sans-serif;
	font-size: 9pt;
	line-height: 1.4;
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0; text-align: left; vertical-align: top; font-weight: normal; }
p, h1 { margin: 0; }

/* Bande brune et ruban */
.bande { background: #211512; color: #fdf6ea; padding: 1.1cm 1.6cm 0.9cm; }
.bande .sur { font-size: 8.5pt; color: #e9dcc4; margin-bottom: 6pt; }
h1 { font-family: 'Bricolage', sans-serif; font-weight: normal; font-size: 36pt; line-height: 1.05; letter-spacing: -1.2pt; color: #fdf6ea; }
.mot { background: #b21c2d; color: #fdf6ea; padding: 0 5pt 2pt; border-radius: 5pt; }
.bande .ref { width: 34%; text-align: right; padding-top: 4pt; }
.bande .etiquette { color: #e9dcc4; }
.bande .valeur { font-family: 'FigtreeSemi', sans-serif; font-size: 10.5pt; color: #fdf6ea; margin-bottom: 6pt; }
.ruban td { height: 5pt; }
.ruban .semer { width: 30%; background: #b7d34a; }
.ruban .arroser { width: 18%; background: #8cc5e8; }
.ruban .attendre { width: 18%; background: #f0c96a; }
.ruban .recolter { width: 34%; background: #b21c2d; }

.page { padding: 0.8cm 1.6cm 0; }

.etiquette { color: #b21c2d; font-family: 'FigtreeSemi', sans-serif; font-size: 8.5pt; margin-bottom: 4pt; }
.espace { margin-top: 9pt; }
.fort { font-family: 'Figtree', sans-serif; font-weight: bold; margin-top: 6pt; }
.discret { color: #6b4a38; font-size: 8pt; }

/* Vendeur et client */
.parties .vendeur { width: 46%; color: #4a2f22; }
.logo { width: 3.1cm; }
.parties .client { width: 54%; }
.carte { background: #fffcf5; border: 0.75pt solid #e3d6b8; border-radius: 9pt; padding: 11pt 13pt; }

/* Lignes */
.lignes { margin-top: 0; }
.lignes th { color: #b21c2d; font-family: 'FigtreeSemi', sans-serif; font-size: 8.5pt; padding: 0.9cm 5pt 6pt; border-bottom: 1pt solid #211512; }
.lignes td { padding: 7pt 5pt; border-bottom: 0.5pt solid #e3d6b8; }
.lignes .libelle { width: 46%; font-family: 'FigtreeSemi', sans-serif; }
.num { text-align: right; white-space: nowrap; }
.lignes .remise td { color: #b21c2d; }

/* Bas : TVA et totaux */
.bas { margin-top: 0.7cm; }
.bas .tva { width: 50%; padding-right: 0.9cm; }
.recap th { color: #6b4a38; font-size: 8pt; padding: 3pt 4pt; border-bottom: 0.5pt solid #e3d6b8; }
.recap td { padding: 4pt; border-bottom: 0.5pt solid #e3d6b8; }
.bas .totaux { width: 50%; }
.totaux table th, .totaux table td { padding: 3pt 0; border-bottom: 0.5pt solid #e3d6b8; }
.totaux table td { text-align: right; }
.montant { font-family: 'Bricolage', sans-serif; font-weight: normal; font-size: 22pt; line-height: 1.2; letter-spacing: -0.6pt; }

.conditions { margin-top: 0.8cm; color: #6b4a38; font-size: 7.5pt; }

/* Pied de page : dessiné dans la marge basse de chaque page par template-functions.php. */
