.. _reference-regle-at: Règles-at (*at-rules*) ###################### .. raw:: html Règles-at Les règles-at commencent par un mot-clé-at : un caractère ``@`` immédiatement suivi par un identificateur (par exemple ``@import``, ``@page``) Une règle-at est constituée de tout ce qu’elle contient jusqu’au prochain point-virgule ou prochain bloc. [#at-rules]_. Les règles-at correspondent à des usages particuliers, comme définir l’encodage utilisé ou définir un format spécifique auquel associer des jeux de règles. Il existe `une douzaine de règles-at `_; Exemple ******* .. code-block:: css @charset "UTF-8"; @import url('landscape.css') screen and (orientation:landscape); @media print { /* contenu */ } Règles-at imbriquées ******************** Lorsqu'une règle-at peut être imbriquée, on peut parler de règle-at imbriquée (*nested at-rule*) [#nested-statement]_. .. [#at-rules] “At-rules start with an at-keyword, which is an identifier beginning with '@' (for example, '@import', '@page', etc.).” – `“Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification – 4 Syntax and basic data types.” `_ Edited by Bert Bos et al., Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification – 4 Syntax and basic data types, W3C, 12 Apr. 2016. .. [#nested-statement] https://developer.mozilla.org/en-US/docs/Web/CSS/Syntax#CSS_statements