@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@400;600&display=swap');

:root {
  --papier: #f7f3ec;
  --encre: #2c2a26;
  --doux: #6f6a61;
  --rouge: #a8322d;      /* rappel du chandail rouge de Linda */
  --foret: #4a5a3f;
  --ligne: #e2dbcf;
  --carte: #fffdf9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 17px/1.65 "Source Sans 3", system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--rouge); }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  background: rgba(247,243,236,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ligne);
}
.nav .marque { font-family: "Cormorant Garamond", serif; font-size: 1.4rem; font-weight: 600; text-decoration: none; color: var(--encre); }
.nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--doux); font-size: .95rem; }
.nav ul a:hover, .nav ul a.actif { color: var(--rouge); }

/* ---------- hommage ---------- */
.hommage {
  display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 1150px; margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
}
.hommage figure { margin: 0; }
.hommage figure img { border-radius: 4px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); }
.surtitre { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--doux); margin: 0 0 .5rem; }
h1, h2, h3 { font-family: "Cormorant Garamond", serif; font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0; }
.dates { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.4rem; color: var(--doux); margin: .3rem 0 1.6rem; }
.texte-hommage p { max-width: 58ch; }
.a-completer { background: #fff4d6; border-left: 3px solid #d6a400; padding: .1rem .5rem; }

/* ---------- sections ---------- */
section.bloc { max-width: 1150px; margin: 0 auto; padding: 3rem clamp(1rem, 4vw, 3rem); }
section.bloc > h2 { font-size: 2.2rem; margin: 0 0 .4rem; }
.intro { color: var(--doux); max-width: 65ch; margin-top: 0; }
.separateur { border: 0; height: 1px; background: var(--ligne); max-width: 1150px; margin: 0 auto; }

/* ---------- voyage ---------- */
.voyage-entete { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.objet-ref { width: 150px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 4px solid var(--carte); box-shadow: 0 6px 20px -8px rgba(0,0,0,.3); background: var(--ligne); }
.compteurs { display: flex; gap: 2.5rem; }
.compteurs div strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 2.4rem; line-height: 1; color: var(--rouge); }
.compteurs div span { font-size: .85rem; color: var(--doux); }
#carte { height: 480px; border-radius: 6px; border: 1px solid var(--ligne); }
.leaflet-popup-content img { width: 220px; border-radius: 3px; margin-bottom: .4rem; }
.leaflet-popup-content { font-family: "Source Sans 3", sans-serif; }

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.galerie article { background: var(--carte); border: 1px solid var(--ligne); border-radius: 6px; overflow: hidden; cursor: pointer; transition: transform .15s; }
.galerie article:hover { transform: translateY(-3px); }
.galerie img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.galerie .legende { padding: .7rem .9rem; font-size: .9rem; }
.galerie .lieu { font-weight: 600; }
.galerie .meta { color: var(--doux); font-size: .8rem; }
.vide { color: var(--doux); font-style: italic; }

.appel { text-align: center; padding: 3.5rem 1rem; background: var(--foret); color: #f2efe6; }
.appel h2 { font-size: 2rem; margin: 0 0 .5rem; }
.bouton { display: inline-block; background: var(--rouge); color: #fff; border: 0; padding: .8rem 1.6rem; border-radius: 999px; font: 600 1rem "Source Sans 3", sans-serif; text-decoration: none; cursor: pointer; }
.bouton:hover { filter: brightness(1.08); }
.bouton.secondaire { background: transparent; color: var(--encre); border: 1px solid var(--ligne); }
.bouton:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- formulaire ---------- */
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.panneau { background: var(--carte); border: 1px solid var(--ligne); border-radius: 8px; padding: 1.5rem; }
.panneau h3 { margin-top: 0; font-size: 1.4rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 1rem 0 .3rem; }
input[type=text], input[type=number], textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid var(--ligne); border-radius: 4px; font: inherit; background: #fff;
}
.depot { border: 2px dashed var(--ligne); border-radius: 8px; padding: 2rem 1rem; text-align: center; cursor: pointer; color: var(--doux); }
.depot.survol { border-color: var(--rouge); background: #fff6f4; }
.depot img { max-height: 260px; margin: 0 auto; border-radius: 4px; }
.ligne { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
#carte-choix { height: 260px; border-radius: 6px; border: 1px solid var(--ligne); margin-top: .6rem; }
.aide { font-size: .82rem; color: var(--doux); margin: .3rem 0 0; }
.statut { margin-top: 1rem; padding: .8rem 1rem; border-radius: 6px; display: none; }
.statut.ok { display: block; background: #e8f1e3; color: #2f4a22; }
.statut.attente { display: block; background: #fff4d6; color: #6b5200; }
.statut.refus { display: block; background: #fbe7e5; color: #7a221d; }
.boutons { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- QR ---------- */
.qr-zone { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
#qr { padding: 1.2rem; background: #fff; border-radius: 8px; border: 1px solid var(--ligne); }
.etiquette { width: 340px; padding: 1.5rem; background: #fff; border: 1px solid var(--ligne); border-radius: 8px; text-align: center; }
.etiquette h3 { margin: .2rem 0; font-size: 1.6rem; }
.etiquette p { margin: .2rem 0; font-size: .9rem; color: var(--doux); }
.etiquette #qr { border: 0; padding: .6rem; display: inline-block; }

footer { text-align: center; padding: 2rem 1rem; color: var(--doux); font-size: .85rem; }

@media (max-width: 800px) {
  .hommage, .formulaire { grid-template-columns: 1fr; }
  .hommage figure { max-width: 340px; margin: 0 auto; }
  .nav ul { gap: .9rem; }
}
@media print {
  .nav, footer, .boutons, .intro, .no-print { display: none !important; }
  body { background: #fff; }
}
