:root {
  --bg: #f6f1e2;
  --surface: #fbf8ee;
  --text: #1e2a5a;
  --muted: #5c6488;
  --accent: #2c3e94;
  --trait: #c9c0a6;
}
* { box-sizing: border-box; margin: 0; }
body { background: var(--bg); color: var(--text); font-family: Georgia, 'Times New Roman', serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.manuscrit { font-family: 'Caveat', cursive; }

.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 2rem; border-bottom: 2px solid var(--text);
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand span { font-family: 'Caveat', cursive; font-size: 1.7rem; font-weight: 600; letter-spacing: 0.02em; }
.brand img { height: 56px; width: 56px; object-fit: cover; border-radius: 50%; mix-blend-mode: multiply; }
.site-header nav { display: flex; gap: 1.5rem; align-items: center; }
.site-header nav a:hover { color: var(--accent); text-decoration: underline; }
.cart-link {
  background: none; border: 1.5px solid var(--accent); color: var(--accent);
  padding: 0.4rem 1rem; border-radius: 2px; cursor: pointer; font: inherit;
}
.cart-link:hover { background: var(--accent); color: var(--bg); }


main { max-width: 1100px; margin: 0 auto; padding: 2rem; }

.hero { text-align: center; padding: 3.5rem 0 2rem; }
.hero h1 { font-size: 2.3rem; font-weight: normal; letter-spacing: 0.04em; }
.hero-sous-titre { color: var(--accent); font-size: 1.5rem; margin: 0.4rem 0 1.6rem; }

.btn {
  display: inline-block; background: var(--accent); color: var(--bg);
  padding: 0.7rem 1.8rem; border: none; border-radius: 2px;
  font: inherit; font-size: 1rem; cursor: pointer;
}
.btn:hover { filter: brightness(1.15); }

/* Jalons d'étape sur ligne pointillée */
.jalons {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem;
  padding: 1.1rem 0.5rem 1.4rem; margin: 0.5rem 0 1rem;
}
.jalons::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0.75rem; height: 44px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 44" preserveAspectRatio="none"%3E%3Cpath d="M0 24 Q75 2 150 24 T300 24 T450 24 T600 24 T750 24 T900 24 T1050 24 T1200 24" fill="none" stroke="%232c3e94" stroke-width="2" stroke-dasharray="8 7" opacity="0.75"/%3E%3C/svg%3E') no-repeat center / 100% 100%;
  pointer-events: none;
}
.jalon { position: relative; }
.jalon:nth-child(odd) { transform: translateY(-7px); }
.jalon:nth-child(even) { transform: translateY(13px); }
.jalon { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }
.jalon .pt {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--accent);
}
.jalon .manuscrit { font-size: 1.15rem; color: var(--muted); }
.jalon:hover .manuscrit { color: var(--accent); }
.regions-nav {
  position: sticky; top: 0; z-index: 5;
  background-color: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(4px);
}

.sep-montagnes { display: block; width: 100%; max-width: 560px; margin: 2rem auto 0.5rem; color: var(--text); }

.region h2 { font-weight: normal; margin: 1.6rem 0 0.3rem; scroll-margin-top: 5rem; }
.region h2 .manuscrit { font-size: 2.1rem; color: var(--accent); font-weight: 600; }
.region h2 small { font-size: 0.85rem; color: var(--muted); margin-left: 0.6rem; }
.region { scroll-margin-top: 4.5rem; }

.grid { display: flex; flex-wrap: wrap; gap: 14px; padding: 1.2rem 0; }
.grid::after { content: ""; flex-grow: 999999; flex-basis: 0; }
.card {
  display: flex; flex-direction: column; min-width: 180px;
  background: var(--surface);
  border: 1.5px dashed var(--accent); padding: 5px;
}
.card > :first-child { flex: 1; }
.card img { width: 100%; height: auto; display: block; transition: transform 0.3s; }
.card:hover img { transform: scale(1.02); }
.card-info { padding: 0.5rem 0.3rem 0.2rem; }
.card-info h3 { font-weight: normal; font-size: 1rem; }
.card-info p { color: var(--muted); font-size: 1.05rem; font-family: 'Caveat', cursive; }

/* Séries : cadre plein (frontière tracée), nom commun */
.card-serie { border-style: solid; border-width: 2px; }
.serie-marque { color: var(--accent); }

.photo-page { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; padding: 2rem 0; }
.photo-view img { width: 100%; border: 1.5px solid var(--text); padding: 4px; background: var(--surface); }
.photo-order h1 { font-weight: normal; margin-bottom: 1rem; }
.achat label { display: block; margin: 1.5rem 0 0.4rem; color: var(--muted); }
.achat select {
  width: 100%; padding: 0.6rem; margin-bottom: 1.2rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--trait); border-radius: 2px; font: inherit;
}
.achat .btn { width: 100%; }

.serie-page { text-align: center; }
.serie-page h1 .manuscrit { font-size: 2.4rem; color: var(--accent); font-weight: 600; }
.serie-intro { color: var(--muted); }
.serie-grille {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem; align-items: start; padding: 1rem 0;
}
.serie-item { scroll-margin-top: 4rem; }
.serie-item img { width: 100%; height: auto; border: 1.5px solid var(--text); padding: 4px; background: var(--surface); }
.serie-item h3 { font-weight: normal; font-size: 1rem; margin: 0.5rem 0 0.1rem; }
.serie-item .achat label { margin-top: 0.4rem; }

.page { max-width: 720px; margin: 0 auto; padding: 2rem 0; }
.page h1 { font-weight: normal; margin-bottom: 1.5rem; }

.apropos-mosaique h2, .apropos-carte h2 {
  font-family: 'Caveat', cursive; font-weight: 600; color: var(--accent);
  font-size: 2.1rem; text-align: center; margin: 3rem 0 1rem;
}
.grid-mosaique { columns: 4 200px; }
.grid-mosaique .card { margin-bottom: 1rem; }
.mosaique-perso {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: var(--mos-gap, 12px);
}
.mosaique-chemin {
  flex-direction: column; flex-wrap: nowrap; align-items: center;
  max-width: 780px; margin: 0 auto; gap: calc(var(--mos-gap, 12px) + 1.2rem);
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 600" preserveAspectRatio="none"%3E%3Cpath d="M100 0 Q30 75 100 150 T100 300 T100 450 T100 600" fill="none" stroke="%232c3e94" stroke-width="2" stroke-dasharray="9 8" opacity="0.4"/%3E%3C/svg%3E') repeat-y center / 260px 600px;
}
.mosaique-chemin .mos-petite  { width: 40%; min-width: 220px; }
.mosaique-chemin .mos-moyenne { width: 54%; min-width: 260px; }
.mosaique-chemin .mos-grande  { width: 72%; min-width: 300px; }
.mosaique-chemin .mos:nth-child(4n+1) { align-self: flex-start; }
.mosaique-chemin .mos:nth-child(4n+2) { align-self: center; }
.mosaique-chemin .mos:nth-child(4n+3) { align-self: flex-end; }
.mosaique-chemin .mos:nth-child(4n)   { align-self: center; }
.deco-tourbillon { display: block; width: 130px; margin: 0.4rem auto 0.8rem; color: var(--accent); }
.mos { border: 1.5px dashed var(--accent); background: var(--surface); padding: 3px; }
.mos img { width: 100%; height: auto; display: block; transition: transform 0.3s; }
.mos:hover img { transform: scale(1.02); }
.mos-petite  { flex: 0 1 calc(22% - var(--mos-gap, 12px)); min-width: 140px; }
.mos-moyenne { flex: 0 1 calc(31% - var(--mos-gap, 12px)); min-width: 190px; }
.mos-grande  { flex: 0 1 calc(46% - var(--mos-gap, 12px)); min-width: 260px; }
@media (max-width: 700px) {
  .mos-petite, .mos-moyenne { flex-basis: calc(50% - var(--mos-gap, 12px)); }
  .mos-grande { flex-basis: 100%; }
}

.carte-wrap { max-width: 1000px; margin: 0 auto 3rem; position: relative; }
.carte-wrap > img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.carte-point { position: absolute; transform: translate(-50%, -50%); }
.carte-point .pt {
  display: block; width: 16px; height: 16px; margin: 0 auto;
  border-radius: 50%; background: var(--accent); border: 2.5px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--accent); transition: transform 0.2s;
}
.carte-point:hover .pt { transform: scale(1.35); }
.carte-point .et {
  display: block; margin-top: 3px; padding: 0 0.45rem;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--accent); font-family: 'Caveat', cursive; font-size: 1.05rem;
  white-space: nowrap; border-radius: 2px; text-align: center;
}
.carte-svg svg { width: 100%; height: auto; }
.carte-nom { fill: var(--text); font-size: 15px; font-family: Georgia, serif; }
.carte-nb { fill: var(--muted); font-size: 11px; font-family: Georgia, serif; }
.carte-svg a:hover .carte-nom { fill: var(--accent); }

#lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20, 24, 48, 0.96);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
}
#lightbox[hidden] { display: none; }
#lightbox img { max-width: 96vw; max-height: 96vh; }
#photo-principale { cursor: zoom-in; }
.serie-lien { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.8rem; }

.site-footer {
  text-align: center; color: var(--muted);
  padding: 1.6rem; border-top: 2px solid var(--text); margin-top: 3rem;
}
.site-footer .manuscrit { font-size: 1.15rem; }
.site-footer a { text-decoration: underline; }

@media (max-width: 800px) {
  .photo-page { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; gap: 0.8rem; }
  .jalons { justify-content: center; }
}


/* --- Routes pointillées décoratives en marge --- */
body::before, body::after {
  content: ""; position: fixed; top: 0; bottom: 0; width: 90px; z-index: -1;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 600" preserveAspectRatio="none"%3E%3Cpath d="M40 0 Q8 75 40 150 T40 300 T40 450 T40 600" fill="none" stroke="%232c3e94" stroke-width="2.2" stroke-dasharray="9 8" opacity="0.35"/%3E%3Ccircle cx="40" cy="150" r="4" fill="%232c3e94" opacity="0.4"/%3E%3Ccircle cx="40" cy="450" r="4" fill="%232c3e94" opacity="0.4"/%3E%3C/svg%3E') repeat-y center / 80px 600px;
  pointer-events: none;
}
body::before { left: 8px; }
body::after { right: 8px; transform: scaleX(-1); }
@media (max-width: 1330px) { body::before, body::after { display: none; } }
