
.jr-pastille {
  margin-left: auto;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #a04c3c;
  color: #fbf6ec;
  font-size: 0.72rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jr-pastille[hidden] { display: none; }

#app-burger { position: relative; }
.jr-pastille-burger {
  position: absolute;
  top: -0.3rem;
  right: -0.35rem;
  margin: 0;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  font-size: 0.66rem;
  box-shadow: 0 0 0 2px #7a8a5e;
}

.jr-journal {
  background: #ffffff;
  border: 1px solid rgba(47, 58, 44, 0.1);
  border-radius: 26px;
  padding: clamp(1.4rem, 3.4vw, 3rem) clamp(1.1rem, 3.6vw, 3.4rem) clamp(1.6rem, 3.4vw, 3rem);
  box-shadow: 0 24px 50px -36px rgba(47, 58, 44, 0.35);
}

.jr-tete {
  text-align: center;
  padding-bottom: 1.1rem;
  border-bottom: 3px double rgba(47, 58, 44, 0.55);
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.jr-tete-date {
  margin: 0 0 0.8rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(47, 58, 44, 0.14);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(47, 58, 44, 0.55);
}
.jr-tete-date::before,
.jr-tete-date::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFB59E;
  margin: 0 0.8rem;
  vertical-align: 0.15em;
}
.jr-tete-titre {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #2f3a2c;
}
.jr-tete-devise {
  margin: 0.75rem 0 0;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  color: rgba(47, 58, 44, 0.72);
}

.jr-une-titre,
.jr-breve-titre,
.jr-article-titre,
.jr-chapo,
.jr-une-chapo,
.maj-titre { overflow-wrap: anywhere; }

.jr-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a8a5e;
}
.jr-kicker-date { color: rgba(47, 58, 44, 0.5); }
.jr-nouveau {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #a04c3c;
}
.jr-nouveau::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #a04c3c;
}

.jr-vide {
  margin: 0.4rem 0 0.2rem;
  text-align: center;
  color: rgba(47, 58, 44, 0.7);
}

.jr-une {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2.4rem);
  padding-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.jr-une:has(+ .jr-colonnes) { border-bottom: 1px solid rgba(47, 58, 44, 0.16); }
@media (min-width: 60rem) {
  .jr-une.avec-photo { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
}
.jr-une-photo { margin: 0; }
.jr-une-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
}
.jr-une:not(.avec-photo) .jr-une-texte { max-width: 46rem; margin: 0 auto; text-align: center; }
.jr-une:not(.avec-photo) .jr-kicker { justify-content: center; }
.jr-une-titre {
  margin: 0.55rem 0 0.8rem;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  font-weight: 500;
  line-height: 1.1;
}
.jr-une-chapo {
  margin: 0 0 1.2rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  color: rgba(47, 58, 44, 0.82);
}

.jr-colonnes {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  columns: 3 17rem;
  column-gap: clamp(1.6rem, 3vw, 2.8rem);
  column-rule: 1px solid rgba(47, 58, 44, 0.14);
}
.jr-breve {
  break-inside: avoid;
  display: grid;
  gap: 0.55rem;
  justify-items: start;
  margin: 0 0 1.9rem;
}
.jr-breve-photo { margin: 0 0 0.3rem; width: 100%; }
.jr-breve-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
}
.jr-breve-titre { margin: 0; font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
.jr-breve-chapo { margin: 0; font-size: 0.95rem; line-height: 1.55; color: rgba(47, 58, 44, 0.78); }

.jr-article { max-width: 44rem; margin: 0 auto; }
.jr-retour {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.6rem;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2f3a2c;
  background: rgba(122, 138, 94, 0.13);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.jr-retour svg { width: 1rem; height: 1rem; }
@media (hover: hover) {
  .jr-retour:hover { background: rgba(122, 138, 94, 0.24); }
}
.jr-article-titre {
  margin: 0.6rem 0 0.9rem;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
}
.jr-chapo {
  margin: 0 0 1.4rem;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  font-weight: 600;
  line-height: 1.6;
  color: rgba(47, 58, 44, 0.85);
}
.jr-photo-une { margin: 0 0 1.6rem; }
.jr-photo-une img { display: block; width: 100%; height: auto; border-radius: 20px; }
.jr-journal figcaption,
.maj-fenetre figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(47, 58, 44, 0.6);
}
.jr-corps { font-size: 1.04rem; line-height: 1.75; color: rgba(47, 58, 44, 0.9); }
.jr-corps p { margin: 0 0 1.05rem; }
.jr-inter {
  margin: 1.8rem 0 0.7rem;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  color: #2f3a2c;
}
.jr-puces { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.jr-puces li { position: relative; margin: 0 0 0.45rem; padding-left: 1.4rem; }
.jr-puces li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.72em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #FFB59E;
}
.jr-lien {
  font-weight: 600;
  color: #2f3a2c;
  text-decoration: underline;
  text-decoration-color: #FFB59E;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.jr-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.jr-galerie-photo { margin: 0; }
.jr-galerie-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.maj-fenetre {
  width: min(54rem, calc(100vw - 2rem));
  max-width: none;
  max-height: min(88svh, 62rem);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #fbf6ec;
  color: #2f3a2c;
  box-shadow: 0 40px 90px -40px rgba(24, 30, 22, 0.7);
  overflow: hidden;
}
.maj-fenetre[open] {
  display: flex;
  flex-direction: column;
  animation: maj-pose 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.05) both;
}
@keyframes maj-pose {
  from { opacity: 0; transform: translateY(1.2rem) scale(0.97); }
}
.maj-fenetre::backdrop {
  background: rgba(47, 58, 44, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.maj-defile {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.6rem, 4vw, 2.8rem) clamp(1.2rem, 5vw, 3.4rem) 1.4rem;
}
.maj-une + .maj-une {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(47, 58, 44, 0.14);
}
.maj-sur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.9rem;
  margin: 0 0 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a8a5e;
}
.maj-sur::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #FFB59E;
}
.maj-sur .maj-date { color: rgba(47, 58, 44, 0.5); }
.jr-version { text-transform: none; letter-spacing: 0.04em; }
.maj-sur-tete { margin-bottom: 0.4rem; }
.maj-titre {
  margin: 0 0 0.8rem;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.12;
}
.maj-titre-n { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.maj-chapo {
  margin: 0 0 1.2rem;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  font-weight: 600;
  line-height: 1.6;
  color: rgba(47, 58, 44, 0.84);
}
.maj-photo { margin: 0 0 1.3rem; }
.maj-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 26rem;
  object-fit: cover;
  border-radius: 20px;
}
.maj-pied {
  flex: none;
  display: grid;
  justify-items: center;
  padding: 1rem 1.2rem 1.2rem;
  border-top: 1px solid rgba(47, 58, 44, 0.12);
  background: #fbf6ec;
}
.maj-valider { min-width: min(22rem, 100%); justify-content: center; }
.maj-valider .maj-mot { font-variant-numeric: tabular-nums; }
.maj-apercu-bandeau {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.7rem 1.2rem;
  background: #f5ead8;
  border-bottom: 1px solid rgba(47, 58, 44, 0.12);
  font-size: 0.85rem;
  font-weight: 700;
}
@media (max-width: 40rem) {
  .maj-fenetre { width: calc(100vw - 1rem); max-height: calc(100svh - 1rem); border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .maj-fenetre[open] { animation: none; }
}

.jr-sugg { max-width: 46rem; }
.jr-sugg-titre { margin: 0 0 0.6rem; font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 500; line-height: 1.2; }
.jr-sugg-intro { margin: 0 0 1.2rem; line-height: 1.65; color: rgba(47, 58, 44, 0.8); }
.jr-sugg-champ { display: block; width: 100%; min-height: 10rem; resize: vertical; line-height: 1.6; }
.jr-sugg-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  margin: 0.9rem 0;
}
.jr-sugg-compte { font-size: 0.85rem; color: rgba(47, 58, 44, 0.55); font-variant-numeric: tabular-nums; }
.jr-sugg-note { margin: 0.4rem 0 0; }

.jr-adm-gestes { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.jr-adm-gestes .vc-bouton { margin-top: 0; }
.jr-adm-note { max-width: 46rem; margin: 0.8rem 0 1.4rem; }
.jr-adm-liste { display: grid; gap: 0.6rem; max-width: 56rem; margin: 0; padding: 0; list-style: none; }
.jr-adm-ligne {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem 1rem;
  width: 100%;
  padding: 0.85rem 1.1rem;
  font: inherit;
  text-align: left;
  color: #2f3a2c;
  background: #ffffff;
  border: 1px solid rgba(47, 58, 44, 0.1);
  border-radius: 18px;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
  .jr-adm-ligne:hover { border-color: rgba(122, 138, 94, 0.5); box-shadow: 0 10px 24px -20px rgba(47, 58, 44, 0.5); }
}
.jr-adm-sorte { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #7a8a5e; white-space: nowrap; }
.jr-adm-titre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.jr-adm-etat { font-size: 0.8rem; font-weight: 700; color: rgba(47, 58, 44, 0.55); white-space: nowrap; }
.jr-adm-etat.publie { color: #2f3a2c; }
.jr-adm-etat.publie::before {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #FFB59E;
  margin-right: 0.45rem;
  vertical-align: 0.1em;
}
@media (max-width: 40rem) {
  .jr-adm-ligne { grid-template-columns: minmax(0, 1fr); }
  .jr-adm-titre { white-space: normal; }
}

.jr-ed-barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-bottom: 1rem;
  padding: 0.6rem 0.8rem;
  background: rgba(251, 246, 236, 0.95);
  border: 1px solid rgba(47, 58, 44, 0.1);
  border-radius: 20px;
}
@media (min-width: 64rem) {
  .jr-ed-barre {
    position: sticky;
    top: 4.2rem;
    z-index: 20;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
.jr-ed-barre .jr-retour { margin: 0; }
.jr-ed-etat { flex: 1 1 12rem; font-size: 0.82rem; color: rgba(47, 58, 44, 0.6); }
.jr-ed-gestes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.jr-ed-gestes .vc-bouton,
.jr-ed-bas .vc-bouton,
.jr-ed-confirme .vc-bouton,
.jr-sg-gestes .vc-bouton { margin-top: 0; }
.jr-ed-confirme {
  margin: 0 0 1rem;
  padding: 1rem 1.2rem;
  background: #ffffff;
  border: 1px solid rgba(47, 58, 44, 0.16);
  border-radius: 18px;
}
.jr-ed-confirme[hidden] { display: none; }
.jr-ed-confirme p { margin: 0 0 0.75rem; font-weight: 600; }
.jr-ed-confirme-gestes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jr-ed-reglages { display: grid; gap: 0.9rem 1.4rem; max-width: 56rem; margin-bottom: 1.2rem; }
@media (min-width: 48rem) {
  .jr-ed-reglages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jr-ed-reglages .vc-note { grid-column: 1 / -1; }
}
.jr-ed-champ { display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 700; color: rgba(47, 58, 44, 0.7); }
.jr-ed-champ .champ-saisie { font-weight: 600; }
.jr-ed-delai { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; color: #2f3a2c; }
.jr-ed-delai .champ-saisie { width: 6.5rem; }
.jr-ed-bas { display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: 44rem; margin: 1.4rem auto 0; }

.jr-edition [contenteditable] {
  outline: none;
  border-radius: 10px;
  cursor: text;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
  .jr-edition [contenteditable]:hover { background: rgba(255, 181, 158, 0.12); }
}
.jr-edition [contenteditable]:focus {
  background: rgba(255, 181, 158, 0.16);
  box-shadow: 0 0 0 2px rgba(255, 181, 158, 0.75);
}
.jr-edition [data-vide]:not(li):empty::before,
.jr-edition li[data-vide]:empty::after {
  content: attr(data-vide);
  color: rgba(47, 58, 44, 0.38);
  pointer-events: none;
}
.jr-edition .jr-chapo:empty,
.jr-edition .jr-article-titre:empty { min-height: 1.2em; }

.jr-ed-ajoute {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 12rem;
  margin: 0 0 1.6rem;
  padding: 1.2rem;
  font: inherit;
  font-weight: 700;
  color: #2f3a2c;
  background: rgba(245, 234, 216, 0.45);
  border: 2px dashed rgba(122, 138, 94, 0.45);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
@media (hover: hover) {
  .jr-ed-ajoute:hover { background: rgba(245, 234, 216, 0.8); border-color: #7a8a5e; }
}
.jr-ed-ajoute svg { width: 2rem; height: 2rem; color: #7a8a5e; }
.jr-ed-ajoute small { font-size: 0.82rem; font-weight: 500; color: rgba(47, 58, 44, 0.6); }
.jr-galerie .jr-ed-ajoute { min-height: 0; aspect-ratio: 4 / 3; margin: 0; }
.jr-ed-photo { position: relative; }
.jr-ed-photo-retire {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: #a04c3c;
  background: rgba(251, 246, 236, 0.95);
  border: 1px solid rgba(160, 76, 60, 0.35);
  border-radius: 999px;
  cursor: pointer;
}

.jr-selbarre,
.jr-liens {
  position: fixed;
  z-index: 60;
  border-radius: 14px;
  box-shadow: 0 16px 34px -18px rgba(24, 30, 22, 0.6);
}
.jr-selbarre[hidden],
.jr-liens[hidden] { display: none; }
.jr-selbarre { display: flex; gap: 0.2rem; padding: 0.3rem; background: #2f3a2c; }
.jr-selbarre button {
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  color: #f5ead8;
  background: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.jr-selbarre button[hidden] { display: none; }
@media (hover: hover) {
  .jr-selbarre button:hover { background: rgba(245, 234, 216, 0.12); }
}
.jr-liens {
  display: grid;
  min-width: 15rem;
  max-height: 60vh;
  overflow: auto;
  padding: 0.5rem;
  color: #2f3a2c;
  background: #ffffff;
  border: 1px solid rgba(47, 58, 44, 0.12);
}
.jr-liens-titre {
  margin: 0.2rem 0.6rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(47, 58, 44, 0.55);
}
.jr-liens button {
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  color: #2f3a2c;
  background: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
@media (hover: hover) {
  .jr-liens button:hover { background: rgba(122, 138, 94, 0.12); }
}
.jr-liens .jr-liens-non { color: rgba(47, 58, 44, 0.6); }

.jr-sg-resume { margin: 0 0 1rem; font-weight: 600; }
.jr-sg-liste { display: grid; gap: 0.9rem; max-width: 56rem; }
.jr-sg-carte[data-etat="nouvelle"] { border-color: rgba(255, 181, 158, 0.9); box-shadow: inset 4px 0 0 #FFB59E; }
.jr-sg-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1rem; font-size: 0.84rem; }
.jr-sg-etat { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #7a8a5e; }
.jr-sg-carte[data-etat="nouvelle"] .jr-sg-etat { color: #2f3a2c; }
.jr-sg-date { color: rgba(47, 58, 44, 0.6); }
.jr-sg-auteur { font-weight: 700; word-break: break-all; }
.jr-sg-texte { margin: 0.7rem 0 0.9rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.jr-sg-gestes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.jr-sg-supprime { color: #a04c3c; }
.jr-sg-confirme span { margin-right: 0.4rem; font-weight: 600; }
.maj-sur-tete + .maj-titre { margin-bottom: 1.6rem; }
