/* ==========================================================================
   Notrebellefrance — feuille de style unique (aucun framework CSS)
   Identité : carnet de voyage / carte ancienne. Papier parchemin, encre
   marine, or blé, vert vigne. Serif à fort caractère pour les titres,
   sans-serif sobre pour la lecture.
   ========================================================================== */

:root {
  --paper: #f5f1e6;
  --paper-deep: #ece4d1;
  --ink: #23201a;
  --navy: #1f3358;
  --navy-deep: #16233d;
  --gold: #b8863a;
  --gold-deep: #93692a;
  --forest: #34503e;
  --line: rgba(35, 32, 26, 0.16);
  --line-strong: rgba(35, 32, 26, 0.32);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --radius: 2px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 .4em;
  color: var(--navy-deep);
}

p { margin: 0 0 1em; max-width: 62ch; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 2px;
}

/* Lien d'évitement : caché jusqu'au focus clavier */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 2000;
  background: var(--navy-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }
:target { scroll-margin-top: 16px; }

/* ---------- Bandeau supérieur ---------- */
.top-strip {
  background: var(--navy-deep);
  color: var(--paper);
  font-size: 12.5px;
  letter-spacing: .02em;
  padding: 6px 0;
}
.top-strip .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }

/* ---------- En-tête / navigation ---------- */
header.site-header {
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 38px; height: 38px; flex: none;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--navy-deep);
  line-height: 1;
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--gold-deep);
  margin-top: 3px;
}
nav.main-nav { display: flex; gap: 28px; }
nav.main-nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}
nav.main-nav a:hover, nav.main-nav a.active {
  border-bottom-color: var(--gold);
  color: var(--navy-deep);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 85% 20%, rgba(184,134,58,.12), transparent 55%),
    var(--paper);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: end;
}
.hero-kicker {
  font-size: 14px;
  color: var(--forest);
  margin: 0 0 14px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  letter-spacing: -.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
}
.hero-lede {
  font-size: 18px;
  color: #423d33;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 16px; margin-top: 22px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}
.hero-stats div { padding-right: 12px; }
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--navy-deep);
}
.hero-stats span { font-size: 12.5px; color: #5b5546; letter-spacing: .01em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-body);
}
.btn-primary { background: var(--navy-deep); color: var(--paper); }
.btn-primary:hover { background: var(--navy); }
.btn-outline { background: transparent; color: var(--navy-deep); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy-deep); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-deep); color: var(--paper); }
.btn-danger { background: transparent; color: #8c2f24; border-color: #8c2f24; }
.btn-danger:hover { background: #8c2f24; color: var(--paper); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Sections génériques ---------- */
section { padding: 56px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.section-head p { margin: 4px 0 0; color: #5b5546; }

/* ---------- Filtres ---------- */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: #fffdf8;
  padding: 14px 16px;
  margin-bottom: 24px;
}
.filters label {
  font-size: 12.5px;
  color: #5b5546;
  margin-right: 4px;
}
.filters select {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 6px 13px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-body);
}
.chip.active { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.filters .count { margin-left: auto; font-size: 13px; color: #5b5546; }
.filters input[type="search"] {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  min-width: 220px;
}
.filters .clear-filters {
  border: none;
  background: transparent;
  color: var(--navy-deep);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  font-family: var(--font-body);
}

/* ---------- Carte interactive ---------- */
#map {
  height: 480px;
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
}
.leaflet-popup-content-wrapper { border-radius: var(--radius); }
.map-popup { font-family: var(--font-body); }
.map-popup strong { display: block; font-family: var(--font-display); font-size: 16px; margin-bottom: 3px; }
.map-popup a { color: var(--navy-deep); font-weight: 600; font-size: 13px; }

/* Pin de carte personnalisé par catégorie (forme goutte, pictogramme centré) */
.map-pin {
  width: 30px;
  height: 30px;
  background: var(--navy-deep);
  border: 2px solid var(--paper);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.map-pin span {
  transform: rotate(45deg);
  font-size: 14px;
  line-height: 1;
}

/* ---------- Grille des sites ---------- */
.poi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.poi-card {
  border: 1px solid var(--line-strong);
  background: #fffdf8;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease;
}
.poi-card:hover { border-color: var(--navy-deep); }
.poi-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.poi-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.poi-card .body { padding: 16px 18px 18px; }
.poi-tag {
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 6px;
}
.poi-card h3 { font-size: 20px; margin-bottom: 4px; }
.poi-meta { font-size: 13px; color: #5b5546; margin-bottom: 8px; }
.poi-card p { font-size: 14.5px; margin-bottom: 0; color: #3c372d; }
.poi-card .locate {
  border: none;
  background: transparent;
  font-size: 12.5px;
  color: var(--navy-deep);
  text-decoration: underline;
  padding: 0;
  margin-top: 10px;
  cursor: pointer;
  font-family: var(--font-body);
}
.no-results { padding: 40px 0; color: #5b5546; text-align: center; }

/* Article "top liste" : en-tête centré */
.hero.liste-hero .wrap { display: block; }
.liste-hero-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.liste-hero-head h1 { margin-bottom: 0; }
.liste-intro { margin-top: 20px; }
.liste-intro p {
  font-size: 18px;
  line-height: 1.6;
  color: #423d33;
  max-width: 64ch;
  margin: 0 auto 1em;
}
.liste-intro p:last-child { margin-bottom: 0; }
.liste-hero-stats {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0 44px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}
.liste-hero-stats div { padding: 0; text-align: center; }

/* Article "top liste" : entrées numérotées */
.liste-items { display: flex; flex-direction: column; gap: 22px; }
.liste-item {
  display: grid;
  grid-template-columns: 48px 220px 1fr;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: #fffdf8;
  padding: 16px;
}
.liste-item-number {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold-deep);
  text-align: center;
}
.liste-item-thumb { display: block; aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--line); }
.liste-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.liste-item-body h3 { margin: 4px 0 6px; font-size: 21px; }
.liste-item-body h3 a { text-decoration: none; color: var(--navy-deep); }
.liste-item-body h3 a:hover { text-decoration: underline; }
.liste-item-body p { font-size: 14.5px; color: #3c372d; margin-bottom: 10px; }
@media (max-width: 720px) {
  .liste-item { grid-template-columns: 1fr; text-align: left; }
  .liste-item-number { text-align: left; }
}
.load-more-wrap { text-align: center; margin-top: 32px; }

/* ---------- Accueil : sections découverte ---------- */
.section-alt { background: var(--paper-deep); border-block: 1px solid var(--line); }
#explorer h3 { font-size: 15px; letter-spacing: .02em; color: #5b5546; margin: 0 0 10px; }
.landing-cta { margin: 14px 0 4px; }
.landing-cta:empty { margin: 0; }
#search-results { margin-top: 16px; }
.search-hits {
  list-style: none; padding: 0; margin: 0;
  columns: 240px 3; column-gap: 26px;
}
.search-hits li { break-inside: avoid; margin-bottom: 6px; line-height: 1.4; }
.search-hits li a { color: var(--navy); }
.search-hits li span { color: #8a8272; font-size: 13px; }

/* ---------- Bloc « À voir dans les environs » (bas de fiche) ---------- */
.fiche-related {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding: 40px 0 48px;
  margin-top: 40px;
}
.fiche-related h2 { font-size: 24px; margin-bottom: 20px; }
.fiche-related .poi-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .fiche-related .poi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .fiche-related .poi-grid { grid-template-columns: 1fr; } }

/* ---------- Pages thématiques (régions / départements / catégories) ---------- */
.landing-hero h1 { font-size: clamp(32px, 4.4vw, 52px); }
.landing-map {
  height: 380px;
  border: 1px solid var(--line-strong);
  margin-bottom: 36px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-top: 16px;
}
.chip-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #5b5546;
  letter-spacing: .02em;
  margin-right: 4px;
}
.chip {
  display: inline-block;
  padding: 5px 11px;
  font-size: 13px;
  text-decoration: none;
  color: var(--navy-deep);
  background: #fffdf8;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.chip:hover { border-color: var(--gold); color: var(--gold-deep); }
.chip span { color: #8a8272; }

/* Liste dépliable « tous les sites » (au-delà des cartes) */
.site-index { margin-top: 36px; }
.site-index summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--navy-deep);
  margin-bottom: 14px;
}
.site-index ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 260px 3;
  column-gap: 28px;
}
.site-index li { break-inside: avoid; margin-bottom: 6px; line-height: 1.4; }
.site-index li a { color: var(--navy); }
.site-index li span { color: #8a8272; font-size: 13px; }

/* Hub explorer.html */
.hub-regions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px 28px;
}
.hub-region h3 { font-size: 17px; margin-bottom: 8px; }
.hub-region h3 span { color: #8a8272; font-weight: 400; font-size: 13px; }
.hub-region ul { list-style: none; padding: 0; margin: 0; }
.hub-region li { margin-bottom: 4px; }
.hub-region li a { color: var(--navy); font-size: 14px; }
.poi-note {
  display: inline-block;
  font-size: 11.5px;
  color: var(--forest);
  border: 1px solid var(--forest);
  padding: 2px 8px;
  margin-left: 8px;
}
.marker-cluster-tresors {
  background: rgba(31,51,88,.82);
  border-radius: 50%;
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border: 2px solid var(--paper);
}

/* ---------- Fiche détail ---------- */
.fiche-hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}
.fiche-hero .thumb { aspect-ratio: 21 / 9; overflow: hidden; }
.fiche-hero img { width: 100%; height: 100%; object-fit: cover; }
.image-credit {
  max-width: var(--container);
  margin: 6px auto 0;
  padding: 0 28px;
  font-size: 11.5px;
  color: #7a7261;
  text-align: right;
  display: none;
}
.image-credit.show { display: block; }
.breadcrumb { font-size: 13px; color: #5b5546; padding: 18px 0 0; }
.breadcrumb a { color: var(--navy-deep); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.fiche-head { padding: 22px 0 8px; }
.fiche-head .poi-tag { font-size: 13px; }
.fiche-head h1 { font-size: clamp(30px, 4vw, 46px); }
.fiche-head .poi-meta { font-size: 15px; }

.fiche-layout {
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 48px;
  align-items: start;
}
.fiche-gallery {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0 26px;
}
.fiche-gallery.has-content { display: grid; }
.fiche-gallery img { width: 100%; height: 190px; object-fit: cover; }

/* Carrousel de photos complémentaires */
/* Espace réservé pour le carrousel avant que le JS ne le remplisse (anti-CLS) */
#gallery-slot.reserve {
  display: block;
  aspect-ratio: 16 / 10;
  margin: 18px 0 26px;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
}
#gallery-slot.reserve:not(:empty) { aspect-ratio: auto; border: 0; background: none; margin: 0; }

.fiche-carousel {
  position: relative;
  margin: 18px 0 26px;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
  overflow: hidden;
}
.fiche-carousel.single { line-height: 0; }
.fiche-carousel.single img { width: 100%; max-height: 480px; object-fit: cover; }
.fiche-carousel:focus { outline: none; }
.fiche-carousel:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16 / 10;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85);
  background: rgba(31,51,88,.72);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .15s ease;
}
.carousel-btn:hover { background: var(--navy-deep); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(31,51,88,.72);
  color: #fff;
  font-size: 12px;
  font-family: var(--font-body);
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 2;
}
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.carousel-dot.active { background: var(--gold); transform: scale(1.25); }

.info-card {
  border: 1px solid var(--line-strong);
  background: #fffdf8;
  padding: 22px;
  position: sticky;
  top: 96px;
}
.info-card h3 { font-size: 15px; text-transform: none; margin-bottom: 14px; color: var(--navy-deep); }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.info-row:first-of-type { border-top: none; }
.info-row .k { color: #5b5546; }
.info-row .v { text-align: right; font-weight: 500; }
.info-card .btn { width: 100%; justify-content: center; margin-top: 16px; }
.mini-map { height: 190px; margin-top: 16px; border: 1px solid var(--line-strong); }
.astuce {
  margin-top: 22px;
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  background: rgba(184,134,58,.09);
  font-size: 14.5px;
}
.astuce strong { color: var(--gold-deep); }

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin: 4px 0 26px;
  background: var(--paper-deep);
  border: 1px solid var(--line-strong);
}
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ---------- Sélecteur de photos (admin) ---------- */
.file-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.image-picker-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.image-picker-actions input[type="url"] {
  flex: 1;
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 13.5px;
}
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.photo-thumb {
  position: relative;
  width: 108px;
  height: 108px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: var(--paper-deep);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .badge {
  position: absolute;
  top: 0; left: 0;
  background: var(--forest);
  color: var(--paper);
  font-size: 10px;
  padding: 2px 6px;
  letter-spacing: .02em;
}
.photo-thumb .thumb-actions {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  background: rgba(35,32,26,.72);
  opacity: 0;
  transition: opacity .12s ease;
}
.photo-thumb:hover .thumb-actions { opacity: 1; }
.photo-thumb .thumb-actions button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--paper);
  font-size: 15px;
  padding: 4px 0;
  cursor: pointer;
}
.photo-thumb .thumb-actions button:hover { background: rgba(255,255,255,.15); }
.image-empty-hint {
  font-size: 13px;
  color: #7a7261;
  border: 1px dashed var(--line-strong);
  padding: 14px;
  width: 100%;
  text-align: center;
}
.upload-progress {
  font-size: 12.5px;
  color: var(--forest);
  margin-top: 6px;
}

/* ---------- Pied de page ---------- */
footer.site-footer {
  border-top: 1px solid var(--line-strong);
  background: var(--navy-deep);
  color: var(--paper);
  padding: 36px 0 28px;
  margin-top: 40px;
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
footer.site-footer a { color: var(--paper); opacity: .85; text-decoration: none; }
footer.site-footer a:hover { opacity: 1; text-decoration: underline; }
footer.site-footer .cols { display: flex; gap: 48px; flex-wrap: wrap; }
footer.site-footer .cols div { display: flex; flex-direction: column; gap: 6px; }
footer.site-footer .fine { opacity: .6; margin-top: 22px; font-size: 12px; }

/* ---------- Admin ---------- */
.admin-gate {
  max-width: 420px;
  margin: 80px auto;
  border: 1px solid var(--line-strong);
  background: #fffdf8;
  padding: 32px;
  text-align: center;
}
.admin-gate input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-body);
  font-size: 15px;
  margin: 16px 0 10px;
}
.admin-gate .error { color: #8c2f24; font-size: 13.5px; min-height: 18px; }
.admin-warning {
  border: 1px solid var(--gold);
  background: rgba(184,134,58,.10);
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 28px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
}
.admin-panel { border: 1px solid var(--line-strong); background: #fffdf8; padding: 26px; }
.admin-panel h2 { font-size: 21px; }

/* Onglets Sites / Listes */
.admin-tabs { display: flex; gap: 4px; margin: 24px 0 22px; border-bottom: 1px solid var(--line-strong); }
.admin-tab {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: #5b5546;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.admin-tab.active { color: var(--navy-deep); border-bottom-color: var(--gold); }
.admin-tab-panel .admin-warning { margin-top: 0; }

/* Sélecteur de POIs pour les listes */
.poi-search-results {
  margin-top: 8px;
  border: 1px solid var(--line-strong);
  max-height: 220px;
  overflow-y: auto;
  display: none;
}
.poi-search-results.show { display: block; }
.poi-search-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.poi-search-result:last-child { border-bottom: none; }
.poi-search-result span { color: #5b5546; font-size: 12.5px; }
.selected-pois { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.selected-poi-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--paper);
  padding: 8px 10px;
  font-size: 14px;
}
.selected-poi-row .num { font-family: var(--font-display); color: var(--gold-deep); width: 22px; text-align: center; flex: none; }
.selected-poi-row .name { flex: 1; }
.selected-poi-row .name span { display: block; font-size: 12px; color: #5b5546; }
.selected-poi-row .actions { display: flex; gap: 4px; flex: none; }
.selected-poi-row button {
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
  width: 26px; height: 26px;
  font-size: 13px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.selected-poi-row button:hover { background: var(--paper-deep); }
.selected-poi-row button.remove:hover { background: #8c2f24; color: #fff; border-color: #8c2f24; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: #5b5546; margin-bottom: 5px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 70px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-hint { font-size: 12px; color: #7a7261; margin-top: 4px; }
.mini-map-picker { height: 220px; border: 1px solid var(--line-strong); margin-top: 6px; cursor: crosshair; }
.form-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* Prévisualisation des photos (image principale + galerie), gérées par URL */
.photo-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  min-height: 0;
}
.photo-empty { font-size: 12.5px; color: #9a927e; font-style: italic; }
.thumb-chip {
  position: relative;
  width: 84px;
  height: 64px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  flex: none;
}
.thumb-chip img { width: 100%; height: 100%; object-fit: cover; }
.thumb-chip .remove {
  position: absolute;
  top: 2px; right: 2px;
  width: 20px; height: 20px;
  background: rgba(35,32,26,.75);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-chip .remove:hover { background: #8c2f24; }
.galerie-add-row { display: flex; gap: 8px; }
.galerie-add-row input { flex: 1; }


.admin-list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.admin-list-head h2 { font-size: 21px; margin: 0; }
.admin-export { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-item {
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  background: #fffdf8;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.admin-item .meta strong { display: block; font-family: var(--font-display); font-size: 16px; }
.admin-item .meta span { font-size: 12.5px; color: #5b5546; }
.admin-item .actions { display: flex; gap: 8px; flex: none; }
.status-msg {
  font-size: 13.5px;
  padding: 10px 14px;
  border-left: 3px solid var(--forest);
  background: rgba(52,80,62,.08);
  margin-bottom: 18px;
  display: none;
}
.status-msg.show { display: block; }
.status-msg.error { border-color: #8c2f24; background: rgba(140,47,36,.08); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .fiche-layout { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  nav.main-nav { gap: 16px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .site-header .wrap { flex-wrap: wrap; }
  nav.main-nav { flex-wrap: wrap; gap: 10px 18px; font-size: 13.5px; }
  .fiche-gallery { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .liste-hero-head h1 { font-size: 34px; }
  .liste-intro p { text-align: left; }
  .liste-hero-stats { gap: 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==========================================================================
   Emplacements publicitaires (AdSense) — voir js/ads.js
   ========================================================================== */
.ad-slot {
  max-width: var(--container);
  margin: 34px auto;
  padding: 0 28px;
  min-height: 100px;
  text-align: center;
  overflow: hidden;
}
.ad-slot::before {
  content: "Publicité";
  display: block;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .4;
  margin-bottom: 6px;
}
.ad-slot .adsbygoogle { display: block; }
.ad-slot--placeholder {
  color: var(--ink);
  font-size: 13px;
  opacity: .55;
  border: 1px dashed var(--line-strong);
  background: var(--paper-deep);
  border-radius: var(--radius);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 28px;
  margin-right: 28px;
  max-width: calc(var(--container) - 56px);
}
.ad-slot--placeholder::before { display: none; }
/* Variante compacte dans la colonne latérale d'une fiche */
.info-card .ad-slot { margin: 20px 0 0; padding: 0; max-width: none; }
.info-card .ad-slot--placeholder { margin: 20px 0 0; max-width: none; }

/* ==========================================================================
   Bandeau de consentement cookies — voir js/consent.js
   ========================================================================== */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--paper);
  border-top: 2px solid var(--navy);
  box-shadow: 0 -6px 24px rgba(22, 35, 61, 0.14);
  transform: translateY(100%);
  transition: transform .3s ease;
}
.consent-banner.is-visible { transform: translateY(0); }
.consent-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.consent-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  max-width: none;
}
.consent-text a { color: var(--gold-deep); text-decoration: underline; }
.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.consent-reopen {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.consent-reopen:hover { color: var(--gold-deep); }
@media (max-width: 640px) {
  .consent-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 20px; }
  .consent-actions { justify-content: flex-end; }
}
