/* Charte graphique reprise du carnet d'origine (papier, vichy, manuscrit). */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f7f5f0;
  color: #2b2d42;
}
.font-handwritten { font-family: 'Caveat', cursive; }
.font-serif-title { font-family: 'Playfair Display', serif; }

/* Bordure vichy des fiches : couleurs passées en variables (--g-bg, --g-fg) */
.gingham {
  background-color: var(--g-bg, #e8f5e9);
  background-image:
    linear-gradient(45deg, var(--g-fg, #74c69d) 25%, transparent 25%),
    linear-gradient(-45deg, var(--g-fg, #74c69d) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--g-fg, #74c69d) 75%),
    linear-gradient(-45deg, transparent 75%, var(--g-fg, #74c69d) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

/* Papier ligné */
.lined-paper {
  background-color: #fffdfa;
  background-image: linear-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 100% 2.35rem;
  line-height: 2.35rem;
}

/* Texture papier vintage */
.paper-texture {
  background-color: #fbf9f4;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Trou de perforation */
.hole-punch {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #1e293b;
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.6), 0 1px 2px rgba(255,255,255,0.8);
  border: 1.5px solid rgba(0,0,0,0.25);
}

/* Tampon encreur */
.stamp-badge {
  display: inline-block;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.1em;
  border: 3px double currentColor;
  border-radius: 8px;
  transform: rotate(-6deg);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 70%, rgba(0,0,0,0.8) 100%);
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 70%, rgba(0,0,0,0.8) 100%);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
.animate-fadeIn { animation: fadeIn .25s ease-out; }

/* Accessibilité : focus clavier visible */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

.visit-item input[disabled] { cursor: default; opacity: .75; }

/* Admin : lignes éditables */
.row-dragging { opacity: .5; }
.leaflet-container { font-family: 'Plus Jakarta Sans', sans-serif; }

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