/* =============================================================
   Domaine de la Brunette — feuille de styles partagée
   Utilisée par index.html et galerie.html.
   ============================================================= */

:root {
  --ink: #1c1612;
  --paper: #f5ede0;
  --paper-2: #fbf3e3;
  --sage: #6b7a52;
  --sage-deep: #4a5a3b;
  --bloom: #3f5034;
  --petal: #d4a5a0;
  --petal-deep: #b87a73;
  --slate1: #1f1d18;
  --slate2: #2a2722;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
/* Décalage des ancres pour ne pas être cachées par la nav sticky */
section[id] { scroll-margin-top: 96px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Newsreader', serif;
  font-feature-settings: "liga" 1, "calt" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: clip;
}

/* Texture papier vergé */
.paper-grain {
  background-image:
    repeating-linear-gradient(0deg, rgba(28,22,18,0.025) 0px, rgba(28,22,18,0.025) 1px, transparent 1px, transparent 5px),
    radial-gradient(ellipse 800px 600px at 15% 20%, rgba(107,122,82,0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 80%, rgba(212,165,160,0.09), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='3' seed='5'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: auto, auto, auto, 280px 280px;
}

.display-italic { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -0.02em; }
.display-roman  { font-family: 'Fraunces', serif; font-style: normal; font-weight: 500; font-variation-settings: "SOFT" 50, "opsz" 144; letter-spacing: -0.015em; }

.label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

.rule { height: 1px; background: currentColor; opacity: 0.18; }

.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size 400ms cubic-bezier(.2,.8,.2,1);
}
.link-underline:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* Étiquette florale papier */
.tag-bloom {
  background: var(--paper-2);
  color: var(--bloom);
  padding: 10px 16px 10px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid rgba(63,80,52,0.2);
  box-shadow: 0 14px 30px -14px rgba(40,50,30,0.35);
  transform: rotate(-3deg);
  position: relative;
  border-radius: 2px;
  display: inline-block;
}
.tag-bloom::before {
  content: '';
  position: absolute;
  left: 12px; top: 50%;
  width: 12px; height: 12px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><circle cx='8' cy='5' r='2.4' fill='%23b87a73'/><circle cx='5' cy='8' r='2.2' fill='%23b87a73'/><circle cx='11' cy='8' r='2.2' fill='%23b87a73'/><circle cx='8' cy='11' r='2.2' fill='%23b87a73'/><circle cx='8' cy='8' r='1.4' fill='%23faf4e8'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

.photo-frame {
  background: #fff;
  padding: 12px 12px 56px 12px;
  box-shadow: 0 24px 60px -24px rgba(40,50,30,0.40), 0 4px 10px -4px rgba(40,50,30,0.18);
  transform: rotate(2.2deg);
}
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

.rise { opacity: 0; transform: translateY(20px); animation: rise 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
.rise.d1 { animation-delay: .15s; }
.rise.d2 { animation-delay: .30s; }
.rise.d3 { animation-delay: .45s; }
.rise.d4 { animation-delay: .60s; }
.rise.d5 { animation-delay: .75s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* Bouton primaire */
.btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--ink);
  color: var(--paper-2);
  padding: 14px 22px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: transform .35s ease, background .35s ease;
}
.btn-ink:hover { transform: translateY(-1px); background: var(--bloom); }
.btn-ink .arrow { transition: transform .35s ease; }
.btn-ink:hover .arrow { transform: translateX(4px); }

.leaf-divider { display: inline-flex; align-items: center; gap: 12px; color: var(--bloom); }

.nav-bar { transition: background-color .4s ease, backdrop-filter .4s ease, border-color .4s ease; }
.nav-bar.is-scrolled {
  background-color: rgba(245,237,224,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-color: rgba(28,22,18,0.08);
}

.bloom-watermark { position: absolute; pointer-events: none; opacity: 0.10; color: var(--bloom); }

::selection { background: var(--bloom); color: var(--paper-2); }

/* === Continuité artistique : pétales subtils === */
.decor-layer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.petal {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  color: var(--bloom);
}

/* === Reveal au scroll : transition seule, l'état initial est posé en JS === */
.reveal-anim {
  transition:
    opacity 1.1s cubic-bezier(.2,.8,.2,1),
    transform 1.1s cubic-bezier(.2,.8,.2,1);
}

@media (prefers-reduced-motion: reduce) {
  .petal { display: none !important; }
  .reveal-anim { transition: none !important; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* === Scroll-spy : lien actif dans la nav xl === */
.nav-bar nav ul a {
  position: relative;
  transition: color .35s ease;
}
.nav-bar nav ul a:hover {
  color: var(--bloom);
}
.nav-bar nav ul a.is-active {
  color: var(--bloom);
}
.nav-bar nav ul a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  animation: spy-underline .4s cubic-bezier(.2,.8,.2,1) forwards;
  transform-origin: left center;
}
@keyframes spy-underline {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* === Mobile drawer === */
body.drawer-open { overflow: hidden; }
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: var(--paper);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s cubic-bezier(.2,.8,.2,1), visibility .55s;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.drawer-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
  transition-delay: 0s;
}
.drawer.is-open .drawer-item {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 0.045s + 0.18s);
}
.drawer-item a {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.4rem 0;
  transition: color .3s ease, transform .3s ease;
}
.drawer-item a:hover .drawer-link { color: var(--bloom); }
.drawer-item a:hover .drawer-arrow { transform: translateX(8px); opacity: 1; }
.drawer-arrow { opacity: 0; transition: opacity .3s ease, transform .3s ease; color: var(--bloom); }
@media (min-width: 640px) {
  .drawer-arrow { display: inline-block; }
}

/* === Sceau de cire === */
.wax-seal {
  width: 104px; height: 104px;
  background: radial-gradient(circle at 35% 28%, #c2705a 0%, #a04a37 30%, #7a3527 65%, #5b2519 100%);
  border-radius: 52% 48% 51% 49% / 49% 52% 48% 51%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: #f5ede0;
  box-shadow:
    inset 0 -6px 12px rgba(0,0,0,0.35),
    inset 0 3px 6px rgba(255,255,255,0.18),
    0 16px 30px -14px rgba(60,30,20,0.55),
    0 4px 8px -2px rgba(60,30,20,0.3);
  transform: rotate(-6deg);
}
.wax-seal::before {
  content:'';
  position:absolute; inset: 6px;
  border: 1px dashed rgba(245,237,224,0.35);
  border-radius: inherit;
  pointer-events: none;
}
.wax-seal .seal-inner { text-align: center; transform: rotate(6deg); }

/* === Tampon administratif === */
.stamp-mark {
  display: inline-block;
  position: relative;
  padding: 8px 16px;
  border: 2px solid currentColor;
  color: var(--bloom);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 3px;
  background: rgba(63,80,52,0.05);
  transform: rotate(-7deg);
  opacity: 0.88;
  filter: contrast(1.05);
}
.stamp-mark::before {
  content:'';
  position: absolute;
  inset: -5px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  opacity: 0.5;
}

/* === Manifesto === */
.manifesto {
  background:
    repeating-linear-gradient(0deg, rgba(28,22,18,0.03) 0px, rgba(28,22,18,0.03) 1px, transparent 1px, transparent 6px),
    var(--paper-2);
  border: 1px solid rgba(28,22,18,0.10);
  box-shadow:
    0 30px 60px -30px rgba(40,50,30,0.25),
    inset 0 0 0 1px rgba(245,237,224,0.5);
}

/* Cartes hover */
.flower-card .flower-img,
.product-card .product-img,
.bento-card .bento-img,
.confection-card .confection-img { transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.flower-card:hover .flower-img,
.product-card:hover .product-img,
.bento-card:hover .bento-img,
.confection-card:hover .confection-img { transform: scale(1.06); }

.flower-card .flower-overlay,
.product-card .product-overlay { opacity: 0; transition: opacity .5s ease; }
.flower-card:hover .flower-overlay,
.product-card:hover .product-overlay { opacity: 1; }

.bento-card { position: relative; overflow: hidden; border-radius: 6px; }
.confection-card { position: relative; overflow: hidden; border-radius: 6px; isolation: isolate; }
.confection-card::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(28,22,18,0) 30%, rgba(28,22,18,0.85) 100%);
  pointer-events:none;
}
.confection-card > .confection-content { position: relative; z-index: 2; }

/* Section dividers */
.section-divider {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  color: var(--bloom); opacity: 0.55;
}
.section-divider .line { height: 1px; flex: 1; background: currentColor; opacity: 0.4; max-width: 140px; }

/* Pull-quote */
blockquote.editorial { position: relative; }
blockquote.editorial::before {
  content:'\201C';
  position:absolute; left: -2.4rem; top: -1.4rem;
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 8rem; line-height: 1;
  color: var(--bloom); opacity: 0.18;
}

/* Masonry (index.html) */
.masonry { columns: 2 240px; column-gap: 1rem; }
@media (min-width: 768px) { .masonry { columns: 3 260px; column-gap: 1.25rem; } }
@media (min-width: 1280px) { .masonry { columns: 4 280px; column-gap: 1.25rem; } }
.masonry > * { break-inside: avoid; margin-bottom: 1.25rem; }
.masonry img { width: 100%; height: auto; display: block; border-radius: 4px; }

/* Carte Leaflet — teinte terre */
#map {
  height: 520px;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(40,50,30,0.35);
}
.leaflet-container { background: #ede4d2; }
.leaflet-tile { filter: sepia(20%) saturate(0.85) contrast(0.95) brightness(0.98); }

/* Formulaire éditorial */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: rgba(28,22,18,0.65); }
.field input, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(28,22,18,0.25);
  padding: 10px 0;
  font-family: 'Newsreader', serif;
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: border-color .3s ease;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--bloom); }
.field textarea { resize: vertical; min-height: 120px; }

/* Producteur listing */
.partner-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 16px; }
.partner-row .dots {
  flex: 1;
  border-bottom: 1px dotted rgba(28,22,18,0.25);
  transform: translateY(-6px);
}

/* =============================================================
   GALERIE — filtres, masonry, lightbox (galerie.html)
   ============================================================= */

/* Filtres */
.filter-pill {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(28,22,18,0.15);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(28,22,18,0.7);
  cursor: pointer;
  transition: all .3s ease;
}
.filter-pill:hover { border-color: var(--bloom); color: var(--bloom); }
.filter-pill.is-active {
  background: var(--ink);
  color: var(--paper-2);
  border-color: var(--ink);
}
.filter-pill .count {
  margin-left: 8px; opacity: 0.6; font-variant-numeric: tabular-nums;
}

/* Masonry galerie */
.gallery-grid {
  columns: 2 240px;
  column-gap: 1rem;
}
@media (min-width: 768px) {
  .gallery-grid { columns: 3 280px; column-gap: 1.25rem; }
}
@media (min-width: 1280px) {
  .gallery-grid { columns: 4 300px; column-gap: 1.5rem; }
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  cursor: zoom-in;
  transition: opacity .5s ease, transform .5s ease;
}
.gallery-item img {
  width: 100%; height: auto; display: block;
  transition: transform 1s cubic-bezier(.2,.8,.2,1), filter .6s ease;
}
.gallery-item:hover img { transform: scale(1.04); filter: brightness(1.04); }
.gallery-item .gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(28,22,18,0.85) 100%);
  color: #f5ede0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-item .gallery-caption .display-italic { font-size: 18px; line-height: 1.2; }
.gallery-item.is-hidden { display: none; }
.gallery-item.is-revealing { opacity: 0; transform: translateY(20px); }

/* Lightbox */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28,22,18,0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img-wrap {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.lightbox-caption {
  margin-top: 1rem;
  color: rgba(245,237,224,0.85);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 17px;
  text-align: center;
}
.lightbox-counter {
  color: rgba(245,237,224,0.55);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 4px;
}
.lightbox-btn {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(245,237,224,0.10);
  border: 1px solid rgba(245,237,224,0.25);
  color: rgba(245,237,224,0.9);
  display: inline-flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .3s ease, border-color .3s ease;
}
.lightbox-btn:hover { background: rgba(245,237,224,0.18); border-color: rgba(245,237,224,0.5); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* =============================================================
   RESPONSIVE MOBILE — adaptations < 1024 / 768 / 640 / 480 px
   Garde le site 100 % utilisable sur smartphone (pas de scroll
   horizontal, cibles tactiles ≥ 40 px, décorations contenues).
   ============================================================= */

/* Empêcher tout débordement horizontal global (sans casser le sticky du header) */
html { overflow-x: clip; }
body { overflow-x: clip; }
html, body { width: 100%; max-width: 100%; }
img, svg, video { max-width: 100%; height: auto; }

/* Bug Tailwind grid-cols-12 + gap-8 sur mobile : 11 gaps additionnent une
   largeur minimale qui dépasse le viewport. Annule le gap horizontal sous lg. */
@media (max-width: 1023px) {
  .grid.grid-cols-12 { column-gap: 0 !important; }
}

/* Cibles tactiles + feedback tap */
@media (hover: none) and (pointer: coarse) {
  a, button, input, textarea, select { -webkit-tap-highlight-color: rgba(63,80,52,0.18); }
  /* Désactiver hover-only effects pour toucher (évite états collés) */
  .flower-card:hover .flower-img,
  .product-card:hover .product-img,
  .bento-card:hover .bento-img,
  .confection-card:hover .confection-img { transform: none; }
  .gallery-item:hover img { transform: none; filter: none; }
}

/* < 1024 px : ajustements tablette */
@media (max-width: 1023px) {
  html { scroll-padding-top: 80px; }
  section[id] { scroll-margin-top: 80px; }

  /* Map plus basse — moins encombrante */
  #map { height: 420px; }

  /* Réduire le décor de fond pour ne pas surcharger */
  .bloom-watermark { opacity: 0.06; }
}

/* < 768 px : tablette portrait & gros mobiles */
@media (max-width: 767px) {
  /* Nav plus compacte */
  .nav-bar nav { padding-left: 1rem; padding-right: 1rem; }

  /* Map plus courte */
  #map { height: 340px; }

  /* Bouton primaire un peu plus contenu */
  .btn-ink {
    padding: 12px 18px;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  /* Photo frame : moins de rotation, padding réduit */
  .photo-frame { transform: rotate(1deg); padding: 8px 8px 36px 8px; }

  /* Wax seal plus petit pour ne pas déborder */
  .wax-seal { width: 80px; height: 80px; }
  .wax-seal .seal-inner .display-roman { font-size: 17px; }
  .wax-seal .seal-inner .display-italic { font-size: 12px; }
  .wax-seal .seal-inner .label { font-size: 8px !important; }

  /* Tag bloom plus discret */
  .tag-bloom {
    padding: 8px 12px 8px 28px;
    font-size: 10px;
    letter-spacing: 0.16em;
    transform: rotate(-2deg);
  }
  .tag-bloom::before { left: 10px; width: 10px; height: 10px; }

  /* Stamp-mark : rotation et taille adoucies */
  .stamp-mark {
    transform: rotate(-4deg);
    font-size: 10px;
    letter-spacing: 0.22em;
    padding: 6px 12px;
  }

  /* Quote géant : repositionné dans la marge naturelle */
  blockquote.editorial { padding-left: 1.5rem !important; margin-left: 0 !important; }
  blockquote.editorial::before {
    font-size: 5rem;
    left: -0.4rem;
    top: -0.6rem;
  }

  /* Manifesto plus aéré + titres réduits pour éviter débordement */
  .manifesto { padding: 1.25rem !important; }
  .manifesto h3 {
    font-size: clamp(1.1rem, 5vw, 1.8rem) !important;
    line-height: 1.18 !important;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  /* Marché : tag-bloom en haut à droite ne doit pas déborder */
  #marche figure .tag-bloom {
    top: auto !important;
    bottom: -0.5rem !important;
    right: auto !important;
    left: 0.5rem !important;
  }

  /* Lightbox mobile */
  .lightbox { padding: 0.75rem; }
  .lightbox-btn { width: 42px; height: 42px; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; }
  .lightbox-prev  { left: 0.5rem; }
  .lightbox-next  { right: 0.5rem; }
  .lightbox img { max-height: 72vh; }
  .lightbox-caption { font-size: 15px; }

  /* Filter pills : taille tactile mais compacte */
  .filter-pill {
    padding: 9px 14px;
    font-size: 11px;
    letter-spacing: 0.14em;
    min-height: 38px;
  }

  /* Drawer : un peu plus compact */
  .drawer-item a { gap: 0.6rem; padding: 0.3rem 0; }
}

/* < 640 px : mobiles standard */
@media (max-width: 639px) {

  /* Partner row : passe en 2 lignes (nom au-dessus, lieu en dessous) */
  .partner-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 14px 0;
  }
  .partner-row .dots { display: none; }
  .partner-row > *:first-child {
    font-size: 19px !important;
    line-height: 1.25;
  }
  .partner-row > *:last-child {
    text-align: left !important;
    font-size: 13px !important;
    color: rgba(28,22,18,0.6) !important;
    margin-top: 2px;
  }

  /* Champs formulaire : font-size ≥ 16px évite le zoom auto iOS */
  .field input, .field textarea { font-size: 16px; }

  /* Map encore plus courte */
  #map { height: 280px; }

  /* Pétales de fond : encore plus subtils */
  .petal { opacity: 0.06 !important; }

  /* Drawer : numéros plus petits, items resserrés */
  .drawer-item .display-italic.text-bloom { width: 2.25rem !important; font-size: 14px !important; }

  /* Photo-frame mobile : plus petit padding */
  .photo-frame { padding: 6px 6px 28px 6px; transform: rotate(0.5deg); }

  /* Hero — gallery-item caption toujours visible (pas de hover sur mobile) */
  .gallery-item .gallery-caption {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(180deg, transparent 0%, rgba(28,22,18,0.7) 100%);
    padding: 10px 12px;
  }
  .gallery-item .gallery-caption .display-italic { font-size: 15px; }

  /* Wax seal encore plus petit */
  .wax-seal { width: 68px; height: 68px; }
  .wax-seal .seal-inner .display-roman { font-size: 15px; }
  .wax-seal .seal-inner .display-italic { font-size: 11px; }

  /* Manifesto compact */
  .manifesto { padding: 1.25rem !important; }

  /* Section dividers réduits */
  .section-divider .line { max-width: 60px; }
}

/* < 480 px : très petits mobiles */
@media (max-width: 479px) {
  /* Stats hero : letter-spacing et taille réduits pour éviter le chevauchement */
  #accueil .label { letter-spacing: 0.14em; font-size: 9px; }
  #accueil .display-italic.text-2xl { font-size: 1.35rem; line-height: 1.1; }

  /* Grands titres de section : réduire le min des clamps trop ambitieux */
  section h2.display-italic {
    font-size: clamp(1.85rem, 8vw, 2.6rem) !important;
    line-height: 1.04 !important;
  }
  section h1 .display-roman.block,
  section h1 .display-italic.block {
    font-size: clamp(2.5rem, 12vw, 4.5rem) !important;
  }

  /* Stamp-mark : taille minuscule pour rester dans la photo-frame */
  .stamp-mark {
    font-size: 8.5px;
    letter-spacing: 0.18em;
    padding: 4px 8px;
    transform: rotate(-3deg);
  }
  .stamp-mark::before { inset: -3px; }

  /* Padding réduit côtés */
  .nav-bar nav { padding-left: 0.875rem; padding-right: 0.875rem; }

  /* Nav : masquer le sublabel logo et le mot "Menu" pour gagner de la place */
  header.nav-bar nav > a > div > .label { display: none; }
  header.nav-bar nav #menu-toggle .label { display: none; }
  header.nav-bar nav #menu-toggle { padding-left: 0.75rem; padding-right: 0.75rem; }

  /* Drawer items : numéros encore plus discrets */
  .drawer-item a { gap: 0.4rem; }
  .drawer-item .display-italic.text-bloom { width: 1.75rem !important; }
  .drawer-item .drawer-arrow { display: none; }

  /* Tag bloom : encore plus petit */
  .tag-bloom { padding: 6px 10px 6px 24px; font-size: 9px; }
  .tag-bloom::before { left: 8px; width: 9px; height: 9px; }

  /* Lightbox : boutons encore mieux placés */
  .lightbox-btn { width: 38px; height: 38px; }

  /* Map */
  #map { height: 240px; }

  /* Le bouton "Nous trouver" du nav (sm:inline-flex) reste caché ici grâce à hidden sm:inline-flex */
}

/* === Dropdown nav (xl uniquement) === */
.dropdown { position: relative; }
.dropdown-trigger {
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
  letter-spacing: inherit;
}
.dropdown-trigger:hover { color: var(--ink, #1c1612); }
.dropdown-caret {
  transition: transform 200ms ease;
  opacity: 0.6;
}
.dropdown.is-open .dropdown-caret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -12px;
  min-width: 200px;
  background: var(--paper-2);
  border: 1px solid rgba(28, 22, 18, 0.1);
  border-radius: 6px;
  padding: 8px 0;
  box-shadow: 0 12px 36px -18px rgba(28, 22, 18, 0.35);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}
.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: rgba(63, 80, 52, 0.08);
  color: var(--bloom);
  outline: none;
}

/* === Bloc fournisseurs condensés (famille.html) === */
.suppliers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
}
@media (min-width: 768px) {
  .suppliers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.supplier-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px dotted rgba(28, 22, 18, 0.18);
}
.supplier-row .name {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.2;
}
.supplier-row .meta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(28, 22, 18, 0.55);
}
.supplier-row .tag {
  color: var(--bloom);
}

/* === Form select stylisé (contact.html) === */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--paper-2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none' stroke='%231c1612' stroke-width='1.4'><path d='M3 4.5 L6 8 L9 4.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-select:focus {
  outline: 2px solid rgba(63, 80, 52, 0.35);
  outline-offset: 2px;
}
.form-conditional { display: none; }
.form-conditional.is-visible { display: block; }
