/* .site__blog {
  display: flex;
  align-items: flex-start;
  gap: 20px; /* espace entre contenu et sidebar * /
}

.site__content {
  flex: 3; /* contenu principal prend plus d’espace * /
}

aside.sidebar {
  flex: 1; /* sidebar plus étroite * /
}
*/

:root{
  --bg: #fbfcfe;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #0ea5a4;
  --max-width: 920px;
  --sidebar-width: 320px;
  --header-height: 72px; /* valeur par défaut (JS mettra à jour si nécessaire) */
  --radius: 12px;
  --gap: 24px;
  --container-padding: 20px;
  --fw-heading: 600;
  --fw-regular: 400;
  --text: #0f172a;
}

* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-weight: var(--fw-regular);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing:antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0; /* top:0; left:0; right:0; */
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(8,15,30,0.06);
  z-index: 1200;
  transition: transform .32s cubic-bezier(.2,.9,.2,1), height .25s ease, box-shadow .2s ease;
}

.site-header :last-child {
}

/* header hidden on scroll down */
.site-header.hidden {
  transform: translateY(calc(-1 * var(--header-height)));
}

/* header shrink */
.site-header.shrink {
  height: calc(var(--header-height) * 0.72);
  box-shadow: 0 6px 24px rgba(8,15,30,0.08);
}

/* header content */
.site-header .brand {
  display:flex;
  align-items:center;
  gap:12px;
}

.site-header .brand .logo {
  width:40px;
  height:40px;
  border-radius:8px;
  background:linear-gradient(135deg, var(--accent), #06b6d4);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-weight:700;
  font-size:16px;
}
.site-header .brand h1 {
  margin:0;
  font-size:18px;
  font-weight:700;
  letter-spacing: -.01em;
}

.site-header #sidebar-reservation-form {
  align-self: stretch;
  display: flex;
  flex-direction: line; /* colonne */
  gap: 8px;
  align-items: stretch; /* étire les inputs */
}

.site-header #sidebar-reservation-form .login_invite, .site-header #sidebar-reservation-form input {
  align-self: center; /* recentrer ces éléments si tu veux garder ton centrage */
}

.site-header #sidebar-reservation-form input {
  font-size: 15px;
}

.site-header .reservation-message {
  font-size:12px;
  position: absolute; /* ou fixed */
  bottom: 0px;
}

input.error {
  border: 2px solid red !important;
  border-radius: 4px; /* optionnel */
}

/* ---------- LAYOUT ---------- */
.wrapper {
  width:100%;
  max-width: calc(var(--max-width) + var(--sidebar-width) + 4 * var(--gap));
  margin: 0 auto;
  padding: calc(var(--header-height) + 20px) var(--container-padding) 60px; /* top space for header */
}

/* grid layout: content + sidebar */
.site__blog {
  display: flex;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap);
  align-items: start;
  max-width: calc(var(--max-width) + var(--sidebar-width));
  margin: 0 auto;
  margin-top: var(--header-height);
}

/* main content */
.site__content {
  max-width: var(--max-width);
  background: transparent;
  margin: 0;
  padding: 12px 30px;
}

/* Typography */
.site__content h1 {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.site__content h2 { font-size:24px; margin:20px 0 8px; font-weight:700; }
.site__content h3 { font-size:18px; margin:12px 0; color: #0f172a; font-weight:600; }
.site__content p { color: #213547; margin: 10px 0; font-size:15px; }

/* Card-like tables area */
.wp-block-table {
  background: var(--card);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(16,24,40,0.04);
  margin-top: 16px;
}

/* table style */
.wp-block-table table {
  width:100%;
  border-collapse: collapse;
  font-size: 15px;
}
.wp-block-table th, .wp-block-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #EEF2F6;
}
.wp-block-table thead th {
  background: transparent;
  color: #334155;
  font-weight:700;
  font-size:14px;
}
.wp-block-table tbody tr:hover td {
  background: rgba(14,165,164,0.03);
}

.map {
  width: 100%;
}

/* ---------- SIDEBAR (intelligente) ---------- */
.sidebar {
/*   position: relative; */
  align-self: start;
}

/* sticky container using CSS sticky — top accounts for header */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  max-height: calc(100vh - (var(--header-height) + 40px));
  overflow: auto;
  padding: 14px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(15,23,42,0.06);
}

/* small visual widget */
.site__sidebar__widget h2 { margin:0 0 10px; font-size:16px; }
.widget-area { display:flex; flex-direction:column; gap:12px; }

/* ensure nice scrollbar on webkit */
.sidebar .sidebar-inner::-webkit-scrollbar { width:10px; }
.sidebar .sidebar-inner::-webkit-scrollbar-thumb { background: rgba(10,10,10,0.08); border-radius:8px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  :root { --sidebar-width: 300px; }
  .site__blog { grid-template-columns: 1fr var(--sidebar-width); }
  .wrapper { padding-left:16px; padding-right:16px; }
}

@media (max-width: 820px) {
  /* single column: sidebar moves under content */
  .site__blog { grid-template-columns: 1fr; display: block; }
  .sidebar { order: 2; width: 100%; padding-left: 20px; padding-right: 20px; padding-bottom: 50px; }
  .site__content { order: 1; padding-bottom: 24px; padding: 12px 10px;}
  .wrapper { padding-top: calc(var(--header-height) + 14px); }
  .sidebar .sidebar-inner { position: static; max-height: none; overflow: visible; margin-top: 12px; }
  .wp-block-table {
    border-radius: 0px;
    padding: 0px;
  }
  .site-header #sidebar-reservation-form .login_invite {
    display: none;
  }
  .site-header #sidebar-reservation-form #code {
    width: 120px;
  }
}

/* accessibility: focus states */
a:focus { outline: 3px solid rgba(14,165,164,0.18); outline-offset: 2px; border-radius: 6px; }
