:root {
    --block-color-hover: rgba(224, 224, 224, 0.5);
    --block-color-active: rgba(194, 194, 194, 0.5);
    --color-hover: var(--block-color-hover);
    --color-active: var(--block-color-active);
}
.h2-active h2 {
    padding: 0.3em;
    background: var(--menu);
    color: #fff;
    margin: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem !important;
}
.Mettre-au-premier-plan {
    background: #ffB648 !important;
}

/* S’applique à l’en-tête et aux lignes, car la structure est la même */
.fr-accordion__btn.fr-grid-row {
  display: flex;        /* généralement déjà le cas avec DSFR, on force au besoin */
  flex-wrap: wrap;
}
.fr-accordion__btn::after{
    order:6;
}
/* Date de réception (actuellement 1re) → passe en dernier */
.fr-accordion__btn.fr-grid-row > :nth-child(1) { order: 5; }

/* Statut (2e) → 4e */
.fr-accordion__btn.fr-grid-row > :nth-child(2) { order: 4; }

/* Région (3e) → 3e */
.fr-accordion__btn.fr-grid-row > :nth-child(3) { order: 3; }

/* Mode de recours (4e) → 2e */
.fr-accordion__btn.fr-grid-row > :nth-child(4) { order: 2; }

/* Référence (5e) → 1re */
.fr-accordion__btn.fr-grid-row > :nth-child(5) { order: 1; }
.fr-alert-fill::before{
    content: "";
    display: inline-block;
    width: 13.5rem;
    height: 13.5rem;
    background-color: currentColor;  
    -webkit-mask-image: url("../images/alert-fill.svg");
    mask-image: url("../images/alert-fill.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
}
.fr-accordion__btn[aria-expanded="true"] {
  background-color: rgba(0,0,0,0.1) !important;
}
.fr-alert-fill{
    align-content: center;
    align-items: center;
    display: flex;
    text-align: center;
    margin: auto;
}
.advertisement .fr-alert-fill::before {
    color: var(--menu);
}

.fr-icon-arrow-right-line::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    -webkit-mask-image: url("../images/arrow-right-line.svg");
    mask-image: url("../images/arrow-right-line.svg");
}
.menu-aussi {
    padding: 0 0 1em 0;
    box-shadow: 0 4px 8px 3px rgb(0 0 0 / 20%);
    border: 1px solid transparent;
    margin-top: 0;
    position: sticky;
    position: -webkit-sticky;
    position: sticky;
    top: 0;

}
.nav-sommaire {
  border: 1px solid #eee;
  margin-left: 0 !important;
  margin-bottom: 1.5em;
  padding:0.5rem;
}
.sommaire-back{display:none;}
.menu-aussi .lien-article, .menu-aussi .resume {
    padding: 0 0.5rem 0.5rem;
}
div.menu-aussi a.on {
    /* background-image: linear-gradient(0deg, var(--color-hover), var(--color-hover)); */
}
.travaux-p p{
    margin:0 !important;
}
#pagination_list{
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 1rem 0;
  margin: auto;
}
#formulaire_formidable_contact_form select{
    display: block;
    width: 100%;
    border-radius: 0.25rem 0.25rem 0 0;
    font-size: 1rem;
    line-height: 1.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-label-grey);
    background-color: var(--background-contrast-grey);
    --idle: transparent;
    --hover: var(--background-contrast-grey-hover);
    --active: var(--background-contrast-grey-active);
    box-shadow: inset 0 -2px 0 0 var(--border-plain-grey);
}
#formulaire_formidable_contact_form select, input, textarea{
    margin-bottom:2rem;
}
#formulaire_formidable_contact_form button.submit{
    --text-spacing: 0;
    --title-spacing: 0;
    z-index: 1;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    width: -moz-fit-content;
    width: fit-content;
    --underline-img: none;
    --hover-tint: var(--hover);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5rem;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    --idle: transparent;
    --hover: var(--background-action-high-blue-france-hover);
    --active: var(--background-action-high-blue-france-active);
    color: var(--text-inverted-blue-france);
}
:root{
    --menu: #335891;
}

/***
 * Fallback activate link
 */
.tac_activate {
    background: #333;
    display: table;
    font-size: 12px;
    height: 100%;
    line-height: initial;
    margin: auto;
    text-align: center;
    width: 100%;
}

.tac_float {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.tac_activate .tac_float strong {
    color: #fff;
}

.tac_activate .tac_float .tarteaucitronAllow {
    background-color: #1B870B;
    display: inline-block;
}

/***
 * CSS for services
 */
ins.ferank-publicite, ins.adsbygoogle {
    text-decoration: none;
}

div.amazon_product {
    height:240px;
    width:120px;
}
.article-avec-sommaire .nav-sommaire{
    border:none !important;
}
/*.h2-active a{
    color: #000 !important;
}*/
.btn {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
}
#footer {
    margin-top: 2rem;
}
footer a[href]{
  background-image: none;
  background-position: var(--underline-x) 100%, var(--underline-x) calc(100% - 0.0625em);
  background-repeat: no-repeat, no-repeat;
  transition: background-size 0s;
  background-size: var(--underline-hover-width) 0.125em, var(--underline-idle-width) 0.0625em;
}
footer a[href]:hover, main a[href],  main a[href]:hover{
  background-image: var(--underline-img), var(--underline-img) ;
  background-position: var(--underline-x) 100%, var(--underline-x) calc(100% - 0.0625em);
  background-repeat: no-repeat, no-repeat;
  transition: background-size 0s;
  background-size: var(--underline-hover-width) 0.125em, var(--underline-idle-width) 0.0625em;
}
a.spip_ancre:hover{
  text-decoration: underline;
}

/* Décalage progressif des niveaux imbriqués */
.nav-sommaire ul ul {
  margin-left: 1.5rem; /* tu ajustes la valeur comme tu veux */
  list-style-type: disc; /* optionnel : pour changer les puces */
}

.nav-sommaire ul ul ul {
  margin-left: 1.5rem; /* chaque niveau ajoute un décalage */
}
/* Ajoute un margin-bottom aux <li> du 1er niveau seulement */
.nav-sommaire > ul > li {
  margin-bottom: 1rem;
}
@media (min-width: 48em) {
    .fr-sidemenu__inner {
        box-shadow: inset 1px 0 0 0 var(--border-default-grey) !important;
        padding: 0 0.25rem 0 2rem !important;
    }
}
.btn-bleu, .btn-bleu:visited {
  background: #335991 !important;
  color: #fff !important;
  white-space: normal !important;
  margin-bottom: 0;
}
.h2-active a.btn-bleu{
    color: #FFF !important;
}

[rel="external"]::after {
    --icon-size: 1rem;
    background-color: currentColor;
    content: var(--external-link-content);
    display: inline-block;
    flex: 0 0 auto;
    height: var(--icon-size);
    margin-left: .25rem;
    -webkit-mask-image: url(../icons/system/external-link-fill.svg);
    mask-image: url(../icons/system/external-link-fill.svg);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    vertical-align: calc((.75em - var(--icon-size)) * .5);
    width: var(--icon-size);
  }
.div-tareaucitron, .div-tareaucitron iframe{
    width: 100% !important;
    height: 100% !important;
}
@media (max-width: 415px) {
    .fr-header__brand-top {
        flex-wrap: wrap;
    }

    .fr-header__navbar {
        width: 100%;
        justify-content: flex-end;
    }
}
/* LIGHT MODE - état normal */
.Mettre-au-premier-plan .fr-accordion__btn[aria-expanded="false"] {
    background-color: #E05C00 !important;
    background-image: none !important;
    color: #ffffff !important;
}
.Mettre-au-premier-plan .fr-accordion__btn[aria-expanded="false"] div {
    color: #000 !important;
}

/* LIGHT MODE - hover, focus, ouvert */
.Mettre-au-premier-plan .fr-accordion__btn:hover,
.Mettre-au-premier-plan .fr-accordion__btn:focus,
.Mettre-au-premier-plan .fr-accordion__btn[aria-expanded="true"] {
    background-color: #8B5000 !important;
    background-image: none !important;
    color: #ffffff !important;
}
.Mettre-au-premier-plan .fr-accordion__btn:hover div,
.Mettre-au-premier-plan .fr-accordion__btn:focus div,
.Mettre-au-premier-plan .fr-accordion__btn[aria-expanded="true"] div {
    color: #ffffff !important;
}

/* DARK MODE - tous les états */
[data-fr-theme="dark"] .Mettre-au-premier-plan .fr-accordion__btn {
    background-color: #B34000 !important;
    background-image: none !important;
    color: #ffffff !important;
}
[data-fr-theme="dark"] .Mettre-au-premier-plan .fr-accordion__btn div {
    color: #ffffff !important;
}
[data-fr-theme="dark"] .Mettre-au-premier-plan .fr-accordion__btn:hover,
[data-fr-theme="dark"] .Mettre-au-premier-plan .fr-accordion__btn:focus {
    background-color: #8B5000 !important;
    background-image: none !important;
}