/* GLORIA HORIZONS — CARNETS ET CARTE
   Feuille séparée, chargée sur le site et dans Gutenberg par l'extension. */
.ghc-catalogue, .ghc-map-section {
  --ghc-blue: #23415a;
  --ghc-deep: #172f42;
  --ghc-pink: #f4989b;
  --ghc-rose: #b74552;
  --ghc-soft: #fff8f4;
  --ghc-line: #e4e8ed;
  width: 100%;
  max-width: none;
  color: var(--ghc-blue);
  font: 400 16px/1.65 "Poppins", "Segoe UI", Arial, sans-serif;
  overflow-wrap: break-word;
}
.ghc-catalogue *, .ghc-map-section *,
.ghc-catalogue *::before, .ghc-catalogue *::after,
.ghc-map-section *::before, .ghc-map-section *::after { box-sizing: border-box; }
.ghc-catalogue, .ghc-map-section { box-sizing: border-box; }
.ghc-catalogue :where(p, h2, h3, figure),
.ghc-map-section :where(p, h2, h3, figure) { margin: 0; }
.ghc-catalogue a, .ghc-map-section a { color: inherit; text-decoration: none; }
.ghc-catalogue [hidden], .ghc-map-section [hidden] { display: none !important; }
.ghc-catalogue a:focus-visible, .ghc-catalogue button:focus-visible,
.ghc-map-section a:focus-visible, .ghc-map-section button:focus-visible {
  outline: 3px solid var(--ghc-blue); outline-offset: 4px;
}
.ghc-catalogue { padding: 80px 24px 82px; background: radial-gradient(circle at 4% 8%, #f4989b2e, transparent 28%), linear-gradient(145deg, #fff, var(--ghc-soft)); }
.ghc-inner { width: min(100%, 1000px); max-width: none; margin: 0 auto; }
.ghc-heading { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.ghc-heading .ghc-eyebrow { display: inline-block; margin-bottom: 16px; padding: 7px 14px; color: var(--ghc-rose); font-size: .8125rem; font-weight: 750; letter-spacing: .07em; background: #fff0f0; border: 1px solid #f4989b55; border-radius: 100px; }
.ghc-heading h2 { margin: 0 0 17px; color: var(--ghc-deep); font-family: inherit; font-size: clamp(2rem, 4.5vw, 3.55rem); font-weight: 800; line-height: 1.1; letter-spacing: -.045em; }
.ghc-heading h2 span, .ghc-heading h2 em { color: var(--ghc-rose); font-style: normal; }
.ghc-heading .ghc-intro { max-width: 660px; margin: 0 auto; color: #566b7a; font-size: 1.0625rem; line-height: 1.7; }

/* Défilement natif, sans lecture automatique. Le carnet suivant reste visible. */
.ghc-track {
  display: flex;
  align-items: stretch;
  gap: 28px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 6px 30px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--ghc-pink) #e9edf1;
  -webkit-overflow-scrolling: touch;
}
.ghc-track:focus-visible { outline: 3px solid var(--ghc-blue); outline-offset: 3px; border-radius: 18px; }
.ghc-track > .ghc-book { flex: 0 0 calc((100% - 40px) / 2.2); margin: 0; }
.ghc-book {
  position: relative;
  min-width: 0;
  scroll-snap-align: start;
  background: white;
  border: 1px solid #23415a1c;
  border-radius: 24px;
  box-shadow: 0 10px 25px #23415a12;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.ghc-book:hover { transform: translateY(-5px); box-shadow: 0 16px 28px #23415a20; }
.ghc-book-link { display: flex; flex-direction: column; width: 100%; height: 100%; color: inherit !important; text-decoration: none !important; }
.ghc-catalogue .ghc-book-link:focus-visible { outline-offset: -5px; border-radius: 23px; }
.ghc-book-visual { position: relative; padding: 16px 20px 20px; background: #f8eeeb; }
.ghc-book:nth-child(even) .ghc-book-visual { background: #eaf1f5; }
.ghc-book-visual .ghc-book-badge { display: table; margin: 0 0 15px; padding: 5px 11px; color: #9b3340; background: #fff; border: 1px solid #f1d6d5; border-radius: 100px; font-size: .8125rem; font-weight: 700; line-height: 1.4; }
.ghc-book-visual .ghc-book-badge.is-soon { color: var(--ghc-blue); border-color: #d1dde6; }
.ghc-book-visual img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1414 / 2000; margin: 0; object-fit: contain; border: 0; border-radius: 10px; }
.ghc-cover-empty { display: grid; place-items: center; width: 100%; aspect-ratio: 1414 / 2000; padding: 24px; color: var(--ghc-blue); font-size: 1.6rem; font-weight: 700; text-align: center; border: 1px dashed #c7a5a2; border-radius: 10px; }
.ghc-book-content { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; min-height: 155px; }
.ghc-book-text { min-width: 0; }
.ghc-book-content .ghc-book-location { display: block; margin: 0 0 7px; color: var(--ghc-rose); font-size: .8125rem; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
.ghc-book-content h3 { margin: 0 0 9px; color: var(--ghc-deep); font-family: inherit; font-size: clamp(1.5rem, 2.5vw, 1.85rem); font-weight: 750; line-height: 1.15; letter-spacing: -.025em; }
.ghc-book-content .ghc-book-teaser { margin: 0; color: #5d6f7b; font-size: .9375rem; line-height: 1.5; }
.ghc-book-arrow { display: flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--ghc-pink); color: var(--ghc-deep); border-radius: 14px; font-size: 1.4rem; line-height: 1; }
.ghc-carousel-controls { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 15px; }
.ghc-carousel-controls p { color: #566b7a; font-size: .875rem; }
.ghc-carousel-controls > div { display: flex; gap: 9px; }
.ghc-carousel-controls button, .ghc-zoom-controls button { display: flex; align-items: center; justify-content: center; padding: 0; min-width: 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ghc-blue); color: white; font-family: inherit; font-weight: 600; line-height: 1; font-size: 22px; cursor: pointer; }
.ghc-carousel-controls button:hover:not(:disabled), .ghc-zoom-controls button:hover:not(:disabled) { background: var(--ghc-pink); color: var(--ghc-deep); }
.ghc-carousel-controls button:disabled, .ghc-zoom-controls button:disabled { opacity: .35; cursor: default; }
.ghc-catalogue .ghc-note { margin: 30px auto 0; color: #566b7a; font-size: .875rem; text-align: center; }

/* Carte : chaque instance fonctionne de manière indépendante. */
.ghc-map-section { padding: 64px 24px 72px; background: white; }
.ghc-map-inner { width: min(1100px, 100%); max-width: none; margin: 0 auto; }
.ghc-map-heading { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.ghc-map-heading .ghc-map-kicker { margin-bottom: 12px; color: var(--ghc-rose); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; }
.ghc-map-heading h2 { margin: 0; color: var(--ghc-blue); font-family: inherit; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 650; line-height: 1.2; }
.ghc-map-heading h2::after { content: ""; display: block; width: 55px; height: 3px; margin: 18px auto; background: var(--ghc-pink); border-radius: 10px; }
.ghc-map-heading .ghc-map-intro { max-width: 660px; margin: 0 auto; color: #586c7b; font-size: 1rem; line-height: 1.8; }
.ghc-map-viewport { position: relative; width: 100%; overflow: hidden; border-radius: 22px; border: 1px solid #dbe7ed; background: #edf5f8; box-shadow: 0 12px 35px #23415a12; touch-action: pan-y; }
.ghc-map-stage { position: relative; width: 100%; min-width: 0; }
.ghc-map-stage > img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; border: 0; border-radius: 0; pointer-events: none; user-select: none; }
.ghc-map-point { position: absolute; z-index: 2; display: block; width: 24px; height: 24px; transform: translate(-50%, -50%) scale(var(--ghc-inverse-scale, 1)); border: 3px solid #fff; border-radius: 50%; background: var(--ghc-pink); box-shadow: 0 0 0 5px #f4989b33, 0 2px 8px #172f4229; cursor: pointer; }
.ghc-map-point:hover, .ghc-map-point:focus { z-index: 5; background: var(--ghc-blue); }
.ghc-tooltip { position: absolute; left: 50%; bottom: calc(100% + 11px); transform: translate(-50%, 4px); padding: 8px 12px; min-width: max-content; max-width: 220px; border-radius: 8px; background: var(--ghc-blue); color: white; font-size: .875rem; line-height: 1.2; font-weight: 600; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .15s ease, transform .15s ease; }
.ghc-map-point:hover .ghc-tooltip, .ghc-map-point:focus .ghc-tooltip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.ghc-zoom-controls { position: absolute; top: 15px; right: 15px; z-index: 10; display: flex; flex-direction: column; gap: 8px; }
.ghc-map-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0; padding: 0; }
.ghc-map-legend > a, .ghc-map-legend > span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 17px; border: 1px solid #e4d5d6; border-radius: 100px; background: #fff5f5; color: var(--ghc-blue); font-size: .9375rem; font-weight: 600; }
.ghc-map-legend > a:hover { background: var(--ghc-pink); }
.ghc-map-section .ghc-map-help { margin: 15px auto 0; text-align: center; color: #5d6f7b; font-size: .8125rem; }
@media (max-width: 720px) {
  .ghc-catalogue { padding: 58px 16px 62px; }
  .ghc-heading { margin-bottom: 28px; }
  .ghc-track { gap: 20px; }
  .ghc-track > .ghc-book { flex-basis: 84%; }
  .ghc-book-visual { padding: 14px 16px 17px; }
  .ghc-book-content { min-height: 142px; padding: 20px; }
  .ghc-carousel-controls p { font-size: .8125rem; }
  .ghc-map-section { padding: 48px 16px 56px; }
  .ghc-map-viewport { border-radius: 14px; }
  .ghc-zoom-controls { top: 9px; right: 9px; gap: 6px; }
  .ghc-zoom-controls button { width: 38px; height: 38px; min-width: 38px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ghc-catalogue *, .ghc-map-section * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.ghc-map-point:focus-visible { outline: 3px solid var(--ghc-blue); outline-offset: 3px; }
