/**
 * Ce fichier contient les styles CSS qui s'appliquent au contenu des articles et catégorie,
 * que ce soit sur le site public ou dans la prévisualisation de l'administration.
 *
 * Généralement il n'est pas nécessaire de le modifier.
 */

.protected-contact::before {
    content: attr(data-a) "\0040" attr(data-b) "." attr(data-c);
}

.web-content p {
    overflow-wrap: break-word;
    word-wrap: break-word;

    word-break: break-word;

    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.web-content figure {
    margin: 0;
    padding: 0;
}

.web-content p, .web-content h1, .web-content h2, .web-content h3, .web-content h4, .web-content h5, .web-content h6,
.web-content ul, .web-content ol, .web-content table, .web-content blockquote, .web-content pre {
    margin-bottom: 1rem;
}

.web-content ul, .web-content ol, .web-content dd {
    margin-left: 2em;
}

.web-content ul {
    list-style-type: disc;
}

.web-content ol {
    list-style-type: decimal;
}

.web-content blockquote::before {
    content: "”";
    color: rgba(0, 0, 0, 0.5);
    display: block;
    position: absolute;
    font-style: italic;
    font-size: 3rem;
    line-height: 2rem;
    margin-left: -3rem;
}

.web-content blockquote {
    font-size: 1.1em;
    padding-left: 3rem;
}

.web-content a.footnote-ref {
    vertical-align: super;
    font-size: small;
}

.web-content a.footnote-ref, .web-content .footnotes dt a {
    color: blue;
}

.web-content a.footnote-ref::before, .web-content .footnotes dt a::before {
    content: "[";
}

.web-content a.footnote-ref::after, .web-content .footnotes dt a::after {
    content: "]";
}

.web-content dl.footnotes {
    display: grid;
    grid-template-columns: .1fr .9fr;
    border-top: 2px solid rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
    padding-top: 1rem;
    color: #333;
}

.web-content hr {
    border: none;
    border-top: 2px solid rgba(0, 0, 0, 0.5);
    margin: 1rem 0;
}

.web-content code, .web-content pre {
    background: rgba(100, 100, 100, 0.2);
    padding: .2rem;
}

.web-content pre code {
    background: unset;
    padding: unset;
}

.web-content pre, .web-content table {
    overflow-x: auto;
    max-width: 100%;
}

.web-content dl.footnotes dd {
    margin: 0;
    margin-bottom: 1rem;
}

.web-content dl.footnotes dd p {
    margin: 0;
    margin-bottom: 1rem;
}

.web-content table {
    border-collapse: collapse;
}

.web-content table th, .web-content table td {
    border: 1px solid #999;
    padding: .5rem;
    text-align: center;
}

.web-content table thead {
    background: rgba(100, 100, 100, 0.4);
    font-weight: bold;
    border-bottom: 5px solid #999;
}

.web-content table tbody tr:nth-child(even) {
    background: rgba(100, 100, 100, 0.2);
}

.web-content mark {
    background: #ffb;
    color: #000;
    padding: 1px 3px;
    display: inline-block;
    box-shadow: 0px 0px 3px 1px #990;
    border-radius: .2em;
}

.web-content kbd {
    background: #ccc;
    color: #000;
    padding: 2px 4px;
    display: inline-block;
    box-shadow: 0px 2px 3px 1px #999;
    border: 1px solid #fff;
    border-radius: .2em;
}

.web-content samp {
    background: #333;
    color: #fff;
    padding: 2px 4px;
    display: inline-block;
    border-radius: .2em;
}

.web-content del {
    color: darkred;
    text-decoration: line-through;
}

.web-content ins {
    color: darkgreen;
    text-decoration: underline overline;
    text-decoration-color: green;
}

.web-content var {
    color: darkblue;
    background: #ddd;
    border-radius: .2em;
    padding: 2px 4px;
    display: inline-block;
}

.web-content aside.toc {
    float: right;
    margin-left: 2em;
    max-width: 20em;
}

.web-content .toc {
    margin: 1rem 0;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.1);
    padding: .3rem;
    display: block;
    width: fit-content;
}

.web-content .toc ol {
    list-style: none;
    counter-reset: item;
    margin: .5rem 0 .5rem .5rem;
}

.web-content .toc ol li:before {
    content: counters(item, ".") " ";
    counter-increment: item;
    color: #666;
}


.web-content figure.file {
    display: inline-block;
    margin: .8em;
}

.web-content figure.file > a {
    background: #ddd;
    display: block;
    border-radius: .5rem;
    overflow: hidden;
    text-align: center;
    transition: background-color .2s, color .2s;
    text-decoration: none;
}

.web-content figure.file img {
    border-radius: .3rem;
    margin-top: .5rem;
}

.web-content figure.file small {
    display: block;
    background: no-repeat .5em center;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20px" version="1.1" viewBox="0 0 33.87 33.87" xmlns="http://www.w3.org/2000/svg"><g transform="translate(-45.16 -132.5)"><path d="m46.87 166.3c-1.895-0.8504-2.04-3.422-1.368-5.124 0.4287-0.9042 1.363-1.675 2.405-1.471h29.27c1.387 0.5818 2.074 2.134 1.853 3.586 0.137 1.429-0.8551 3.219-2.472 3.059-8.696 0.1509-17.4 0.0429-26.09 0.0478-1.196-0.027-2.4 0.0278-3.591-0.0985zm14.74-10.2c-2.695-3.234-5.319-6.532-7.861-9.888-0.6409-1.955 1.712-1.953 2.991-1.809h1.863c5.01e-4 -3.406 1e-3 -6.812 0.0015-10.22 0.3553-1.875 2.409-1.689 3.866-1.626 1.341-0.2301 3.068 0.2243 3.15 1.818 4.92e-4 3.342 9.83e-4 6.684 0.0015 10.03 1.442 0.0378 2.903-0.0975 4.331 0.1108 1.533 1.159-0.2458 2.66-0.9956 3.69-2.104 2.658-4.17 5.352-6.377 7.926-0.2941 0.1659-0.6875 0.1582-0.9702-0.0291z" fill="%23666"/></g></svg>');
    padding-left: 32px;
    font-size: .9em;
}

.web-content figure.file figcaption {
    display: block;
    text-decoration: none;
    padding: .5rem;
    font-style: normal;
    color: darkblue;
}

.web-content figure.file a b {
    font-size: 1.2em;
    text-decoration: underline;
}

.web-content figure.file a:hover {
    background-color: #ccc;
}

.web-content figure.file a:hover figcaption {
    color: darkred;
}

.web-content iframe {
    margin: 1rem auto;
    display: block;
}

.web-content figure.image, .web-content figure.video {
    text-align: center;
    margin-bottom: 1rem;
}

.web-content figure.video {
    position: relative;
}

.web-content figure.video iframe {
    margin: 0;
}

/** Video preview (youtube) */
.web-content figure.video a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.web-content figure.video a img {
    transition: opacity .2s;
    background: #000;
    max-width: 95%;
}

.web-content figure.video a::after, .web-content figure.video button::after {
    position: absolute;
    content: " ";
    background: no-repeat center center;
    background-size: 200px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 576 512" xmlns="http://www.w3.org/2000/svg" fill="rgba(255, 255, 255, 0.9)" style="filter: drop-shadow(0 0 2px rgba(0, 0, 0, .7));"><path d="m549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597-42.59-11.486-213.371-11.486-213.371-11.486s-170.78 0-213.371 11.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821 42.591 11.486 213.371 11.486 213.371 11.486s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508v-162.406l142.739 81.205z"/></svg>');
    display: block;
    margin: 0 auto;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    visibility: visible;
}

.web-content figure.video a:hover img {
    opacity: 0.7;
}

.web-content video {
    margin: .8em auto;
    display: block;
    width: 95%;
    position: relative;
}

.web-content figure.video button {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    visibility: hidden;
}

.web-content figure.image figcaption {
    font-style: italic;
    color: #666;
    margin-top: 2pt;
}

.web-content figure.image.img-center {
    max-width: 90%;
    margin: 0 auto 1rem auto;
}

.web-content figure.image.img-left {
    max-width: 250px;
    float: left;
    margin: 0 8pt 4pt 0;
    clear: left;
}

.web-content figure.image.img-right {
    max-width: 250px;
    float: right;
    margin: 0 0 4pt 8pt;
    clear: right;
}

.web-content figure.image.img-left figcaption, .web-content figure.image.img-right figcaption {
    font-size: .8em;
}

.web-content a.internal-image {
    cursor: zoom-in;
}

.web-content img, .web-content object {
    max-width: 100%;
}

.web-content .gallery, .web-content .slideshow {
    margin: 1em;
}


.web-content .gallery figcaption {
    font-style: italic;
    color: #666;
    margin-top: 2pt;
    font-size: .9em;
}

.web-content .gallery.grid figcaption {
    margin-top: -1.2rem;
    color: #fff;
    text-shadow: 0px 0px 5px #000;
}

.web-content .gallery .images {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 10px;
    justify-content: center;
}

.web-content .gallery figure {
    flex: 1 1 auto;
    max-height: 180px;
    display: block;
    text-align: center;
}

.web-content .gallery img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

.web-content .gallery .images::after {
    content: "";
    flex-grow: 1;
    width: 1px;
    display: block;
}

.web-content .gallery.center .images {
    align-items: center;
}


.web-content .gallery.center figure {
    max-height: none;
    flex: inherit;
}

.web-content .gallery.center img {
    object-fit: contain;
    width: auto;
    height: auto;
}

.web-content .gallery.center .images::after {
    display: none;
}

.web-content .slideshow {
    position: relative;
    width: 100%;
    margin: 1em auto;
}

.web-content .slideshow .images {
    display: block;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    height: 450px;
    width: 100%;
    white-space: nowrap;
}

.web-content .slideshow .index {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.web-content .slideshow button {
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .2);
    color: #000;
    font-weight: bold;
    font-size: 12pt;
    min-width: 3ch;
    height: 3ch;
    margin: .2em;
    cursor: pointer;
    text-align: center;
}

.web-content .slideshow button:hover {
    color: darkred;
    background: rgba(255, 255, 255, .2);
    box-shadow: 0px 0px 5px #000;
}

.web-content .slideshow button.current {
    background: rgba(255, 165, 0, .3);
    box-shadow: 0px 0px 5px #999;
}

.web-content .slideshow .nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.web-content .slideshow figure, .web-content .slideshow a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.web-content .slideshow figure {
    position: relative;
}

.web-content .slideshow figcaption {
    position: absolute;
    bottom: 1rem;
    color: #fff;
    text-shadow: 0px 0px 5px #000;
}

.web-content .slideshow img {
    max-width: 100%;
    max-height: 95%;
}

.imageBrowser {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: url("data:image/svg+xml;base64,PCEtLSBCeSBTYW0gSGVyYmVydCAoQHNoZXJiKSwgZm9yIGV2ZXJ5b25lLiBNb3JlIEAgaHR0cDovL2dvby5nbC83QUp6YkwgLS0+Cjxzdmcgd2lkdGg9IjM4IiBoZWlnaHQ9IjM4IiB2aWV3Qm94PSIwIDAgMzggMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMSAxKSIgc3Ryb2tlLXdpZHRoPSIyIj4KICAgICAgICAgICAgPGNpcmNsZSBzdHJva2Utb3BhY2l0eT0iLjUiIGN4PSIxOCIgY3k9IjE4IiByPSIxOCIvPgogICAgICAgICAgICA8cGF0aCBkPSJNMzYgMThjMC05Ljk0LTguMDYtMTgtMTgtMTgiPgogICAgICAgICAgICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIGZyb209IjAgMTggMTgiIHRvPSIzNjAgMTggMTgiIGR1cj0iMXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+CiAgICAgICAgICAgIDwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==") no-repeat center center;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity .5s;
    cursor: zoom-out;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.imageBrowser figure {
    max-height: 90%;
    max-width: 90%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s;
    margin: 0;
}

.imageBrowser figure img {
    max-width: 100%;
    max-height: 100%;
    border: .5em solid #000;
    border-radius: .5em;
    cursor: pointer;
    background: #fff;
    /* For transparent images */
    background-image:
        linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
        linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
}

.imageBrowser figure.loading {
    opacity: 0;
}

.imageBrowser figure.loading img {
    border: none;
}

.web-grid {
    /* Default grid template: just auto sized columns */;
    --grid-template: none / repeat(auto-fit, minmax(100px, 1fr));
    grid-gap: 1rem;
    display: grid;
    margin-bottom: 1rem;
}

.web-grid-debug {
    grid-gap: 5px;
    min-height: 10em;
    width: 20em;
    grid-template-rows: 6em;
    grid-template: var(--grid-template);
}

.web-grid-debug .web-block {
    background: #999;
    overflow: hidden;
    padding: 5px;
    color: #333;
}

@media handheld, screen and (max-width: 980px) {
    .imageBrowser figure {
        max-width: 100%;
        max-height: 100%;
    }
}

@media screen and (min-width: 800px) {
    .web-grid {
        /* Get template from variable, which is defined style attribute */
        grid-template: var(--grid-template);
    }
}