/* =====================================================================
   style.css : all the looks. Colours are in the two blocks just below;
   change them there and the whole site follows.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Cinzel+Decorative:wght@400;700&display=swap");

/* ---- COLOURS: light mode (default) ---- */
:root {
  --bg-top: #efe6f7;      /* pale violet */
  --bg-bottom: #fbe6cf;   /* soft orange */
  --text: #3d2b4d;
  --muted: #7a6590;
  --accent: #b9772f;      /* warm amber, like Mucha's gold */
  --accent-2: #8a6bb0;    /* violet */
  --card: rgba(255, 252, 247, .72);
  --line: rgba(185, 119, 47, .45);
  --shadow: rgba(90, 60, 120, .15);
}
/* ---- COLOURS: dark mode (applied when <html data-theme="dark">) ---- */
:root[data-theme="dark"] {
  --bg-top: #2a1f38;
  --bg-bottom: #3d2630;
  --text: #f2e6d6;
  --muted: #bfa9d0;
  --accent: #eaa862;
  --accent-2: #b79bdb;
  --card: rgba(30, 20, 42, .6);
  --line: rgba(234, 168, 98, .4);
  --shadow: rgba(0, 0, 0, .35);
}

/* ---- BASICS ---- */
* { box-sizing: border-box; }          /* sizes include padding: easier layouts */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;                   /* generous, airy text */
  line-height: 1.7;
  color: var(--text);
  /* the violet-to-orange wash, fixed so it doesn't repeat on long pages */
  background: linear-gradient(170deg, var(--bg-top), var(--bg-bottom)) fixed;
}
/* Faint concentric rings in the page corner, a nod to Mucha's circular halos */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(circle at 85% 12%, transparent 0 38px, var(--line) 39px 40px, transparent 41px 90px);
  opacity: .25;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; height: auto; }  /* images never overflow on phones */

h1, h2, h3 { font-weight: 600; line-height: 1.25; }
h1 { font-family: "Cinzel Decorative", "Cormorant Garamond", serif; font-size: 2.2rem; text-align: center; }
h3 { font-family: "Cormorant Garamond", "Cinzel Decorative", serif; font-size: 1.5rem; text-align: center; }

/* ---- HEADER ---- */
#site-header { position: relative; text-align: center; padding: 3rem 1rem 1rem; }
.halo {            /* the glowing ring behind the title */
  position: absolute; left: 50%; top: 0; width: 360px; height: 360px;
  transform: translate(-50%, -35%); border-radius: 50%; z-index: -1;
  border: 2px solid var(--line);
  box-shadow: 0 0 0 14px transparent, 0 0 0 15px var(--line), 0 0 80px var(--shadow) inset;
}
.site-title {
  font-family: "Cinzel Decorative", Georgia, serif; font-size: 2.6rem; font-weight: 700;
  color: var(--text); text-decoration: none; letter-spacing: .04em;
}
.tagline { margin: .2rem 0 1.2rem; font-style: italic; color: var(--muted); }

/* ---- MENU ---- */
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem; align-items: center; }
nav a { color: var(--text); text-decoration: none; padding: .1rem .2rem; border-bottom: 1px solid transparent; }
nav a:hover, nav a.current { color: var(--accent); border-bottom-color: var(--accent); }
#theme-toggle, #menu-btn {
  font: inherit; font-size: 1rem; cursor: pointer; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .2rem 1rem;
}
#theme-toggle:hover, #menu-btn:hover { border-color: var(--accent); }
#menu-btn { display: none; }           /* only shown on small screens, see below */

/* ---- MAIN CONTENT ---- */
main { max-width: 1050px; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; }
article { max-width: 42rem; margin: 0 auto; }   /* comfortable line length for reading */
.backlink { display: inline-block; margin-bottom: 1rem; }
.intro { text-align: center; max-width: 36rem; margin: 0 auto 1rem; color: var(--muted); font-style: italic; }

/* Maps / big images get a soft arched frame */
.frame { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--card); box-shadow: 0 8px 30px var(--shadow); }

/* ---- LANDING PAGE SECTIONS ---- */
.category { scroll-margin-top: 1rem; }     /* keeps the title visible after a menu jump */
.cat-title { font-family: "Cinzel Decorative", Georgia, serif; font-size: 1.9rem; text-align: center; margin: 1rem 0 0; }
.cat-desc { text-align: center; font-style: italic; color: var(--muted); margin: .2rem 0 0; }

/* ---- LANDING PAGE CARDS ---- */
.card-grid {
  display: grid; gap: 2.5rem 2rem; margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));  /* as many columns as fit */
}
.card {
  display: block; text-align: center; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.2rem; box-shadow: 0 8px 30px var(--shadow); transition: transform .25s;
}
.card:hover { transform: translateY(-6px); }
.card h3 { margin: .8rem 0 .2rem; font-size: 1.5rem; color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.5; }
.thumb {          /* arched window shape, as in Mucha's panels */
  aspect-ratio: 1 / 1; overflow: hidden; border: 2px solid var(--accent);
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(160deg, var(--accent-2), var(--accent));   /* shown if no image */
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- ORNAMENT & FOOTER ---- */
svg.orn { display: block; width: 220px; margin: 1.5rem auto; fill: var(--accent); stroke: var(--accent); stroke-width: 1.5; }
svg.orn path { fill: none; }
#site-footer { text-align: center; padding: 1rem 1rem 3rem; color: var(--muted); font-size: 1rem; }

/* ---- PHONES (screens narrower than 700px) ---- */
@media (max-width: 700px) {
  body { font-size: 1.15rem; }
  .site-title { font-size: 1.8rem; }
  .halo { width: 240px; height: 240px; }
  #menu-btn { display: inline-block; }                  /* show the Menu button */
  nav { display: none; flex-direction: column; margin-top: 1rem; }
  nav.open { display: flex; }                           /* JS adds "open" when tapped */
}



/* =====================================================================
   PHOTO GALLERY (used by gallery pages)
   ===================================================================== */
/* Tag buttons */
.tagbar { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.5rem 0; }
.tag {
  font: inherit; font-size: 1rem; cursor: pointer; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .9rem;
}
.tag small { color: var(--muted); }
.tag:hover { border-color: var(--accent); }
.tag.on { background: var(--accent); color: #fff; border-color: var(--accent); }   /* the chosen tag */
.tag.on small { color: #fff; }
.tag:disabled { opacity: .35; cursor: default; }   /* tag that would give no result */
.tag:disabled:hover { border-color: var(--line); }

/* Thumbnail grid: as many columns as fit, a few per line */
.gcat { margin-bottom: 1rem; }
.ggrid { display: grid; gap: 1rem; margin-top: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.gthumb {
  padding: 0; cursor: zoom-in; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px;
  border: 2px solid var(--line); box-shadow: 0 6px 20px var(--shadow);
  background: linear-gradient(160deg, var(--accent-2), var(--accent));   /* shown if the image is missing */
  transition: transform .2s, border-color .2s;
}
.gthumb:hover, .gthumb:focus-visible { transform: translateY(-4px); border-color: var(--accent); }
.gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The viewer: a full-screen layer with the image on one side, info box on the other */
body.lb-open { overflow: hidden; }
#lb {
  position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 1fr 320px;
  background: rgba(22, 14, 30, .95);
}
#lb[hidden] { display: none; }
#lb-stage { position: relative; overflow: hidden; min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: none; }
#lb-stage.zoomed { cursor: grab; }
#lb-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; will-change: transform; }
#lb-tools { position: absolute; top: .8rem; left: .8rem; display: flex; gap: .4rem; z-index: 2; }
#lb-tools button {
  width: 2.6rem; height: 2.6rem; font-size: 1.4rem; line-height: 1; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%;
}
#lb-tools button:hover { background: var(--accent); }
#lb-info { margin: 1rem; padding: 1.2rem; overflow: auto; background: var(--bg-top); color: var(--text); font-size: 1.1rem; line-height: 1.5; }
#lb-info h2 { margin: 0 0 .6rem; font-size: 1.5rem; color: var(--accent); }
#lb-info dl { margin: 0 0 .8rem; display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; }
#lb-info dt { color: var(--muted); font-style: italic; }
#lb-info dd { margin: 0; }
.gtags { color: var(--muted); font-style: italic; font-size: 1rem; }

@media (max-width: 700px) {       /* phones: info box goes under the image */
  .ggrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
  #lb { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  #lb-info { margin: .5rem; max-height: 38vh; }
}

/* =====================================================================
   FULLSCREEN MAP PAGES
   ===================================================================== */
body.fullmap { overflow: hidden; }
#map {                       /* the map covers the whole screen... */
  position: fixed; inset: 0; z-index: 0;
  background: transparent;   /* ...but stays see-through, so the site background shows if tiles are missing */
}
.map-error { margin: 40vh auto 0; text-align: center; font-size: 1.4rem; color: var(--muted); }

/* The floating boxes (title, legend, opacity), all in the same style */
.mappanel {
  z-index: 1100; padding: .7rem 1rem; color: var(--text); font-size: 1.1rem; line-height: 1.4;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 24px var(--shadow);
  background: var(--bg-top);                                          /* fallback */
  background: color-mix(in srgb, var(--bg-top) 92%, transparent);     /* slightly see-through */
  backdrop-filter: blur(6px);
}
#map-title { position: fixed; top: .8rem; left: .8rem; max-width: min(280px, calc(100vw - 6rem)); }
.map-site { font-family: "Cinzel Decorative", Georgia, serif; font-weight: 700; font-size: 1.2rem; }
.map-name { margin: 0; font-style: italic; color: var(--muted); }
#map-title a { display: inline-block; margin: .3rem 0 .5rem; }
#map-title #theme-toggle { display: block; }

/* Legend + opacity: stacked at bottom right, same width */
#map-side {
  position: fixed; right: .8rem; bottom: .8rem; z-index: 1100;
  width: min(260px, calc(100vw - 1.6rem)); display: flex; flex-direction: column; gap: .6rem;
}
#legend summary { cursor: pointer; font-family: "Cinzel Decorative", Georgia, serif; font-weight: 700; }
#legend-body { margin-top: .5rem; max-height: 40vh; overflow: auto; font-size: 1rem; }
#legend-body img { max-width: 100%; }
.swatch { display: inline-block; width: 1.1em; height: .8em; margin-right: .4em; border-radius: 3px; border: 1px solid var(--line); }
#opacity-box label { display: block; font-size: 1rem; }
#opacity { width: 100%; accent-color: var(--accent); }







/* ---- ajouts ---- */
.smalltext { font-size: 1rem; }

.fridrtable
{
	width: 1024px;
	margin: auto;
	border-collapse: collapse;
}
.fridrtable th, .fridrtable td
{
	border: 2px solid lightgrey;
}
.fridrtable td
{
	vertical-align: top;
}
.fridrtablevxsue{display: inline-block; width: 35px; background-color: #fecd00; color: #3d2b4d; font-weight: bold; text-align: center;}
.fridrtablevxdan{display: inline-block; width: 35px; background-color: #ef2729; font-weight: bold; text-align: center; color: white;}
.fridrtablevxnor{display: inline-block; width: 35px; background-color: #003598; font-weight: bold; text-align: center; color: white;}
.fridrtablemasc{display: inline-block; width: 15px; background-color: #6e9fc7; font-weight: bold; text-align: center; color: white;}
.fridrtablefem{display: inline-block; width: 15px; background-color: #f26f8f; font-weight: bold; text-align: center; color: white;}
.fridrtabledoublon{text-decoration: wavy underline;}
.fridrtablenon{background-color: lightgrey; vertical-align: baseline; text-align: center;}