/* Vilaine Pousse — brand styles */

/* ── Polices auto-hébergées (charte Vilaine Pousse) ────────────────────
   Titrages: Le Petit Cochon · Corps: Open Sans · Accentuation: Dreaming Outloud */
@font-face { font-family: 'Open Sans'; src: url('fonts/OpenSans-Regular.ttf') format('truetype');  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('fonts/OpenSans-Italic.ttf') format('truetype');   font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('fonts/OpenSans-Medium.ttf') format('truetype');   font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('fonts/OpenSans-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('fonts/OpenSans-Bold.ttf') format('truetype');     font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('fonts/OpenSans-ExtraBold.ttf') format('truetype');font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Petit Cochon'; src: url('fonts/PetitCochon.otf') format('opentype'), url('fonts/PetitCochon.ttf') format('truetype'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'Dreaming Outloud'; src: url('fonts/dreaming-outloud-pro-regular.otf') format('opentype'); font-weight: normal; font-style: normal; font-display: swap; }

:root {
  --vp-sage: #84BF9E;
  --vp-sage-dark: #63A483;
  --vp-pink: #F2527D;
  --vp-pink-aa: #D8345B;
  --vp-lime: #D4D952;
  --vp-olive: #7a8246;
  --vp-coral: #F27D52;
  --vp-sand: #F2E3D0;
  --vp-sand-soft: #F7EFE1;
  --vp-white: #FFFFFF;
  --vp-charcoal: #2B2B2B;
  --vp-charcoal-soft: #3a3a3a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--vp-charcoal);
  background: #fffaf0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-brush { font-family: 'Petit Cochon', cursive; letter-spacing: 0.01em; }
.font-script { font-family: 'Dreaming Outloud', cursive; }
.font-body { font-family: 'Open Sans', system-ui, sans-serif; }

.text-sage { color: var(--vp-sage); }
.bg-sage { background-color: var(--vp-sage); }
.bg-sage-dark { background-color: var(--vp-sage-dark); }
.text-pink-vp { color: var(--vp-pink); }
.bg-pink-vp { background-color: var(--vp-pink); }
.text-pink-aa { color: var(--vp-pink-aa); }
.bg-pink-aa { background-color: var(--vp-pink-aa); }
.bg-lime-vp { background-color: var(--vp-lime); }
.text-olive { color: var(--vp-olive); }
.bg-olive { background-color: var(--vp-olive); }
.text-coral { color: var(--vp-coral); }
.bg-coral { background-color: var(--vp-coral); }
.bg-sand { background-color: var(--vp-sand); }
.bg-sand-soft { background-color: var(--vp-sand-soft); }

/* Banners — full-bleed with hand-torn paper feel via wavy clip */
.banner {
  position: relative;
  padding: 30px 24px 34px;
  text-align: center;
  color: white;
}
.banner h2 {
  font-family: 'Petit Cochon', cursive;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.07);
}

/* slightly rotated photo frame */
.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(1.8deg); }
.tilt-l2 { transform: rotate(-3.2deg); }
.tilt-r2 { transform: rotate(2.6deg); }

/* card */
.vp-card {
  background: white;
  border-radius: 22px;
  box-shadow: 0 6px 24px -10px rgba(60,50,30,0.18), 0 2px 6px -2px rgba(60,50,30,0.08);
}

.vp-card-soft {
  background: white;
  border-radius: 18px;
  box-shadow: 0 4px 16px -8px rgba(60,50,30,0.15);
}

/* Photo placeholder (no Unsplash — friendly description card) */
.photo-ph {
  position: relative;
  background: linear-gradient(135deg, #b5d4c1 0%, #a3c8b3 100%);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 18px;
  box-shadow: 0 8px 24px -12px rgba(60,50,30,0.25);
  border: 4px solid white;
}
.photo-ph.beige { background: linear-gradient(135deg, #F2E3D0 0%, #d7c8a8 100%); color: #6a5b3a; }
.photo-ph.coral { background: linear-gradient(135deg, #f4a378 0%, #ec8a52 100%); }
.photo-ph.is-clickable { cursor: zoom-in; }
.photo-ph .ph-label {
  font-family: 'Dreaming Outloud', cursive;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
  max-width: 90%;
}

/* hand-drawn underline */
.handwritten-underline {
  position: relative;
  display: inline-block;
}
.handwritten-underline::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -10px;
  height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'><path d='M2 5 C 40 1, 80 7, 120 3 S 198 6, 198 4' stroke='%23F2527D' stroke-width='3' fill='none' stroke-linecap='round'/></svg>") no-repeat;
  background-size: 100% 100%;
}

/* nav pills */
.nav-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--vp-charcoal);
  transition: background .2s ease, color .2s ease;
  cursor: pointer;
}
.nav-pill:hover { background: rgba(125,184,154,0.18); color: var(--vp-olive); }

/* filter pills for map */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--vp-sage);
  background: white;
  color: var(--vp-olive);
  cursor: pointer;
  transition: all .18s ease;
}
.filter-pill:hover { transform: translateY(-2px); }
.filter-pill.active { background: var(--vp-sage); color: white; }
.filter-pill.active.composteurs { background: var(--vp-coral); border-color: var(--vp-coral); }
.filter-pill.active.jardins { background: var(--vp-sage); border-color: var(--vp-sage); }

/* leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: 18px !important;
  padding: 0 !important;
  box-shadow: 0 12px 32px -10px rgba(60,50,30,0.25) !important;
}
.leaflet-popup-content { margin: 0 !important; min-width: 240px; }
.leaflet-popup-tip { box-shadow: none !important; }
.leaflet-container { font-family: 'Open Sans', sans-serif !important; border-radius: 24px; }

/* Custom leaflet pin (DivIcon) */
.vp-pin {
  width: 38px;
  height: 50px;
  position: relative;
}
.vp-pin .pin-body {
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--vp-sage);
  box-shadow: 0 6px 12px -4px rgba(0,0,0,0.4);
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-pin .pin-icon {
  transform: rotate(45deg);
  color: white;
  font-size: 16px;
}
.vp-pin.composteur .pin-body { background: var(--vp-coral); }

/* Clusters Leaflet personnalisés (couleur par type) */
.vp-cluster-wrap { background: transparent; }
.vp-cluster {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: white; font-weight: 800; font-size: 14px;
  border: 3px solid white;
  box-shadow: 0 6px 14px -4px rgba(0,0,0,0.4);
}
.vp-cluster.jardin { background: var(--vp-sage); }
.vp-cluster.composteur { background: var(--vp-coral); }

/* Bandeau flashy "ateliers gratuits" (Nos autres services) */
.svc-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(120deg, var(--vp-lime) 0%, #dee063 100%);
  color: var(--vp-olive);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2px dashed rgba(124,138,63,0.45);
  box-shadow: 0 8px 20px -10px rgba(124,138,63,0.55);
  transform: rotate(-1deg);
}

/* card hover */
.hover-lift { transition: transform .25s ease, box-shadow .25s ease; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 14px 36px -16px rgba(60,50,30,0.28); }

/* fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* tape (scrapbook accent) */
.tape {
  position: absolute;
  width: 80px; height: 22px;
  background: rgba(255, 224, 130, 0.7);
  box-shadow: 0 2px 6px -2px rgba(0,0,0,0.15);
  transform: rotate(-6deg);
  border-left: 1px dashed rgba(255,255,255,0.4);
  border-right: 1px dashed rgba(255,255,255,0.4);
}
.tape.pink { background: rgba(241, 138, 78, 0.65); }
.tape.green { background: rgba(200, 212, 78, 0.65); }

/* Form */
.vp-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid #e6dec9;
  background: white;
  font-family: inherit;
  font-size: 15px;
  color: var(--vp-charcoal);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.vp-input:focus {
  outline: none;
  border-color: var(--vp-sage);
  box-shadow: 0 0 0 4px rgba(125,184,154,0.18);
}

.btn-sage {
  background: var(--vp-sage);
  color: white;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px -6px rgba(125,184,154,0.6);
}
.btn-sage:hover { background: var(--vp-sage-dark); transform: translateY(-2px); }

/* logo placeholder card */
.logo-ph {
  aspect-ratio: 3/2;
  background: #f4eedf;
  border: 1.5px dashed #c9bda0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: #6a5b3a;
  font-weight: 600;
  font-size: 13px;
  transition: background .2s ease, transform .2s ease;
}
.logo-ph:hover { background: white; transform: translateY(-2px); }

/* Carousel logos partenaires — défilement continu, manipulable à la souris/tactile */
.logo-carousel {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;             /* Firefox */
  -ms-overflow-style: none;          /* IE/Edge */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.logo-carousel::-webkit-scrollbar { display: none; }  /* Chrome/Safari */
.logo-carousel.is-dragging { cursor: grabbing; }
.logo-carousel.is-dragging .logo-item img { pointer-events: none; }
.logo-item {
  position: relative;
  flex: 0 0 auto;
  height: 118px;
  margin: 0 14px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #ece4d3;
  border-radius: 14px;
  box-shadow: 0 2px 10px -6px rgba(60,50,30,0.25);
}
.logo-item img {
  max-height: 58px;
  max-width: 150px;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform .2s ease;
}
.logo-item:hover img { transform: translateY(-8px); }
.logo-name {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--vp-olive);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  padding: 0 8px;
}
.logo-item:hover .logo-name { opacity: 1; }

/* Bandeau photos défilant — filmstrip auto-défilant, cliquable (lightbox) */
.photo-carousel {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  padding: 6px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.photo-carousel::-webkit-scrollbar { display: none; }
.photo-carousel.is-dragging { cursor: grabbing; }
.photo-carousel.is-dragging .photo-item img { pointer-events: none; }
.photo-item {
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  height: 230px;
  margin: 0 8px;
  padding: 0;
  border: 0;
  background: #ece4d3;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 4px 16px -8px rgba(60,50,30,0.4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.photo-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px -10px rgba(60,50,30,0.5);
}
.photo-item img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform .4s ease;
}
.photo-item:hover img { transform: scale(1.06); }
@media (max-width: 640px) {
  .photo-item { width: 220px; height: 160px; border-radius: 12px; }
}

/* paper texture overlay (very subtle) */
.paper {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(120,90,40,0.04) 1px, transparent 0);
  background-size: 18px 18px;
}

/* section anchor offset for sticky nav */
section { scroll-margin-top: 86px; }

/* small bullet for actions list */
.leaf-bullet {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--vp-sage);
  margin-top: 2px;
}

/* responsive helpers */
@media (max-width: 640px) {
  .banner { padding: 24px 16px 28px; }
}

/* deck stage compatibility — none here */

/* Hand-drawn schema (Accompagnement) */
.notebook-page {
  background: #fbf6e7;
  background-image:
    linear-gradient(#dccfa5 1px, transparent 1px),
    linear-gradient(90deg, #dccfa5 1px, transparent 1px),
    radial-gradient(circle at 1px 1px, rgba(120,90,40,0.06) 1px, transparent 0);
  background-size: 32px 32px, 32px 32px, 18px 18px;
  border-radius: 14px;
  border: 1.5px solid #e0d3a8;
  box-shadow:
    0 30px 60px -25px rgba(0,0,0,0.35),
    0 8px 18px -10px rgba(0,0,0,0.2),
    inset 0 0 0 1px rgba(255,255,255,0.5);
  position: relative;
}
.notebook-page::before {
  content: "";
  position: absolute;
  left: 60px; top: 0; bottom: 0;
  width: 1.5px;
  background: rgba(232, 78, 110, 0.35);
}
.notebook-page::after {
  content: "";
  position: absolute;
  left: 22px; top: 60px;
  width: 12px; height: calc(100% - 120px);
  background-image: radial-gradient(circle, #d6c89a 0 5px, transparent 6px);
  background-size: 12px 60px;
  background-repeat: repeat-y;
  opacity: 0.6;
}

.sticky-note {
  background: #fffdf3;
  border-radius: 6px;
  padding: 14px 16px;
  box-shadow:
    0 8px 18px -8px rgba(60,50,30,0.35),
    0 2px 4px -1px rgba(60,50,30,0.15);
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
}
.sticky-note.tilt-a { transform: rotate(-1.8deg); }
.sticky-note.tilt-b { transform: rotate(1.6deg); }
.sticky-note.tilt-c { transform: rotate(-1deg); }
.sticky-note.tilt-d { transform: rotate(2deg); }
.sticky-note.tilt-e { transform: rotate(-2.2deg); }
.sticky-note.tilt-f { transform: rotate(1deg); }

.sticky-note .num-badge {
  position: absolute;
  top: -16px; left: -16px;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Petit Cochon', cursive;
  font-size: 22px;
  color: white;
  box-shadow: 0 4px 10px -3px rgba(0,0,0,0.3);
  border: 2.5px solid white;
  transform: rotate(-8deg);
}

.scribble-arrow path {
  stroke-dasharray: 5 5;
  fill: none;
  stroke-linecap: round;
}

.annotation {
  font-family: 'Dreaming Outloud', cursive;
  color: var(--vp-olive);
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
  position: absolute;
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Optimisations mobile (max-width: 767px) : aucun effet en desktop ===== */
@media (max-width: 767px) {
  /* Décors surdimensionnés pour un écran étroit : masqués (remplacés par des
     variantes compactes md:hidden dans le JSX quand la section en garde) */
  .mobile-illus-hide { display: none !important; }
  /* Le calage fin du titre Accompagnement (translateX / marginLeft négatifs)
     est pensé pour une ligne desktop : neutralisé quand le titre passe en multi-lignes */
  .accomp-title-shift { transform: none !important; }
  .accomp-subtitle { margin-left: 0 !important; }
}
