/* Menus « Thématiques » et « Cadeaux d'affaires » (en-tête).
   Trois zones en largeur bureau : familles (onglets, styles .mega-universes partagés avec
   « Tous les produits »), liens de la famille active, « À la une ». Accordéons sur mobile. */
.nav-new { font-weight: 600; }
.nav-new[aria-current="page"] { color: var(--blue); }
.collection-mega summary { display: inline-flex; align-items: center; gap: 0; }
.collection-mega summary span.collection-mega-long,
.collection-mega summary span.collection-mega-short { margin-left: 0; color: inherit; transform: none !important; display: inline; }
.collection-mega summary span.collection-mega-short { display: none; }
.collection-mega summary .collection-mega-caret { margin-left: 5px; color: var(--muted); transition: transform .2s; }
.collection-mega[open] summary .collection-mega-caret { transform: rotate(180deg) !important; }
.collection-mega[open] > summary { color: var(--blue); }
.collection-mega-panel { background: #fff; max-height: min(calc(100vh - 150px), 640px); }
.nav-bar .wrap.collection-mega-inner { display: block; min-height: 0; white-space: normal; letter-spacing: 0; font-size: 14px; font-weight: 400; padding-top: 22px; padding-bottom: 22px; }
.collection-mega-panel a { padding-top: 0; padding-bottom: 0; }
.collection-mega-head { display: none; }
.collection-mega-close { border: 0; background: #f5f5f7; color: var(--ink); border-radius: 980px; min-height: 40px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.collection-mega-close:hover { background: #e8e8ed; }

.collection-mega-browser { grid-template-columns: 240px minmax(0, 1fr) 300px; min-height: 0; max-height: none; }
.collection-mega-browser.is-plain { grid-template-columns: 240px minmax(0, 1fr); }
.collection-mega-tabs { gap: 2px; }
.collection-mega-tabs button { min-height: 44px; font-weight: 500; }
.collection-mega-tabs button span { white-space: normal; line-height: 1.25; }
.collection-mega-tabs button.is-active { font-weight: 600; box-shadow: 0 1px 4px #0000000f; }
.collection-mega-groups { padding: 22px 28px 20px; }
.collection-mega-group[hidden] { display: none; }
.collection-mega-group > summary { display: none; }
.collection-mega-group-intro { font-size: 13px; color: var(--muted); margin: 2px 0 14px; max-width: 60ch; line-height: 1.45; }
.collection-mega-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
.collection-mega-links a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 40px; padding: 8px 10px; border-radius: 10px; font-size: 14px; line-height: 1.3; color: var(--ink); }
.collection-mega-links a small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.collection-mega-links a:hover, .collection-mega-links a:focus-visible { color: var(--blue); background: #f5f5f7; }
.collection-mega-panel .collection-mega-more { display: inline-flex; align-items: center; gap: 5px; margin: 12px 10px 0; font-size: 13px; font-weight: 600; color: var(--blue); }
.collection-mega-featured { display: grid; grid-template-rows: auto; gap: 10px; align-content: start; padding: 22px 22px 20px; border-left: 1px solid #e5e5e7; background: #fafafa; }
.collection-mega-featured h2 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; font-weight: 700; }
.collection-mega-panel .collection-mega-tile { position: relative; isolation: isolate; overflow: hidden; display: block; padding: 14px 16px; border-radius: 14px; min-height: 84px; color: #fff; background: linear-gradient(160deg, var(--theme-from), var(--theme-to)); transition: transform .2s; }
.collection-mega-tile.theme-ink-dark { color: #1d1d1f; }
.collection-mega-tile:hover { transform: translateY(-2px); }
.collection-mega-tile .theme-motif { position: absolute; top: -8px; right: -10px; width: 46%; max-width: 120px; height: auto; color: var(--theme-accent, #fff); opacity: .35; z-index: -1; pointer-events: none; }
.collection-mega-tile-copy { display: grid; gap: 3px; max-width: 80%; }
.collection-mega-tile small { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.collection-mega-tile strong { font-size: 17px; line-height: 1.15; letter-spacing: -.3px; }
.collection-mega-tile-copy > span { font-size: 12.5px; line-height: 1.35; opacity: .9; }
.collection-mega-tile:focus-visible { outline-offset: 2px; }
.collection-mega-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 16px 0 0; font-size: 14px; }
.collection-mega-foot a { color: var(--blue); }
.collection-mega-panel .collection-mega-all { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 980px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; }
.collection-mega-panel .collection-mega-all:hover { background: var(--blue); }

@media (max-width: 1100px) {
  .collection-mega-browser { grid-template-columns: 210px minmax(0, 1fr) 250px; }
  .collection-mega-links { grid-template-columns: 1fr; }
  .nav-row > a.nav-new { display: inline-block; }
}
@media (max-width: 800px) {
  .collection-mega-panel { max-height: calc(100dvh - 120px); }
  .nav-bar .wrap.collection-mega-inner { padding: 14px 16px 20px; }
  .collection-mega-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
  .collection-mega-head strong { font-size: 17px; letter-spacing: -.3px; }
  .collection-mega-browser { display: flex; flex-direction: column; border: 0; border-radius: 0; background: transparent; }
  .collection-mega-tabs { display: none; }
  .collection-mega-featured { order: -1; display: grid; gap: 8px; padding: 0 0 14px; border: 0; background: transparent; }
  .collection-mega-featured .collection-mega-tile:nth-child(n + 4) { display: none; }
  .collection-mega-panel .collection-mega-tile { min-height: 0; padding: 10px 14px; border-radius: 12px; }
  .collection-mega-tile-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; max-width: 86%; }
  .collection-mega-tile strong { font-size: 15px; }
  .collection-mega-tile-copy > span { display: none; }
  .collection-mega-groups { padding: 0; }
  .collection-mega-group { border-top: 1px solid #e5e5e7; }
  .collection-mega-group[hidden] { display: block; }
  .collection-mega-group > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 2px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); }
  .collection-mega-group > summary::-webkit-details-marker { display: none; }
  .collection-mega-group > summary span { flex: 1; display: inline; margin-left: 0; color: inherit; transform: none !important; white-space: normal; }
  .collection-mega-group > summary small { color: var(--muted); font-size: 12px; font-weight: 500; }
  .collection-mega-group > summary b { color: var(--muted); font-weight: 400; transition: transform .2s; }
  .collection-mega-group[open] > summary b { transform: rotate(180deg); }
  .collection-mega-group[open] > summary { color: var(--blue); }
  .collection-mega-group-body { padding: 0 0 12px; }
  .collection-mega-group-intro { display: none; }
  .collection-mega-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .collection-mega-links a { min-height: 44px; padding: 10px 8px; }
  .collection-mega-panel .collection-mega-more { margin: 6px 8px 0; min-height: 40px; }
  .collection-mega-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e5e5e7; }
  .collection-mega-panel .collection-mega-all { min-height: 44px; }
}
@media (max-width: 640px) {
  .collection-mega summary span.collection-mega-long { display: none; }
  .collection-mega summary span.collection-mega-short { display: inline; }
}
@media (max-width: 520px) {
  .nav-bar .wrap.nav-row { gap: 14px; }
  .collection-mega-tile-copy { max-width: 100%; }
  .collection-mega-links { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 440px) {
  .nav-row > a.nav-new, .nav-row > a.nav-blog { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-mega-tile, .collection-mega summary .collection-mega-caret, .collection-mega-group > summary b { transition: none; }
}

/* Rail « Les tendances du moment » : cartes thématiques. */
.home-card.is-themed { position: relative; }
.home-card.is-themed::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: 18px 18px 0 0; background: linear-gradient(90deg, var(--theme-from), var(--theme-to)); }
.home-kicker-theme { display: inline-block; padding: 3px 9px; border-radius: 980px; color: #fff; background: linear-gradient(90deg, var(--theme-from), var(--theme-to)); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Page « Tendances » et page Collections par familles. */
.trends-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.trends-moment { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.collection-group-intro { color: var(--muted); margin: -6px 0 18px; max-width: 60ch; }
.trends-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
@media (max-width: 600px) { .trends-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 360px) { .trends-grid { grid-template-columns: 1fr; } }
