/*
Theme Name: Bona Explore
Theme URI: https://bonaexplore.com
Author: Bona Explore
Description: Thème officiel Bona Explore — découvrir le Bénin autrement. Carte interactive des 12 départements, explorations, boutique. Charte graphique v1.0 (jaune #FFE401, marron #383220, Outfit + Manrope).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bonaexplore
*/

/* ==========================================================================
   Système de design — charte graphique Bona Explore
   ========================================================================== */

:root {
  --olive: #383220;
  --olive-soft: #545038;
  --olive-faint: #8a856d;
  --noir: #141618;
  --jaune: #ffe401;
  --jaune-doux: #fff6b0;
  --creme: #fff8f1;
  --blanc: #ffffff;
  --corail: #f25f5c;
  --pole-orange: #f98948;
  --pole-violet: #6320ee;
  --pole-gris: #e6e6e9;
  --pole-bleu: #0267c1;
  --pole-orange-fonce: #f26419;

  --radius: 22px;
  --radius-sm: 12px;
  --border: 1.5px solid var(--olive);
  --border-thin: 1px solid var(--olive);
  --shadow: 0 4px 0 rgba(56, 50, 32, 0.14);
  --shadow-hover: 0 7px 0 rgba(56, 50, 32, 0.18);

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--creme);
  color: var(--olive);
  line-height: 1.65;
  font-size: 1.05rem;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
svg { fill: currentColor; }

.container { width: min(1160px, 92vw); margin-inline: auto; }

/* --- Boutons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: var(--border);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow);
  background: var(--blanc);
  color: var(--olive);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(56, 50, 32, 0.2); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-jaune { background: var(--jaune); }
.btn-olive { background: var(--olive); color: var(--jaune); }

/* --- Badges ---------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: var(--border-thin);
  background: var(--blanc);
}
.badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.badge-jaune { background: var(--jaune); }

/* --- Cartes ---------------------------------------------------------------- */
.card {
  background: var(--blanc);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.card { text-decoration: none; }
.card:hover { transform: translateY(-5px) rotate(-0.5deg); box-shadow: var(--shadow-hover); }

/* --- Séparateur pointillé --------------------------------------------------- */
.dashes {
  border: none;
  height: 4px;
  margin: 0;
  background-image: linear-gradient(90deg, var(--jaune) 0 26px, transparent 26px 46px);
  background-size: 46px 4px;
  background-repeat: repeat-x;
  border-radius: 2px;
}

/* --- Sections ---------------------------------------------------------------- */
.section { padding: 4.5rem 0; }
.section-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.section-title .t-icon {
  width: 38px;
  height: 38px;
  color: var(--olive);
  background: var(--jaune);
  border: var(--border-thin);
  border-radius: 12px;
  padding: 6px;
  box-sizing: content-box;
  flex-shrink: 0;
}
.intro { max-width: 46rem; margin-bottom: 2.5rem; font-size: 1.12rem; }

/* --- Compteurs ----------------------------------------------------------------- */
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 600; line-height: 1; }
.stat .label { font-weight: 700; font-size: 0.95rem; opacity: 0.75; }

/* --- Prose ---------------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 {
  margin: 2.2rem 0 0.8rem;
  padding-bottom: 0.3rem;
  display: inline-block;
  border-bottom: 4px solid var(--jaune);
}
.prose p { margin-bottom: 1.1rem; }
.prose ol, .prose ul { margin: 0 0 1.1rem 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { background: linear-gradient(transparent 62%, var(--jaune-doux) 62%); }
.prose img { border-radius: var(--radius-sm); }
.prose .wave { width: 36px; height: 36px; vertical-align: -5px; }
.prose .heart { width: 17px; height: 17px; color: var(--corail); vertical-align: -3px; }

/* --- Grilles ---------------------------------------------------------------------- */
.grid-cards { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-cards > div[data-piliers] { display: contents; }
.grid-cards > div[data-piliers].hidden { display: none; }
.center { text-align: center; }

.pagination { margin-top: 2.5rem; text-align: center; font-family: var(--font-display); font-weight: 600; }
.pagination .nav-links { display: flex; gap: 0.6rem; justify-content: center; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 2.4rem;
  padding: 0.35rem 0.6rem;
  border: var(--border-thin);
  border-radius: 10px;
  background: var(--blanc);
  text-decoration: none;
}
.pagination .page-numbers.current { background: var(--jaune); }

/* ==========================================================================
   En-tête / pied de page
   ========================================================================== */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--creme); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; }

.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand-emblem { transition: transform 0.3s ease; }
.brand:hover .brand-emblem { transform: rotate(-12deg) scale(1.08); }
.brand-wordmark { height: 34px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a:not(.btn) {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 4px;
  background: var(--jaune);
  border-radius: 2px;
  transition: right 0.2s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links .current-menu-item a:not(.btn)::after { right: 0; }
.nav-links .nav-cta { padding: 0.45rem 1.2rem; font-size: 0.95rem; }

.nav-toggle, .nav-burger { display: none; }

@media (max-width: 720px) {
  .brand-emblem { width: 42px; height: 42px; }
  .brand-wordmark { height: 30px; }
  .nav-burger { display: block; cursor: pointer; user-select: none; line-height: 0; }
  .nav-burger svg { width: 28px; height: 28px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--creme);
    padding: 1.2rem 0 1.6rem;
    border-bottom: var(--border);
  }
  .nav-toggle:checked ~ ul.nav-links, .nav-toggle:checked ~ nav .nav-links { display: flex; }
  nav { position: static; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

.site-footer { margin-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding: 3rem 0 1.5rem; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { height: 60px; width: auto; }
.footer-brand p { margin-top: 0.9rem; }
.footer-brand em { font-style: normal; font-weight: 700; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links h3 { margin-bottom: 0.4rem; }
.footer-links a {
  text-decoration: none;
  font-weight: 700;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.footer-links a svg { width: 19px; height: 19px; }
.footer-links a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--jaune); text-decoration-thickness: 3px; }
.footer-note { padding: 1rem 0 2rem; font-size: 0.9rem; opacity: 0.7; }
.footer-note .heart { width: 14px; height: 14px; color: var(--corail); vertical-align: -2px; display: inline-block; }
.motif-strip {
  height: 46px;
  background: var(--olive) url('assets/brand/motif-jaune.svg');
  background-size: 520px;
  background-position: center;
}

/* ==========================================================================
   Accueil
   ========================================================================== */

.hero { padding: 3.5rem 0 2rem; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 2rem; }

.hero-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.hero-kicker svg { width: 19px; height: 19px; }
.hero-sub { margin: 1.2rem 0 1.8rem; font-size: 1.15rem; max-width: 34rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.squiggle { position: relative; white-space: nowrap; }
.squiggle::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.02em;
  height: 0.22em;
  background: var(--jaune);
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-1.2deg);
}

/* Polaroids de Bona */
.hero-photos {
  position: relative;
  width: min(310px, 70vw);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  animation: float 6s ease-in-out infinite;
}
.polaroid {
  position: absolute;
  inset: 0;
  background: var(--blanc);
  padding: 10px 10px 0;
  box-shadow: 0 14px 34px rgba(56, 50, 32, 0.28);
  border-radius: 4px;
  transition: transform 0.35s ease;
  margin: 0;
}
.polaroid img { width: 100%; height: calc(100% - 52px); object-fit: cover; }
.polaroid figcaption {
  height: 52px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--olive);
}
.polaroid-back { transform: rotate(-7deg) translate(-26px, -10px); filter: brightness(0.96); }
.polaroid-front { transform: rotate(3.5deg); }
.hero-photos:hover .polaroid-front { transform: rotate(0deg) scale(1.02); }
.hero-photos:hover .polaroid-back { transform: rotate(-10deg) translate(-40px, -14px); }
.tape {
  position: absolute;
  top: -12px; left: 50%;
  width: 92px; height: 26px;
  background: var(--jaune);
  opacity: 0.85;
  transform: translateX(-50%) rotate(-4deg);
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(56, 50, 32, 0.15);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-photos { order: -1; margin-inline: auto; transform: scale(0.82); }
  .hero-actions { justify-content: center; }
  .hero-kicker { justify-content: center; }
}

.stats-band { position: relative; background: var(--olive); color: var(--creme); padding: 2.4rem 0; }
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/brand/motif-jaune.svg');
  background-size: 640px;
  opacity: 0.1;
  pointer-events: none;
}
.stats-band .container { position: relative; }
.stats-band .num { color: var(--jaune); }
.stats-band .num-icon { width: 42px; height: 42px; vertical-align: -6px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.teaser-sub { max-width: 40rem; margin-bottom: 2rem; font-size: 1.1rem; }
.teaser-link { text-decoration: none; display: block; }
.teaser-map-box {
  position: relative;
  background: var(--blanc);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 560px;
  margin-inline: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.teaser-map-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.teaser-cta {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.follow-band {
  position: relative;
  overflow: hidden;
  background: var(--jaune);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 3rem 2rem;
}
.follow-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/brand/motif-brun.svg');
  background-size: 560px;
  opacity: 0.07;
  pointer-events: none;
}
.follow-band > * { position: relative; }
.follow-band p { margin: 0.8rem 0 1.6rem; }

/* ==========================================================================
   Vignettes exploration / produit
   ========================================================================== */

.expl-card { display: flex; flex-direction: column; }
.expl-card .cover {
  position: relative;
  height: 165px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.4), transparent 55%),
    color-mix(in srgb, var(--cover, #FFE401) 42%, white);
  border-bottom: var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.expl-card .cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.expl-card .cover-icon {
  width: 74px;
  height: 74px;
  color: var(--olive);
  filter: drop-shadow(0 4px 0 rgba(56, 50, 32, 0.22));
  transition: transform 0.25s ease;
}
.expl-card:hover .cover-icon { transform: scale(1.12) rotate(-6deg); }
.cover-video {
  position: absolute;
  right: 12px; bottom: 12px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  background: var(--olive);
  color: var(--jaune);
  border-radius: 50%;
}
.cover-video svg { width: 15px; height: 15px; }
.expl-card .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.expl-card .meta { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 800; }
.expl-card .meta .dept { display: inline-flex; align-items: center; gap: 0.25rem; }
.expl-card .meta svg { width: 14px; height: 14px; }
.expl-card .meta .date { opacity: 0.6; text-transform: capitalize; }
.expl-card .resume { font-size: 0.95rem; opacity: 0.85; }
.expl-card .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }

.produit .cover { border-bottom: var(--border); overflow: hidden; }
.produit .cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.3s ease; }
.produit:hover .cover img { transform: scale(1.05); }
.produit .body { padding: 1.2rem 1.3rem 1.4rem; }
.produit .variantes { font-size: 0.85rem; font-weight: 800; opacity: 0.6; margin: 0.2rem 0 0.5rem; }
.produit .desc { font-size: 0.95rem; margin-bottom: 1rem; }
.produit .desc p { margin-bottom: 0.5rem; }
.produit .buy-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.produit .prix { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }

/* Boutique */
.how {
  max-width: 44rem;
  background: var(--jaune-doux);
  border: 1.5px dashed var(--olive);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem;
  margin-bottom: 2.5rem;
  font-size: 0.98rem;
}
.how svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 0.2rem; }
.intro .heart { width: 18px; height: 18px; color: var(--corail); vertical-align: -3px; display: inline-block; }

/* Filtres piliers */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.2rem; }
.filters .badge { cursor: pointer; font-size: 0.95rem; padding: 0.4rem 1rem; background: var(--blanc); transition: transform 0.15s ease; }
.filters .badge:hover { transform: translateY(-2px); }
.filters .badge.active { background: var(--jaune); }

/* ==========================================================================
   Fiche exploration
   ========================================================================== */

.expl-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.45), transparent 50%),
    color-mix(in srgb, var(--cover, #FFE401) 42%, white);
  border-bottom: var(--border);
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.crumbs { font-weight: 800; font-size: 0.9rem; margin-bottom: 1rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero-icon-wrap { display: inline-block; animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.expl-hero .hero-icon { width: 84px; height: 84px; color: var(--olive); filter: drop-shadow(0 5px 0 rgba(56, 50, 32, 0.22)); }
@keyframes pop { from { transform: scale(0) rotate(-30deg); } to { transform: scale(1) rotate(0); } }
.hero-meta { font-weight: 800; margin: 0.8rem 0; display: flex; align-items: center; justify-content: center; gap: 0.35rem; }
.hero-meta svg { width: 17px; height: 17px; }
.expl-hero .tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  background: var(--olive);
}
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.2rem; }
@media (max-width: 900px) { .sidebar { position: static; } }
.sidebar-cta { width: 100%; justify-content: center; }
.card-static {
  background: var(--blanc);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.pratique h3 { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.45rem; }
.pratique h3 svg { width: 21px; height: 21px; }
.pratique-item { margin-bottom: 1rem; }
.pratique-item strong { display: flex; align-items: center; gap: 0.4rem; font-family: var(--font-display); }
.pratique-item strong svg { width: 16px; height: 16px; color: var(--olive-soft); }
.pratique-item p { font-size: 0.95rem; opacity: 0.85; }

/* ==========================================================================
   Page département
   ========================================================================== */

.dept-hero { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: center; }
@media (max-width: 760px) {
  .dept-hero { grid-template-columns: 1fr; text-align: center; }
  .dept-shape svg { max-width: 260px; margin-inline: auto; }
  .dept-stats .stat { text-align: center; }
}
.dept-shape svg { width: 100%; height: auto; max-height: 340px; overflow: visible; }
.dept-shape path { fill: var(--jaune); stroke: var(--olive); stroke-width: 1.5; stroke-linejoin: round; }
.statut-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  border: var(--border-thin);
  background: var(--jaune);
  margin-bottom: 0.8rem;
}
.statut-tag svg { width: 14px; height: 14px; }
.statut-tag.a-venir { background: #f2ece2; }
.chef-lieu { margin: 0.5rem 0; font-size: 1.05rem; }
.accroche { font-size: 1.2rem; margin-bottom: 1.4rem; }
.dept-stats { margin-bottom: 1.6rem; }
.dept-stats .stat { text-align: left; }
.empty {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--blanc);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.empty .empty-icon { width: 64px; height: 64px; color: var(--olive-faint); }
.empty h2 { margin: 0.6rem 0; }
.empty p { margin-bottom: 1.4rem; }

/* ==========================================================================
   Carte interactive
   ========================================================================== */

.map-wrap { display: grid; gap: 1.5rem; }
.mode-full { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 860px) { .mode-full { grid-template-columns: 1fr; } }

.map-stage { position: relative; }
.map-stage svg { width: 100%; height: auto; overflow: visible; }

.dept {
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.3s ease;
  outline: none;
}
.mode-teaser .dept { cursor: default; }
.dept path { stroke: var(--olive); stroke-width: 1.5; stroke-linejoin: round; transition: fill 0.25s ease; }
.statut-explore path { fill: var(--jaune); }
.statut-en-cours path { fill: var(--jaune-doux); }
.statut-a-venir path { fill: url(#hachures); }
.dept:hover path, .dept:focus-visible path, .dept.selected path { fill: #ffee66; }
.statut-a-venir:hover path, .statut-a-venir.selected path { fill: #f7f1e6; }
.dept.selected { transform: scale(1.06); }
.exploded .dept { transform: translate(var(--ex), var(--ey)); }
.exploded .dept.selected { transform: translate(var(--ex), var(--ey)) scale(1.08); }
.has-selection .dept:not(.selected) { opacity: 0.45; }

.dept-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  fill: var(--olive);
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255, 248, 241, 0.75);
  stroke-width: 3px;
}
.mode-teaser .dept-label { font-size: 17px; }
.dept-label.label-sm { font-size: 11px; }
.dept-label.label-hidden { display: none; }
.exploded .dept-label.label-hidden { display: block; }

.pin { transform: translate(var(--px), var(--py)); cursor: pointer; }
.pin-inner {
  animation: pin-drop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: var(--delay);
  transition: transform 0.2s ease;
}
.pin:hover .pin-inner { transform: scale(1.25); }
.pin path { fill: var(--olive); stroke: var(--creme); stroke-width: 1.5; }
.pin circle { fill: var(--jaune); }
.pin.dimmed { opacity: 0.25; pointer-events: none; }
@keyframes pin-drop {
  from { transform: translateY(-38px) scale(0.6); opacity: 0; }
  60% { transform: translateY(4px) scale(1.05); opacity: 1; }
  to { transform: translateY(0) scale(1); }
}

.tooltip {
  position: absolute;
  z-index: 10;
  background: var(--blanc);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  max-width: 230px;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
}
.tooltip strong { font-family: var(--font-display); display: flex; align-items: center; gap: 0.35rem; }
.tooltip strong svg { width: 17px; height: 17px; flex-shrink: 0; }
.tooltip .tt-type { display: flex; align-items: center; gap: 0.3rem; color: var(--olive-soft); font-size: 0.8rem; font-weight: 800; }
.tooltip .tt-type svg { width: 12px; height: 12px; }

.panel {
  background: var(--blanc);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  position: sticky;
  top: 90px;
}
@media (max-width: 860px) { .panel { position: static; } }
.panel h3 { margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.45rem; }
.panel .h-icon { width: 24px; height: 24px; }
.panel p { margin-bottom: 0.9rem; font-size: 0.98rem; }
.panel-stats { font-size: 1.05rem; }
.chip {
  display: inline-block;
  padding: 0 0.5rem;
  border-radius: 6px;
  border: var(--border-thin);
  font-weight: 800;
  font-size: 0.85rem;
}
.chip-jaune { background: var(--jaune); }
.chip-gris { background: repeating-linear-gradient(45deg, #f2ece2 0 5px, #ded5c4 5px 8px); }
.panel .statut-tag { font-size: 0.8rem; padding: 0.15rem 0.7rem; margin-bottom: 0.6rem; }
.panel-dept ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin: 0.8rem 0 1rem; padding: 0; }
.panel-dept li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  padding: 0.5rem 0.7rem;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  background: var(--creme);
  transition: transform 0.15s ease, background 0.15s ease;
}
.panel-dept .li-icon { width: 20px; height: 20px; flex-shrink: 0; }
.panel-dept li a:hover { transform: translateX(4px); background: var(--jaune-doux); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.panel-actions svg { width: 16px; height: 16px; }

/* Bouton vue éclatée : bascule des libellés */
[data-explode] .lbl-in { display: none; }
[data-explode].on .lbl-in { display: inline-flex; }
[data-explode].on .lbl-out { display: none; }
[data-explode] svg.lbl-in { display: none; }
[data-explode].on svg.lbl-in { display: block; }
[data-explode].on svg.lbl-out { display: none; }

/* ==========================================================================
   À propos
   ========================================================================== */

.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; }
@media (max-width: 820px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-side { order: -1; text-align: center; }
  .about-photo { margin-inline: auto; }
}
.about-photo {
  position: relative;
  width: min(260px, 100%);
  background: var(--blanc);
  padding: 10px 10px 0;
  box-shadow: 0 14px 34px rgba(56, 50, 32, 0.28);
  border-radius: 4px;
  transform: rotate(-3deg);
  transition: transform 0.35s ease;
  margin: 0;
}
.about-photo:hover { transform: rotate(0deg) scale(1.02); }
.about-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.about-photo figcaption {
  padding: 0.7rem 0.4rem 0.9rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--olive);
}
.about-photo .tape { width: 84px; height: 24px; }
.social-card {
  margin-top: 1.5rem;
  background: var(--blanc);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.social-card .btn { justify-content: center; }

.lectures-section { background: var(--blanc) url('assets/brand/motif-stork.svg'); background-size: 900px; border-top: var(--border); }
.lectures-intro { max-width: 44rem; margin-bottom: 2rem; font-size: 1.1rem; }
.lectures-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.lecture { position: relative; padding: 1.6rem; }
.lecture:hover { transform: translateY(-4px); }
.lecture-num {
  position: absolute;
  top: 1.1rem; right: 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--jaune);
  -webkit-text-stroke: 1px var(--olive);
}
.lecture .lecture-icon { width: 44px; height: 44px; color: var(--olive); margin-bottom: 0.7rem; }
.lecture h3 { margin-bottom: 0.5rem; }
.lecture p { font-size: 0.96rem; }
.lecture-cercle { background: var(--jaune-doux); }

/* ==========================================================================
   404
   ========================================================================== */

.lost-section { background: url('assets/brand/motif-stork.svg'); background-size: 780px; }
.lost-icon {
  width: 90px;
  height: 90px;
  color: var(--olive);
  animation: spin-wobble 3s ease-in-out infinite;
  display: inline-block;
}
@keyframes spin-wobble {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
}
.lost-section .sub { max-width: 34rem; margin: 1rem auto 2rem; }
.lost-section .actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Divers
   ========================================================================== */

.prose-page h1 { margin-bottom: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
