p {
    margin: 2.5rem 0;
    padding: 0;
    text-wrap: pretty;
}
.form-check-top p{
    margin-bottom: 0;
}
.modal-body p:first-child,
.card-body p:first-child,
.flash p,
.form-check-top p:first-child{
    margin: 0;
}
#item-content > p {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.flash p {
    text-align: justify;
    font-weight: 500;
}
figcaption p {
    margin: 0;
}

img, svg {
    vertical-align: middle;
}
img {
    box-sizing: content-box;
    height: auto;
    /*width: auto;*/
    /* max-width: 100%; remplacé par width auto pour que img de /legal fonctionne dans <picture> */
    border-style: none;
}

figure {
    display: block;
    margin: 3rem auto;
    text-align: center;
}

.skill-sheet figure {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

#exercise-skill figure {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

figure picture img {
    max-width: 100%;
    box-shadow: var(--shadow-card);
    border: 2px solid #000;
    border-radius: 10px;
}

figcaption,
.question-skill {
    margin: 1.5rem auto 0;
    padding: 0.5rem 1rem;
    max-width: 100%;
    background-color: var(--black-almost);
    color: #ffffff;
    text-align: center;
    font-size: 1.7rem;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: var(--shadow-card);
}

a, a:hover, a:active, a:focus {
    outline: none;
    text-decoration: none;
}

a {
    color: var(--blue-link);
    font-weight: 700;
}

b, strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

ol, ul, dl {
    margin: 0;
    padding-left: 3rem;
}

main ul {
    margin-top: 2rem;
}

main li {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Target sommaire fiche */
ol li {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

li::marker {
    font-weight: 700;
}

hr {
    opacity: 1;
    height: 0; /* Add the correct height in Firefox */
    margin: 0;
    color: #d8e2ef;
    border: 0;
    border-top: 1px solid;
}

progress {
    vertical-align: baseline; /* Add the correct vertical alignment in Chrome and Firefox */
}

/* Prevent 'sub' and 'sup' elements from affecting the line height in all browsers */
sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sub {
    bottom: -0.25em;
}
sup {
    top: -0.5em;
}

table {
    text-indent: 0; /* Remove text indentation from table contents in Chrome and Safari */
    border-color: inherit; /* Correct table border color inheritance in all Chrome and Safari */
}

legend {
    padding: 0; /* Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers */
}

::-webkit-search-decoration {
    -webkit-appearance: none; /* Remove the inner padding in Chrome and Safari on macOS */
}

::-moz-focus-inner {
    /* Remove the inner border and padding in Firefox */
    border-style: none;
    padding: 0;
}

:-moz-focusring {
    outline: 1px dotted ButtonText; /* Restore the focus styles unset by the previous rule */
}

:-moz-ui-invalid {
    box-shadow: none; /* Remove the additional ':invalid' styles in Firefox */
}

::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto; /* Correct the cursor style of increment and decrement buttons in Safari */
}

::-webkit-file-upload-button {
    -webkit-appearance: button; /* Correct the inability to style clickable types in iOS and Safari */
    font: inherit; /* Change font properties to 'inherit' in Safari */
}
