/* Responsive navigation & interactive components */

/* Desktop nav: visible from 860px */
.nav-desktop {
  display: none;
}

@media (min-width: 860px) {
  .nav-desktop {
    display: block;
  }

  .nav-mobile-toggle {
    display: none !important;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* Mobile menu toggle: visible below 860px */
.nav-mobile-toggle {
  display: block;
}

@media (max-width: 859px) {
  .nav-mobile-toggle {
    display: block;
  }
}

/* Mobile nav panel */
.nav-mobile[hidden] {
  display: none !important;
}

header.is-menu-open .nav-mobile {
  display: block !important;
}

header .nav-mobile-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 8px clamp(16px, 4vw, 20px) 12px;
  border-block-start: 1px solid oklch(0.9 0.015 140);
  background: oklch(0.98 0.008 95 / 0.94);
}

header .nav-mobile-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: oklch(0.42 0.02 150);
  border: none;
  background: transparent;
}

header .nav-mobile-link.is-nav-active,
header .nav-mobile-link[aria-current="page"] {
  background: oklch(0.94 0.02 140);
  color: oklch(0.27 0.055 155);
  font-weight: 700;
}

header .nav-mobile-link:focus-visible {
  outline: 2px solid oklch(0.34 0.06 155);
  outline-offset: 2px;
}

/* Sticky action bar: mobile only (≤639px) */
.sticky-bar {
  display: none;
}

@media (max-width: 639px) {
  .sticky-bar {
    display: flex;
  }

  /* Add bottom padding so content isn't hidden behind sticky bar */
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

/* Map lazy-load */
.map-loaded[hidden] {
  display: none !important;
}

.map-placeholder[data-map-hidden] {
  display: none !important;
}

.map-loaded:not([hidden]) {
  display: block;
  height: 100%;
  min-height: 220px;
}

.map-loaded:not([hidden]) iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: none;
  display: block;
}

/* Header nav — ancre #horaires active uniquement via JS (hash exact) */
header .nav-desktop nav a:focus-visible {
  outline: 2px solid oklch(0.34 0.06 155);
  outline-offset: 2px;
  border-radius: 2px;
}

header .nav-desktop nav a.is-nav-active {
  color: oklch(0.27 0.055 155);
  font-weight: 700;
  border-bottom: 2px solid oklch(0.34 0.06 155);
  padding-bottom: 2px;
}

html[dir="rtl"] header .nav-desktop nav a.is-nav-active {
  border-bottom: none;
  border-block-end: 2px solid oklch(0.34 0.06 155);
  padding-bottom: 0;
  padding-block-end: 2px;
}

/* Garde page — layout redesign, original site palette only */
.garde-page__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.garde-hero {
  padding: clamp(20px, 4vw, 36px) clamp(16px, 4vw, 32px) clamp(28px, 5vw, 44px);
  background: oklch(0.98 0.008 95);
  border-bottom: 1px solid oklch(0.9 0.015 140);
}

.garde-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 14px;
  color: oklch(0.42 0.02 150);
}

.garde-breadcrumb a {
  color: oklch(0.27 0.055 155);
  text-decoration: none;
  font-weight: 500;
}

.garde-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(0.34 0.06 155);
}

.garde-page__title {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.18;
  margin: 0 0 12px;
  color: oklch(0.27 0.055 155);
  text-wrap: balance;
}

html[dir="rtl"] .garde-page__title {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
}

.garde-hero__intro {
  max-width: 58ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: oklch(0.42 0.02 150);
}

.garde-content {
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 32px) clamp(48px, 7vw, 72px);
}

.garde-toolbar {
  margin-bottom: 24px;
}

.garde-toolbar__label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: oklch(0.55 0.03 150);
}

.garde-toolbar__pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.garde-week-pill {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid oklch(0.9 0.015 140);
  border-radius: 10px;
  background: oklch(0.98 0.008 95);
  color: oklch(0.27 0.055 155);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.garde-week-pill:hover,
.garde-week-pill:focus-visible {
  border-color: oklch(0.34 0.06 155);
  outline: none;
}

.garde-week-pill.is-active {
  border-color: oklch(0.34 0.06 155);
  background: oklch(0.94 0.02 140);
  color: oklch(0.27 0.055 155);
}

.garde-board__range {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 600;
  color: oklch(0.34 0.06 155);
}

.garde-board__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .garde-board__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.garde-panel {
  border-radius: 14px;
  padding: 18px;
  border: 1px solid oklch(0.9 0.015 140);
  background: oklch(1 0 0);
}

.garde-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid oklch(0.9 0.015 140);
}

.garde-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  color: oklch(0.34 0.06 155);
  background: oklch(0.94 0.02 140);
}

.garde-panel__titles {
  flex: 1;
  min-width: 0;
}

.garde-panel__title {
  margin: 0;
  font-family: 'Source Serif 4', serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  color: oklch(0.24 0.015 150);
}

html[dir="rtl"] .garde-panel__title {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
}

.garde-panel__hours {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: oklch(0.55 0.03 150);
}

.garde-panel__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: oklch(0.34 0.06 155);
  background: oklch(0.94 0.02 140);
}

.garde-panel__list {
  display: grid;
  gap: 14px;
}

.garde-card {
  border-radius: 14px;
  padding: 18px;
  background: oklch(1 0 0);
  border: 1px solid oklch(0.9 0.015 140);
}

.garde-card__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.garde-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: oklch(0.34 0.06 155);
  background: oklch(0.94 0.02 140);
}

.garde-card__name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: oklch(0.24 0.015 150);
}

.garde-card__meta {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.garde-card__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: oklch(0.42 0.02 150);
}

.garde-card__meta-item a {
  color: oklch(0.27 0.055 155);
  font-weight: 600;
  text-decoration: none;
}

.garde-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: oklch(0.34 0.06 155);
}

.garde-icon--sm {
  margin-top: 2px;
}

.garde-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.garde-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
}

.garde-action--primary {
  border: 1px solid transparent;
  background: oklch(0.34 0.06 155);
  color: oklch(1 0 0);
}

.garde-action--primary .garde-icon {
  color: oklch(1 0 0);
}

.garde-action--secondary {
  border: 1.5px solid oklch(0.34 0.06 155);
  background: oklch(1 0 0);
  color: oklch(0.27 0.055 155);
}

.garde-action:focus-visible {
  outline: 2px solid oklch(0.34 0.06 155);
  outline-offset: 2px;
}

.garde-disclaimer,
.garde-empty {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid oklch(0.9 0.015 140);
  background: oklch(0.94 0.02 140);
  color: oklch(0.42 0.02 150);
  font-size: 15px;
  line-height: 1.6;
}

.garde-disclaimer {
  margin: 24px 0 0;
}

.garde-empty__text {
  margin: 0;
}

@media (max-width: 520px) {
  .garde-card__actions {
    grid-template-columns: 1fr;
  }
}

/* Footer — agency credit */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: oklch(0.62 0.015 150);
}

.footer-credit__label {
  flex-shrink: 0;
}

.footer-credit__link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.footer-credit__link:focus-visible {
  outline: 2px solid oklch(0.72 0.015 150);
  outline-offset: 3px;
  border-radius: 10px;
}

.footer-credit__logo {
  display: block;
  height: 30px;
  width: auto;
  max-width: min(148px, 42vw);
  border-radius: 8px;
  background: oklch(0.24 0.015 150);
}

/* Home — Paraligne marketplace */
.marketplace-promo {
  padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 32px);
  background: oklch(1 0 0);
}

.marketplace-promo__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(28px, 4vw, 48px);
  max-width: 1180px;
  margin: 0 auto;
}

.marketplace-promo__eyebrow {
  margin: 0 0 8px;
  color: oklch(0.34 0.06 155);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.marketplace-promo__title {
  margin: 0 0 14px;
  color: oklch(0.27 0.055 155);
  font-family: 'Source Serif 4', serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.marketplace-promo__description {
  max-width: 48ch;
  margin: 0 0 24px;
  color: oklch(0.42 0.02 150);
  font-size: 15px;
  line-height: 1.65;
}

.marketplace-promo__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: oklch(0.34 0.06 155);
  color: oklch(1 0 0);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.marketplace-promo__button svg {
  flex-shrink: 0;
}

.marketplace-promo__button:hover {
  background: oklch(0.27 0.055 155);
}

.marketplace-promo__preview {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid oklch(0.9 0.015 140);
  border-radius: 16px;
  background: oklch(0.94 0.02 140);
  box-shadow: 0 10px 30px -16px oklch(0.3 0.05 150 / 0.35);
  color: oklch(0.42 0.02 150);
  text-decoration: none;
  transition: border-color 180ms ease;
}

.marketplace-promo__preview:hover {
  border-color: oklch(0.65 0.04 150);
}

.marketplace-promo__browser {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid oklch(0.9 0.015 140);
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.marketplace-promo__dots {
  display: flex;
  gap: 5px;
}

.marketplace-promo__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(0.72 0.025 150);
}

.marketplace-promo__preview img {
  display: block;
  width: 100%;
  height: auto;
}

html[dir="rtl"] .marketplace-promo__title {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  line-height: 1.4;
}

html[dir="rtl"] .marketplace-promo__eyebrow {
  letter-spacing: normal;
}

html[dir="rtl"] .marketplace-promo__description {
  line-height: 1.8;
}

@media (max-width: 759px) {
  .marketplace-promo__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 399px) {
  .marketplace-promo__button {
    width: 100%;
    padding-inline: 14px;
  }
}
