/* =====================================================================
   Jardins de Marrakech : styles partagés (chrome commun + pages jardins)
   Propriété WhereToGoMorocco. Palette fleurie validée le 07/10/2026.
   ===================================================================== */

/* ---------------------------------------------------------- tokens --- */
:root {
  --sc-canvas: #F8F2E6;
  --sc-surface: #EFE6D3;
  --sc-ink: #1F2A24;
  --sc-ink-soft: #4A5A4E;
  --sc-accent: #3A4FC9;
  --sc-accent-ink: #F8F2E6;
  --sc-font-display: "Fraunces", Georgia, serif;
  --sc-font-text: "Outfit", system-ui, sans-serif;
  --sc-font-mono: "Outfit", system-ui, sans-serif;
  --jd-majorelle: #3A4FC9;
  --jd-bougain: #C7367E;
  --jd-citron: #F2C14E;
  --jd-palm: #2F5D3A;
  --jd-terra: #C9663D;
  --jd-olive-gr: #E7E8D8;
  --jd-blush: #F5E3E2;
  --jd-wa: #1F8A4C;
  --jd-grade: none;
  --jd-wash: transparent;
}

/* ------------------------------------------- byline + language switch --- */
.jd-topline {
  position: fixed; z-index: 42; top: var(--sc-3); right: var(--sc-gutter);
  display: flex; gap: var(--sc-4); align-items: center;
  font-size: var(--sc-t-xs); color: var(--sc-ink-soft);
}
.jd-topline a { color: var(--sc-ink); text-decoration-thickness: 1px; }
.jd-topline .jd-by a { font-weight: 600; }
.is-on-blue-top .jd-topline, .is-on-blue-top .jd-topline a { color: #F8F2E6; }

/* -------------------------------------------------------- WhatsApp --- */
.jd-wa {
  position: fixed; z-index: 43; left: var(--sc-gutter); bottom: var(--sc-4);
  display: inline-flex; align-items: center; gap: var(--sc-2);
  background: var(--jd-wa); color: #fff; text-decoration: none;
  font-weight: 500; font-size: var(--sc-t-sm);
  padding: 12px 18px 12px 14px; border-radius: var(--sc-r-pill);
  box-shadow: 0 10px 24px -10px rgb(20 80 45 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.25);
  transition: transform 140ms var(--sc-ease-out), background 140ms var(--sc-ease-out);
}
.jd-wa svg { width: 20px; height: 20px; flex: 0 0 auto; }
.jd-wa:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .jd-wa:hover { background: #17733F; } }

/* ------------------------------------------------ WTGM proof block --- */
.jd-wtgm { background: var(--jd-majorelle); color: #F8F2E6; --sc-ink: #F8F2E6; --sc-ink-soft: #DADFF7; }
.jd-wtgm__inner { max-width: 72rem; margin-inline: auto; padding: var(--sc-10) var(--sc-gutter); }
.jd-wtgm h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-3xl); line-height: 1.02; letter-spacing: var(--sc-track-tight); margin: 0 0 var(--sc-4); max-width: 18ch; text-wrap: balance; }
.jd-wtgm__lede { font-size: var(--sc-t-lg); line-height: 1.45; max-width: 52ch; margin: 0 0 var(--sc-8); color: var(--sc-ink-soft); }
.jd-wtgm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sc-7) var(--sc-9); margin: 0 0 var(--sc-8); padding: 0; list-style: none; }
.jd-wtgm__grid li { border-top: 1px solid rgb(248 242 230 / 0.28); padding-top: var(--sc-4); }
.jd-wtgm__grid strong { display: block; line-height: 1.15; font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-xl); margin-bottom: var(--sc-2); color: var(--jd-citron); }
.jd-wtgm__grid span { color: var(--sc-ink-soft); }
.jd-wtgm__actions { display: flex; flex-wrap: wrap; gap: var(--sc-4); align-items: center; }
.jd-btn { display: inline-flex; align-items: center; gap: var(--sc-2); padding: 14px 22px; border-radius: var(--sc-r-pill); font-weight: 500; text-decoration: none; transition: transform 140ms var(--sc-ease-out), background 140ms var(--sc-ease-out); }
.jd-btn:active { transform: scale(0.97); }
.jd-btn--light { background: #F8F2E6; color: #1F2A24; }
.jd-btn--wa { background: var(--jd-wa); color: #fff; }
.jd-btn svg { width: 18px; height: 18px; }
.jd-wtgm a.jd-text-link { color: #F8F2E6; }
@media (hover: hover) and (pointer: fine) { .jd-btn--light:hover { background: #FFFFFF; } .jd-btn--wa:hover { background: #17733F; } }

/* ----------------------------------------------------- shared labels --- */
.jd-label { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: var(--sc-5); row-gap: var(--sc-2); font-size: var(--sc-t-sm); }
.jd-label dt { color: var(--sc-ink-soft); }
.jd-label dd { margin: 0; color: var(--sc-ink); }
.jd-label .jd-now { font-weight: 600; }
.jd-now[data-state]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.jd-now[data-state="open"]::before { background: var(--jd-palm); }
.jd-now[data-state="soon"]::before { background: var(--jd-citron); }
.jd-now[data-state="closed"]::before { background: var(--jd-terra); }
.jd-more { display: inline-block; margin-top: var(--sc-4); color: var(--jd-majorelle); font-weight: 500; }

/* ----------------------------------------------------- garden pages --- */
.jd-page { background: var(--sc-canvas); }
.jd-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sc-4); padding: var(--sc-4) var(--sc-gutter); max-width: 76rem; margin-inline: auto; }
.jd-head__mark { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-lg); text-decoration: none; }
.jd-head nav { display: flex; gap: var(--sc-4); flex-wrap: wrap; font-size: var(--sc-t-sm); }
.jd-head nav a { color: var(--sc-ink-soft); text-decoration: none; }
.jd-head nav a[aria-current="page"] { color: var(--sc-ink); text-decoration: underline; }
.jd-article { max-width: 76rem; margin-inline: auto; padding: var(--sc-6) var(--sc-gutter) var(--sc-10); }
.jd-crumb { font-size: var(--sc-t-xs); color: var(--sc-ink-soft); margin: 0 0 var(--sc-4); }
.jd-crumb a { color: inherit; }
.jd-article h1 { font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(2.3rem, 4.6vw, 4.2rem); line-height: 1.02; letter-spacing: var(--sc-track-tight); margin: 0 0 var(--sc-4); max-width: 20ch; text-wrap: balance; }
.jd-meta { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); margin: 0 0 var(--sc-7); }
.jd-meta a { color: var(--sc-ink); font-weight: 500; }
.jd-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--sc-7); align-items: start; margin-bottom: var(--sc-9); }
.jd-top figure { margin: 0; }
.jd-top img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--sc-r-lg); filter: var(--jd-grade); transition: filter 260ms var(--sc-ease-out); }
.jd-top figcaption { font-size: var(--sc-t-xs); color: var(--sc-ink-soft); margin-top: var(--sc-2); }
.jd-box { background: #FBF8F0; border-radius: var(--sc-r-md); padding: var(--sc-6); box-shadow: 0 18px 40px -22px rgb(47 61 50 / 0.45), inset 0 1px 0 #fff; }
.jd-box h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-xl); margin: 0 0 var(--sc-3); }
.jd-answer { font-size: var(--sc-t-base); line-height: 1.6; margin: 0 0 var(--sc-5); }
.jd-box .jd-clockmini { margin-top: var(--sc-5); padding-top: var(--sc-4); border-top: 1px solid var(--sc-hairline); }
.jd-clockmini__top { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.jd-clockmini output { font-family: var(--sc-font-display); font-size: var(--sc-t-lg); color: var(--sc-ink); font-variant-numeric: tabular-nums; }
.jd-clockmini input { width: 100%; accent-color: var(--jd-majorelle); height: 28px; margin: var(--sc-2) 0 0; }
.jd-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: var(--sc-9); }
.jd-body section + section { margin-top: var(--sc-8); }
.jd-body h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-2xl); line-height: 1.08; letter-spacing: var(--sc-track-snug); margin: 0 0 var(--sc-4); }
.jd-body p { max-width: 64ch; margin: 0 0 var(--sc-4); line-height: 1.7; color: var(--sc-ink); text-wrap: pretty; }
.jd-body a { color: var(--jd-majorelle); }
.jd-detail-img { width: 100%; height: auto; border-radius: var(--sc-r-md); margin: var(--sc-5) 0; filter: var(--jd-grade); }
.jd-aside { align-self: start; position: sticky; top: var(--sc-6); }
.jd-aside h2 { font-size: var(--sc-t-lg); }
.jd-aside ul { list-style: none; margin: 0 0 var(--sc-7); padding: 0; display: grid; gap: var(--sc-3); font-size: var(--sc-t-sm); }
.jd-faq { margin-top: var(--sc-9); max-width: 46rem; }
.jd-faq details { border-bottom: 1px solid var(--sc-hairline); padding: var(--sc-4) 0; }
.jd-faq summary { cursor: pointer; font-family: var(--sc-font-display); font-size: var(--sc-t-lg); list-style: none; display: flex; justify-content: space-between; gap: var(--sc-4); }
.jd-faq summary::-webkit-details-marker { display: none; }
.jd-faq summary::after { content: "+"; color: var(--jd-majorelle); transition: transform 160ms var(--sc-ease-out); }
.jd-faq details[open] summary::after { transform: rotate(45deg); }
.jd-faq p { margin: var(--sc-3) 0 0; color: var(--sc-ink-soft); }
.jd-sources { font-size: var(--sc-t-xs); color: var(--sc-ink-soft); margin-top: var(--sc-7); }
.jd-others { background: var(--jd-olive-gr); }
.jd-others__inner { max-width: 76rem; margin-inline: auto; padding: var(--sc-9) var(--sc-gutter); }
.jd-others h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-2xl); margin: 0 0 var(--sc-6); }
.jd-others ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sc-5); }
.jd-others a { display: block; text-decoration: none; }
.jd-others img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--sc-r-md); margin-bottom: var(--sc-3); filter: var(--jd-grade); }
.jd-others span { font-family: var(--sc-font-display); font-size: var(--sc-t-lg); }
.jd-footer { max-width: 76rem; margin-inline: auto; padding: var(--sc-7) var(--sc-gutter) 6rem; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.jd-footer a { color: inherit; }

@media (max-width: 860px) {
  .jd-topline { position: static; justify-content: flex-end; padding: var(--sc-2) var(--sc-gutter) 0; }
  .jd-top, .jd-body { grid-template-columns: 1fr; }
  .jd-aside { position: static; }
  .jd-others ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jd-wtgm__grid { grid-template-columns: 1fr; }
  .jd-wtgm h2 { font-size: clamp(1.8rem, 8.4vw, 2.6rem); }
  .jd-wtgm__inner { padding-block: var(--sc-9); }
  .jd-head { flex-direction: column; align-items: flex-start; }
  .jd-wa span { display: none; }
  .jd-wa { padding: 12px; }
}

/* garden pages: the byline sits in the flow, above the header */
.jd-page .jd-topline { position: static; justify-content: flex-end; max-width: 76rem; margin-inline: auto; padding: var(--sc-3) var(--sc-gutter) 0; }

/* language switch: a real button, visible on every page and size */
.jd-switch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--sc-r-pill); background: #FBF8F0; color: var(--sc-ink) !important; text-decoration: none !important; font-weight: 600; font-size: var(--sc-t-sm); box-shadow: 0 4px 14px -6px rgb(31 42 36 / 0.35), inset 0 0 0 1px rgb(31 42 36 / 0.12); transition: transform 120ms var(--sc-ease-out); }
.jd-switch svg { width: 16px; height: 16px; }
.jd-switch:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .jd-switch:hover { background: #FFFFFF; } }
