pdf-style.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. /* Style pour génération PDF propres - planning-artifacts */
  2. @import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');
  3. * {
  4. box-sizing: border-box;
  5. }
  6. body {
  7. font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  8. font-size: 11pt;
  9. line-height: 1.5;
  10. color: #1a1a1a;
  11. max-width: 100%;
  12. margin: 0;
  13. padding: 0;
  14. }
  15. /* Titres */
  16. h1 {
  17. font-size: 1.6em;
  18. font-weight: 700;
  19. margin: 0 0 0.75em 0;
  20. padding-bottom: 0.35em;
  21. border-bottom: 2px solid #2563eb;
  22. color: #1e3a5f;
  23. page-break-after: avoid;
  24. }
  25. h2 {
  26. font-size: 1.25em;
  27. font-weight: 700;
  28. margin: 1.25em 0 0.5em 0;
  29. color: #1e3a5f;
  30. page-break-after: avoid;
  31. }
  32. h3, h4 {
  33. font-size: 1.05em;
  34. font-weight: 600;
  35. margin: 1em 0 0.4em 0;
  36. color: #334155;
  37. page-break-after: avoid;
  38. }
  39. /* Paragraphes et listes */
  40. p {
  41. margin: 0 0 0.6em 0;
  42. }
  43. ul, ol {
  44. margin: 0 0 0.75em 0;
  45. padding-left: 1.5em;
  46. }
  47. li {
  48. margin-bottom: 0.25em;
  49. }
  50. /* Tableaux - rendu propre */
  51. table {
  52. width: 100%;
  53. border-collapse: collapse;
  54. margin: 0.75em 0;
  55. font-size: 10pt;
  56. page-break-inside: avoid;
  57. }
  58. th, td {
  59. border: 1px solid #cbd5e1;
  60. padding: 0.4em 0.6em;
  61. text-align: left;
  62. vertical-align: top;
  63. }
  64. th {
  65. background: #1e3a5f;
  66. color: #fff;
  67. font-weight: 600;
  68. }
  69. tr:nth-child(even) {
  70. background: #f8fafc;
  71. }
  72. /* Bloc citation / séparateur */
  73. hr {
  74. border: none;
  75. border-top: 1px solid #e2e8f0;
  76. margin: 1.25em 0;
  77. }
  78. blockquote {
  79. margin: 0.75em 0;
  80. padding: 0.5em 1em;
  81. border-left: 4px solid #2563eb;
  82. background: #f1f5f9;
  83. color: #475569;
  84. font-style: italic;
  85. }
  86. /* Code */
  87. code {
  88. font-family: 'Consolas', 'Monaco', monospace;
  89. font-size: 0.9em;
  90. background: #f1f5f9;
  91. padding: 0.15em 0.35em;
  92. border-radius: 3px;
  93. border: 1px solid #e2e8f0;
  94. }
  95. pre {
  96. background: #1e293b;
  97. color: #e2e8f0;
  98. padding: 0.75em 1em;
  99. border-radius: 4px;
  100. overflow-x: auto;
  101. font-size: 9pt;
  102. page-break-inside: avoid;
  103. }
  104. pre code {
  105. background: none;
  106. padding: 0;
  107. border: none;
  108. color: inherit;
  109. }
  110. /* Strong / emphasis */
  111. strong {
  112. font-weight: 600;
  113. color: #1e3a5f;
  114. }
  115. /* Sauts de page */
  116. h1, h2, h3, h4 {
  117. page-break-after: avoid;
  118. }
  119. table, pre, blockquote {
  120. page-break-inside: avoid;
  121. }
  122. @media print {
  123. body {
  124. print-color-adjust: exact;
  125. -webkit-print-color-adjust: exact;
  126. }
  127. }