/* The page's frame, the same on every page:
   - the bar at the top stays put while you scroll (logo, sections, and the basket in the shop);
   - the contact bar at the bottom stays put too: Nathalie, where she is, her email, "Écrire".
   Both sit above the thread, on the paper colour, so the thread runs under them. */
:root {
  --bar-h: 4rem;
  --cb-h: 3rem;
  --copper: #b06a3b;
}
html { scroll-padding-top: calc(var(--bar-h) + var(--space-2)); scroll-padding-bottom: var(--cb-h); }
body { padding-bottom: var(--cb-h); }
.skip-link { z-index: 40 !important; }

/* ---------- Top bar ---------- */
.site-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--bar-h);
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.site-bar.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 .5rem 1.5rem -1rem color-mix(in srgb, var(--ink) 25%, transparent);
}

/* The logo: the thread comes down, ties one loop, and ends in a drop of glass rimmed with copper */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  margin-right: auto;
  color: var(--accent);
  text-decoration: none;
}
.logo-mark { width: 1.7rem; height: auto; overflow: visible; flex: none; }
.logo-thread { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo-drop {
  fill: color-mix(in srgb, #e0a35f 38%, var(--bg));
  stroke: var(--copper);
  stroke-width: 2.2;
  stroke-linejoin: round;
}
.logo-dot { fill: var(--accent); }
.logo-word {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.site-logo:hover .logo-word,
.site-logo:focus-visible .logo-word { opacity: .7; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font: 400 .9375rem var(--font-body);
  color: var(--muted);
  text-decoration: underline 1px transparent;
  text-underline-offset: .4em;
  transition: color var(--dur-1) var(--ease-out), text-decoration-color var(--dur-1) var(--ease-out);
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink); text-decoration-color: currentColor; }
.site-nav a[aria-current="page"],
.site-nav a.is-here { color: var(--accent); text-decoration-color: currentColor; }

.site-menu {
  display: none;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: 0 .25rem;
  border: 0;
  background: none;
  font: 500 .9375rem var(--font-body);
  color: var(--ink);
  cursor: pointer;
}
.site-menu-lines,
.site-menu-lines::before,
.site-menu-lines::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1) var(--ease-out);
}
.site-menu-lines { position: relative; }
.site-menu-lines::before,
.site-menu-lines::after { content: ""; position: absolute; left: 0; }
.site-menu-lines::before { top: -6px; }
.site-menu-lines::after { top: 6px; }
.site-menu[aria-expanded="true"] .site-menu-lines { background: transparent; }
.site-menu[aria-expanded="true"] .site-menu-lines::before { transform: translateY(6px) rotate(45deg); }
.site-menu[aria-expanded="true"] .site-menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* Language: FR · EN · NL, three real links; the one on screen is marked aria-current */
.lang-switch { display: flex; align-items: center; flex: none; order: 0; }
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2.75rem;
  padding: 0 .25rem;
  font: 500 .8125rem var(--font-body);
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  background-clip: content-box;
}
.lang-switch a + a::before { content: "·"; position: absolute; margin-left: -.55rem; color: var(--line); }
.lang-switch a { position: relative; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { color: var(--accent); font-weight: 700; border-bottom-color: currentColor; }
.lang-switch a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; color: var(--ink); }

/* The shop's basket sits in the bar, next to the menu; its icon only appears on narrow phones, where the word is hidden */
.site-bar .shop-cart-link .cart-icon { display: none; }
.site-bar .shop-cart-link { order: 0; margin-right: 0; }

/* Phones and tablets: the sections fold into a menu under the bar */
@media (max-width: 63.99rem) {
  html.js .site-menu { display: inline-flex; }
  html.js .site-nav-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--space-1) var(--gutter) var(--space-3);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1rem 2rem -1.25rem color-mix(in srgb, var(--ink) 35%, transparent);
  }
  html.js .site-nav-wrap:not(.is-open) { display: none; }
  html.js .site-nav { flex-direction: column; }
  html.js .site-nav a { min-height: 3rem; font-size: 1.125rem; width: 100%; border-bottom: 1px solid var(--line); }
  html.js .site-nav li:last-child a { border-bottom: 0; }
  /* Without JavaScript the links simply wrap under the logo */
  html:not(.js) .site-bar { flex-wrap: wrap; }
  html:not(.js) .site-nav-wrap { flex-basis: 100%; }
  .site-bar .shop-cart-link { order: 1; }
  .site-bar .site-menu { order: 2; }
  .site-bar { gap: var(--space-1); }
}
.logo-word { white-space: nowrap; }
/* Narrow phones: logo, FR · EN · NL, basket and menu share one line, so the menu keeps only its icon (its name stays for screen readers) */
@media (max-width: 26rem) {
  .logo-word { font-size: 1.4rem; }
  .site-logo { gap: .4rem; }
  .lang-switch a { min-width: 1.75rem; padding: 0 .125rem; letter-spacing: 0; }
  .lang-switch a + a::before { margin-left: -.35rem; }
  .site-menu { gap: 0; }
  /* The basket shows a bag icon and its count here; its name ("Winkelmandje") stays for screen readers */
  .site-bar .shop-cart-link .cart-icon { display: inline-block; width: 1.1em; height: 1.1em; flex: none; }
  .site-bar .shop-cart-link .cart-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Contact bar ---------- */
.contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--cb-h);
  padding: 0 var(--gutter);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--line);
  font: 400 .875rem var(--font-body);
  color: var(--muted);
}
.cb-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cb-name { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--accent); }
.cb-links { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.cb-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: underline 1px var(--line);
  text-underline-offset: .35em;
}
.cb-links a:hover,
.cb-links a:focus-visible { text-decoration-color: currentColor; }
.cb-links .cb-write {
  min-height: 2.25rem;
  padding: 0 .9rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
}
.cb-links .cb-write:hover,
.cb-links .cb-write:focus-visible { background: color-mix(in srgb, var(--accent) 84%, var(--ink)); }
.cb-links .cb-write:focus-visible { outline-color: var(--ink); }
@media (max-width: 40rem) {
  .contact-bar { gap: var(--space-1); font-size: .8125rem; }
  .cb-sep, .cb-place { display: none; }
  .cb-links { gap: var(--space-2); }
  .cb-links .cb-write { padding: 0 .7rem; }
}
@media (max-width: 23rem) {
  .cb-who { display: none; }
  .contact-bar { justify-content: flex-end; }
}

/* The shop's floating basket clears the contact bar */
.cart-fab { bottom: calc(var(--cb-h) + var(--space-2)) !important; }

/* Titles wear the thread's colour */
h1, h2, h3 { color: var(--accent); }
.sec-title em { color: color-mix(in srgb, var(--accent) 72%, var(--bg)); }
#accompagnement .acc-when { color: var(--accent) !important; }

/* Réserver: the last link in the bar is a button */
.site-nav a.site-nav-cta {
  padding: 0 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
}
.site-nav a.site-nav-cta:hover,
.site-nav a.site-nav-cta:focus-visible { background: color-mix(in srgb, var(--accent) 84%, var(--ink)); color: var(--bg); }
.site-nav a.site-nav-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* In the contact section the button is where the reader is: a fine ring round it, as the other links get their underline */
.site-nav a.site-nav-cta.is-here { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent); }
@media (max-width: 63.99rem) {
  html.js .site-nav a.site-nav-cta { margin-top: var(--space-2); justify-content: center; }
}
