/* Keep the search grid inside narrow viewports, including its scrollable suggestions. */
.hero-panel, .hero-panel .search-panel, .hero-panel label { min-width: 0; }
.hero { grid-template-columns: minmax(0, 1fr); }
.section[aria-label="Filtres"] { padding-block: 12px; min-height: 0; }
.section[aria-labelledby="results-title"] { padding-top: 18px; }
.pilot-filters { margin-block: 8px; }
.listing-price { font-variant-numeric: tabular-nums; }
.request-card input[type=checkbox] { width: auto; min-height: auto; }
body[data-staging-locked] > :is(header, footer),
body[data-staging-locked] main > :not(#connexion),
body[data-staging-locked] #connexion > a,
body[data-staging] #login-form [name=register] { display: none !important; }
@media (max-width: 480px) {
  .site-header .nav-links { width: 100%; justify-content: space-between; gap: 2px; }
  .site-header .nav-links a { padding-inline: 4px; min-height: 40px; display: inline-flex; align-items: center; }
  .site-header .nav-links .nav-action { padding-inline: 6px; }
  .hero#chercher { padding-block: 14px 8px; }
  .hero-panel .search-context small { display:none; }
  .hero-panel .search-suggestions { width:100%; }
  .section-heading { gap: 8px; }
}

@media (max-width: 340px) {
  .site-header a[href="#mes-annonces"] { display:none; }
}

.gift-strip {
  position:relative; isolation:isolate; overflow:hidden; background:#e4f2e7; color:#172f29;
  width:min(calc(100% - 32px),1120px); margin:8px auto; min-height:154px;
  display:flex; align-items:center;
}
.gift-art { position:absolute; inset:0 0 0 47%; z-index:-1; overflow:hidden; }
.gift-art img { display:block; width:100%; height:100%; margin:0; object-fit:cover; object-position:right 60%; border:0; border-radius:0; }
.gift-strip:not(.has-product) .gift-art { left:0; }
.gift-strip:not(.has-product) .gift-art img { object-position:right center; }
.gift-art::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#e4f2e7 0%,transparent 35%); }
.gift-strip:not(.has-product) .gift-art::after { background:linear-gradient(90deg,#e4f2e7 27%,transparent 69%); }
.gift-copy { padding:16px 22px; width:58%; min-width:0; }
.gift-copy small { color:#37574a; font-size:12px; }
.gift-copy h2 { margin:3px 0; font:500 26px/1.15 Georgia,serif; overflow-wrap:anywhere; text-wrap:balance; }
.gift-copy p { margin:4px 0; line-height:1.3; font-size:14px; color:inherit; }
.gift-copy button { background:none; border:0; padding:5px 0; min-height:40px; color:#712049; text-decoration:underline; text-underline-offset:4px; cursor:pointer; font:inherit; }
.gift-tools { position:absolute; right:8px; bottom:8px; display:flex; gap:4px; }
.gift-tools button { width:42px; height:42px; padding:0; border-radius:50%; border:1px solid #b5c8bf; background:white; color:#24392f; font-size:20px; cursor:pointer; }
.gift-tools button[hidden] { display:none; }
.gift-strip.is-moving .gift-art img { animation:gift-drift 9s ease-in-out infinite alternate; transform-origin:75% 53%; }
.gift-strip.is-paused .gift-art img { animation-play-state:paused; }
.event-agenda h2 {margin:0}
.event-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:16px}
.event-tile {display:grid;grid-template-columns:minmax(80px,32%) minmax(0,1fr);align-items:start;gap:14px;border-top:1px solid #dedcde;padding-top:12px;overflow-wrap:anywhere}
.event-tile h3 {font:500 21px/1.2 Georgia,serif;margin:4px 0 8px}
.event-tile small,.event-tile time {display:block;font-size:13px}
.event-tile time {margin-top:6px;color:#712049}
.event-tile p {margin:4px 0;font-size:14px;white-space:pre-line}
.event-poster {width:100%;aspect-ratio:4/3;padding:0;border:0;border-radius:8px;overflow:hidden;background:#f3f4f3;color:#34443a;cursor:zoom-in}
.event-poster:has(img) {aspect-ratio:auto}
.event-poster img {width:100%;height:auto;max-height:340px;object-fit:contain;display:block}
.event-preview {border:0;padding:12px;max-width:96vw;max-height:96vh}
.event-preview img {display:block;max-width:100%;max-height:80vh;object-fit:contain}
.event-preview button {display:block;margin:0 0 8px auto;min-height:40px}
.event-preview::backdrop {background:rgba(18,23,25,.72)}
@keyframes gift-drift { from { transform:scale(1); } to { transform:scale(1.105) translateX(-0.8%); } }
@media (prefers-reduced-motion:reduce) { .gift-strip.is-moving .gift-art img { animation:none; } }
@media (max-width:600px) {
  .event-tile {grid-template-columns:minmax(0,1fr)}
  .gift-strip { width:calc(100% - 24px); min-height:150px; }
  .gift-copy { padding:12px; width:56%; }
  .gift-copy h2 { font-size:21px; }
  .gift-copy p { font-size:13px; }
  .gift-strip:not(.has-product) .gift-art { left:51%; }
  .gift-strip:not(.has-product) .gift-art img { object-position:87% center; }
  .gift-strip:not(.has-product) .gift-art::after { background:linear-gradient(90deg,#e4f2e7,transparent 39%); }
  .gift-tools { gap:2px; bottom:3px; right:3px; }
  .gift-tools button { width:40px; height:40px; }
}
