#sungauu,#sambit, #collaborations,#conseilsDukun, #lieuxInterdits, #mielVendus, #mielEchanges{
    padding-left: 110px;
    border-style: inset;
}

body{
    font-family: "Montserrat",sans-serif;
    font-size: larger;
    font-weight: 420;
}
input.invalid, textarea.invalid, select.invalid {
  border: 2px solid red !important;  /* Le !important peut aider à forcer le style */
  outline: none; /* Supprime le contour bleu natif */
}

.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 2px;
  font-weight: bold;
}

form{
    margin-left: 30px;
    margin-right: 30px;
}

div{
    margin: 5px 5px 10px 20px;
}

h2:has(> label:only-child){
    margin-top: 20px;
}

h2:not(:has(> label:only-child)) {
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: "Montserrat",sans-serif;
    font-size: revert;
    font-weight: initial;
    margin-bottom: 30px;
}
h2:not(:has(> label:only-child)):before, h2:not(:has(> label:only-child)):after{
    content: "";
    flex: 1 1;
    border-bottom: 1px solid;
    margin: auto;
}
h2:not(:has(> label:only-child)):before {
    margin-right: 25px
}
h2:not(:has(> label:only-child)):after {
    margin-left: 25px
}

h4{
    font-weight: 400;
    font-kerning: normal;
}

input:not([type="submit"]){
    width: 55%;
    box-shadow: grey;
    border-radius: 2px;
    background-color: inherit !important;
    font-size: initial !important;
}

select{
    width: 55%;
}
.formfield{
    margin-top: 20px;
    margin-bottom: 10px;
}

input[type="submit"]{
    border-radius: 3px;
    background-color: #72e081;
    margin-top: 25px;
    width: 30%;
    color: whitesmoke;
}

/*.select2 {*/
/*    width:80% !important;*/
/*}*/

.select2-container--default .select2-selection--single, textarea:not([class="select2-search__field"]), .select2-container--default .select2-selection--multiple {
    box-shadow: grey !important;
    border-radius: 2px !important;
}

/*{*/
/*    box-shadow: grey;*/
/*    border-radius: 2px;*/
/*}*/

.select2-selection__arrow{
    color: #1a1a18 !important;
}

.select2-results__options, .select2-search,.select2-results__option--selected, span:is([role="combobox"]){
    box-shadow: grey;
    border-radius: 2px;
}

.select2-results__option--highlighted{
    background-color: #9e9e9e !important;
}

.btn-remove{
    background-color: red;
    border-radius: 3px;
    border: 1px solid #1a1a18 ;
}

.btn-remove-image{
    height: 20px;
    margin: 0 3px 3px 3px;
}

.postSlashText {
    font-style : italic;
    color : #645b5b;
    font-weight : initial;
}

textarea{
    max-width: 55%;
    width: 55%;
    box-shadow: grey;
    border-radius: 2px;
    font-size: initial !important;
    height: 30%;
}

.markdown-doc {
  background-color: #f9fbfd;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid #5bc0de;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #222;
  max-width: 80%;
  height: 40vh; /* ✅ hauteur fixe */
  overflow-y: auto; /* ✅ scroll si besoin */
  margin: auto;
}

/* Titres moins tape-à-l'œil */
.markdown-doc h1, 
.markdown-doc h2, 
.markdown-doc h3 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin: 1rem 0 0.5rem !important;
    padding-bottom: 0.2rem !important;
    border-bottom: 1px solid #ddd !important;
    color: #333 !important;
}

/* Paragraphes */
.markdown-doc p {
  margin-bottom: 0.6rem;
  font-size: medium !important;
}

/* Listes */
.markdown-doc ul, 
.markdown-doc ol {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
  font-size: medium !important;
}

/* Code inline */
.markdown-doc code {
  background-color: #f1f1f1;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-family: monospace;
  font-size: medium !important;
}

/* Blocs de code */
.markdown-doc pre {
  background-color: #f4f4f4;
  padding: 0.75rem;
  border-radius: 5px;
  font-size: 0.85rem;
  overflow-x: auto;
}

/* Mots importants */
.markdown-doc strong {
  color: #0056b3;
}


/* Neutralise le style des h2 décorés à l'intérieur de .markdown-doc */
.markdown-doc h2:not(:has(> label:only-child)) {
  display: block;            /* annule display:flex */
  margin-top: 0.6rem;        /* marge simple pour la doc */
  margin-bottom: 0.6rem;
  font-family: inherit;
}

.markdown-doc h2:not(:has(> label:only-child))::before,
.markdown-doc h2:not(:has(> label:only-child))::after, .markdown-doc h3:not(:has(> label:only-child))::after {
  content: none;             /* supprime les traits décoratifs */
  border: 0;
  margin: 0;
  flex: 0 0 auto;
}


.btn-doc-toggle{
    padding: 0.5rem 1rem;
    margin-left: 3rem;
}



textarea.form-control {
  max-width: 80% !important;
  width: 80% !important;
  border-radius: 2px;
  font-size: initial !important;
  min-height: 8rem;           /* plus fiable qu’un % */
  resize: both;           /* autorise le redimensionnement vertical et horizontal */
  box-shadow: inset 0 0 0 1px grey; /* box-shadow valide */
}


.selected-not-found {
    border: 2px solid red !important;
    border-radius: 2px;
    background-color: #fff0f0;
}
.select2-selection.selected-not-found .select2-selection__rendered {
  text-decoration: underline;
}
.warning-highlight {
  background: none; /* remove heavy background */
  color: #b71c1c; /* warning red */
  font-weight: 500;
  white-space: nowrap; /* prevent wrapping */
}