@lab-anssi/ui-kit 1.61.3 → 1.62.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/README.md +102 -21
  2. package/dist/assets/assets.d.ts +1 -0
  3. package/dist/assets/assets.js +1 -0
  4. package/dist/assets/dsfr-icons.css +1 -0
  5. package/dist/composants/Alerte.svelte +83 -0
  6. package/dist/composants/Alerte.svelte.d.ts +32 -0
  7. package/dist/composants/AncresParcours.svelte +132 -0
  8. package/dist/composants/AncresParcours.svelte.d.ts +11 -0
  9. package/dist/composants/BandeauPage.svelte +218 -0
  10. package/dist/composants/BandeauPage.svelte.d.ts +58 -0
  11. package/dist/composants/BlocFonctionnalites.svelte +570 -0
  12. package/dist/composants/BlocFonctionnalites.svelte.d.ts +105 -0
  13. package/dist/composants/Bouton.svelte +156 -0
  14. package/dist/composants/Bouton.svelte.d.ts +36 -0
  15. package/dist/composants/CentreAide.svelte +223 -0
  16. package/dist/composants/CentreAide.svelte.d.ts +41 -0
  17. package/dist/composants/FiltresCatalogue.svelte +147 -0
  18. package/dist/composants/FiltresCatalogue.svelte.d.ts +15 -0
  19. package/dist/composants/Icone.svelte +42 -0
  20. package/dist/composants/Icone.svelte.d.ts +7 -0
  21. package/dist/composants/Lien.svelte +233 -0
  22. package/dist/composants/Lien.svelte.d.ts +39 -0
  23. package/dist/composants/MultiSelect.svelte +931 -0
  24. package/dist/composants/MultiSelect.svelte.d.ts +51 -0
  25. package/dist/composants/Reactions.svelte +360 -0
  26. package/dist/composants/Reactions.svelte.d.ts +23 -0
  27. package/dist/composants/ResumePssi.svelte +92 -0
  28. package/dist/composants/ResumePssi.svelte.d.ts +6 -0
  29. package/dist/composants/Tag.svelte +113 -0
  30. package/dist/composants/Tag.svelte.d.ts +35 -0
  31. package/dist/composants/blog/BandeauTitre.svelte +150 -0
  32. package/dist/composants/blog/BandeauTitre.svelte.d.ts +29 -0
  33. package/dist/composants/blog/CarteArticle.svelte +69 -0
  34. package/dist/composants/blog/CarteArticle.svelte.d.ts +8 -0
  35. package/dist/composants/blog/IconeChevronBas.svelte +22 -0
  36. package/dist/composants/blog/IconeChevronBas.svelte.d.ts +26 -0
  37. package/dist/composants/blog/IconeMenuLateral.svelte +15 -0
  38. package/dist/composants/blog/IconeMenuLateral.svelte.d.ts +26 -0
  39. package/dist/composants/blog/ListeArticles.svelte +62 -0
  40. package/dist/composants/blog/ListeArticles.svelte.d.ts +9 -0
  41. package/dist/composants/blog/ListeDeroulante.svelte +57 -0
  42. package/dist/composants/blog/ListeDeroulante.svelte.d.ts +10 -0
  43. package/dist/composants/blog/PageCrisp.svelte +244 -0
  44. package/dist/composants/blog/PageCrisp.svelte.d.ts +8 -0
  45. package/dist/composants/blog/SommaireBureau.svelte +64 -0
  46. package/dist/composants/blog/SommaireBureau.svelte.d.ts +9 -0
  47. package/dist/composants/blog/SommaireMobile.svelte +115 -0
  48. package/dist/composants/blog/SommaireMobile.svelte.d.ts +9 -0
  49. package/dist/composants/carrousel-tuiles/CarrouselTuiles.svelte +184 -0
  50. package/dist/composants/carrousel-tuiles/CarrouselTuiles.svelte.d.ts +34 -0
  51. package/dist/composants/carrousel-tuiles/IconeFlecheDroite.svelte +16 -0
  52. package/dist/composants/carrousel-tuiles/IconeFlecheDroite.svelte.d.ts +26 -0
  53. package/dist/composants/carrousel-tuiles/IconeFlecheGauche.svelte +12 -0
  54. package/dist/composants/carrousel-tuiles/IconeFlecheGauche.svelte.d.ts +26 -0
  55. package/dist/composants/carrousel-tuiles/Tuile.svelte +72 -0
  56. package/dist/composants/carrousel-tuiles/Tuile.svelte.d.ts +10 -0
  57. package/dist/composants/icones/Fleche.svelte +25 -0
  58. package/dist/composants/icones/Fleche.svelte.d.ts +6 -0
  59. package/dist/composants/icones/LienExterne.svelte +20 -0
  60. package/dist/composants/icones/LienExterne.svelte.d.ts +6 -0
  61. package/dist/composants/marelle/Etape.svelte +165 -0
  62. package/dist/composants/marelle/Etape.svelte.d.ts +32 -0
  63. package/dist/composants/marelle/Marelle.svelte +97 -0
  64. package/dist/composants/marelle/Marelle.svelte.d.ts +44 -0
  65. package/dist/composants/mes-services-cyber/bandeau/Bandeau.svelte +158 -0
  66. package/dist/composants/mes-services-cyber/bandeau/Bandeau.svelte.d.ts +3 -0
  67. package/dist/composants/mes-services-cyber/lien/LienDiagnosticCyber.svelte +125 -0
  68. package/dist/composants/mes-services-cyber/lien/LienDiagnosticCyber.svelte.d.ts +7 -0
  69. package/dist/composants/pied-de-page/NavigationPiedDePage.svelte +62 -0
  70. package/dist/composants/pied-de-page/NavigationPiedDePage.svelte.d.ts +6 -0
  71. package/dist/composants/suite-cyber/AccueilSuiteCyber.svelte +96 -0
  72. package/dist/composants/suite-cyber/AccueilSuiteCyber.svelte.d.ts +6 -0
  73. package/dist/composants/suite-cyber/LiensSuiteCyber.svelte +99 -0
  74. package/dist/composants/suite-cyber/LiensSuiteCyber.svelte.d.ts +14 -0
  75. package/dist/composants/suite-cyber/SuiteCyber.svelte +296 -0
  76. package/dist/composants/suite-cyber/SuiteCyber.svelte.d.ts +6 -0
  77. package/dist/composants/vitrines-produits/briques/Brique.svelte +50 -0
  78. package/dist/composants/vitrines-produits/briques/Brique.svelte.d.ts +9 -0
  79. package/dist/composants/vitrines-produits/briques/BriqueContenuADeuxColonnes.svelte +144 -0
  80. package/dist/composants/vitrines-produits/briques/BriqueContenuADeuxColonnes.svelte.d.ts +29 -0
  81. package/dist/composants/vitrines-produits/briques/BriqueHero.svelte +246 -0
  82. package/dist/composants/vitrines-produits/briques/BriqueHero.svelte.d.ts +31 -0
  83. package/dist/composants/vitrines-produits/briques/BriqueTitreMultimedia.svelte +50 -0
  84. package/dist/composants/vitrines-produits/briques/BriqueTitreMultimedia.svelte.d.ts +25 -0
  85. package/dist/composants/vitrines-produits/briques/LecteurVideo.svelte +14 -0
  86. package/dist/composants/vitrines-produits/briques/LecteurVideo.svelte.d.ts +9 -0
  87. package/dist/composants/vitrines-produits/briques/PresentationANSSI.svelte +148 -0
  88. package/dist/composants/vitrines-produits/briques/PresentationANSSI.svelte.d.ts +37 -0
  89. package/dist/composants/vitrines-produits/briques/RejoindreLaCommunaute.svelte +139 -0
  90. package/dist/composants/vitrines-produits/briques/RejoindreLaCommunaute.svelte.d.ts +36 -0
  91. package/dist/composants/vitrines-produits/briques/temoignages/IconeTemoignage.svelte +18 -0
  92. package/dist/composants/vitrines-produits/briques/temoignages/IconeTemoignage.svelte.d.ts +26 -0
  93. package/dist/composants/vitrines-produits/briques/temoignages/Temoignages.svelte +168 -0
  94. package/dist/composants/vitrines-produits/briques/temoignages/Temoignages.svelte.d.ts +13 -0
  95. package/dist/directives/actions.svelte.d.ts +32 -0
  96. package/dist/directives/actions.svelte.js +158 -0
  97. package/dist/dsfr/DsfrAccordion.svelte +889 -0
  98. package/dist/dsfr/DsfrAccordion.svelte.d.ts +40 -0
  99. package/dist/dsfr/DsfrAlert.svelte +2097 -0
  100. package/dist/dsfr/DsfrAlert.svelte.d.ts +36 -0
  101. package/dist/dsfr/DsfrBadge.svelte +532 -0
  102. package/dist/dsfr/DsfrBadge.svelte.d.ts +41 -0
  103. package/dist/dsfr/DsfrBadgesGroup.svelte +610 -0
  104. package/dist/dsfr/DsfrBadgesGroup.svelte.d.ts +25 -0
  105. package/dist/dsfr/DsfrBreadcrumb.svelte +657 -0
  106. package/dist/dsfr/DsfrBreadcrumb.svelte.d.ts +25 -0
  107. package/dist/dsfr/DsfrButton.svelte +1821 -0
  108. package/dist/dsfr/DsfrButton.svelte.d.ts +68 -0
  109. package/dist/dsfr/DsfrButtonsGroup.svelte +1896 -0
  110. package/dist/dsfr/DsfrButtonsGroup.svelte.d.ts +36 -0
  111. package/dist/dsfr/DsfrCallout.svelte +242 -0
  112. package/dist/dsfr/DsfrCallout.svelte.d.ts +46 -0
  113. package/dist/dsfr/DsfrCard.svelte +10223 -0
  114. package/dist/dsfr/DsfrCard.svelte.d.ts +102 -0
  115. package/dist/dsfr/DsfrCheckbox.svelte +1280 -0
  116. package/dist/dsfr/DsfrCheckbox.svelte.d.ts +69 -0
  117. package/dist/dsfr/DsfrCheckboxesGroup.svelte +1532 -0
  118. package/dist/dsfr/DsfrCheckboxesGroup.svelte.d.ts +73 -0
  119. package/dist/dsfr/DsfrConnect.svelte +511 -0
  120. package/dist/dsfr/DsfrConnect.svelte.d.ts +15 -0
  121. package/dist/dsfr/DsfrContainer.svelte +894 -0
  122. package/dist/dsfr/DsfrContainer.svelte.d.ts +31 -0
  123. package/dist/dsfr/DsfrContent.svelte +1140 -0
  124. package/dist/dsfr/DsfrContent.svelte.d.ts +60 -0
  125. package/dist/dsfr/DsfrDropdown.svelte +335 -0
  126. package/dist/dsfr/DsfrDropdown.svelte.d.ts +73 -0
  127. package/dist/dsfr/DsfrFooter.svelte +2370 -0
  128. package/dist/dsfr/DsfrFooter.svelte.d.ts +77 -0
  129. package/dist/dsfr/DsfrHeader.svelte +4162 -0
  130. package/dist/dsfr/DsfrHeader.svelte.d.ts +131 -0
  131. package/dist/dsfr/DsfrHighlight.svelte +294 -0
  132. package/dist/dsfr/DsfrHighlight.svelte.d.ts +33 -0
  133. package/dist/dsfr/DsfrInput.svelte +1270 -0
  134. package/dist/dsfr/DsfrInput.svelte.d.ts +86 -0
  135. package/dist/dsfr/DsfrLabel.svelte +438 -0
  136. package/dist/dsfr/DsfrLabel.svelte.d.ts +65 -0
  137. package/dist/dsfr/DsfrLink.svelte +1007 -0
  138. package/dist/dsfr/DsfrLink.svelte.d.ts +66 -0
  139. package/dist/dsfr/DsfrLogo.svelte +228 -0
  140. package/dist/dsfr/DsfrLogo.svelte.d.ts +11 -0
  141. package/dist/dsfr/DsfrMessagesGroup.svelte +260 -0
  142. package/dist/dsfr/DsfrMessagesGroup.svelte.d.ts +46 -0
  143. package/dist/dsfr/DsfrModal.svelte +2983 -0
  144. package/dist/dsfr/DsfrModal.svelte.d.ts +56 -0
  145. package/dist/dsfr/DsfrNavigation.svelte +7626 -0
  146. package/dist/dsfr/DsfrNotice.svelte +2948 -0
  147. package/dist/dsfr/DsfrNotice.svelte.d.ts +37 -0
  148. package/dist/dsfr/DsfrPagination.svelte +1036 -0
  149. package/dist/dsfr/DsfrPagination.svelte.d.ts +35 -0
  150. package/dist/dsfr/DsfrQuote.svelte +646 -0
  151. package/dist/dsfr/DsfrQuote.svelte.d.ts +29 -0
  152. package/dist/dsfr/DsfrRadio.svelte +1307 -0
  153. package/dist/dsfr/DsfrRadio.svelte.d.ts +37 -0
  154. package/dist/dsfr/DsfrRadiosGroup.svelte +1629 -0
  155. package/dist/dsfr/DsfrRadiosGroup.svelte.d.ts +76 -0
  156. package/dist/dsfr/DsfrRange.svelte +1329 -0
  157. package/dist/dsfr/DsfrRange.svelte.d.ts +77 -0
  158. package/dist/dsfr/DsfrSearch.svelte +2015 -0
  159. package/dist/dsfr/DsfrSearch.svelte.d.ts +51 -0
  160. package/dist/dsfr/DsfrSegmented.svelte +422 -0
  161. package/dist/dsfr/DsfrSegmented.svelte.d.ts +34 -0
  162. package/dist/dsfr/DsfrSelect.svelte +1068 -0
  163. package/dist/dsfr/DsfrSelect.svelte.d.ts +86 -0
  164. package/dist/dsfr/DsfrShare.svelte +2228 -0
  165. package/dist/dsfr/DsfrShare.svelte.d.ts +40 -0
  166. package/dist/dsfr/DsfrSideMenu.svelte +1211 -0
  167. package/dist/dsfr/DsfrSideMenu.svelte.d.ts +34 -0
  168. package/dist/dsfr/DsfrSkipLink.svelte +990 -0
  169. package/dist/dsfr/DsfrSkipLink.svelte.d.ts +13 -0
  170. package/dist/dsfr/DsfrStepper.svelte +340 -0
  171. package/dist/dsfr/DsfrStepper.svelte.d.ts +18 -0
  172. package/dist/dsfr/DsfrTable.svelte +829 -0
  173. package/dist/dsfr/DsfrTable.svelte.d.ts +202 -0
  174. package/dist/dsfr/DsfrTabnav.svelte +1149 -0
  175. package/dist/dsfr/DsfrTabnav.svelte.d.ts +36 -0
  176. package/dist/dsfr/DsfrTabs.svelte +925 -0
  177. package/dist/dsfr/DsfrTabs.svelte.d.ts +28 -0
  178. package/dist/dsfr/DsfrTag.svelte +1269 -0
  179. package/dist/dsfr/DsfrTag.svelte.d.ts +59 -0
  180. package/dist/dsfr/DsfrTagsGroup.svelte +1351 -0
  181. package/dist/dsfr/DsfrTagsGroup.svelte.d.ts +37 -0
  182. package/dist/dsfr/DsfrTextarea.svelte +1385 -0
  183. package/dist/dsfr/DsfrTextarea.svelte.d.ts +72 -0
  184. package/dist/dsfr/DsfrTile.svelte +7645 -0
  185. package/dist/dsfr/DsfrTile.svelte.d.ts +79 -0
  186. package/dist/dsfr/DsfrToggle.svelte +1453 -0
  187. package/dist/dsfr/DsfrToggle.svelte.d.ts +56 -0
  188. package/dist/dsfr/DsfrTooltip.svelte +396 -0
  189. package/dist/dsfr/DsfrTooltip.svelte.d.ts +36 -0
  190. package/dist/dsfr/DsfrTranscription.svelte +2962 -0
  191. package/dist/dsfr/DsfrTranscription.svelte.d.ts +39 -0
  192. package/dist/dsfr/DsfrTranslate.svelte +1384 -0
  193. package/dist/dsfr/DsfrTranslate.svelte.d.ts +19 -0
  194. package/dist/dsfr/DsfrUser.svelte +736 -0
  195. package/dist/dsfr/DsfrUser.svelte.d.ts +65 -0
  196. package/dist/index.d.ts +79 -0
  197. package/dist/index.js +79 -0
  198. package/dist/styles/apparence-bouton.scss +154 -0
  199. package/dist/styles/dsfr-icons.css +1 -0
  200. package/dist/styles/dsfr-icons.scss +4 -0
  201. package/dist/styles/dsfr-variables.scss +28 -0
  202. package/dist/styles/mixins-dsfr.scss +226 -0
  203. package/dist/styles/mixins.scss +51 -0
  204. package/dist/types/commun.d.ts +63 -0
  205. package/dist/types/commun.js +1 -0
  206. package/dist/types/global.d.ts +24 -0
  207. package/dist/types/global.js +9 -0
  208. package/dist/types/index.d.ts +2 -0
  209. package/dist/types/index.js +1 -0
  210. package/dist/ui-kit-components.json +142 -100
  211. package/dist/utilitaires/createFormValidation.svelte.d.ts +34 -0
  212. package/dist/utilitaires/createFormValidation.svelte.js +183 -0
  213. package/dist/utilitaires/icons-stylesheet.d.ts +370 -0
  214. package/dist/utilitaires/icons-stylesheet.js +33 -0
  215. package/dist/utilitaires/index.d.ts +14 -0
  216. package/dist/utilitaires/index.js +26 -0
  217. package/dist/web-types.json +149 -101
  218. package/dist/webcomponents/lab-anssi-ui-kit.iife.js +36 -9
  219. package/dist/webcomponents/lab-anssi-ui-kit.jsx.d.ts +42 -24
  220. package/package.json +49 -43
  221. package/dist/index.html +0 -0
@@ -0,0 +1,1068 @@
1
+ <svelte:options
2
+ customElement={{
3
+ tag: "dsfr-select",
4
+ props: {
5
+ id: { attribute: "id", type: "String" },
6
+ label: { attribute: "label", type: "String" },
7
+ hideLabel: { attribute: "hide-label", type: "Boolean" },
8
+ value: { attribute: "value", type: "String", reflect: true },
9
+ groupedOptions: { attribute: "grouped-options", type: "Boolean" },
10
+ options: { attribute: "options", type: "Array" },
11
+ optionGroups: { attribute: "option-groups", type: "Object" },
12
+ hint: { attribute: "hint", type: "String" },
13
+ placeholder: { attribute: "placeholder", type: "String" },
14
+ placeholderDisabled: { attribute: "placeholder-disabled", type: "Boolean" },
15
+ disabled: { attribute: "disabled", type: "Boolean", reflect: true },
16
+ status: { attribute: "status", type: "String" },
17
+ errorMessage: { attribute: "error-message", type: "String" },
18
+ validMessage: { attribute: "valid-message", type: "String" },
19
+ infoMessage: { attribute: "info-message", type: "String" },
20
+ form: { attribute: "form", type: "String", reflect: true },
21
+ required: { attribute: "required", type: "Boolean" },
22
+ name: { attribute: "name", type: "String", reflect: true },
23
+ labelSize: { attribute: "label-size", type: "String" },
24
+ labelWeight: { attribute: "label-weight", type: "String" },
25
+ },
26
+ extend: (customElementConstructor) => {
27
+ return class extends customElementConstructor {
28
+ static formAssociated = true;
29
+
30
+ constructor() {
31
+ super();
32
+ this.internals = this.attachInternals();
33
+ }
34
+ };
35
+ },
36
+ }}
37
+ />
38
+
39
+ <script lang="ts">import { setThemeable } from "../utilitaires";
40
+ import { createFormValidation } from "../utilitaires/createFormValidation.svelte";
41
+ import DsfrLabel from "./DsfrLabel.svelte";
42
+ import DsfrMessagesGroup from "./DsfrMessagesGroup.svelte";
43
+ // eslint-disable-next-line svelte/no-unused-props -- optionGroups est exposé via l'API Web Component
44
+ let { id, label, hideLabel = false, value = $bindable(), groupedOptions: _groupedOptions, options, hint, placeholder, placeholderDisabled, disabled, status = "default", errorMessage, validMessage, infoMessage, form, required, onvaluechanged, internals, name, labelSize, labelWeight } = $props();
45
+ let hostElement = $host();
46
+ setThemeable(hostElement);
47
+ let formControlElement;
48
+ // Création de l'état de validation partagé
49
+ const formValidation = createFormValidation();
50
+ // Détermine si l'utilisateur a pris la main sur le status
51
+ const isUserControlled = $derived(status !== "default");
52
+ // Status et message calculés à afficher
53
+ const computedStatus = $derived(isUserControlled ? status : formValidation.localStatus);
54
+ const computedErrorMessage = $derived(isUserControlled ? errorMessage : formValidation.localErrorMessage);
55
+ const disabledClass = $derived.by(() => {
56
+ return disabled && "fr-select-group--disabled";
57
+ });
58
+ const statusClass = $derived(computedStatus !== "info" && computedStatus !== "default" && `fr-select-group--${computedStatus}`);
59
+ /**
60
+ * Gère l'événement change du select.
61
+ * Met à jour la valeur du composant et déclenche l'événement 'valuechanged'.
62
+ *
63
+ * @param {Event} event - L'événement change déclenché
64
+ */
65
+ function handleChange(event) {
66
+ const target = event.target;
67
+ value = target.value;
68
+ onvaluechanged?.(target.value);
69
+ hostElement?.dispatchEvent(new CustomEvent("valuechanged", {
70
+ detail: target.value,
71
+ bubbles: true
72
+ }));
73
+ }
74
+ /**
75
+ * Définit un message de validité personnalisé pour le select.
76
+ * Met à jour le message de validité personnalisé et déclenche la vérification de validité.
77
+ *
78
+ * @param {string} message - Le message de validité personnalisé à définir
79
+ */
80
+ export function setCustomValidity(message) {
81
+ formValidation.setCustomValidity(message);
82
+ }
83
+ // Configure la validation avec les références nécessaires
84
+ $effect(() => {
85
+ formValidation.setup(internals, formControlElement, hostElement, () => {
86
+ value = "";
87
+ });
88
+ });
89
+ // Synchronise la valeur du formulaire et met à jour la validité
90
+ $effect(() => {
91
+ formValidation.syncFormValue(value, isUserControlled);
92
+ });
93
+ // Quand l'utilisateur prend la main sur le status, on efface les erreurs de validation natives
94
+ $effect(() => {
95
+ if (isUserControlled) {
96
+ internals?.setValidity({});
97
+ }
98
+ });
99
+ // Attache les event listeners pour la validation
100
+ $effect(() => {
101
+ return formValidation.attachListeners();
102
+ });
103
+ </script>
104
+
105
+ <div class={["fr-select-group", statusClass, disabledClass]}>
106
+ <DsfrLabel
107
+ for={id}
108
+ {label}
109
+ {hint}
110
+ hidden={hideLabel}
111
+ context="field"
112
+ {status}
113
+ {disabled}
114
+ {labelSize}
115
+ {labelWeight}
116
+ />
117
+ <select
118
+ bind:this={formControlElement}
119
+ class="fr-select"
120
+ aria-describedby={computedStatus !== "default" ? `${id}-messages` : undefined}
121
+ {id}
122
+ {name}
123
+ bind:value
124
+ {disabled}
125
+ onchange={handleChange}
126
+ onblur={formValidation.handleBlur}
127
+ oninvalid={formValidation.handleInvalid}
128
+ {form}
129
+ {required}
130
+ >
131
+ {#if placeholder}
132
+ <option value="" selected disabled={placeholderDisabled}>{placeholder}</option>
133
+ {/if}
134
+ {#if $$slots.default}
135
+ <slot></slot>
136
+ {:else}
137
+ {#each options as option (option.value)}
138
+ <option value={option.value}>
139
+ {option.label}
140
+ </option>
141
+ {/each}
142
+ {/if}
143
+ </select>
144
+
145
+ <slot name="messages-group">
146
+ {#if computedStatus !== "default"}
147
+ <DsfrMessagesGroup
148
+ {id}
149
+ status={computedStatus}
150
+ errorMessage={isUserControlled ? errorMessage : computedErrorMessage}
151
+ {validMessage}
152
+ {infoMessage}
153
+ />
154
+ {/if}
155
+ </slot>
156
+ </div>
157
+
158
+ <style>@charset "UTF-8"; /*!
159
+ * DSFR v1.14.4 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions)
160
+ */ /* ¯¯¯¯¯¯¯¯¯ *\
161
+ FORM
162
+ \* ˍˍˍˍˍˍˍˍˍ */
163
+ .fr-label {
164
+ display: block;
165
+ font-size: 1rem;
166
+ line-height: 1.5rem;
167
+ color: var(--text-label-grey);
168
+ }
169
+
170
+ .fr-label + .fr-input,
171
+ .fr-label + .fr-input-wrap,
172
+ .fr-label + .fr-select {
173
+ margin-top: 0.5rem;
174
+ }
175
+
176
+ .fr-hint-text {
177
+ display: block;
178
+ font-size: 0.75rem;
179
+ line-height: 1.25rem;
180
+
181
+ --text-spacing: 0 0 1rem;
182
+ }
183
+
184
+ .fr-hint-text + .fr-hint-text {
185
+ margin-top: 0.25rem;
186
+ }
187
+
188
+ .fr-fieldset {
189
+ position: relative;
190
+ margin: 0 -0.75rem 1rem;
191
+ padding: 0 0.25rem;
192
+ display: flex;
193
+ flex-direction: row;
194
+ align-items: last baseline;
195
+ flex-wrap: wrap;
196
+ border: 0;
197
+ }
198
+
199
+ .fr-fieldset__legend {
200
+ padding-bottom: 1rem;
201
+ padding-left: 0.75rem;
202
+ padding-right: 0.75rem;
203
+ margin-left: -0.25rem;
204
+ margin-right: -0.25rem;
205
+ font-size: 1rem;
206
+ line-height: 1.5rem;
207
+ font-weight: 700;
208
+ width: 100%;
209
+ color: var(--text-label-grey);
210
+ }
211
+
212
+ .fr-fieldset__legend--regular {
213
+ font-weight: 400;
214
+ }
215
+
216
+ .fr-fieldset__legend .fr-hint-text {
217
+ margin-top: 0.5rem;
218
+ font-weight: 400;
219
+ }
220
+
221
+ .fr-fieldset--valid,
222
+ .fr-fieldset--error,
223
+ .fr-fieldset--info {
224
+ background-repeat: no-repeat;
225
+ background-position: 0 -2.25rem;
226
+ background-size: 2px calc(100% + 1.25rem);
227
+ }
228
+
229
+ .fr-fieldset--valid .fr-fieldset__legend,
230
+ .fr-fieldset--error .fr-fieldset__legend,
231
+ .fr-fieldset--info .fr-fieldset__legend {
232
+ background-repeat: no-repeat;
233
+ background-position: 0 0;
234
+ background-size: 2px 100%;
235
+ }
236
+
237
+ .fr-fieldset__element {
238
+ flex: 1 1 100%;
239
+ max-width: 100%;
240
+ padding-left: 0.5rem;
241
+ padding-right: 0.5rem;
242
+ margin-bottom: 1rem;
243
+ }
244
+
245
+ .fr-fieldset__element--inline {
246
+ flex: 0 0 auto;
247
+ }
248
+
249
+ .fr-fieldset__element--inline-grow,
250
+ .fr-fieldset__element--inline\@md.fr-fieldset__element--inline-grow {
251
+ flex-grow: 1;
252
+ }
253
+
254
+ .fr-fieldset__element.fr-fieldset__element--year {
255
+ flex: 0 0 8rem;
256
+ }
257
+
258
+ .fr-fieldset__element--year:not(.fr-fieldset__element--inline) {
259
+ margin-right: calc(100% - 8rem);
260
+ }
261
+
262
+ .fr-fieldset__element.fr-fieldset__element--postal {
263
+ flex: 0 0 16rem;
264
+ }
265
+
266
+ .fr-fieldset__element--postal:not(.fr-fieldset__element--inline) {
267
+ margin-right: calc(100% - 16rem);
268
+ }
269
+
270
+ .fr-fieldset__element.fr-fieldset__element--number {
271
+ flex: 0 0 6rem;
272
+ }
273
+
274
+ .fr-fieldset__element--number:not(.fr-fieldset__element--inline) {
275
+ margin-right: calc(100% - 6rem);
276
+ }
277
+
278
+ .fr-fieldset__legend > h1:last-child::after,
279
+ .fr-fieldset__legend > h2:last-child::after,
280
+ .fr-fieldset__legend > h3:last-child::after,
281
+ .fr-fieldset__legend > h4:last-child::after,
282
+ .fr-fieldset__legend > h5:last-child::after,
283
+ .fr-fieldset__legend > h6:last-child::after,
284
+ .fr-fieldset__legend > p:last-child::after,
285
+ .fr-fieldset__legend > .fr-fieldset:last-child::after,
286
+ .fr-fieldset__element > h1:last-child::after,
287
+ .fr-fieldset__element > h2:last-child::after,
288
+ .fr-fieldset__element > h3:last-child::after,
289
+ .fr-fieldset__element > h4:last-child::after,
290
+ .fr-fieldset__element > h5:last-child::after,
291
+ .fr-fieldset__element > h6:last-child::after,
292
+ .fr-fieldset__element > p:last-child::after,
293
+ .fr-fieldset__element > .fr-fieldset:last-child::after {
294
+ content: "";
295
+ display: block;
296
+ margin-bottom: -1rem;
297
+ }
298
+
299
+ .fr-fieldset > .fr-messages-group {
300
+ flex: 1 1 100%;
301
+ padding-left: 0.5rem;
302
+ padding-right: 0.5rem;
303
+ }
304
+
305
+ .fr-fieldset > .fr-messages-group > .fr-message:last-child {
306
+ margin-bottom: 1rem;
307
+ }
308
+
309
+ .fr-message {
310
+ --comma: ", ";
311
+ --content: var(--comma);
312
+ display: flex;
313
+ flex-direction: row;
314
+ align-items: flex-start;
315
+ font-size: 0.75rem;
316
+ line-height: 1.25rem;
317
+ margin: 0 0 0.25rem 0;
318
+ }
319
+
320
+ .fr-message::after {
321
+ content: var(--content);
322
+ position: absolute;
323
+ width: 1px;
324
+ height: 1px;
325
+ padding: 0;
326
+ margin: -1px;
327
+ overflow: hidden;
328
+ clip: rect(0, 0, 0, 0);
329
+ white-space: nowrap; /* added line */
330
+ border: 0;
331
+ display: block;
332
+ }
333
+
334
+ .fr-message:last-child {
335
+ --comma: ". ";
336
+ margin-bottom: 0;
337
+ }
338
+
339
+ .fr-message--error::before,
340
+ .fr-message--valid::before,
341
+ .fr-message--warning::before,
342
+ .fr-message--info::before {
343
+ flex: 0 0 auto;
344
+ vertical-align: calc((0.75em - var(--icon-size)) * 0.5);
345
+ background-color: currentColor;
346
+ width: var(--icon-size);
347
+ height: var(--icon-size);
348
+ -webkit-mask-size: 100% 100%;
349
+ mask-size: 100% 100%;
350
+ --icon-size: 1rem;
351
+ content: "";
352
+ display: inline-block;
353
+ margin-right: 0.25rem;
354
+ margin-top: 0.125rem;
355
+ }
356
+
357
+ .fr-message--error::before {
358
+ -webkit-mask-image: url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/dsfr/system/fr--error-fill.svg");
359
+ mask-image: url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/dsfr/system/fr--error-fill.svg");
360
+ }
361
+
362
+ .fr-message--valid::before {
363
+ -webkit-mask-image: url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/dsfr/system/fr--success-fill.svg");
364
+ mask-image: url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/dsfr/system/fr--success-fill.svg");
365
+ }
366
+
367
+ .fr-message--info::before {
368
+ -webkit-mask-image: url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/dsfr/system/fr--info-fill.svg");
369
+ mask-image: url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/dsfr/system/fr--info-fill.svg");
370
+ }
371
+
372
+ .fr-message--warning::before {
373
+ -webkit-mask-image: url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/dsfr/system/fr--warning-fill.svg");
374
+ mask-image: url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/dsfr/system/fr--warning-fill.svg");
375
+ }
376
+
377
+ .fr-select-group--valid label,
378
+ .fr-input-group--valid label,
379
+ .fr-range-group--valid label,
380
+ .fr-upload-group--valid label {
381
+ color: var(--text-default-success);
382
+ }
383
+
384
+ .fr-select-group--error label,
385
+ .fr-input-group--error label,
386
+ .fr-range-group--error label,
387
+ .fr-upload-group--error label {
388
+ color: var(--text-default-error);
389
+ }
390
+
391
+ .fr-select-group--info label,
392
+ .fr-input-group--info label,
393
+ .fr-range-group--info label,
394
+ .fr-upload-group--info label {
395
+ color: var(--text-default-info);
396
+ }
397
+
398
+ .fr-select-group--disabled label,
399
+ .fr-select-group--disabled .fr-hint-text,
400
+ .fr-input-group--disabled label,
401
+ .fr-input-group--disabled .fr-hint-text,
402
+ .fr-range-group--disabled label,
403
+ .fr-range-group--disabled .fr-hint-text,
404
+ .fr-upload-group--disabled label,
405
+ .fr-upload-group--disabled .fr-hint-text {
406
+ color: var(--text-disabled-grey);
407
+ }
408
+
409
+ .fr-label--error {
410
+ color: var(--text-default-error);
411
+ }
412
+
413
+ .fr-label--success {
414
+ color: var(--text-default-success);
415
+ }
416
+
417
+ .fr-label--info {
418
+ color: var(--text-default-info);
419
+ }
420
+
421
+ .fr-label--disabled,
422
+ .fr-label--disabled .fr-hint-text {
423
+ color: var(--text-disabled-grey);
424
+ }
425
+
426
+ .fr-hint-text,
427
+ .fr-message {
428
+ color: var(--text-mention-grey);
429
+ }
430
+
431
+ .fr-message--error {
432
+ color: var(--text-default-error);
433
+ }
434
+
435
+ .fr-message--valid {
436
+ color: var(--text-default-success);
437
+ }
438
+
439
+ .fr-message--info {
440
+ color: var(--text-default-info);
441
+ }
442
+
443
+ .fr-message--warning {
444
+ color: var(--text-default-warning);
445
+ }
446
+
447
+ .fr-fieldset:disabled .fr-label,
448
+ .fr-fieldset:disabled .fr-hint-text,
449
+ .fr-fieldset:disabled .fr-fieldset__legend {
450
+ color: var(--text-disabled-grey);
451
+ }
452
+
453
+ .fr-fieldset input:disabled + label,
454
+ .fr-fieldset input:disabled + label .fr-hint-text,
455
+ .fr-fieldset input:disabled + label + .fr-hint-text {
456
+ color: var(--text-disabled-grey);
457
+ }
458
+
459
+ .fr-fieldset--error,
460
+ .fr-fieldset--error .fr-fieldset__legend {
461
+ background-image: linear-gradient(0deg, var(--border-plain-error), var(--border-plain-error));
462
+ }
463
+
464
+ .fr-fieldset--error .fr-fieldset__legend,
465
+ .fr-fieldset--error .fr-label {
466
+ color: var(--text-default-error);
467
+ }
468
+
469
+ .fr-fieldset--valid,
470
+ .fr-fieldset--valid .fr-fieldset__legend {
471
+ background-image: linear-gradient(0deg, var(--border-plain-success), var(--border-plain-success));
472
+ }
473
+
474
+ .fr-fieldset--valid .fr-fieldset__legend,
475
+ .fr-fieldset--valid .fr-label {
476
+ color: var(--text-default-success);
477
+ }
478
+
479
+ .fr-fieldset--info,
480
+ .fr-fieldset--info .fr-fieldset__legend {
481
+ background-image: linear-gradient(0deg, var(--border-plain-info), var(--border-plain-info));
482
+ }
483
+
484
+ .fr-fieldset--info .fr-fieldset__legend,
485
+ .fr-fieldset--info .fr-label {
486
+ color: var(--text-default-info);
487
+ }
488
+
489
+ .fr-select-group:not(:last-child),
490
+ .fr-input-group:not(:last-child) {
491
+ margin-bottom: 1.5rem;
492
+ }
493
+
494
+ .fr-select-group .fr-label .fr-hint-text,
495
+ .fr-input-group .fr-label .fr-hint-text {
496
+ margin-top: 0.25rem;
497
+ }
498
+
499
+ .fr-fieldset--inline .fr-fieldset__content {
500
+ display: flex;
501
+ align-items: baseline;
502
+ justify-content: flex-start;
503
+ flex-wrap: wrap;
504
+ margin: -0.75rem 0.5rem 0 0.5rem;
505
+ }
506
+
507
+ .fr-fieldset--inline .fr-checkbox-group {
508
+ display: inline-flex;
509
+ margin-bottom: 0;
510
+ }
511
+
512
+ .fr-fieldset--inline .fr-checkbox-group:first-child {
513
+ margin-top: 0;
514
+ }
515
+
516
+ .fr-fieldset--inline .fr-checkbox-group:not(:last-child) {
517
+ margin-right: 1.25rem;
518
+ }
519
+
520
+ .fr-fieldset--inline .fr-checkbox-group:last-child {
521
+ margin-bottom: 0;
522
+ }
523
+
524
+ .fr-fieldset--inline .fr-radio-group {
525
+ display: inline-flex;
526
+ }
527
+
528
+ .fr-fieldset--inline .fr-radio-group:not(:last-child) {
529
+ margin-right: 1.75rem;
530
+ }
531
+
532
+ .fr-fieldset--inline .fr-radio-group:first-child {
533
+ margin-top: 0;
534
+ }
535
+
536
+ .fr-fieldset--inline .fr-radio-group:last-child {
537
+ margin-bottom: 0;
538
+ }
539
+
540
+ .fr-fieldset__content {
541
+ position: relative;
542
+ margin: 0 0.5rem;
543
+ width: 100%;
544
+ }
545
+
546
+ .fr-fieldset__content .fr-radio-group:first-child,
547
+ .fr-fieldset__content .fr-checkbox-group:first-child {
548
+ margin-top: -0.75rem;
549
+ }
550
+
551
+ .fr-fieldset__content .fr-radio-group label,
552
+ .fr-fieldset__content .fr-checkbox-group label {
553
+ padding: 0.75rem 0;
554
+ }
555
+
556
+ .fr-fieldset__content .fr-radio-group:not(.fr-radio-rich) input[type=radio] + label::before,
557
+ .fr-fieldset__content .fr-checkbox-group input[type=checkbox] + label::before {
558
+ top: 0.75rem;
559
+ }
560
+
561
+ .fr-fieldset__content + .fr-error-text,
562
+ .fr-fieldset__content + .fr-valid-text,
563
+ .fr-fieldset__content + .fr-info-text {
564
+ margin-top: 0;
565
+ margin-left: 0.5rem;
566
+ margin-bottom: 1rem;
567
+ }
568
+
569
+ .fr-error-text,
570
+ .fr-valid-text,
571
+ .fr-info-text {
572
+ display: flex;
573
+ flex-direction: row;
574
+ align-items: center;
575
+ font-size: 0.75rem;
576
+ line-height: 1.25rem;
577
+ margin-top: 1rem;
578
+ margin-bottom: 0;
579
+ }
580
+
581
+ .fr-error-text::before,
582
+ .fr-valid-text::before,
583
+ .fr-info-text::before {
584
+ flex: 0 0 auto;
585
+ vertical-align: calc((0.75em - var(--icon-size)) * 0.5);
586
+ background-color: currentColor;
587
+ width: var(--icon-size);
588
+ height: var(--icon-size);
589
+ -webkit-mask-size: 100% 100%;
590
+ mask-size: 100% 100%;
591
+ --icon-size: 1rem;
592
+ content: "";
593
+ display: inline-block;
594
+ margin-right: 0.25rem;
595
+ }
596
+
597
+ .fr-error-text + .fr-error-text,
598
+ .fr-error-text + .fr-valid-text,
599
+ .fr-error-text + .fr-info-text,
600
+ .fr-valid-text + .fr-error-text,
601
+ .fr-valid-text + .fr-valid-text,
602
+ .fr-valid-text + .fr-info-text,
603
+ .fr-info-text + .fr-error-text,
604
+ .fr-info-text + .fr-valid-text,
605
+ .fr-info-text + .fr-info-text {
606
+ margin-top: 0.25rem;
607
+ }
608
+
609
+ .fr-error-text::before {
610
+ -webkit-mask-image: url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/dsfr/system/fr--error-fill.svg");
611
+ mask-image: url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/dsfr/system/fr--error-fill.svg");
612
+ }
613
+
614
+ .fr-valid-text::before {
615
+ -webkit-mask-image: url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/dsfr/system/fr--success-fill.svg");
616
+ mask-image: url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/dsfr/system/fr--success-fill.svg");
617
+ }
618
+
619
+ .fr-info-text::before {
620
+ -webkit-mask-image: url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/dsfr/system/fr--info-fill.svg");
621
+ mask-image: url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/dsfr/system/fr--info-fill.svg");
622
+ }
623
+
624
+ .fr-error-text {
625
+ color: var(--text-default-error);
626
+ }
627
+
628
+ .fr-valid-text {
629
+ color: var(--text-default-success);
630
+ }
631
+
632
+ .fr-info-text {
633
+ color: var(--text-default-info);
634
+ }
635
+
636
+ .fr-fieldset--valid .fr-fieldset__content::before {
637
+ box-shadow: inset 2px 0 0 0 var(--border-plain-success);
638
+ }
639
+
640
+ .fr-fieldset--error .fr-fieldset__content::before {
641
+ box-shadow: inset 2px 0 0 0 var(--border-plain-error);
642
+ }
643
+
644
+ .fr-fieldset--info .fr-fieldset__content::before {
645
+ box-shadow: inset 2px 0 0 0 var(--border-plain-info);
646
+ }
647
+ @media (min-width: 36em) {
648
+ /*! media sm */
649
+ }
650
+ @media (min-width: 48em) {
651
+ /*! media md */
652
+ .fr-fieldset__element--inline\@md {
653
+ flex: 0 0 auto;
654
+ }
655
+
656
+ .fr-fieldset__element--year.fr-fieldset__element--inline\@md {
657
+ margin-right: 0;
658
+ }
659
+
660
+ .fr-fieldset__element--postal.fr-fieldset__element--inline\@md {
661
+ margin-right: 0;
662
+ }
663
+
664
+ .fr-fieldset__element--number.fr-fieldset__element--inline\@md {
665
+ margin-right: 0;
666
+ }
667
+ }
668
+ @media (min-width: 62em) {
669
+ /*! media lg */
670
+ }
671
+ @media (min-width: 78em) {
672
+ /*! media xl */
673
+ }
674
+ @media (-ms-high-contrast: active), (forced-colors: active) {
675
+ .fr-fieldset:disabled .fr-label,
676
+ .fr-fieldset:disabled .fr-hint-text,
677
+ .fr-fieldset:disabled .fr-fieldset__legend {
678
+ color: graytext;
679
+ }
680
+
681
+ .fr-fieldset input:disabled + label,
682
+ .fr-fieldset input:disabled + label .fr-hint-text,
683
+ .fr-fieldset input:disabled + label + .fr-hint-text {
684
+ color: graytext;
685
+ }
686
+
687
+ .fr-message--error::before,
688
+ .fr-message--error::after,
689
+ .fr-message--valid::before,
690
+ .fr-message--valid::after,
691
+ .fr-message--warning::before,
692
+ .fr-message--warning::after,
693
+ .fr-message--info::before,
694
+ .fr-message--info::after {
695
+ forced-color-adjust: none;
696
+ background-color: canvastext;
697
+ }
698
+
699
+ .fr-error-text::before,
700
+ .fr-valid-text::before,
701
+ .fr-info-text::before {
702
+ forced-color-adjust: none;
703
+ background-color: canvastext;
704
+ }
705
+ }
706
+ /*!
707
+ * DSFR v1.14.4 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions)
708
+ */
709
+ /* ¯¯¯¯¯¯¯¯¯ *\
710
+ SELECT
711
+ \* ˍˍˍˍˍˍˍˍˍ */
712
+ .fr-select {
713
+ display: block;
714
+ -webkit-appearance: none;
715
+ -moz-appearance: none;
716
+ appearance: none;
717
+ width: 100%;
718
+ border-radius: 0.25rem 0.25rem 0 0;
719
+ font-size: 1rem;
720
+ line-height: 1.5rem;
721
+ padding: 0.5rem 2.5rem 0.5rem 1rem;
722
+ background-repeat: no-repeat;
723
+ background-position: calc(100% - 1rem) 50%;
724
+ background-size: 1rem 1rem;
725
+ color: var(--text-default-grey);
726
+ background-color: var(--background-contrast-grey);
727
+
728
+ --idle: transparent;
729
+ --hover: var(--background-contrast-grey-hover);
730
+ --active: var(--background-contrast-grey-active);
731
+ box-shadow: inset 0 -2px 0 0 var(--border-plain-grey);
732
+
733
+ --data-uri-svg: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' viewBox='0 0 24 24' ><path fill='%23161616' d='M12,13.1l5-4.9l1.4,1.4L12,15.9L5.6,9.5l1.4-1.4L12,13.1z'/></svg>");
734
+ background-image: var(--data-uri-svg);
735
+ /**
736
+ * Mixin pour gérer l'état disabled
737
+ */
738
+ /**
739
+ * On applique un style lorsque la valeur est automatiquement remplie par le navigateur
740
+ * sur les navigateurs webkit.
741
+ */
742
+ }
743
+
744
+ .fr-select-group {
745
+ position: relative;
746
+ }
747
+
748
+ .fr-select-group .fr-message:first-child {
749
+ margin-top: 1rem;
750
+ }
751
+
752
+ .fr-select-group--valid::before,
753
+ .fr-select-group--error::before,
754
+ .fr-select-group--info::before {
755
+ content: "";
756
+ display: block;
757
+ pointer-events: none;
758
+ position: absolute;
759
+ top: 0;
760
+ right: -0.75rem;
761
+ bottom: 0;
762
+ left: -0.75rem;
763
+ background-repeat: no-repeat;
764
+ background-position: 0 0;
765
+ background-size: 0.125rem 100%;
766
+ }
767
+
768
+ :root[data-fr-theme=dark] .fr-select {
769
+ --data-uri-svg: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' viewBox='0 0 24 24' ><path fill='%23fff' d='M12,13.1l5-4.9l1.4,1.4L12,15.9L5.6,9.5l1.4-1.4L12,13.1z'/></svg>");
770
+ }
771
+
772
+ .fr-fieldset--valid .fr-select,
773
+ .fr-select-group--valid .fr-select {
774
+ box-shadow: inset 0 -2px 0 0 var(--border-plain-success);
775
+ }
776
+
777
+ .fr-fieldset--error .fr-select,
778
+ .fr-select-group--error .fr-select {
779
+ box-shadow: inset 0 -2px 0 0 var(--border-plain-error);
780
+ }
781
+
782
+ .fr-select-group--error::before {
783
+ background-image: linear-gradient(0deg, var(--border-plain-error), var(--border-plain-error));
784
+ }
785
+
786
+ .fr-select-group--valid::before {
787
+ background-image: linear-gradient(0deg, var(--border-plain-success), var(--border-plain-success));
788
+ }
789
+
790
+ .fr-select-group--info::before {
791
+ background-image: linear-gradient(0deg, var(--border-plain-info), var(--border-plain-info));
792
+ }
793
+
794
+ .fr-select:disabled {
795
+ color: var(--text-disabled-grey);
796
+ box-shadow: inset 0 -2px 0 0 var(--border-disabled-grey);
797
+
798
+ --data-uri-svg: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' viewBox='0 0 24 24' ><path fill='%23929292' d='M12,13.1l5-4.9l1.4,1.4L12,15.9L5.6,9.5l1.4-1.4L12,13.1z'/></svg>");
799
+ background-image: var(--data-uri-svg);
800
+ }
801
+
802
+ :root[data-fr-theme=dark] .fr-select:disabled {
803
+ --data-uri-svg: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' viewBox='0 0 24 24' ><path fill='%23666' d='M12,13.1l5-4.9l1.4,1.4L12,15.9L5.6,9.5l1.4-1.4L12,13.1z'/></svg>");
804
+ }
805
+
806
+ .fr-select:-webkit-autofill,
807
+ .fr-select:-webkit-autofill:hover,
808
+ .fr-select:-webkit-autofill:focus {
809
+ box-shadow: inset 0 -2px 0 0 var(--border-plain-grey), inset 0 0 0 1000px var(--background-contrast-blue-france);
810
+ -webkit-text-fill-color: var(--text-label-grey);
811
+ }
812
+ @media (min-width: 36em) {
813
+ /*! media sm */
814
+ }
815
+ @media (min-width: 48em) {
816
+ /*! media md */
817
+ }
818
+ @media (min-width: 62em) {
819
+ /*! media lg */
820
+ }
821
+ @media (min-width: 78em) {
822
+ /*! media xl */
823
+ }
824
+ @media (-ms-high-contrast: active), (forced-colors: active) {
825
+ .fr-select {
826
+ background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' viewBox='0 0 24 24' fill='canvastext'><path d='M12,13.1l5-4.9l1.4,1.4L12,15.9L5.6,9.5l1.4-1.4L12,13.1z'/></svg>");
827
+ }
828
+ }
829
+ input,
830
+ select,
831
+ textarea {
832
+ -webkit-appearance: none;
833
+ -moz-appearance: none;
834
+ appearance: none;
835
+ font-family: "Marianne", arial, sans-serif;
836
+ text-rendering: optimizeLegibility;
837
+ -webkit-font-smoothing: antialiased;
838
+ -moz-osx-font-smoothing: grayscale;
839
+ -webkit-text-size-adjust: 100%;
840
+ border-radius: 0;
841
+ border: 0;
842
+ background-color: transparent;
843
+ margin: 0;
844
+ }
845
+ @media (-ms-high-contrast: active), (forced-colors: active) {
846
+ input,
847
+ select,
848
+ textarea {
849
+ border: 1px solid;
850
+ }
851
+ }
852
+
853
+ input[type=search] {
854
+ -webkit-appearance: none;
855
+ -moz-appearance: none;
856
+ appearance: none;
857
+ }
858
+
859
+ input[type=checkbox],
860
+ input[type=radio],
861
+ input[type=range] {
862
+ -webkit-appearance: auto;
863
+ -moz-appearance: auto;
864
+ appearance: auto;
865
+ }
866
+
867
+ input::-webkit-contacts-auto-fill-button,
868
+ input::-webkit-credentials-auto-fill-button {
869
+ margin-left: 1rem;
870
+ margin-right: -1px;
871
+ width: 1.25rem;
872
+ height: 1.25rem;
873
+ -webkit-mask-size: 1.25rem 1.25rem;
874
+ }
875
+
876
+ input[type=range]:focus::-webkit-slider-thumb {
877
+ outline-offset: 2px;
878
+ outline-width: 2px;
879
+ outline-color: #0a76f6;
880
+ }
881
+
882
+ input[type=range]:focus::-moz-range-thumb {
883
+ outline-offset: 2px;
884
+ outline-width: 2px;
885
+ outline-color: #0a76f6;
886
+ }
887
+
888
+ input[type=range]:focus::-ms-thumb {
889
+ outline-offset: 2px;
890
+ outline-width: 2px;
891
+ outline-color: #0a76f6;
892
+ }
893
+
894
+ a:focus, button:focus, input:focus, input[type=checkbox]:focus + label::before, input[type=radio]:focus + label::before, input[type=button]:focus, input[type=image]:focus, input[type=reset]:focus, input[type=submit]:focus, select:focus, textarea:focus, [tabindex]:focus, video:focus[controls], audio:focus[controls], [contenteditable]:not([contenteditable=false]):focus, details:focus, details > summary:first-of-type:focus {
895
+ outline-offset: 2px;
896
+ outline-width: 2px;
897
+ outline-color: #0a76f6;
898
+ }
899
+
900
+ input[type=range]:focus::-webkit-slider-thumb {
901
+ outline-style: solid;
902
+ }
903
+
904
+ input[type=range]:focus::-moz-range-thumb {
905
+ outline-style: solid;
906
+ }
907
+
908
+ input[type=range]:focus::-ms-thumb {
909
+ outline-style: solid;
910
+ }
911
+
912
+ a:focus, button:focus, input:focus, input[type=checkbox]:focus + label::before, input[type=radio]:focus + label::before, input[type=button]:focus, input[type=image]:focus, input[type=reset]:focus, input[type=submit]:focus, select:focus, textarea:focus, [tabindex]:focus, video:focus[controls], audio:focus[controls], [contenteditable]:not([contenteditable=false]):focus, details:focus, details > summary:first-of-type:focus {
913
+ outline-style: solid;
914
+ }
915
+
916
+ input[type=range]:focus:not(:focus-visible)::-webkit-slider-thumb {
917
+ outline-style: none;
918
+ }
919
+
920
+ input[type=range]:focus:not(:focus-visible)::-moz-range-thumb {
921
+ outline-style: none;
922
+ }
923
+
924
+ input[type=range]:focus:not(:focus-visible)::-ms-thumb {
925
+ outline-style: none;
926
+ }
927
+
928
+ a:focus:not(:focus-visible), button:focus:not(:focus-visible), input:focus:not(:focus-visible), input[type=checkbox]:focus:not(:focus-visible) + label::before, input[type=radio]:focus:not(:focus-visible) + label::before, input[type=button]:focus:not(:focus-visible), input[type=image]:focus:not(:focus-visible), input[type=reset]:focus:not(:focus-visible), input[type=submit]:focus:not(:focus-visible), select:focus:not(:focus-visible), textarea:focus:not(:focus-visible), [tabindex]:focus:not(:focus-visible), video:focus:not(:focus-visible)[controls], audio:focus:not(:focus-visible)[controls], [contenteditable]:not([contenteditable=false]):focus:not(:focus-visible), details:focus:not(:focus-visible), details > summary:first-of-type:focus:not(:focus-visible) {
929
+ outline-style: none;
930
+ }
931
+
932
+ input[type=range]:focus-visible::-webkit-slider-thumb {
933
+ outline-style: solid;
934
+ }
935
+
936
+ input[type=range]:focus-visible::-moz-range-thumb {
937
+ outline-style: solid;
938
+ }
939
+
940
+ input[type=range]:focus-visible::-ms-thumb {
941
+ outline-style: solid;
942
+ }
943
+
944
+ a:focus-visible, button:focus-visible, input:focus-visible, input[type=checkbox]:focus-visible + label::before, input[type=radio]:focus-visible + label::before, input[type=button]:focus-visible, input[type=image]:focus-visible, input[type=reset]:focus-visible, input[type=submit]:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible, video:focus-visible[controls], audio:focus-visible[controls], [contenteditable]:not([contenteditable=false]):focus-visible, details:focus-visible, details > summary:first-of-type:focus-visible {
945
+ outline-style: solid;
946
+ }
947
+
948
+ @media (hover: hover) and (pointer: fine) {
949
+ :root {
950
+ --brighten: -1;
951
+ }
952
+ a[href]:hover, button:not(:disabled):hover, input[type=button]:not(:disabled):hover, input[type=image]:not(:disabled):hover, input[type=reset]:not(:disabled):hover, input[type=submit]:not(:disabled):hover {
953
+ background-color: var(--hover-tint);
954
+ }
955
+ a[href]:active, button:not(:disabled):active, input[type=button]:not(:disabled):active, input[type=image]:not(:disabled):active, input[type=reset]:not(:disabled):active, input[type=submit]:not(:disabled):active {
956
+ background-color: var(--active-tint);
957
+ }
958
+ a[href]:hover, a[href]:active {
959
+ --underline-hover-width: var(--underline-max-width);
960
+ }
961
+ }
962
+ button, input[type=button], input[type=image], input[type=reset], input[type=submit] {
963
+ --hover-tint: var(--hover);
964
+ --active-tint: var(--active);
965
+ }
966
+
967
+ a {
968
+ --hover-tint: var(--idle);
969
+ --active-tint: var(--active);
970
+ }
971
+
972
+ a, button, input[type=checkbox], input[type=checkbox] + label, input[type=radio], input[type=radio] + label, input[type=file], input[type=range], input[type=button], input[type=image], input[type=reset], input[type=submit], select, video[controls], audio[controls], details, details > summary:first-of-type {
973
+ cursor: pointer;
974
+ }
975
+
976
+ input[type=range]:disabled::-webkit-slider-thumb, input[type=range]:disabled::-webkit-slider-thumb:active {
977
+ cursor: not-allowed;
978
+ }
979
+
980
+ input[type=range]:disabled::-moz-range-thumb, input[type=range]:disabled::-moz-range-thumb:active {
981
+ cursor: not-allowed;
982
+ }
983
+
984
+ input[type=range]:disabled::-ms-thumb, input[type=range]:disabled::-ms-thumb:active {
985
+ cursor: not-allowed;
986
+ }
987
+
988
+ a:not([href]), button:disabled, input:disabled, input[type=checkbox]:disabled, input[type=checkbox]:disabled + label, input[type=radio]:disabled, input[type=radio]:disabled + label, input[type=file]:disabled, input[type=range]:disabled, input[type=button]:disabled, input[type=image]:disabled, input[type=reset]:disabled, input[type=submit]:disabled, select:disabled, textarea:disabled, video:not([href])[controls], audio:not([href])[controls] {
989
+ cursor: not-allowed;
990
+ }
991
+
992
+ input[type=range]::-webkit-slider-thumb {
993
+ cursor: grab;
994
+ }
995
+
996
+ input[type=range]::-moz-range-thumb {
997
+ cursor: grab;
998
+ }
999
+
1000
+ input[type=range]::-ms-thumb {
1001
+ cursor: grab;
1002
+ }
1003
+
1004
+ input[type=range]::-webkit-slider-thumb:active {
1005
+ cursor: grabbing;
1006
+ }
1007
+
1008
+ input[type=range]::-moz-range-thumb:active {
1009
+ cursor: grabbing;
1010
+ }
1011
+
1012
+ input[type=range]::-ms-thumb:active {
1013
+ cursor: grabbing;
1014
+ }
1015
+
1016
+ /**
1017
+ * Override de l'opacité chrome sur un élément disabled
1018
+ */
1019
+ a:not([href]), button:disabled, input:disabled, input[type=checkbox]:disabled, input[type=checkbox]:disabled + label, input[type=radio]:disabled, input[type=radio]:disabled + label, select:disabled, textarea:disabled, video:not([href]), audio:not([href]) {
1020
+ opacity: 1;
1021
+ }
1022
+
1023
+ *,
1024
+ *::before,
1025
+ *::after {
1026
+ box-sizing: inherit;
1027
+ }
1028
+
1029
+ :root {
1030
+ box-sizing: border-box;
1031
+ }
1032
+
1033
+ input,
1034
+ select,
1035
+ textarea,
1036
+ label,
1037
+ button,
1038
+ a {
1039
+ -webkit-tap-highlight-color: transparent;
1040
+ }
1041
+
1042
+ select optgroup {
1043
+ font-style: normal;
1044
+ }
1045
+
1046
+ :host(dsfr-select) {
1047
+ display: block;
1048
+ text-rendering: optimizeLegibility;
1049
+ -webkit-font-smoothing: antialiased;
1050
+ -moz-osx-font-smoothing: grayscale;
1051
+ -webkit-text-size-adjust: 100%;
1052
+ font-size: 1rem;
1053
+ line-height: 1.5rem;
1054
+ background-color: var(--background-default-grey);
1055
+ --idle: transparent;
1056
+ --hover: var(--background-default-grey-hover);
1057
+ --active: var(--background-default-grey-active);
1058
+ color: var(--text-default-grey);
1059
+ background-color: transparent;
1060
+ }
1061
+
1062
+ .fr-select-group {
1063
+ box-sizing: border-box;
1064
+ }
1065
+
1066
+ .fr-select-group:not(:last-child) {
1067
+ margin-bottom: 0;
1068
+ }</style>