/* =============================================================
   Center Parcs — Shoot Planner
   DA : Monday × Center Parcs (palette officielle 2024+, Bagoss)
   ============================================================= */

@font-face {
  font-family: "Bagoss Standard";
  src: url("fonts/BagossStandard-Regular.woff2") format("woff2"),
       url("fonts/BagossStandard-Regular.woff")  format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bagoss Standard";
  src: url("fonts/BagossStandard-Medium.woff2") format("woff2"),
       url("fonts/BagossStandard-Medium.woff")  format("woff");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ----- Center Parcs palette officielle ----- */
  --pine:    #045E51;   /* primary deep green */
  --pine-d:  #023B33;
  --grass:   #B1EDA6;   /* light green */
  --grass-s: #E3F8DE;
  --honey:   #FFCA55;   /* sun yellow */
  --honey-s: #FFF1CE;
  --sky:     #9DB4F6;   /* sky blue */
  --sky-s:   #E2E8FE;
  --blossom: #FF699B;   /* pink */
  --bark:    #7A5226;   /* brown */
  --lagoon:  #00192F;   /* deep navy ink */
  --sunset:  #700606;   /* deep red */

  /* ----- Surfaces (Monday-ish, cream cool) ----- */
  --bg:        #F4F2EC;
  --surface:   #FFFFFF;
  --surface-2: #ECEAE2;
  --border:    #DCD7CB;
  --border-strong: #B9B2A1;

  /* ----- Text ----- */
  --ink:       var(--lagoon);
  --ink-soft:  #4B5462;
  --ink-faint: #8A8F9C;

  /* ----- Countries ----- */
  --c-benl: var(--honey);
  --c-fr:   var(--sky);
  --c-de:   var(--bark);

  /* ----- Shoot type chips ----- */
  --chip-lifestyle:  var(--pine);
  --chip-functional: var(--sky);
  --chip-epic:       var(--blossom);
  --chip-park-video: var(--sunset);

  /* ----- Radii, shadows ----- */
  --r:    10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0,25,47,.06);
  --shadow:    0 4px 14px rgba(0,25,47,.08);
  --shadow-lg: 0 16px 32px -10px rgba(0,25,47,.22);

  --ease: cubic-bezier(.4,.0,.2,1);

  --sans: "Bagoss Standard", -apple-system, "Helvetica Neue", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
}

/* ------------ Base ------------ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; }
input, select, textarea { font: inherit; color: inherit; font-family: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--honey); color: var(--lagoon); }
:where(button, input, select, textarea):focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}
.locale-select {
  min-width: 118px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: var(--r);
  padding: .48rem .7rem;
  font-size: .84rem;
  font-weight: 500;
}
.auth__locale {
  margin-bottom: 1rem;
  display: flex;
  justify-content: flex-end;
}

/* ------------ Buttons ------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.1rem;
  font-weight: 500;
  font-size: .94rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: background .15s, color .15s, transform .15s var(--ease), box-shadow .15s, border-color .15s;
  white-space: nowrap;
  letter-spacing: 0;
}
.btn--primary {
  background: var(--pine);
  color: white;
  box-shadow: 0 1px 0 rgba(2,59,51,.4), inset 0 -2px 0 rgba(2,59,51,.3);
}
.btn--primary:hover { background: var(--pine-d); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(4,94,81,.3); }
.btn--primary:active { transform: translateY(0); }
.btn:disabled {
  cursor: not-allowed;
  opacity: .48;
  box-shadow: none;
  transform: none;
}
.btn:disabled:hover {
  background: var(--pine);
  border-color: transparent;
  color: white;
  transform: none;
  box-shadow: none;
}

.btn--xl { padding: 1rem 1.7rem; font-size: 1.05rem; border-radius: var(--r-lg); }

.btn--sun {
  background: var(--honey);
  color: var(--lagoon);
  box-shadow: 0 1px 0 rgba(122,82,38,.3), inset 0 -2px 0 rgba(122,82,38,.18);
}
.btn--sun:hover { background: #FBBE36; transform: translateY(-1px); }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--ink-faint); background: var(--surface-2); }

.btn--danger {
  background: white; color: var(--sunset); border-color: rgba(112,6,6,.25);
}
.btn--danger:hover { background: var(--sunset); color: white; }

.link {
  font-size: .9rem;
  color: var(--ink-soft); font-weight: 500;
  transition: color .15s;
}
.link:hover { color: var(--pine); }

/* ============================================================
   AUTH
   ============================================================ */
.screen { min-height: 100vh; }

.auth {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,202,85,.18), transparent 55%),
    radial-gradient(ellipse at 90% 90%, rgba(157,180,246,.18), transparent 55%),
    var(--bg);
}
.auth__hero {
  padding: 3rem clamp(2rem, 5vw, 4.5rem);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth__hero::after {
  content: "";
  position: absolute; right: -120px; bottom: -120px;
  width: 360px; height: 360px;
  background: var(--grass);
  border-radius: 50%;
  opacity: .35;
  filter: blur(40px);
  z-index: 0;
}
.auth__hero > * { position: relative; z-index: 1; }

.auth__brand { display: flex; align-items: center; gap: .65rem; }
.brand__mark {
  width: 36px; height: 36px;
  background: var(--pine);
  color: var(--grass);
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 700; font-size: 1rem;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(4,94,81,.35);
}
.brand__name {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--lagoon);
}

.auth__title {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
  margin: 0 0 1.2rem;
  color: var(--lagoon);
}
.auth__title em {
  font-style: normal;
  color: var(--pine);
  background: linear-gradient(180deg, transparent 65%, var(--honey) 65%);
  padding: 0 .15em;
}
.auth__lede {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40ch;
}

.auth__bullets {
  margin-top: 2.2rem;
  display: grid; gap: .9rem;
  padding-left: 0; list-style: none;
}
.auth__bullets li {
  display: flex; gap: .8rem; align-items: flex-start;
  font-size: .95rem; color: var(--ink-soft);
}
.auth__bullets li::before {
  content: ""; flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--grass);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(4,94,81,.25);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.3 5 8.7l4.5-5' fill='none' stroke='%23045E51' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.auth__foot {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--ink-faint);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 3rem;
}

.auth__panel {
  background: var(--surface);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--border);
}
.auth__panel-inner { max-width: 380px; margin: 0 auto; width: 100%; }

.tabs {
  display: flex; gap: .3rem;
  background: var(--surface-2);
  border-radius: var(--r);
  padding: .3rem;
  margin-bottom: 1.8rem;
}
.tab {
  flex: 1;
  padding: .65rem 1rem;
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink-soft);
  border-radius: 7px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.tab.is-active {
  background: var(--surface);
  color: var(--lagoon);
  box-shadow: var(--shadow-sm);
}
.tab:hover:not(.is-active) { color: var(--ink); }

.form { display: none; flex-direction: column; gap: 1.05rem; }
.form.is-active { display: flex; }
.form label {
  display: flex; flex-direction: column; gap: .35rem;
  font-size: .82rem; font-weight: 500; color: var(--ink-soft);
}
.form input, .form select {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: .75rem .9rem;
  border-radius: var(--r);
  font-size: .98rem;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(4,94,81,.15);
}
.form .btn { margin-top: .4rem; }
.form__err { color: var(--sunset); font-size: .85rem; min-height: 1.2em; margin: 0; font-weight: 500; }
.hint { color: var(--ink-faint); font-weight: 400; font-size: .76rem; }

/* ============================================================
   APP shell
   ============================================================ */
.app { display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem; align-items: center;
  padding: .9rem 1.6rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.topbar__brand { display: flex; align-items: center; gap: .6rem; }
.topbar__nav { display: flex; gap: .25rem; justify-self: start; margin-left: 1.5rem; }
.nav-link {
  padding: .55rem 1rem;
  font-weight: 500; font-size: .92rem;
  color: var(--ink-soft);
  border-radius: var(--r);
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.is-active {
  background: var(--grass-s);
  color: var(--pine-d);
}
.topbar__user { display: flex; align-items: center; gap: 1rem; }
.me { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--ink-soft); font-weight: 500; }
.me__avatar {
  width: 30px; height: 30px;
  background: var(--pine);
  color: var(--grass);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 500; font-size: .82rem;
}

.view { display: none; }
.view.is-active { display: block; animation: viewIn .35s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   HOME
   ============================================================ */
.home { padding: 2.2rem clamp(1.5rem, 4vw, 3rem); max-width: 1320px; margin: 0 auto; }

.home__hero {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3.2rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.home__hero::after {
  content: "";
  position: absolute;
  right: -100px; bottom: -100px;
  width: 280px; height: 280px;
  background: var(--honey);
  border-radius: 50%;
  opacity: .35;
  filter: blur(30px);
}
.home__kicker {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .76rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--pine-d);
  background: var(--grass-s);
  padding: .32rem .7rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.2rem;
}
.home__kicker::before { content: "●"; color: var(--pine); font-size: .55rem; }
.home__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 .8rem;
  color: var(--lagoon);
}
.home__title em { font-style: normal; color: var(--pine); }
.home__lede { color: var(--ink-soft); font-size: 1.05rem; max-width: 50ch; margin: 0; }
.home__cta { z-index: 1; }

.home__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 2rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s var(--ease);
}
.stat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat__n { font-size: 2rem; font-weight: 500; letter-spacing: 0; line-height: 1; color: var(--lagoon); }
.stat__l { font-size: .82rem; color: var(--ink-soft); margin-top: .35rem; font-weight: 500; }
.stat--pine    .stat__n { color: var(--pine); }
.stat--honey   .stat__n { color: #B58420; }
.stat--sky     .stat__n { color: #4B6CC4; }
.stat--bark    .stat__n { color: var(--bark); }

.home__section { margin-top: 2.5rem; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.section__title { font-size: 1.2rem; font-weight: 500; margin: 0; letter-spacing: 0; color: var(--lagoon); }

.shoot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.shoot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow .15s, transform .15s var(--ease), border-color .15s;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.shoot-card::before {
  content: "";
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 4px; background: var(--c, var(--pine));
}
.shoot-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.shoot-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; margin-bottom: .8rem; }
.shoot-card__title {
  font-size: 1rem; font-weight: 500; line-height: 1.3; margin: 0;
  color: var(--lagoon);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shoot-card__country {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .55rem;
  border-radius: var(--r-pill);
  background: var(--c-soft);
  color: var(--c-ink, var(--lagoon));
}
.shoot-card__flag { font-size: .95rem; line-height: 1; }
.shoot-card__meta { display: flex; flex-wrap: wrap; gap: .5rem .8rem; font-size: .82rem; color: var(--ink-soft); margin-bottom: .8rem; }
.shoot-card__date { font-weight: 500; color: var(--lagoon); }
.shoot-card__chip {
  display: inline-flex; padding: .2rem .55rem;
  font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em;
  border-radius: 5px;
  background: var(--chip-bg, var(--surface-2));
  color: var(--chip-fg, var(--ink-soft));
}
.shoot-card__chip[data-type="lifestyle"]  { --chip-bg: var(--grass-s);  --chip-fg: var(--pine-d); }
.shoot-card__chip[data-type="functional"] { --chip-bg: var(--sky-s);    --chip-fg: #3651A1; }
.shoot-card__chip[data-type="epic"]       { --chip-bg: #FFE0EC;         --chip-fg: #B43E6E; }
.shoot-card__chip[data-type="park-video"] { --chip-bg: #FAD9D9;         --chip-fg: var(--sunset); }
.shoot-card__author { font-size: .78rem; color: var(--ink-faint); margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--border); }
.shoot-card--empty {
  background: transparent; border-style: dashed;
  text-align: center; color: var(--ink-faint); font-style: italic;
  padding: 2.2rem 1rem; cursor: default;
}
.shoot-card--empty::before { display: none; }
.shoot-card--empty:hover { transform: none; box-shadow: none; }

/* Country colour helpers */
.is-benl { --c: var(--c-benl); --c-soft: var(--honey-s); --c-ink: #7E5800; }
.is-fr   { --c: var(--c-fr);   --c-soft: var(--sky-s);   --c-ink: #3651A1; }
.is-de   { --c: var(--c-de);   --c-soft: #ECDFCB;        --c-ink: var(--bark); }

/* ============================================================
   WIZARD
   ============================================================ */
.wizard-wrap { padding: 1.5rem; max-width: 1100px; margin: 0 auto; }
.wizard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.wizard__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.wizard__progress { display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.wizard__bar {
  width: 160px; height: 6px;
  background: var(--surface);
  border-radius: var(--r-pill);
  overflow: hidden;
  position: relative;
}
.wizard__bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--pine), var(--grass));
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  transition: transform .4s var(--ease);
}

.wizard__stage {
  padding: clamp(1.8rem, 5vw, 3.5rem);
  min-height: 560px;
  display: flex; flex-direction: column; justify-content: center;
}
.step { animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.step__num {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; font-weight: 500;
  color: var(--pine-d);
  background: var(--grass-s);
  padding: .3rem .65rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.step__q {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0 0 .55rem;
  color: var(--lagoon);
}
.step__q em { font-style: normal; color: var(--pine); }
.step__hint { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 2rem; max-width: 60ch; }

.choices { display: flex; flex-wrap: wrap; gap: .75rem; }
.choice {
  position: relative;
  padding: 1rem 1.3rem 1rem 3.1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 1rem; font-weight: 500;
  text-align: left;
  transition: all .15s var(--ease);
  min-width: 220px;
  color: var(--lagoon);
}
.choice::before {
  content: attr(data-key);
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--surface-2);
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: .78rem; font-weight: 500;
  color: var(--ink-soft);
  font-family: var(--mono);
  transition: all .15s;
}
.choice:hover { border-color: var(--pine); background: var(--grass-s); transform: translateY(-1px); }
.choice:hover::before { background: var(--pine); color: var(--grass); }
.choice.is-selected { border-color: var(--pine); background: var(--grass-s); }
.choice.is-selected::before { background: var(--pine); color: var(--grass); }
.choice__sub { display: block; font-size: .82rem; font-weight: 400; color: var(--ink-faint); margin-top: .2rem; }

.field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.4rem; }
.field > label { font-size: .82rem; font-weight: 500; color: var(--ink-soft); }
.field input[type="text"], .field input[type="date"], .field select, .field textarea {
  border: 1.5px solid var(--border);
  background: var(--surface);
  padding: .85rem 1rem;
  border-radius: var(--r);
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(4,94,81,.15);
}
.field--big input { font-size: 1.4rem; font-weight: 500; padding: 1rem 1.2rem; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

.step__nav {
  margin-top: 2.5rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.step__nav .hint { font-size: .82rem; color: var(--ink-faint); }
.step__nav .hint kbd {
  font-family: var(--mono);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: .15rem .4rem;
  border-radius: 4px; font-size: .78rem; font-weight: 500;
}

/* Slot list */
.slot-list { display: grid; gap: .55rem; }
.slot {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1.2rem; align-items: center;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  text-align: left;
  transition: all .15s var(--ease);
}
.slot:hover { border-color: var(--pine); background: var(--grass-s); transform: translateX(3px); }
.slot__date { font-size: 1.05rem; font-weight: 500; color: var(--lagoon); }
.slot__weekdays { font-size: .82rem; color: var(--ink-soft); font-weight: 500; }
.slot__week {
  font-family: var(--mono); font-size: .75rem; font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface-2);
  padding: .25rem .5rem;
  border-radius: 5px;
}
.slot__pick { color: var(--pine-d); font-weight: 500; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.slot__empty {
  padding: 2rem; text-align: center;
  background: var(--surface-2); color: var(--ink-faint); font-style: italic;
  border-radius: var(--r);
}

/* Activities */
.activities { display: grid; gap: .5rem; margin-bottom: .6rem; }
.activity {
  display: flex; flex-direction: column;
  gap: .5rem;
  padding: .6rem .85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: .95rem;
  transition: border-color .15s;
}
.activity:focus-within { border-color: var(--pine); }
.activity__main {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: .7rem; align-items: center;
}
.activity__more {
  display: grid;
  grid-template-columns: auto auto auto 1fr 1fr;
  gap: .5rem;
  padding-left: 1.5rem;
  align-items: center;
}
.activity__more select,
.activity__more input {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .32rem .5rem;
  font-size: .8rem;
  background: var(--surface-2);
  color: var(--ink-soft);
}
.activity__more input { background: var(--surface); }
.activity__more select:focus,
.activity__more input:focus { outline: none; border-color: var(--pine); }
@media (max-width: 720px) {
  .activity__more { grid-template-columns: 1fr 1fr; }
}
.activity__handle {
  font-family: var(--mono); font-size: .78rem;
  color: var(--ink-faint); font-weight: 500;
  width: 22px; text-align: center;
}
.activity__name { border: 0; background: transparent; padding: .3rem 0; font-size: .95rem; min-width: 0; width: 100%; }
.activity__name:focus { outline: none; }
.activity__hours {
  display: flex; align-items: center; gap: .25rem;
  font-size: .82rem; color: var(--ink-soft);
}
.activity__hours input {
  width: 52px; padding: .3rem .4rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  text-align: right;
  font-size: .9rem; font-weight: 500;
  background: var(--surface);
}
.activity__aqua {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 500;
  color: var(--ink-soft);
  background: var(--sky-s);
  padding: .2rem .45rem;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
}
.activity__aqua input { display: none; }
.activity__aqua.is-on { background: var(--sky); color: var(--lagoon); }
.activity__weather,
.actcell__weather {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  width: max-content;
  padding: .18rem .48rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  background: var(--weather-bg, var(--surface-2));
  color: var(--weather-fg, var(--ink-soft));
  border: 1px solid var(--weather-border, transparent);
}
.actcell__weather { margin-left: .35rem; vertical-align: middle; }
.activity__weather[data-weather="indoor"],
.actcell__weather[data-weather="indoor"] {
  --weather-bg: #E9EEF6;
  --weather-fg: #334765;
}
.activity__weather[data-weather="outdoor"],
.actcell__weather[data-weather="outdoor"] {
  --weather-bg: var(--grass-s);
  --weather-fg: var(--pine-d);
}
.activity__weather[data-weather="mixed"],
.actcell__weather[data-weather="mixed"] {
  --weather-bg: #F3E7D4;
  --weather-fg: var(--bark);
}
.activity__weather[data-weather="unknown"],
.actcell__weather[data-weather="unknown"] {
  --weather-bg: var(--surface);
  --weather-fg: var(--ink-faint);
  --weather-border: var(--border);
}
.activity__del {
  color: var(--ink-faint);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 5px;
  transition: background .15s, color .15s;
  font-size: 1.1rem; line-height: 1;
}
.activity__del:hover { background: var(--sunset); color: white; }
.activity-add {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .88rem; font-weight: 500;
  color: var(--pine-d);
  padding: .55rem .85rem;
  border: 1.5px dashed rgba(4,94,81,.4);
  border-radius: var(--r);
  background: transparent;
  transition: all .15s;
}
.activity-add:hover { background: var(--grass-s); }

.model-rules {
  margin: .8rem 0 1rem;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}
.model-rules__toggle {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  cursor: pointer;
}
.model-rules__toggle input { margin-top: .18rem; accent-color: var(--pine); }
.model-rules__toggle span { display: grid; gap: .12rem; }
.model-rules__toggle strong { color: var(--lagoon); font-size: .95rem; }
.model-rules__toggle small { color: var(--ink-soft); font-size: .78rem; }
.model-rules__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .6rem;
  margin-top: .75rem;
  padding-left: 1.45rem;
}
.model-rules__grid.is-disabled { opacity: .55; }
.model-rules__grid label {
  display: grid;
  gap: .3rem;
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.model-rules__grid select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .42rem .5rem;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: .82rem;
}
.model-rules__note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-faint);
  font-size: .78rem;
}
@media (max-width: 720px) {
  .model-rules__grid { grid-template-columns: 1fr; padding-left: 0; }
}

.fit-bar {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r);
  background: var(--grass-s);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  font-size: .92rem;
  border-left: 4px solid var(--pine);
}
.fit-bar.is-warn  { background: var(--honey-s); border-color: var(--honey); }
.fit-bar.is-error { background: #FAE0E0; border-color: var(--sunset); }
.fit-bar__hours { font-weight: 500; color: var(--lagoon); }
.fit-bar__hours strong { font-size: 1.1rem; }
.fit-bar__msg { color: var(--ink-soft); font-size: .88rem; }
.fit-bar__bar {
  width: 220px; height: 8px;
  background: rgba(0,0,0,.06);
  border-radius: var(--r-pill);
  overflow: hidden;
  position: relative;
}
.fit-bar__bar::after {
  content: ""; position: absolute; inset: 0;
  background: var(--pine);
  transform-origin: left;
  transform: scaleX(var(--fill, 0));
  transition: transform .25s var(--ease);
}
.fit-bar.is-warn  .fit-bar__bar::after { background: #C49620; }
.fit-bar.is-error .fit-bar__bar::after { background: var(--sunset); }
.fit-break {
  margin-top: .6rem;
  display: flex; gap: .6rem; flex-wrap: wrap;
  font-size: .78rem; color: var(--ink-faint);
  font-family: var(--mono);
}
.fit-break b { color: var(--ink-soft); font-weight: 500; }

.summary {
  background: var(--surface-2);
  border-radius: var(--r);
  padding: 1.4rem 1.6rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem 1.6rem;
  margin-bottom: 1.6rem;
  font-size: .98rem;
}

/* Rules alerts (confirm step) */
.rules-alerts {
  background: var(--honey-s);
  border-left: 4px solid var(--honey);
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
}
.rules-alerts__title { margin: 0 0 .6rem; font-size: .92rem; font-weight: 500; color: var(--lagoon); }
.rules-alerts ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: .35rem; }
.rules-alert {
  display: grid;
  grid-template-columns: minmax(140px, max-content) 1fr;
  gap: .6rem 1rem;
  padding: .5rem .7rem;
  border-radius: 6px;
  background: rgba(255,255,255,.55);
  font-size: .88rem;
}
.rules-alert strong { font-weight: 500; color: var(--lagoon); }
.rules-alert.is-warn  { box-shadow: inset 3px 0 0 var(--honey); }
.rules-alert.is-info  { box-shadow: inset 3px 0 0 var(--sky); }
.rules-alert.is-block { box-shadow: inset 3px 0 0 var(--sunset); background: rgba(112,6,6,.06); }
.rules-alerts__foot { margin: .6rem 0 0; font-size: .8rem; color: var(--ink-faint); }

.rules-ok {
  background: var(--grass-s);
  border-left: 4px solid var(--pine);
  border-radius: var(--r);
  padding: .75rem 1.1rem;
  margin-bottom: 1.4rem;
  font-size: .9rem;
  color: var(--pine-d);
  font-weight: 500;
}

/* ============================================================
   ACTIVITIES section
   ============================================================ */
.activities-wrap { padding: 2rem clamp(1rem, 3vw, 2.5rem); max-width: 1500px; margin: 0 auto; }
.activities__head {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem;
  align-items: end; margin-bottom: 1.4rem;
}
.activities__title { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; margin: 0 0 .35rem; color: var(--lagoon); }
.activities__title em { font-style: normal; color: var(--pine); }
.activities__lede { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.activities__controls { display: flex; gap: .6rem; align-items: center; }
.activities__search {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: .6rem .9rem .6rem 2.3rem;
  border-radius: var(--r);
  font-size: .92rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  min-width: 240px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='7' cy='7' r='4.5' fill='none' stroke='%234B5462' stroke-width='1.5'/><path d='m10.5 10.5 3 3' stroke='%234B5462' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: .75rem center;
  background-size: 16px;
}
.activities__search:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(4,94,81,.15); }

.activities__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .8rem;
  margin-bottom: 1.2rem;
}
.activities__stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .85rem 1rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.activities__stat-n { font-size: 1.5rem; font-weight: 500; letter-spacing: -.015em; color: var(--lagoon); }
.activities__stat-l { font-size: .76rem; color: var(--ink-soft); }
.activities__stat-l strong { color: var(--pine); font-weight: 500; }

.activities__filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .8rem;
  margin-bottom: 1rem;
}
.filter-group { display: flex; flex-direction: column; gap: .3rem; }
.filter-group label { font-size: .72rem; font-weight: 500; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.filter-group select {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: .55rem .75rem;
  border-radius: var(--r);
  font-size: .9rem; color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
.filter-group select:focus { border-color: var(--pine); }

/* ============================================================
   SHOOT PAGE — sous-page dédiée
   ============================================================ */
.shootpage { padding: 1.8rem clamp(1.5rem, 4vw, 3rem); max-width: 1100px; margin: 0 auto; }
.shootpage__bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.2rem;
}
.shootpage__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--c, var(--pine));
  border-radius: var(--r-lg);
  padding: 1.5rem 1.8rem;
  box-shadow: var(--shadow-sm);
}
.shootpage__head.is-benl { --c: var(--c-benl); }
.shootpage__head.is-fr   { --c: var(--c-fr); }
.shootpage__head.is-de   { --c: var(--c-de); }
.shootpage__title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 500; line-height: 1.2;
  margin: .5rem 0 0; color: var(--lagoon);
}
.shootpage__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .8rem;
  margin: 1.2rem 0 1.6rem;
}

/* Formulaire d'édition complète du shoot */
.shootpage__editform {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 1.6rem;
}
.se-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.se-field--wide { grid-column: 1 / -1; }
.se-field > span {
  font-size: .72rem; font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .05em;
}
.se-field input,
.se-field select {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  font: inherit;
  font-weight: 500;
  color: var(--lagoon);
}
.se-field input:focus,
.se-field select:focus {
  outline: 2px solid var(--pine);
  outline-offset: -1px;
}
.shootpage__editform-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
}
.shootpage__meta > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .7rem .9rem;
}
.shootpage__meta dt { font-size: .72rem; font-weight: 500; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .2rem; }
.shootpage__meta dd { margin: 0; font-size: .95rem; font-weight: 500; color: var(--lagoon); }
.shootpage__dates-card {
  grid-column: span 2;
  min-width: 0;
}
.shootpage__dates-card.is-editing {
  border-color: rgba(4,94,81,.28);
  box-shadow: 0 0 0 3px rgba(4,94,81,.08);
}
.shootpage__date-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-width: 0;
}
.shootpage__date-summary > span {
  min-width: 0;
}
.shootpage__date-toggle {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--pine-d);
  padding: .25rem .55rem;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: 0;
}
.shootpage__date-toggle:hover,
.shootpage__date-toggle[aria-expanded="true"] {
  border-color: rgba(4,94,81,.35);
  background: var(--grass-s);
}
.shootpage__date-form {
  display: grid;
  gap: .7rem;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.shootpage__date-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}
.shootpage__date-form label {
  display: grid;
  gap: .35rem;
}
.shootpage__date-form label span {
  font-size: .68rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.shootpage__date-form input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--lagoon);
  padding: 0 .75rem;
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  color-scheme: light;
}
.shootpage__date-form input:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(4,94,81,.12);
}
.shootpage__date-form input::-webkit-calendar-picker-indicator {
  opacity: .65;
  cursor: pointer;
}
.shootpage__date-actions {
  display: flex;
  justify-content: flex-end;
  gap: .45rem;
  flex-wrap: wrap;
}
.shootpage__date-actions .btn {
  min-height: 36px;
  padding: .45rem .85rem;
  white-space: nowrap;
}
.shootpage__fit {
  padding: .15rem .5rem; border-radius: var(--r-pill);
  background: var(--grass-s); color: var(--pine-d);
  font-variant-numeric: tabular-nums;
}
.shootpage__fit.is-tight { background: var(--honey-s); color: #9A6B00; }
.shootpage__fit.is-over  { background: #FAE0E0; color: var(--sunset); }
.shootpage__section-title { font-size: 1.1rem; font-weight: 500; color: var(--lagoon); margin: 0 0 .9rem; }
.shootpage__noact {
  background: var(--surface-2); border-radius: var(--r);
  padding: 1.5rem; text-align: center; color: var(--ink-faint); font-style: italic;
}
.shootpage__actions {
  display: flex; justify-content: space-between; gap: .6rem;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.shoot-card__foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: .8rem;
  margin-top: .6rem; padding-top: .6rem;
  border-top: 1px solid var(--border);
}
.shoot-card__explore {
  font-size: .78rem; font-weight: 500;
  color: var(--pine-d);
  white-space: nowrap;
  transition: transform .15s var(--ease);
}
.shoot-card[role="button"] { cursor: pointer; }
.shoot-card:hover .shoot-card__explore { transform: translateX(3px); }

/* ============================================================
   SHOOT CALENDAR — vue colonnes horaires (call sheet)
   ============================================================ */
.modal:has(.shoot-cal) { max-width: 1000px; }

.cal2-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: .8rem;
}
.cal2-tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.cal2-tab {
  padding: .4rem .9rem;
  font-size: .85rem; font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  transition: all .15s var(--ease);
}
.cal2-tab:hover { border-color: var(--ink-faint); color: var(--ink); }
.cal2-tab.is-active { background: var(--pine); color: white; border-color: var(--pine); }

.shoot-cal__legend {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: .76rem; color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* Vue jour unique : la colonne occupe toute la largeur */
.cal2--single .cal2__day { min-width: 0; }
.cal2--single .cal2__block--shoot { padding: .5rem .7rem; }
.cal2--single .cal2__block-name { font-size: .92rem; }

.cal2-leg { display: inline-flex; align-items: center; gap: .35rem; }
.cal2-leg::before {
  content: ""; width: 11px; height: 11px; border-radius: 3px;
  background: var(--leg, var(--ink-faint));
}
.cal2-leg--shoot::before  { background: var(--pine); }
.cal2-leg--setup::before  { background: #F4C95A; }
.cal2-leg--travel::before { background: #9DB4F6; }
.cal2-leg--break::before  { background: #E89B9B; }

.cal2 {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow-x: auto;
  background: var(--surface);
}
.cal2__axis { flex: 0 0 56px; border-right: 1px solid var(--border); background: var(--surface-2); }
.cal2__axis-head { height: 56px; border-bottom: 1px solid var(--border); }
.cal2__axis-body { position: relative; }
.cal2__axis-h {
  position: absolute; right: 6px;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: .68rem;
  color: var(--ink-faint);
}

.cal2__day {
  flex: 1 1 0; min-width: 220px;
  border-right: 1px solid var(--border);
}
.cal2__day:last-child { border-right: 0; }
.cal2__day-head {
  height: 56px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; padding: 0 .9rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.cal2__day-head strong { font-size: .92rem; color: var(--lagoon); }
.cal2__day-date { display: block; font-size: .7rem; color: var(--ink-faint); text-transform: capitalize; }
.cal2__day-sum {
  font-family: var(--mono); font-size: .76rem; font-weight: 500;
  color: var(--pine-d);
  background: var(--grass-s);
  padding: .2rem .5rem; border-radius: var(--r-pill);
}
.cal2__day.is-over .cal2__day-sum { background: #FAE0E0; color: var(--sunset); }

.cal2__day-body { position: relative; }
.cal2__gridline {
  position: absolute; left: 0; right: 0;
  border-top: 1px solid var(--border);
  opacity: .55;
}
.cal2__empty {
  position: absolute; top: 40%; left: 0; right: 0;
  text-align: center; color: var(--ink-faint);
  font-style: italic; font-size: .8rem;
}

.cal2__block {
  position: absolute; left: 5px; right: 5px;
  border-radius: 7px;
  overflow: hidden;
  box-sizing: border-box;
}
/* Tournage : carte blanche avec accent catégorie */
.cal2__block--shoot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cc-ac, var(--pine));
  box-shadow: var(--shadow-sm);
  padding: .35rem .5rem;
  z-index: 2;
  min-height: 62px;          /* assez pour heure + nom (2 lignes) + chips */
  display: flex; flex-direction: column;
}
.cal2__block--shoot[data-cat="aquatic"]  { --cc-ac: #3651A1; }
.cal2__block--shoot[data-cat="sport"]    { --cc-ac: var(--pine); }
.cal2__block--shoot[data-cat="wellness"] { --cc-ac: #9B59C9; }
.cal2__block--shoot[data-cat="kids"]     { --cc-ac: #C49620; }
.cal2__block--shoot[data-cat="workshop"] { --cc-ac: #E08A6B; }
.cal2__block--shoot[data-cat="dining"]   { --cc-ac: var(--bark); }
.cal2__block--shoot[data-cat="nature"]   { --cc-ac: var(--pine); }
.cal2__block-time {
  font-family: var(--mono); font-size: .66rem;
  color: var(--ink-faint);
}
.cal2__block-name {
  font-size: .8rem; font-weight: 500; color: var(--lagoon);
  line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cal2__block-chips { display: flex; gap: .2rem; flex-wrap: wrap; margin-top: .2rem; }
.cal2-chip {
  font-size: .6rem; font-weight: 500;
  padding: .05rem .3rem; border-radius: 3px;
  background: var(--surface-2); color: var(--ink-soft);
  white-space: nowrap;
}
.cal2-chip--p1     { background: var(--sunset); color: white; }
.cal2-chip--p2     { background: var(--honey); color: var(--lagoon); }
.cal2-chip--backup { background: var(--ink-faint); color: white; }
.cal2-chip--aqua   { background: var(--sky-s); }
.cal2-chip--fixed  { background: #FBE2D6; }
.cal2-chip--golden { background: var(--honey-s); }
.cal2-chip--aud    { background: var(--grass-s); color: var(--pine-d); }

/* Setup / Transfert / Pause : bandeaux fins */
.cal2__block--setup  { background: repeating-linear-gradient(45deg,#FBF1D0 0 6px,#F6E8B8 6px 12px); }
.cal2__block--travel { background: #DCE4F7; }
.cal2__block--break  { background: #F4D9D9; }
.cal2__block--gap    { background: var(--surface-2); }
.cal2__block-mini {
  display: block; padding: .15rem .45rem;
  font-size: .64rem; font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal2__block--travel .cal2__block-mini { color: #3D5499; }
.cal2__block--break  .cal2__block-mini { color: #9A3A3A; }

.cal2-backups {
  border: 1px dashed var(--border-strong);
  border-radius: var(--r);
  padding: .8rem 1rem;
  background: var(--surface-2);
  margin-top: 1rem;
}
.cal2-backups strong { font-size: .85rem; color: var(--ink-soft); }
.cal2-backups ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.cal2-backups li { font-size: .85rem; color: var(--lagoon); margin: .2rem 0; }

/* ============================================================
   SHOOT EXPLORER
   ============================================================ */
.explorer-wrap { padding: 2rem clamp(1.5rem, 4vw, 3rem); max-width: 1320px; margin: 0 auto; }
.explorer__head {
  display: grid; grid-template-columns: 1fr auto;
  gap: 1.5rem; align-items: end; margin-bottom: 1.2rem;
}
.explorer__title { font-size: 1.5rem; font-weight: 500; margin: 0 0 .25rem; color: var(--lagoon); }
.explorer__title em { font-style: normal; color: var(--pine); }
.explorer__lede { color: var(--ink-soft); font-size: .9rem; margin: 0; }

.explorer__periods { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }

/* ===== Recherche Expedia-style ===== */
.explorer__searchhero {
  display: flex; justify-content: center;
  margin: 1.4rem 0 1.6rem;
}
.searchbox {
  position: relative;
  width: 100%;
  max-width: 620px;
}
.searchbox__icon {
  position: absolute; left: 1.2rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem; color: var(--ink-faint);
  pointer-events: none;
}
.searchbox__input {
  width: 100%;
  border: 2px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: 1rem 1.4rem 1rem 3rem;
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.searchbox__input:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 4px rgba(4,94,81,.14), var(--shadow);
}
.searchbox__input::placeholder { color: var(--ink-faint); }

.searchbox__suggest {
  position: absolute;
  top: calc(100% + .5rem); left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 40;
  max-height: 360px; overflow-y: auto;
}
.suggest__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .2rem .8rem;
  align-items: center;
  padding: .7rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.suggest__item:last-child { border-bottom: 0; }
.suggest__item:hover,
.suggest__item.is-active { background: var(--grass-s); }
.suggest__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c, var(--pine)); grid-row: span 2;
}
.suggest__item.is-benl .suggest__dot { background: var(--c-benl); }
.suggest__item.is-fr   .suggest__dot { background: var(--c-fr); }
.suggest__item.is-de   .suggest__dot { background: var(--c-de); }
.suggest__title {
  font-size: .92rem; font-weight: 500; color: var(--lagoon);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.suggest__title mark { background: var(--honey); color: var(--lagoon); padding: 0 .1em; border-radius: 2px; }
.suggest__when { font-size: .78rem; color: var(--ink-faint); white-space: nowrap; grid-row: span 2; }
.suggest__sub { font-size: .76rem; color: var(--ink-soft); grid-column: 2; }
.suggest__empty { padding: 1rem; text-align: center; color: var(--ink-faint); font-style: italic; font-size: .88rem; }
.suggest__hint {
  padding: .5rem 1rem; font-size: .72rem; color: var(--ink-faint);
  background: var(--surface-2); border-top: 1px solid var(--border);
  font-family: var(--mono);
}

/* ===== Timeline façon Facebook ===== */
.fb-timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: .5rem 0 2rem;
}
.fb-timeline::before {
  content: "";
  position: absolute;
  left: 140px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.fb-tl__month {
  position: relative;
  display: flex; align-items: center;
  margin: 1.6rem 0 .9rem;
}
.fb-tl__month-label {
  width: 124px;
  text-align: right;
  padding-right: 1.6rem;
  font-family: var(--mono);
  font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-faint);
}
.fb-tl__month-bar {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: .6rem;
}
.fb-tl__item {
  position: relative;
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 0;
  margin-bottom: .9rem;
}
.fb-tl__date {
  text-align: right;
  padding-right: 2rem;
  padding-top: .3rem;
}
.fb-tl__date-d { font-size: 1.4rem; font-weight: 500; color: var(--lagoon); line-height: 1; }
.fb-tl__date-m { font-size: .72rem; color: var(--ink-faint); font-family: var(--mono); text-transform: uppercase; }
.fb-tl__dot {
  position: absolute;
  left: 134px; top: .55rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--c, var(--pine));
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
  z-index: 1;
}
.fb-tl__item.is-benl .fb-tl__dot { background: var(--c-benl); }
.fb-tl__item.is-fr   .fb-tl__dot { background: var(--c-fr); }
.fb-tl__item.is-de   .fb-tl__dot { background: var(--c-de); }
.fb-tl__item.is-current .fb-tl__dot {
  background: var(--honey);
  box-shadow: 0 0 0 1px var(--honey), 0 0 0 6px rgba(255,202,85,.3);
}
.fb-tl__card {
  margin-left: 2.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow .15s, transform .15s var(--ease), border-color .15s;
  position: relative;
  overflow: hidden;
}
.fb-tl__card::before {
  content: "";
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 4px; background: var(--c, var(--pine));
}
.fb-tl__item.is-benl .fb-tl__card::before { background: var(--c-benl); }
.fb-tl__item.is-fr   .fb-tl__card::before { background: var(--c-fr); }
.fb-tl__item.is-de   .fb-tl__card::before { background: var(--c-de); }
.fb-tl__card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.fb-tl__item.is-past .fb-tl__card { opacity: .72; }
.fb-tl__card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: .8rem; margin-bottom: .5rem;
}
.fb-tl__card-title { font-size: 1rem; font-weight: 500; color: var(--lagoon); margin: 0; line-height: 1.3; }
.fb-tl__card-meta { display: flex; flex-wrap: wrap; gap: .4rem .7rem; font-size: .82rem; color: var(--ink-soft); align-items: center; }
.fb-tl__card-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: .8rem; margin-top: .6rem; padding-top: .6rem;
  border-top: 1px solid var(--border);
  font-size: .78rem;
}
.fb-tl__card-author { color: var(--ink-faint); }
.fb-tl__card-explore { color: var(--pine-d); font-weight: 500; }
.fb-tl__card:hover .fb-tl__card-explore { text-decoration: underline; }
.fb-tl__empty { text-align: center; color: var(--ink-faint); font-style: italic; padding: 3rem 1rem; }

@media (max-width: 640px) {
  .fb-timeline::before { left: 8px; }
  .fb-tl__item { grid-template-columns: 1fr; }
  .fb-tl__date { text-align: left; padding-left: 2rem; padding-right: 0; }
  .fb-tl__month-label { width: auto; text-align: left; padding-left: 2rem; }
  .fb-tl__dot { left: 2px; }
  .fb-tl__card { margin-left: 2rem; }
}
.period-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: .88rem; font-weight: 500;
  color: var(--ink-soft);
  transition: all .15s var(--ease);
}
.period-pill:hover { border-color: var(--ink-faint); color: var(--ink); }
.period-pill.is-active { border-color: var(--pine); background: var(--grass-s); color: var(--pine-d); }
.period-pill__n {
  font-size: .74rem; font-variant-numeric: tabular-nums;
  background: var(--surface-2); color: var(--ink-faint);
  padding: .08rem .42rem; border-radius: var(--r-pill);
}
.period-pill.is-active .period-pill__n { background: rgba(255,255,255,.65); color: var(--pine-d); }

.explorer__filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .8rem; margin-bottom: 1.4rem;
}
.explorer__grid { margin-top: 0; }

.shoot-card__status {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-size: .64rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .18rem .5rem; border-radius: var(--r-pill);
}
.shoot-card__status--past    { background: var(--surface-2); color: var(--ink-faint); }
.shoot-card__status--current { background: var(--honey); color: var(--lagoon); }
.shoot-card__status--future  { background: var(--grass-s); color: var(--pine-d); }
.shoot-card.is-past { opacity: .72; }

/* ============================================================
   DELETE CONFIRM — phrase à retaper
   ============================================================ */
.delete-warn { color: var(--sunset); font-weight: 500; margin: 0 0 .8rem; }
.delete-shoot-name { font-size: 1rem; font-weight: 500; color: var(--lagoon); margin: 0 0 1rem; }
.delete-instruction { color: var(--ink-soft); font-size: .9rem; margin: 0 0 .5rem; }
.delete-phrase {
  font-family: var(--mono);
  font-size: .95rem; font-weight: 500;
  color: var(--lagoon);
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r);
  padding: .7rem .9rem;
  margin: 0 0 .8rem;
  user-select: all;
}
.delete-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: .7rem .9rem;
  font-size: 1rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.delete-input:focus { border-color: var(--sunset); box-shadow: 0 0 0 3px rgba(112,6,6,.12); }
.delete-input.is-valid { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(4,94,81,.14); }

/* ============================================================
   RULES — guidelines métier
   ============================================================ */
.rules-wrap { padding: 2rem clamp(1.5rem, 4vw, 3rem); max-width: 880px; margin: 0 auto; }
.rules__head { margin-bottom: 1.4rem; }
.rules__title { font-size: 1.5rem; font-weight: 500; margin: 0 0 .25rem; color: var(--lagoon); }
.rules__title em { font-style: normal; color: var(--pine); }
.rules__lede { color: var(--ink-soft); font-size: .9rem; margin: 0; max-width: 60ch; }
.rules__list { display: flex; flex-direction: column; gap: .8rem; }

.rules__tabs {
  display: flex; gap: .3rem;
  background: var(--surface-2);
  border-radius: var(--r);
  padding: .3rem;
  margin-bottom: 1.2rem;
}
.rules-tab {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1rem;
  font-size: .9rem; font-weight: 500;
  color: var(--ink-soft);
  border-radius: 7px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.rules-tab.is-active { background: var(--surface); color: var(--lagoon); box-shadow: var(--shadow-sm); }
.rules-tab:hover:not(.is-active) { color: var(--ink); }
.rules-tab__n {
  font-size: .72rem; font-variant-numeric: tabular-nums;
  background: var(--surface-2); color: var(--ink-faint);
  padding: .06rem .4rem; border-radius: var(--r-pill);
}
.rules-tab.is-active .rules-tab__n { background: var(--grass-s); color: var(--pine-d); }
.rules-empty { text-align: center; color: var(--ink-faint); font-style: italic; padding: 2rem; }

.rule-card__cat {
  font-size: .64rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .07em;
  padding: .12rem .45rem; border-radius: var(--r-pill);
  margin-left: .5rem; vertical-align: middle;
}
.rule-card__cat--legal     { background: #E2E8FE; color: #3651A1; }
.rule-card__cat--practical { background: var(--grass-s); color: var(--pine-d); }

.rule-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .3rem 1rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--rule-c, var(--ink-faint));
  border-radius: var(--r-lg);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: opacity .15s;
}
.rule-card[data-sev="warn"]  { --rule-c: var(--honey); }
.rule-card[data-sev="info"]  { --rule-c: var(--sky); }
.rule-card[data-sev="block"] { --rule-c: var(--sunset); }
.rule-card.is-off { opacity: .55; --rule-c: var(--border-strong); }

.rule-card__icon {
  grid-row: span 2;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 1.1rem;
}
.rule-card__title { font-size: 1rem; font-weight: 500; color: var(--lagoon); margin: 0; }
.rule-card__sev {
  font-size: .64rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .07em;
  padding: .12rem .45rem; border-radius: var(--r-pill);
  margin-left: .5rem; vertical-align: middle;
  background: var(--surface-2); color: var(--ink-soft);
}
.rule-card[data-sev="warn"]  .rule-card__sev { background: var(--honey-s); color: #9A6B00; }
.rule-card[data-sev="info"]  .rule-card__sev { background: var(--sky-s);   color: #3651A1; }
.rule-card[data-sev="block"] .rule-card__sev { background: #FAE0E0;        color: var(--sunset); }
.rule-card__why {
  grid-column: 2;
  font-size: .88rem; color: var(--ink-soft);
  line-height: 1.5; margin: .3rem 0 0;
}

/* Toggle switch */
.rule-toggle {
  grid-row: span 2;
  position: relative;
  width: 42px; height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.rule-toggle input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.rule-toggle__track {
  position: absolute; inset: 0;
  background: var(--border-strong);
  border-radius: var(--r-pill);
  transition: background .15s;
}
.rule-toggle__track::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: white; border-radius: 50%;
  transition: transform .15s var(--ease);
  box-shadow: var(--shadow-sm);
}
.rule-toggle input:checked + .rule-toggle__track { background: var(--pine); }
.rule-toggle input:checked + .rule-toggle__track::after { transform: translateX(18px); }

/* ============================================================
   BANK HOLIDAYS
   ============================================================ */
.holidays-wrap { padding: 2rem clamp(1rem, 3vw, 2.5rem); max-width: 900px; margin: 0 auto; }
.holidays__head {
  display: grid; grid-template-columns: 1fr auto;
  gap: 1.5rem; align-items: end; margin-bottom: 1.4rem;
}
.holidays__title { font-size: 1.5rem; font-weight: 500; margin: 0 0 .25rem; color: var(--lagoon); }
.holidays__title em { font-style: normal; color: var(--pine); }
.holidays__lede { color: var(--ink-soft); font-size: .9rem; margin: 0; }

.holidays__tabs {
  display: flex; gap: .3rem;
  background: var(--surface-2);
  border-radius: var(--r);
  padding: .3rem;
  margin-bottom: 1.2rem;
}
.holidays__tab {
  flex: 1;
  padding: .6rem 1rem;
  font-size: .9rem; font-weight: 500;
  color: var(--ink-soft);
  border-radius: 7px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.holidays__tab.is-active {
  background: var(--surface);
  color: var(--lagoon);
  box-shadow: var(--shadow-sm);
}
.holidays__tab:hover:not(.is-active) { color: var(--ink); }

.holidays__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.hol-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: .6rem 1.2rem;
  border-bottom: 1px solid var(--border);
}
.hol-row:last-child { border-bottom: 0; }
.hol-row--past { opacity: .5; }
.hol-row__date input,
.hol-add-row input[type="date"] {
  border: 1px solid var(--border); border-radius: 6px;
  padding: .42rem .5rem; font-family: var(--mono); font-size: .82rem;
  background: var(--surface);
}
.hol-row__label input {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  padding: .45rem .5rem;
  font-size: .95rem;
  transition: border-color .15s, background .15s;
}
.hol-row__label input:hover  { border-color: var(--border); }
.hol-row__label input:focus  { border-color: var(--pine); background: var(--surface); outline: none; box-shadow: 0 0 0 3px rgba(4,94,81,.12); }
.hol-row__del {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--ink-faint);
  font-size: 1.1rem;
  transition: background .15s, color .15s;
}
.hol-row__del:hover { background: var(--sunset); color: white; }
.hol-add-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: .85rem 1.2rem;
  background: var(--surface-2);
}
.hol-add-row input[type="text"] {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .5rem .6rem;
  font-size: .9rem;
  background: var(--surface);
}
.hol-empty { padding: 2rem; text-align: center; color: var(--ink-faint); font-style: italic; }
.holidays__panel-foot {
  padding: .8rem 1.2rem;
  font-size: .8rem; color: var(--ink-faint);
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

/* ====== Locale flag selector ====== */
.locale-flags {
  position: relative;
  display: inline-flex;
}
.locale-flags__btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .55rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .95rem;
  transition: border-color .15s, background .15s;
}
.locale-flags__btn:hover { border-color: var(--ink-faint); background: var(--surface-2); }
.locale-flags__flag { font-size: 1.05rem; line-height: 1; }
.locale-flags__caret { font-size: .6rem; color: var(--ink-faint); }
.locale-flags__menu {
  position: absolute; top: calc(100% + 4px); right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: .25rem;
  display: none;
  flex-direction: column;
  min-width: 150px;
  z-index: 60;
}
.locale-flags.is-open .locale-flags__menu { display: flex; }
.locale-flags__item {
  display: flex; align-items: center; gap: .55rem;
  padding: .5rem .6rem;
  border-radius: 7px;
  font-size: .9rem;
  color: var(--ink);
  transition: background .15s;
  text-align: left;
}
.locale-flags__item:hover { background: var(--surface-2); }
.locale-flags__item.is-active { background: var(--grass-s); color: var(--pine-d); font-weight: 500; }

/* View toggle */
.view-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .2rem;
  gap: .15rem;
}
.view-toggle__btn {
  padding: .42rem .8rem;
  font-size: .82rem; font-weight: 500;
  color: var(--ink-soft);
  border-radius: 6px;
  transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.view-toggle__btn.is-active {
  background: var(--surface);
  color: var(--lagoon);
  box-shadow: var(--shadow-sm);
}

/* Sous-filtre catégories en pills */
.cat-pills {
  display: flex; flex-wrap: wrap; gap: .45rem;
  margin-bottom: 1rem;
}
.cat-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .85rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: .85rem; font-weight: 500;
  color: var(--ink-soft);
  transition: all .15s var(--ease);
}
.cat-pill:hover { border-color: var(--ink-faint); color: var(--ink); }
.cat-pill__n {
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  background: var(--surface-2);
  color: var(--ink-faint);
  padding: .08rem .4rem;
  border-radius: var(--r-pill);
}

/* Icône pastel de catégorie */
.cat-ic {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ic-bg, var(--surface-2));
  font-size: .72rem;
  line-height: 1;
  margin-right: .35rem;
  vertical-align: -.3em;
}
.cat-pill[data-cat="aquatic"]  .cat-ic,
.actcell__cat[data-cat="aquatic"]  .cat-ic { --ic-bg: #DDE6FB; }
.cat-pill[data-cat="sport"]    .cat-ic,
.actcell__cat[data-cat="sport"]    .cat-ic { --ic-bg: #DCF1D4; }
.cat-pill[data-cat="wellness"] .cat-ic,
.actcell__cat[data-cat="wellness"] .cat-ic { --ic-bg: #EEDFF4; }
.cat-pill[data-cat="kids"]     .cat-ic,
.actcell__cat[data-cat="kids"]     .cat-ic { --ic-bg: #FFEFC4; }
.cat-pill[data-cat="workshop"] .cat-ic,
.actcell__cat[data-cat="workshop"] .cat-ic { --ic-bg: #FBE2D6; }
.cat-pill[data-cat="dining"]   .cat-ic,
.actcell__cat[data-cat="dining"]   .cat-ic { --ic-bg: #EDE2CC; }
.cat-pill[data-cat="nature"]   .cat-ic,
.actcell__cat[data-cat="nature"]   .cat-ic { --ic-bg: #DCF1D4; }
.cat-pill[data-cat="indoor"]   .cat-ic,
.actcell__cat[data-cat="indoor"]   .cat-ic { --ic-bg: #E6E7EA; }
.cat-pill[data-cat="outdoor"]  .cat-ic,
.actcell__cat[data-cat="outdoor"]  .cat-ic { --ic-bg: #DCF1D4; }

/* Durée éditable dans le tableau Activités */
.actcell__hours-input {
  width: 64px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .32rem .45rem;
  font-size: .88rem; font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  background: var(--surface);
  color: var(--lagoon);
  transition: border-color .15s, box-shadow .15s;
}
.actcell__hours-input:hover  { border-color: var(--ink-faint); }
.actcell__hours-input:focus  { border-color: var(--pine); outline: none; box-shadow: 0 0 0 3px rgba(4,94,81,.14); }
.actcell__hours-input:disabled { opacity: .5; }
.actcell__hours-unit { font-size: .78rem; color: var(--ink-faint); margin-left: .25rem; }
.cat-pill.is-active {
  border-color: var(--pill-c, var(--pine));
  background: var(--pill-soft, var(--grass-s));
  color: var(--pill-ink, var(--pine-d));
}
.cat-pill.is-active .cat-pill__n { background: rgba(255,255,255,.6); color: var(--pill-ink, var(--pine-d)); }
.cat-pill[data-cat="aquatic"]  { --pill-c: var(--sky);   --pill-soft: var(--sky-s);   --pill-ink: #3651A1; }
.cat-pill[data-cat="sport"]    { --pill-c: var(--pine);  --pill-soft: var(--grass-s); --pill-ink: var(--pine-d); }
.cat-pill[data-cat="wellness"] { --pill-c: #9B59C9;      --pill-soft: #F2E8F5;        --pill-ink: #6F3B98; }
.cat-pill[data-cat="kids"]     { --pill-c: var(--honey); --pill-soft: var(--honey-s); --pill-ink: #B58420; }
.cat-pill[data-cat="workshop"] { --pill-c: #E08A6B;      --pill-soft: #FFE4D9;        --pill-ink: #B04F3F; }
.cat-pill[data-cat="dining"]   { --pill-c: var(--bark);  --pill-soft: #ECDFCB;        --pill-ink: var(--bark); }
.cat-pill[data-cat="nature"]   { --pill-c: var(--pine);  --pill-soft: var(--grass-s); --pill-ink: var(--pine-d); }
.cat-pill[data-cat="indoor"]   { --pill-c: #8A8F9C;      --pill-soft: #E5E5E8;        --pill-ink: #4B5462; }
.cat-pill[data-cat="outdoor"]  { --pill-c: var(--pine);  --pill-soft: var(--grass-s); --pill-ink: var(--pine-d); }

.activities__content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* Park accordion */
.park-group {
  border-bottom: 1px solid var(--border);
}
.park-group:last-child { border-bottom: 0; }
.park-group__header {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.4rem;
  background: var(--surface);
  cursor: pointer;
  transition: background .15s;
  width: 100%;
  text-align: left;
  position: sticky; top: 0; z-index: 3;
}
.park-group__header:hover { background: var(--surface-2); }
.park-group.is-open .park-group__header { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.park-group__caret {
  font-size: .85rem; color: var(--ink-faint);
  transition: transform .2s var(--ease);
  width: 16px; display: inline-block;
}
.park-group.is-open .park-group__caret { transform: rotate(90deg); }
.park-group__code {
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  padding: .25rem .55rem;
  border-radius: 5px;
  background: var(--c-soft); color: var(--c-ink);
  letter-spacing: .04em;
}
.park-group__name { font-size: 1rem; font-weight: 500; color: var(--lagoon); }
.park-group__meta { font-size: .82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.park-group__meta b { color: var(--lagoon); font-weight: 500; }
.park-group__src {
  font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .2rem .45rem;
  border-radius: 5px;
  background: var(--src-bg, var(--surface-2));
  color: var(--src-fg, var(--ink-soft));
}
.park-group__src[data-src="scraped"]          { --src-bg: var(--grass-s); --src-fg: var(--pine-d); }
.park-group__src[data-src="scraped-de"]       { --src-bg: var(--honey-s); --src-fg: #B58420; }
.park-group__src[data-src="generic-fallback"] { --src-bg: #FAE0E0;        --src-fg: var(--sunset); }
.park-group__body { display: none; }
.park-group.is-open .park-group__body { display: block; }

.activities__table-wrap {
  background: var(--surface);
  overflow: auto;
}
.activities__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.activities__table thead th {
  position: sticky; top: 0;
  background: var(--surface-2);
  text-align: left;
  font-weight: 500;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  z-index: 1;
}
.activities__table tbody td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.activities__table tbody tr:hover { background: var(--surface-2); }
.activities__table tbody tr.is-aqua { background: rgba(157,180,246,.08); }
.activities__table tbody tr.is-aqua:hover { background: rgba(157,180,246,.15); }

.actcell__park {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 500;
  white-space: nowrap;
}
.actcell__park-code {
  background: var(--c-soft, var(--surface-2));
  color: var(--c-ink, var(--ink-soft));
  padding: .2rem .45rem;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
}
.actcell__name { font-weight: 500; color: var(--lagoon); }
.actcell__cat {
  display: inline-flex; padding: .18rem .5rem;
  font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em;
  border-radius: 4px;
  background: var(--chip-bg, var(--surface-2));
  color: var(--chip-fg, var(--ink-soft));
}
.actcell__cat[data-cat="aquatic"]  { --chip-bg: var(--sky-s);   --chip-fg: #3651A1; }
.actcell__cat[data-cat="sport"]    { --chip-bg: var(--grass-s); --chip-fg: var(--pine-d); }
.actcell__cat[data-cat="wellness"] { --chip-bg: #F2E8F5;        --chip-fg: #6F3B98; }
.actcell__cat[data-cat="kids"]     { --chip-bg: var(--honey-s); --chip-fg: #B58420; }
.actcell__cat[data-cat="workshop"] { --chip-bg: #FFE4D9;        --chip-fg: #B04F3F; }
.actcell__cat[data-cat="dining"]   { --chip-bg: #ECDFCB;        --chip-fg: var(--bark); }
.actcell__cat[data-cat="nature"]   { --chip-bg: var(--grass-s); --chip-fg: var(--pine-d); }
.actcell__cat[data-cat="indoor"]   { --chip-bg: #E5E5E8;        --chip-fg: #4B5462; }
.actcell__cat[data-cat="outdoor"]  { --chip-bg: var(--grass-s); --chip-fg: var(--pine-d); }

.actcell__tags { display: flex; gap: .25rem; flex-wrap: wrap; }
.actcell__tag {
  font-size: .68rem; font-weight: 400;
  padding: .12rem .42rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.actcell__hours { font-weight: 500; color: var(--lagoon); font-variant-numeric: tabular-nums; }
.actcell__source {
  font-size: .7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .2rem .45rem;
  border-radius: 5px;
  background: var(--src-bg, var(--surface-2));
  color: var(--src-fg, var(--ink-soft));
  white-space: nowrap;
}
.actcell__source[data-src="scraped"]          { --src-bg: var(--grass-s); --src-fg: var(--pine-d); }
.actcell__source[data-src="scraped-de"]       { --src-bg: var(--honey-s); --src-fg: #B58420; }
.actcell__source[data-src="generic-fallback"] { --src-bg: #FAE0E0;        --src-fg: var(--sunset); }

.activities__empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--ink-faint);
  font-style: italic;
}

/* Card view (par parc) */
.park-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  padding: 1rem;
}
.park-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s var(--ease), border-color .15s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.park-card::before {
  content: "";
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 4px; background: var(--c, var(--pine));
}
.park-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.park-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; margin-bottom: .7rem; }
.park-card__title-block { display: flex; flex-direction: column; gap: .15rem; }
.park-card__name { font-size: 1rem; font-weight: 500; color: var(--lagoon); margin: 0; }
.park-card__code { font-family: var(--mono); font-size: .76rem; color: var(--ink-faint); letter-spacing: .04em; }
.park-card__meta { font-size: .82rem; color: var(--ink-soft); margin-bottom: .8rem; }
.park-card__meta b { color: var(--lagoon); font-weight: 500; }
.park-card__cats {
  display: flex; gap: .3rem; flex-wrap: wrap;
  margin-bottom: .8rem;
}
.park-card__cat {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .5rem;
  font-size: .7rem; font-weight: 500;
  border-radius: 5px;
  background: var(--chip-bg, var(--surface-2));
  color: var(--chip-fg, var(--ink-soft));
}
.park-card__cat[data-cat="aquatic"]  { --chip-bg: var(--sky-s);   --chip-fg: #3651A1; }
.park-card__cat[data-cat="sport"]    { --chip-bg: var(--grass-s); --chip-fg: var(--pine-d); }
.park-card__cat[data-cat="wellness"] { --chip-bg: #F2E8F5;        --chip-fg: #6F3B98; }
.park-card__cat[data-cat="kids"]     { --chip-bg: var(--honey-s); --chip-fg: #B58420; }
.park-card__cat[data-cat="workshop"] { --chip-bg: #FFE4D9;        --chip-fg: #B04F3F; }
.park-card__cat[data-cat="dining"]   { --chip-bg: #ECDFCB;        --chip-fg: var(--bark); }
.park-card__cat[data-cat="nature"]   { --chip-bg: var(--grass-s); --chip-fg: var(--pine-d); }
.park-card__cat[data-cat="indoor"]   { --chip-bg: #E5E5E8;        --chip-fg: #4B5462; }
.park-card__samples {
  font-size: .85rem; color: var(--ink-soft);
  border-top: 1px solid var(--border);
  padding-top: .7rem;
  line-height: 1.55;
}
.park-card__samples b { color: var(--lagoon); font-weight: 500; }

/* Refresh activities button in topbar */
.topbar__refresh {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .42rem .8rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  transition: all .15s;
}
.topbar__refresh:hover { color: var(--pine-d); border-color: var(--pine); background: var(--grass-s); }
.topbar__refresh small { font-size: .65rem; color: var(--ink-faint); }
.summary dt { font-weight: 500; color: var(--ink-soft); font-size: .82rem; }
.summary dd { margin: 0; font-weight: 500; color: var(--lagoon); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-wrap {
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  max-width: 1500px;
  margin: 0 auto;
  --day-w: 30px;
  --label-w: 130px;
}
.timeline-wrap[data-timeline-zoom="week"]  { --day-w: 16px; }
.timeline-wrap[data-timeline-zoom="month"] { --day-w: 8px;  }

.timeline__head {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 1rem 1.5rem; align-items: end;
  margin-bottom: 1rem;
}
.timeline__head h2 { font-size: 1.5rem; font-weight: 500; letter-spacing: 0; margin: 0 0 .25rem; color: var(--lagoon); }
.timeline__head h2 em { font-style: normal; color: var(--pine); }
.timeline__lede { color: var(--ink-soft); font-size: .88rem; margin: 0; }

.legend { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.legend__chip {
  font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .22rem .55rem;
  border-radius: var(--r-pill);
  background: var(--c-soft, var(--surface-2));
  color: var(--c-ink, var(--ink-soft));
}
.legend__chip--holiday {
  background: rgba(232,108,108,.16);
  color: var(--sunset);
}
.timeline__toolbar { display: flex; gap: .6rem; align-items: center; }
.timeline__controls { display: flex; gap: .2rem; }
.timeline__controls .btn { padding: .5rem .8rem; font-size: .85rem; }

/* Filtres timeline — deux menus déroulants (marché + parc) au-dessus du scheduler */
.tl-parkfilter {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 1.1rem;
  padding: .8rem 1rem;
  margin-bottom: .55rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.tl-filter { display: flex; flex-direction: column; gap: .3rem; }
.tl-filter__label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-faint); font-weight: 600;
}
.tl-filter__select {
  font: inherit; font-size: .85rem;
  padding: .42rem .7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  min-width: 190px;
  transition: border-color .12s var(--ease);
}
.tl-filter__select:hover { border-color: var(--ink-soft); }
.tl-filter__select:focus { outline: 2px solid var(--lagoon); outline-offset: 1px; }

.timeline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  position: relative;
}

/* ====== Scrubber annuel ====== */
.timeline-scrubber {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: .5rem;
  align-items: center;
  padding: .6rem .8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-sm);
  user-select: none;
}
.scrubber__year-btn {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 1rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.scrubber__year-btn:hover { background: var(--pine); color: white; }
.scrubber__year {
  font-family: var(--mono);
  font-size: .82rem; font-weight: 500;
  color: var(--lagoon);
  padding: 0 .4rem;
}
.scrubber__track {
  position: relative;
  height: 38px;
  background: var(--surface-2);
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
}
.scrubber__months {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(12, 1fr);
}
.scrubber__month {
  border-right: 1px solid rgba(0,25,47,.06);
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .2rem 0 0 .35rem;
  position: relative;
}
.scrubber__month:last-child { border-right: 0; }
.scrubber__month--holiday {
  background: repeating-linear-gradient(45deg, rgba(248,218,218,.5) 0 3px, rgba(240,197,197,.5) 3px 6px);
}
.scrubber__shoots {
  position: absolute; inset: 0;
  pointer-events: none;
}
.scrubber__shoot-mark {
  position: absolute;
  bottom: 4px;
  height: 5px;
  border-radius: 2px;
  background: var(--c, var(--pine));
  opacity: .85;
  min-width: 2px;
}
.scrubber__today {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--honey);
  z-index: 2;
  pointer-events: none;
}
.scrubber__today::before {
  content: "";
  position: absolute;
  top: -3px; left: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--honey);
}

.scrubber__handle {
  position: absolute;
  top: 0; bottom: 0;
  background: rgba(4,94,81,.18);
  border: 2px solid var(--pine);
  border-radius: 6px;
  cursor: grab;
  z-index: 3;
  transition: background .12s;
  min-width: 24px;
}
.scrubber__handle:hover { background: rgba(4,94,81,.28); }
.scrubber__handle.is-dragging { cursor: grabbing; background: rgba(4,94,81,.32); transition: none; }
.scrubber__handle::before,
.scrubber__handle::after {
  content: "";
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 3px; height: 12px;
  background: var(--pine);
  border-radius: 2px;
}
.scrubber__handle::before { left: 4px; }
.scrubber__handle::after  { right: 4px; }
.tl__months {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--surface);
  z-index: 5;
}
.tl__month-label {
  background: var(--surface-2);
  padding: 0 1rem;
  font-weight: 500; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-soft);
  display: flex; align-items: center;
  border-right: 1px solid var(--border);
  height: 40px;
  position: sticky; left: 0; z-index: 6;
  min-width: var(--label-w);
  width: var(--label-w);
}
.tl__month {
  padding: 0 .8rem;
  font-weight: 500; font-size: .85rem;
  display: flex; align-items: center;
  border-right: 1px solid var(--border);
  height: 40px;
  background: var(--surface);
  color: var(--lagoon);
  overflow: hidden; white-space: nowrap;
}
.tl__month em { font-style: normal; color: var(--pine); margin-right: .25em; }

.tl__row {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--day-w);
  align-items: center;
  border-bottom: 1px solid var(--border);
  height: 72px;
}
.tl__row--market {
  background: var(--surface-2);
  height: 44px;
  font-weight: 500;
}
.tl__row--park { height: 60px; }
.tl__row--country { background: var(--surface); }
.tl__row:last-child { border-bottom: 0; }
.tl__label--country {
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .05em;
  align-items: center;
}
.tl__mini-flag {
  display: inline-block;
  width: 20px; height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(0,0,0,.10);
  margin-right: .3rem;
}
.tl__mini-flag--fr   { background: linear-gradient(90deg,  #002395 33.3%, #fff 33.3% 66.6%, #ED2939 66.6%); }
.tl__mini-flag--de   { background: linear-gradient(180deg, #000    33.3%, #DD0000 33.3% 66.6%, #FFCE00 66.6%); }
.tl__mini-flag--benl { background: linear-gradient(180deg, #000    33.3%, #FFCD00 33.3% 66.6%, #FF0000 66.6%); }
.tl__label {
  position: sticky; left: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 0 .8rem;
  font-size: .76rem; font-weight: 500;
  letter-spacing: .04em;
  color: var(--c-ink, var(--ink-soft));
  width: var(--label-w); height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 4;
  min-width: var(--label-w);
  gap: .4rem;
}
.tl__label--market {
  background: var(--surface-2);
  text-transform: uppercase;
  font-size: .72rem;
  cursor: pointer;
  transition: background .15s;
}
.tl__label--market:hover { background: var(--border); }
.tl__label--park {
  padding-left: 2.2rem;
  font-weight: 400; text-transform: none;
  background: var(--surface);
  color: var(--ink-soft);
}
.tl__label small {
  color: var(--ink-faint); font-weight: 400; font-family: var(--mono);
  font-size: .7rem;
}
.tl__caret { font-size: .65rem; color: var(--ink-faint); transition: transform .2s var(--ease); display: inline-block; }
.tl__row--market[data-open="true"] .tl__caret { transform: rotate(90deg); }
.tl__day {
  height: 100%;
  border-right: 1px solid rgba(220,215,203,.4);
  font-size: .65rem; font-weight: 500;
  color: var(--ink-faint);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 6px; position: relative;
}
/* Aplats légers — pas de hachures : le planning doit rester propre et lisible. */
.tl__day--weekend { background: rgba(0,25,47,.035); }
.tl__day--today { background: var(--honey-s); }
.tl__day--today .tl__num { color: #B58420; font-weight: 700; }
.tl__day--holiday { background: rgba(232,108,108,.11); }
.tl__day--holiday .tl__num { color: var(--sunset); }
.tl__day--bank { background: rgba(255,196,77,.26); }
.tl__day--bank .tl__num { color: #9A6B00; font-weight: 700; }
/* Liseré aux bornes d'une période de vacances → la zone reste délimitée sans saturer. */
.tl__day--holiday + .tl__day:not(.tl__day--holiday) { box-shadow: inset 1px 0 0 rgba(232,108,108,.35); }
.tl__day:not(.tl__day--holiday) + .tl__day--holiday { box-shadow: inset 1px 0 0 rgba(232,108,108,.35); }

/* Hide day numbers at high zoom out */
.timeline-wrap[data-timeline-zoom="week"]  .tl__num { display: none; }
.timeline-wrap[data-timeline-zoom="month"] .tl__num { display: none; }
.timeline-wrap[data-timeline-zoom="week"]  .tl__day { font-size: 0; }
.timeline-wrap[data-timeline-zoom="month"] .tl__day { font-size: 0; }
.timeline-wrap[data-timeline-zoom="month"] .tl__row { height: 56px; }
.timeline-wrap[data-timeline-zoom="month"] .tl__row--park { height: 44px; }

/* Today vertical line spanning the whole scheduler */
.tl__today-line {
  position: absolute;
  top: 40px; /* below months header */
  bottom: 0;
  width: 2px;
  background: var(--honey);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(184,132,32,.35);
}
.tl__today-line::before {
  content: "";
  position: absolute;
  top: -6px; left: -4px;
  width: 10px; height: 10px;
  background: var(--honey);
  border-radius: 50%;
}

.tl__shoot {
  position: absolute;
  top: 14px; bottom: 14px;
  left: 0; right: 3px;
  border-radius: 6px;
  background: var(--c, var(--pine));
  color: white;
  padding: 0 .55rem;
  display: flex; align-items: center; gap: .3rem;
  font-size: .78rem; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,25,47,.15);
  transition: transform .15s var(--ease), box-shadow .15s;
  cursor: pointer;
  letter-spacing: 0;
}
.tl__shoot:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,25,47,.25); }
.tl__shoot__type {
  font-size: .62rem; font-weight: 700;
  opacity: .85;
  background: rgba(255,255,255,.22);
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px;
  flex-shrink: 0;
}
.tl__shoot__park { font-weight: 600; flex-shrink: 0; opacity: .9; }
.tl__shoot__title { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tl__row--park .tl__shoot   { top: 10px; bottom: 10px; font-size: .74rem; }
.tl__row--market .tl__shoot { top: 8px;  bottom: 8px; }

/* Zoom out : compact bars */
.timeline-wrap[data-timeline-zoom="week"]  .tl__shoot       { font-size: .66rem; padding: 0 .4rem; min-width: 124px; }
.timeline-wrap[data-timeline-zoom="week"]  .tl__shoot__type { display: none; }
.timeline-wrap[data-timeline-zoom="month"] .tl__shoot       { font-size: 0; padding: 0; }

/* For BENL (honey), ink is dark */
.is-benl .tl__shoot { color: var(--lagoon); }
.is-benl .tl__shoot__type { background: rgba(0,25,47,.12); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,25,47,.5);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
  z-index: 100;
  animation: bdIn .2s var(--ease);
  padding: 1rem;
}
@keyframes bdIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__head {
  padding: 1.5rem 1.8rem 1rem;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}
.modal__title { font-size: 1.3rem; font-weight: 500; letter-spacing: 0; margin: 0; color: var(--lagoon); }
/* Icône × du header uniquement — le bouton « Fermer » du footer garde
   la classe .modal__close comme hook de clic mais reste un .btn normal. */
.modal__head .modal__close {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 1.2rem;
  transition: background .15s, color .15s;
}
.modal__head .modal__close:hover { background: var(--surface-2); color: var(--ink); }
.modal__body { padding: 1.5rem 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.modal__foot {
  padding: 1rem 1.8rem 1.5rem;
  display: flex; justify-content: space-between; gap: .6rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.detail-grid {
  display: grid; grid-template-columns: auto 1fr; gap: .7rem 1.6rem;
  font-size: .94rem;
}
.detail-grid dt { font-weight: 500; color: var(--ink-soft); font-size: .82rem; }
.detail-grid dd { margin: 0; font-weight: 500; color: var(--lagoon); }

.inline-date-form { display: inline-flex; align-items: center; gap: .4rem; }
.inline-date-input {
  border: none; background: none;
  font: inherit; font-weight: 500; color: var(--lagoon);
  padding: .1rem .2rem; border-radius: 4px;
  cursor: pointer;
  transition: background .15s;
}
.inline-date-input:hover { background: var(--surface-2); }
.inline-date-input:focus { outline: 2px solid var(--pine); background: var(--surface-2); }
.inline-date-sep { color: var(--ink-soft); font-size: .85rem; }
.inline-date-save { padding: .15rem .5rem; font-size: .78rem; line-height: 1.4; }
.inline-date-week { margin-left: .25rem; }

.activity-list-ro {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .35rem;
}
.activity-list-ro li {
  padding: .55rem .8rem;
  background: var(--surface-2);
  border-radius: 7px;
  display: grid; grid-template-columns: auto 1fr auto; gap: .8rem;
  font-size: .9rem;
}
.activity-list-ro li.is-aqua { background: var(--sky-s); }
.activity-list-ro .a-idx { color: var(--ink-faint); font-family: var(--mono); font-size: .8rem; }
.activity-list-ro .a-h   { font-weight: 500; color: var(--lagoon); font-variant-numeric: tabular-nums; }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--lagoon);
  color: white;
  padding: .8rem 1.3rem;
  font-size: .92rem;
  font-weight: 500;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
  z-index: 200;
}
.toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast.is-error   { background: var(--sunset); }
.toast.is-success { background: var(--pine); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__panel { border-left: 0; border-top: 1px solid var(--border); }
  .home__hero { grid-template-columns: 1fr; }
  .home__stats { grid-template-columns: repeat(2, 1fr); }
  .topbar { grid-template-columns: 1fr auto; padding: .8rem 1rem; }
  .topbar__nav { display: none; }
  .range { grid-template-columns: 1fr; }
  .timeline__head { grid-template-columns: 1fr; gap: .8rem; }
  .legend { justify-self: start; }
  .activity { grid-template-columns: auto 1fr auto auto; }
  .activity__aqua { grid-column: 2 / -1; grid-row: 2; justify-self: end; }
}

@media (max-width: 640px) {
  body { font-size: 13px; }

  .auth__hero,
  .auth__panel {
    padding: 1.4rem;
  }
  .auth__hero {
    min-height: auto;
    gap: 2rem;
  }
  .auth__title {
    font-size: 2.2rem;
  }
  .auth__bullets {
    margin-top: 1.4rem;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .topbar__user {
    width: 100%;
    justify-content: space-between;
    gap: .75rem;
  }
  .brand__name,
  .me {
    min-width: 0;
  }
  .me [data-me-name] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home {
    padding: 1rem;
  }
  .home__hero {
    padding: 1.4rem;
  }
  .home__stats {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
  }
  .shoot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .shoot-card {
    padding: 1rem;
  }

  .wizard-wrap {
    padding: .75rem;
  }
  .wizard__head {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    padding: .9rem 1rem;
  }
  .wizard__progress {
    justify-content: space-between;
  }
  .wizard__bar {
    width: min(180px, 46vw);
  }
  .wizard__stage {
    min-height: auto;
    padding: 1.2rem;
  }
  .step__q {
    font-size: 1.65rem;
  }
  .choices {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .choice {
    min-width: 0;
    width: 100%;
  }
  .step__nav .btn {
    flex: 1 1 140px;
    justify-content: center;
  }

  .slot {
    grid-template-columns: auto 1fr;
    gap: .8rem;
  }
  .slot > span:nth-child(3) {
    display: none;
  }
  .slot__pick {
    grid-column: 2;
  }

  .activity {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .55rem;
  }
  .activity__hours {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  .activity__aqua {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
  }
  .activity__del {
    grid-column: 3;
    grid-row: 1;
  }

  .fit-bar {
    grid-template-columns: 1fr;
  }
  .fit-bar__bar {
    width: 100%;
  }
  .summary,
  .detail-grid {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
  .shootpage__dates-card {
    grid-column: auto;
  }
  .shootpage__date-form {
    grid-template-columns: 1fr;
  }
  .shootpage__date-fields {
    grid-template-columns: 1fr;
  }
  .shootpage__date-actions {
    justify-content: stretch;
  }
  .shootpage__date-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .timeline-wrap {
    padding: 1rem;
  }
  .timeline__controls {
    display: grid;
    grid-template-columns: 1fr;
  }
  .timeline__controls .btn {
    justify-content: center;
  }

  .modal {
    max-height: 94vh;
  }
  .modal__head,
  .modal__body,
  .modal__foot {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .modal__foot {
    flex-direction: column;
  }
  .modal__foot > div {
    width: 100%;
    flex-direction: column;
  }
  .modal__foot .btn {
    width: 100%;
    justify-content: center;
  }
}
