/* ══ Deux passages (15 novembre 2026) ══
   Chargée en dernier, après titres.css. Retirer la ligne
   <link rel="stylesheet" href="css/passages.css"> dans index.html
   rend l'aspect du 14 novembre (sauf la police : Plex Mono a été retiré du dossier fonts).

   L'idée, comme une impression à deux passages :
   le bleu pour l'archive et le contenu, l'orange pour l'attention et la sélection.
   Deux familles : Arvo (titres, menus, boutons, petites informations) et EB Garamond (texte).
   Les titres gardent leur double impression orange (choix du 15 novembre).

   Lot 1 : polices, en-tête, menu « Carte · Chroniques · Le projet ».
   Lot 2 : la carte (filtres en légende, points en deux passages, mer tramée de points).
   Lot 3 : les pages en feuilles sur la carte, Agrandir / Réduire (grand écran seulement).
   Lot 4 : le chemin d'une chronique (grand écran seulement).
   Lot 5 : le formulaire en deux parties, description nécessaire (voir js/form-add.js). */

/* ── Lot 1 · Les petites informations en Arvo, à la place de la machine à écrire ── */
:root { --mono: 'Arvo', Rockwell, Georgia, serif; }
/* Arvo n'a ni le cyrillique, ni l'arabe, ni le chinois : le Garamond prend le relais */
html:lang(ru), html:lang(ar), html:lang(zh) { --mono: 'EB Garamond', Georgia, serif; }

/* ── Lot 1 · En-tête de la carte (grand écran) : Carte · Chroniques · Le projet, puis Ajouter, puis la langue ── */
@media (min-width: 1101px) {
  #mapNavBtn { order: 1; }
  #chroniclesBtn { order: 2; }
  #aboutBtn { order: 3; }
  #addModeBtn { order: 4; margin-inline-start: 14px; }
  .header-actions .lang-select { order: 5; margin-inline-start: 8px; }
  #adminMenuBtn { order: 6; }
  .header-actions { gap: 22px; }

  /* les pages : du texte simple ; la page où l'on est, soulignée à l'orange */
  #mapNavBtn, #chroniclesBtn, #aboutBtn,
  .secondary-actions .mode-btn.secondary#mapNavBtn,
  .secondary-actions .mode-btn.secondary#chroniclesBtn,
  .secondary-actions .mode-btn.secondary#aboutBtn {
    background: none; border: 0; padding: 6px 0; min-height: 0;
    font-family: var(--mono); font-size: 14px; color: var(--ink-a);
  }
  #mapNavBtn:hover, #chroniclesBtn:hover, #aboutBtn:hover {
    background: none; color: var(--ink-a);
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  }
  #mapNavBtn[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--ink-b); }
  #mapNavBtn[aria-current="page"]:hover { text-decoration: none; }
}

/* « + Ajouter une fiche » : l'action à remarquer, au passage orange, sans ombre */
#addModeBtn, .site-page-add {
  background: var(--ink-b); border: 0; box-shadow: none;
  color: #1E2742; font-family: var(--mono); font-weight: 700;
}
#addModeBtn:hover, .site-page-add:hover { background: var(--ink-b); color: #1E2742; text-decoration: underline; text-underline-offset: 4px; }
#addModeBtn.active { background: var(--ink-a); color: var(--paper); }
@media (min-width: 1101px) {
  #addModeBtn { padding: 13px 18px; font-size: 14px; }
}

/* la langue : du texte, sans cadre */
.lang-select, .site-page-lang {
  border: 0; background: transparent; font-family: var(--mono); font-size: 14px; color: var(--ink-a);
}

/* barre des pages : mêmes liens, même soulignement orange */
.site-page-nav button,
.site-page-nav .page-nav-map { font-family: var(--mono); font-size: 14px; }
.site-page-nav button[aria-current="page"] {
  text-decoration: none; box-shadow: inset 0 -4px 0 var(--ink-b);
}
.site-page-nav button:not([aria-current]):hover { text-decoration: underline; text-decoration-thickness: 1px; }
.site-page-add { min-height: 0; padding: 13px 18px; font-size: 14px; }

/* tablette et téléphone : les onglets des pages, la page où l'on est soulignée à l'orange */
@media (max-width: 1100px) {
  .page-tabs button[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ink-b); }
  #secondaryActions #mapNavBtn { display: none; }   /* déjà dans les onglets */
}

/* « Le projet » : les actualités juste après le texte */
.project-news .news-list { margin-top: 0; border-top: 0; }
.project-news .news-item:first-child { padding-top: 0; }
.project-news .news-date { flex-basis: 200px; }

/* ── Lot 2 · La carte ── */

/* la mer : une trame de points à l'encre bleue (la seule trame du site) ; les terres restent papier */
#map {
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(61, 85, 136, .55) 1.25px, transparent 1.55px);
  background-size: 7px 7px;
}

/* les points : passage bleu seulement… */
.marker-shape .ms-b { display: none; }
/* … et le point de la fiche ouverte reçoit le passage orange, décalé, par-dessus */
.marker-shape.is-selected { transform: scale(1.35); z-index: 1; }
.marker-shape.is-selected .ms-b {
  display: block; z-index: 1; mix-blend-mode: multiply;
  transform: translate(2.5px, 2px);
}
.marker-multi.is-selected { box-shadow: 3px 3px 0 var(--ink-b); }
.leaflet-marker-icon:has(.is-selected) { z-index: 10000 !important; }

/* la recherche : même largeur que la légende des filtres */
@media (min-width: 1101px) {
  .public-search { width: 340px; }
  .public-search input { border-width: 2px; }
}

/* les filtres : une légende de carte, en colonne, en bas à gauche (grand écran).
   Sous 1100 pixels, l'en-tête et le bouton « Ajouter » flottant prennent la place :
   la bande de filtres (tablette) et le bouton « Catégories » (téléphone) restent. */
@media (min-width: 1101px) {
  .filters {
    position: fixed; left: 52px; bottom: 34px; z-index: 1100;
    width: 340px; box-sizing: border-box;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0;
    padding: 6px 14px 4px;
    background: var(--field); border: 2px solid var(--ink-a);
  }
  body[dir="rtl"] .filters { left: auto; right: 12px; }   /* comme la recherche, à droite en arabe */
  .filters-label {
    align-self: flex-start;
    margin: -16px 0 4px -6px; padding: 0 6px; background: var(--field);
    font-family: var(--mono); font-weight: 700; font-size: 11.5px;
    letter-spacing: .06em; text-transform: uppercase; color: var(--ink-a);
  }
  html:lang(ar) .filters-label, html:lang(zh) .filters-label, html:lang(ru) .filters-label { letter-spacing: 0; }
  body[dir="rtl"] .filters-label { margin: -16px -6px 4px 0; }
  /* « Filtres » devient orange quand une catégorie est masquée : on voit qu'on ne voit pas tout */
  .filters.partial { border-color: var(--ink-b); }
  .filters.partial .filters-label { color: #1E2742; background: var(--ink-b); }

  .filters .chip {
    display: flex; align-items: center; gap: 10px; width: 100%;
    min-height: 34px; padding: 6px 0; box-sizing: border-box;
    background: none; border: 0; border-top: 1px solid var(--rule); border-radius: 0; box-shadow: none;
    font-family: var(--mono); font-size: 13.5px; color: var(--ink-a); text-align: start;
  }
  .filters .chip:first-of-type { border-top: 0; }
  /* la case à cocher, dessinée : pleine quand la catégorie est affichée */
  .filters .chip::before {
    content: ""; flex: none; width: 14px; height: 14px; box-sizing: border-box;
    border: 1.5px solid var(--ink-a); background: var(--field);
  }
  .filters .chip.on::before {
    background: var(--ink-a) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23F2EEE6' stroke-width='3'/%3E%3C/svg%3E") center / 12px no-repeat;
  }
  .filters .chip .cat-shape { opacity: 1; }
  .filters .chip:not(.on) { color: var(--mid); }
  .filters .chip:not(.on) .cat-shape { opacity: .35; }
  .filters .chip .count { margin-inline-start: auto; font-family: var(--mono); color: var(--mid); }
  .filters .chip:focus-visible { outline: 2px solid var(--ink-b); outline-offset: 1px; }
  /* l'aide de chaque catégorie s'affiche à droite de la légende */
  .filters .chip::after {
    top: 50%; left: calc(100% + 26px); right: auto;
    transform: translateY(-50%);
  }
  .filters .chip:hover::after, .filters .chip:focus-visible::after { transform: translateY(-50%); }
  body[dir="rtl"] .filters .chip::after { left: auto; right: calc(100% + 26px); }
  body.admin .filters { display: none; }   /* la modération affiche tout */
}

/* la fiche ouverte : même filet de 2 pixels que l'en-tête */
@media (min-width: 761px) {
  .panel { border-left-width: 2px; }
  body[dir="rtl"] .panel { border-right-width: 2px; }
}
.project-news .news-item:last-child { border-bottom: 0; padding-bottom: 0; }
/* tablette : le bouton flottant « Ajouter » garde des angles droits, sans ombre grise */
@media (max-width: 1100px) {
  .primary-actions .mode-btn#addModeBtn { border-radius: 0; box-shadow: none; }
}

/* ── Lot 3 · Les pages en feuilles sur la carte (grand écran) ──
   La feuille s'ouvre à droite, sous l'en-tête de la carte qui reste visible.
   « Agrandir » : la feuille prend toute la largeur (la carte disparaît dessous). « Réduire » : retour à la feuille.
   Sur tablette et téléphone, la page prend tout l'écran comme avant (l'en-tête de feuille est caché). */
.sheet-head { display: none; }
@media (min-width: 1101px) {
  .site-page.is-sheet, .site-page.is-expanded {
    top: var(--header-h, 64px); bottom: 0; z-index: 1300;
    background: var(--field);
  }
  .site-page.is-sheet {
    left: auto; right: 0; width: 560px;
    border-inline-start: 2px solid var(--ink-a);
  }
  body[dir="rtl"] .site-page.is-sheet { right: auto; left: 0; }
  .site-page.is-expanded { left: 0; right: 0; width: auto; }
  /* l'en-tête de la carte fait déjà le travail de la barre des pages */
  .site-page.is-sheet .site-page-bar, .site-page.is-expanded .site-page-bar { display: none; }

  .site-page.is-sheet .sheet-head, .site-page.is-expanded .sheet-head {
    flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 18px 10px 32px; border-bottom: 1px solid var(--ink-a);
  }
  .site-page.is-expanded .sheet-head { padding-inline: 28px; }
  .sheet-label { font-family: var(--mono); font-size: 13px; color: var(--ink-a); }
  .sheet-actions { display: flex; align-items: center; gap: 6px; }
  .sheet-toggle {
    background: none; border: 0; padding: 8px 4px; cursor: pointer;
    font-family: var(--mono); font-size: 13px; color: var(--ink-a);
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  }
  .sheet-close {
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
    font-family: var(--mono); font-size: 22px; line-height: 1; color: var(--ink-a);
  }
  .sheet-toggle:focus-visible, .sheet-close:focus-visible { outline: 2px solid var(--ink-b); outline-offset: 1px; }

  /* dans la feuille (560 pixels), tout passe sur une colonne */
  .site-page.is-sheet .page-article { max-width: none; padding: 26px 32px 72px; }
  .site-page.is-sheet .page-title { font-size: 34px; }
  .site-page.is-sheet .page-title[data-text="IS LAND PASTRY?"] { font-size: 32px; }
  .site-page.is-sheet .chron-article .page-title { font-size: 30px; }
  .site-page.is-sheet .page-sub { font-size: 16px; }
  .site-page.is-sheet .page-lead { margin-top: 24px; font-size: 17px; }
  .site-page.is-sheet .page-section { grid-template-columns: minmax(0, 1fr); padding: 26px 0; row-gap: 12px; }
  .site-page.is-sheet .page-section-body { font-size: 17px; }
  .site-page.is-sheet .page-h2 { font-size: 19px; }
  .site-page.is-sheet .news-item { gap: 6px 16px; padding: 18px 0; }
  .site-page.is-sheet .news-date, .site-page.is-sheet .project-news .news-date { flex: 1 1 auto; }
  .site-page.is-sheet .news-main { flex: 1 1 100%; order: 3; }
  .site-page.is-sheet .news-title { font-size: 20px; }
  .site-page.is-sheet .page-logos { gap: 18px 24px; }
  .site-page.is-sheet .page-logos img { height: 32px; }

  .site-page.is-sheet .chron-featured { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 0 26px; }
  .site-page.is-sheet .chron-num { width: 64px; height: 64px; font-size: 28px; }
  .site-page.is-sheet .chron-featured-head, .site-page.is-sheet .chron-head { gap: 14px; }
  .site-page.is-sheet .chron-featured-title { font-size: 26px; }
  .site-page.is-sheet .chron-row { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; }
  .site-page.is-sheet .chron-row-place, .site-page.is-sheet .chron-row .chron-shapes, .site-page.is-sheet .chron-row-date { grid-column: 2; }
  .site-page.is-sheet .chron-row-title { font-size: 18px; }
  .site-page.is-sheet .chron-columns { grid-template-columns: minmax(0, 1fr); }
  .site-page.is-sheet .chron-aside { position: static; }
  .site-page.is-sheet .chron-meta { gap: 6px 20px; }
  .site-page.is-sheet .chron-tools select { flex: 1 1 45%; }
  .site-page.is-sheet .page-footer { padding-inline: 32px; }

  /* en-tête de la carte : la page ouverte soulignée à l'orange, comme « Carte » */
  #chroniclesBtn[aria-current="page"], #aboutBtn[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--ink-b); }
  #chroniclesBtn[aria-current="page"]:hover, #aboutBtn[aria-current="page"]:hover { text-decoration: none; }
}
@media (min-width: 1101px) { .site-page.is-sheet .chron-columns { gap: 28px; margin-top: 28px; } }
/* la phrase d'aide reste au milieu de la carte visible quand une feuille est ouverte */
@media (min-width: 1101px) {
  body:has(#sitePage.is-sheet:not([hidden])) .hint { left: calc((100% - 560px) / 2); }
  body[dir="rtl"]:has(#sitePage.is-sheet:not([hidden])) .hint { left: calc(560px + (100% - 560px) / 2); }
}

/* ── Lot 4 · Le chemin d'une chronique ──
   Les fiches dont parle la chronique ouverte reçoivent le passage orange ; un chemin de points orange les relie. */
.marker-shape.is-path .ms-b {
  display: block; z-index: 1; mix-blend-mode: multiply;
  transform: translate(2.5px, 2px);
}
.marker-shape.is-path { transform: scale(1.2); }
.marker-multi.is-path { box-shadow: 3px 3px 0 var(--ink-b); }
.leaflet-marker-icon:has(.is-path) { z-index: 9000 !important; }
.leaflet-interactive.chron-path { mix-blend-mode: multiply; }

/* ── Lot 5 · Le formulaire d'ajout (et de modification) ──
   Un seul bloc en deux parties : l'essentiel, puis « Pour aller plus loin ».
   Intitulés en Arvo, bleus, sans capitales espacées ; champs blancs au filet bleu ;
   le bouton d'envoi au passage orange. */
.form-required-note {
  margin: 0 0 18px; padding: 10px 14px;
  border-inline-start: 3px solid var(--ink-b); background: var(--paper);
  font-size: 16px; line-height: 1.45; color: var(--ink);
}
/* refonte des fiches (30 novembre) : avertissement « tout est public », cases à cocher multiples */
.form-public-note { margin: -8px 0 18px; font-size: 14.5px; line-height: 1.4; color: var(--ink-a); }
.multi-field { border: 0; padding: 0; margin-inline: 0; }
.multi-field legend { font-family: var(--mono); font-size: 13.5px; color: var(--ink-a); padding: 0; margin-bottom: 6px; }
.multi-opts { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 640px) { .multi-opts { grid-template-columns: 1fr 1fr; } }
.multi-field .multi-other { margin-top: 8px; }
.link-note { margin: 2px 0 10px; font-size: 14px; font-style: italic; color: var(--ink-a); }
.medical-note { margin: 4px 0 0; font-size: 13.5px; font-style: italic; color: var(--ink-a); }
/* questions repliées (30 novembre) : titre du groupe cliquable */
.more-fields { margin: 6px 0 14px; border-top: 1px solid var(--rule, #d9d1c2); }
.more-fields > summary { cursor: pointer; padding: 10px 0 6px; font-family: var(--mono); font-size: 13.5px; color: var(--ink-a); list-style: none; }
.more-fields > summary::-webkit-details-marker { display: none; }
.more-fields > summary::before { content: "+ "; color: var(--ink-b); font-weight: 700; }
.more-fields[open] > summary::before { content: "− "; }
.more-fields .more-n { color: var(--ink-b); }
.legacy-note { font-size: 13.5px; color: var(--mid, #6b6b6b); margin: -4px 0 8px; }
.form-part-title {
  margin: 26px 0 14px; padding-top: 14px; border-top: 2px solid var(--ink-a);
  font-family: var(--title); font-weight: var(--title-w); text-transform: var(--title-case); letter-spacing: var(--title-ls);
  font-size: 15px; color: var(--ink-a);
}
.form-field label {
  font-family: var(--mono); font-size: 13.5px; letter-spacing: 0; text-transform: none; color: var(--ink-a);
}
.form-field .checkbox-label { font-family: var(--mono); font-size: 13.5px; letter-spacing: 0; text-transform: none; color: var(--ink-a); }
.checkbox-label input { accent-color: var(--ink-a); }
.form-field input[type="text"],
.form-field textarea,
.form-field select {
  font-size: 17px; border: 2px solid var(--ink-a); border-radius: 0; background: #fff;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--ink-b); outline-offset: 1px; }
.section-rule { background: var(--ink-a); opacity: .35; }
.save-btn {
  background: var(--ink-b); color: #1E2742; border: 0; box-shadow: none;
  font-family: var(--mono); font-weight: 700; font-size: 15px; padding: 14px;
}
.save-btn:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.save-btn:disabled { background: var(--rule); color: var(--mid); cursor: default; text-decoration: none; }

/* ── Les messages sur la carte (ajout d'une fiche, envoi, erreur) ──
   En Arvo, sans cadre ni italique : une note sur le papier. La phrase « Explorez la carte… » est retirée (voir js/detail.js). */
.hint {
  background: var(--paper); border: 0; box-shadow: none; border-radius: 0;
  border-bottom: 2px solid var(--ink-b);
  font-family: var(--mono); font-style: normal; font-size: 13.5px; color: var(--ink-a);
  padding: 8px 14px;
}

/* « Le projet » : le second paragraphe (« Pourquoi le terme pastry ? ») n'est plus en italique (15 novembre) */
.page-pastry { font-style: normal; }

/* ── Le logo dessiné à la main (16 novembre) ──
   Dans l'en-tête de la carte et la barre des pages : le dessin en bleu, à la place du nom en Arvo.
   Dans « Le projet » : le même dessin imprimé en deux passages, comme en riso
   (l'orange dessous, décalé ; le bleu par-dessus, les deux en multiplication). */
.brand-logo { margin: 0; line-height: 0; display: block; }
.brand-logo-img { display: block; width: auto; height: 34px; }
.site-page-brand .brand-logo-img { height: 30px; }
@media (max-width: 1100px) {
  header .brand-logo-img, .site-page-brand .brand-logo-img { height: 26px; }
}
@media (max-width: 620px) {
  header .brand-logo-img { height: 22px; }
}
.page-logo { margin: 0; line-height: 0; direction: ltr; }
.logo-riso { position: relative; display: inline-block; width: min(640px, 100%); isolation: isolate; }
.logo-riso img { display: block; width: 100%; height: auto; }
.logo-riso .riso-o { position: absolute; left: 0; top: 0; transform: translate(0.6%, 2%); mix-blend-mode: multiply; }   /* décalage réduit de moitié le 16 novembre */
.logo-riso .riso-b { position: relative; }   /* bleu posé normalement : en multiplication, presque tout le logo virait au brun */
/* sous-titre (16 novembre) : Arvo normal, même bleu que le logo ;
   dans « Le projet », sur une ligne, de la largeur du logo, collé dessous (taille calculée par pages.js) */
header .tagline, .brand-sub, .page-sub { font-weight: 400; }
body:not([dir="rtl"]) header .tagline, body:not([dir="rtl"]) .brand-sub { padding-left: 2px; }   /* le C de « Cartographie » sous le jambage du I */
.page-logo + .page-sub { margin-top: 4px; line-height: 1.25; white-space: nowrap; max-width: none; }
body[dir="rtl"] .page-logo + .page-sub { text-align: right; margin-left: 0; margin-right: auto; }   /* le logo reste à gauche : la phrase aussi, alignée sur sa fin */
@media (min-width: 1101px) {
  .site-page.is-sheet .logo-riso { width: 440px; }
}

/* Lieu (17 novembre) : tracer une zone, déplacer le lieu d'une fiche */
.zone-tool .zone-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 8px; }
.zone-tool .zone-actions .route-btn { width: auto; }
.zone-tool .route-btn[disabled] { opacity: .45; cursor: not-allowed; }
.place-edit #e-place-now { margin: 4px 0 10px; }
.place-edit #e-place-pick { margin-top: 10px; }
.place-edit .meta { margin-bottom: 2px; }
body.place-picking #map { cursor: crosshair; }
/* pendant un tracé (zone, point, parcours), les fiches déjà sur la carte laissent passer les clics :
   on peut tracer par-dessus un territoire existant sans ouvrir sa fiche */
body.place-picking .leaflet-interactive, body.tracing .leaflet-interactive { pointer-events: none !important; }
.zone-tool .zone-actions[hidden], .zone-tool .coords-note[hidden], .zone-tool .route-btn[hidden] { display: none; }

/* ── Lot 6 (17 novembre) : noms des pratiques sur la carte ── */
.map-label-icon { pointer-events: none; }
.map-label-icon .map-label { pointer-events: auto; cursor: pointer; }
.map-label.is-hover .ml-name { text-decoration: underline; text-underline-offset: 3px; }
.map-label.is-hidden { pointer-events: none; }
.map-label {
  display: flex; flex-direction: column; white-space: nowrap; line-height: 1.15;
  color: var(--ink-a);
  text-shadow: 0 0 3px var(--paper, #F2EEE6), 0 0 3px var(--paper, #F2EEE6), 0 0 2px var(--paper, #F2EEE6);
}
.map-label .ml-name { font-family: 'EB Garamond', Georgia, serif; font-weight: 500; font-size: 15px; }
.map-label.is-latin .ml-name { font-family: 'Arvo', Georgia, serif; font-weight: 700; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.map-label .ml-terr { display: none; font-family: 'EB Garamond', Georgia, serif; font-style: italic; font-size: 14px; color: #3B3733; }
.map-label.is-selected .ml-terr { display: block; }
.map-label.is-selected .ml-name { font-size: 13px; }
.map-label.is-hidden { visibility: hidden; }
body[dir="rtl"] .map-label { direction: rtl; }

/* ── Lot 6 (17 novembre) : la fiche comme la maquette ── */
@media (min-width: 1101px) { .panel { width: 460px; } }
.panel-title.fiche-title.is-latin { text-transform: none; font-size: 30px; line-height: 1.12; }
@media (max-width: 760px) { .panel-title.fiche-title.is-latin { font-size: 24px; } }
#panel .panel-title.fiche-title.is-latin { margin-top: 4px; }
.panel-territory { font-size: 20px; color: var(--ink, #3B3733); margin-top: 4px; }
.panel-origlang { font-family: 'Arvo', Georgia, serif; font-size: 12.5px; color: #5f574e; }
html[lang="ru"] .panel-origlang, html[lang="ar"] .panel-origlang, html[lang="zh"] .panel-origlang { font-family: 'EB Garamond', Georgia, serif; }

.fiche-cover { margin: -16px -20px 18px; position: relative; background: var(--ink-b); }
.fiche-cover-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.fiche-cover img { display: block; width: 100%; height: 220px; object-fit: cover; filter: url(#deux-encres); }
.fiche-cover figcaption {
  position: absolute; right: 10px; bottom: 8px; max-width: calc(100% - 20px);
  font-family: 'Arvo', Georgia, serif; font-size: 11px; line-height: 1.3;
  color: var(--paper); background: var(--ink-a); padding: 2px 6px;
}
body[dir="rtl"] .fiche-cover figcaption { right: auto; left: 10px; }

.fiche-desc { font-size: 19px; line-height: 1.5; margin: 0 0 4px; }
.fiche-facts { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px 20px; margin: 18px 0 8px; }
.fiche-facts .fact.is-wide { grid-column: 1 / -1; }
.fiche-facts dt {
  font-family: 'Arvo', Georgia, serif; font-weight: 700; font-size: 11.5px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-a);
}
html[lang="ru"] .fiche-facts dt, html[lang="ar"] .fiche-facts dt, html[lang="zh"] .fiche-facts dt { font-family: 'EB Garamond', Georgia, serif; letter-spacing: 0; font-size: 13px; }
.fiche-facts dd { margin: 3px 0 0; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }

/* pied de fiche : deux liens, collé en bas pendant qu'on lit */
.fiche-foot {
  position: sticky; bottom: -16px; z-index: 2;
  margin: 22px -20px -16px; padding: 14px 20px 16px;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  background: var(--paper); border-top: 1px solid var(--ink-a);
}
.fiche-foot .share-btn, .fiche-foot .request-btn {
  width: auto; margin: 0; padding: 0; border: 0; background: none;
  font-family: 'Arvo', Georgia, serif; font-size: 13px; color: var(--ink-a);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.fiche-foot .share-btn:hover, .fiche-foot .request-btn:hover { background: none; color: var(--ink); }
.fiche-foot .share-btn + .request-btn { margin: 0; }
@media (max-width: 760px) {
  .map-label.is-latin .ml-name { font-size: 10.5px; }
  .map-label .ml-name { font-size: 13px; }
  .map-label .ml-terr { font-size: 12.5px; }
}
.zone-tool .zone-name { margin-top: 10px; }
.zone-tool .zone-name[hidden] { display: none; }
.zone-tool .zone-name label { display: block; }
body.place-picking .map-label, body.tracing .map-label { pointer-events: none !important; }

/* ── Page d'accueil (21 novembre) ──
   Pendant l'accueil, l'en-tête et les commandes de la carte se cachent : seule la carte transparaît. */
body.intro-open header, body.intro-open #filters, body.intro-open .leaflet-control-container,
body.intro-open #publicSearch, body.intro-open #addModeBtn,
body.intro-open #pageTabs, body.intro-open .credit-text, body.intro-open .credit-admin,
body.intro-open #mapLegend, body.intro-open .filters { visibility: hidden; }
/* l'ancienne page d'arrivée était centrée en colonne : la nouvelle se place elle-même */
#intro.intro.accueil {   align-items: initial; justify-content: initial; }
/* Le texte à gauche sur le papier ; à droite, la vraie carte transparaît. */
#intro.intro.accueil {
  display: block; padding: 0; overflow: hidden auto;
  background:
    linear-gradient(to top, var(--paper) 0, var(--paper) 72px, rgba(242,238,230,0) 150px),   /* bas de page lisible */
    linear-gradient(to right, var(--paper) 0, var(--paper) min(62vw, 900px), rgba(242,238,230,0) min(74vw, 1060px));
}
/* les noms des pratiques restent lisibles sur la carte, mais on ne peut pas cliquer dessus avant d'entrer */
body.intro-open .map-label { pointer-events: none; }
#intro.intro.accueil[dir="rtl"] {
  background:
    linear-gradient(to top, var(--paper) 0, var(--paper) 72px, rgba(242,238,230,0) 150px),   /* bas de page lisible */
    linear-gradient(to left, var(--paper) 0, var(--paper) min(62vw, 900px), rgba(242,238,230,0) min(74vw, 1060px));
}
.intro.accueil .intro-lang { position: absolute; top: 30px; right: 48px; margin: 0; display: flex; gap: 4px; }
.intro.accueil[dir="rtl"] .intro-lang { right: auto; left: 48px; }
.intro.accueil .intro-lang button { min-width: 40px; min-height: 44px; }
.acc-main {
  position: absolute; left: clamp(24px, 6.7vw, 96px); top: 50%; transform: translateY(-58%);
  width: min(760px, 86vw);
}
.intro.accueil[dir="rtl"] .acc-main { left: auto; right: clamp(24px, 6.7vw, 96px); text-align: right; }
.acc-logo { margin: 0; position: relative; line-height: 0; direction: ltr; width: min(760px, 100%); }
/* 1er déc. : le trait du « I » dessiné à la main s'aligne sur le texte (ordinateur et téléphone) */
.acc-logo { margin-left: -0.7%; }
.intro.accueil[dir="rtl"] .acc-logo { margin-left: 0; }
.acc-logo img { display: block; width: 100%; height: auto; }
.acc-orange { position: absolute; left: 0; top: 0; mix-blend-mode: multiply; transform: translate(.6%, 2%); }
.acc-phrase {
  margin: 18px 0 0;   /* 1er déc. : un peu plus près du titre (avant 28 px) */ font-family: 'EB Garamond', Georgia, serif; font-weight: 400;
  font-size: clamp(32px, 3.3vw, 50px); line-height: 1.12; color: var(--ink-a); text-wrap: balance; white-space: pre-line;
  width: max-content; max-width: calc(100vw - 2 * clamp(24px, 6.7vw, 96px));   /* deux lignes : la phrase peut dépasser la largeur du logo */
}
.acc-actions { margin-top: 40px; display: flex; gap: 28px; align-items: center; }
.intro.accueil .enter-btn {
  font-family: 'Arvo', Georgia, serif; font-weight: 700; font-size: 16px; color: #1E2742;
  background: var(--ink-b); border: 0; border-radius: 0; padding: 15px 26px; min-height: 50px; cursor: pointer;
  box-shadow: none; text-transform: none; letter-spacing: 0;
}
.intro.accueil .enter-btn:hover, .intro.accueil .enter-btn:focus-visible { background: #F25A1C; outline: 2px solid var(--ink-a); outline-offset: 3px; }
.acc-examples {
  position: absolute; left: clamp(24px, 6.7vw, 96px); bottom: 44px; margin: 0;
  display: flex; align-items: baseline; gap: 12px; max-width: 60vw;
}
.intro.accueil[dir="rtl"] .acc-examples { left: auto; right: clamp(24px, 6.7vw, 96px); }
.acc-examples[hidden] { display: none; }
.acc-ex-label { font-family: 'Arvo', Georgia, serif; font-weight: 700; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-a); white-space: nowrap; }
.acc-ex { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; animation: accEx .6s ease-out both; }
.acc-ex-name { font-family: 'EB Garamond', Georgia, serif; font-size: 22px; color: var(--ink-a); }
.acc-ex-terr { font-family: 'EB Garamond', Georgia, serif; font-style: italic; font-size: 19px; color: var(--ink); }
.acc-ex-terr::before { content: "· "; font-style: normal; color: #5f574e; }
.acc-foot {
  position: absolute; right: 48px; bottom: 44px; margin: 0; display: flex; gap: 18px;
  font-family: 'Arvo', Georgia, serif; font-size: 12.5px; color: #5f574e;
}
.intro.accueil[dir="rtl"] .acc-foot { right: auto; left: 48px; }
/* l'impression : le bleu passe de gauche à droite, puis l'orange se cale, puis le texte arrive */
.intro.accueil:not(.hidden) .acc-blue { animation: accRoll 1s cubic-bezier(.5,0,.2,1) .15s both; }
.intro.accueil:not(.hidden) .acc-orange { animation: accPass .7s ease-out 1.05s both; }
.intro.accueil:not(.hidden) .acc-phrase { animation: accFade .7s ease-out 1.5s both; }
.intro.accueil:not(.hidden) .acc-actions,
.intro.accueil:not(.hidden) .acc-foot { animation: accFade .6s ease-out 2.2s both; }
@keyframes accRoll { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes accPass { from { opacity: 0; transform: translate(5%, 14%); } to { opacity: 1; transform: translate(.6%, 2%); } }
@keyframes accFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes accEx { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .intro.accueil:not(.hidden) .acc-blue, .intro.accueil:not(.hidden) .acc-orange,
  .intro.accueil:not(.hidden) .acc-phrase,
  .intro.accueil:not(.hidden) .acc-actions, .intro.accueil:not(.hidden) .acc-examples,
  .intro.accueil:not(.hidden) .acc-foot, .acc-ex { animation: none; }
}
/* téléphone : tout dans la colonne, le bouton en bas, à portée du pouce */
@media (max-width: 760px) {
  .intro.accueil { background: rgba(242,238,230,.93); }
  .intro.accueil .intro-lang { top: 10px; right: 10px; gap: 0; }
  .intro.accueil[dir="rtl"] .intro-lang { left: 10px; }
  .intro.accueil .intro-lang button { min-width: 34px; font-size: 13px; }
  .acc-main { position: static; transform: none; width: auto; padding: max(120px, 24vh) 24px 0; }   /* 1er déc. : titre plus bas */
  .acc-phrase { font-size: 26px; margin-top: 14px; }   /* 1er déc. : la taille exacte est ajustée par accFitPhrase (intro.js) pour tenir en deux lignes */
  .acc-actions { position: absolute; left: 24px; right: 24px; bottom: 56px; margin: 0; }
  .intro.accueil .enter-btn { width: 100%; min-height: 52px; }
  .acc-examples { left: 24px; right: 24px; bottom: 132px; max-width: none; flex-direction: column; gap: 4px; }
  .intro.accueil[dir="rtl"] .acc-examples { right: 24px; }
  .acc-ex-name { font-size: 20px; }
  .acc-ex-terr { font-size: 17px; }
  .acc-foot { left: 24px; right: 24px; bottom: 18px; justify-content: space-between; font-size: 11.5px; gap: 10px; }
  .intro.accueil[dir="rtl"] .acc-foot { left: 24px; }
}
/* écran bas (téléphone couché, petit portable) : la page défile au lieu de se chevaucher */
@media (max-height: 620px) {
  .acc-main { position: static; transform: none; padding: 80px 0 0; margin: 0 clamp(24px, 6.7vw, 96px); }
  .acc-actions { position: static; margin: 24px 0 0; }
  .acc-examples, .acc-foot { position: static; margin: 24px clamp(24px, 6.7vw, 96px) 0; }
  .acc-foot { margin-bottom: 24px; }
}

/* ── Mentions légales (21 novembre) : même mise en page que « Le projet », texte un peu plus petit ── */
.legal-title { font-family: var(--title); font-weight: var(--title-w); font-size: clamp(24px, 3vw, 34px); letter-spacing: .01em; line-height: 1.15; color: var(--ink-a); margin: 0 0 12px; white-space: normal; overflow-wrap: break-word; text-wrap: balance; }
.legal-page .page-section-body { font-size: 16px; line-height: 1.55; }
.legal-page .page-section-body p { overflow-wrap: anywhere; }

/* 30 novembre : quatre champs dans l'en-tête d'une chronique (lieu, date, auteur, langue), deux par ligne */
.ce-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .ce-row { grid-template-columns: minmax(0, 1fr); } }
/* 30 novembre : case « Afficher mon adresse », note de licence, ligne « Documenté par » */
.contact-show { margin-top: 8px; }
.licence-note { margin: 4px 0 12px; }

/* 30 novembre : traduction automatique, dite comme telle, avec un retour à la langue d'origine */
.machine-note { margin: -4px 0 14px; font-family: var(--mono); font-size: 13px; color: var(--ink-a); }
.machine-orig { border: 0; background: none; padding: 0; font: inherit; color: var(--ink-a); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* 30 novembre : traductions de la description, dans la modération */
.tr-fields { border: 0; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 6px; }
.tr-fields legend { font-family: var(--mono); font-size: 14px; color: var(--ink-a); padding: 0; margin-bottom: 4px; }
.tr-fields textarea { min-height: 64px; }
