:root {
  /* Palette — warm, premium, restrained */
  --bg: #f7f3ec;
  --bg-dim: #efe9dd;
  --surface: #ffffff;
  --ink: #15110e;
  --ink-2: #4a4239;
  --ink-3: #8e8579;
  --line: #e2dac9;
  --line-2: #d4cab4;
  --coral: #fe6c6c;
  --coral-deep: #e64b4b;
  --night: #131110;

  /* Type */
  --f:
    "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    sans-serif;

  /* Spacing */
  --pad: clamp(18px, 4.5vw, 56px); /* page edge gutter */
  --gap: clamp(12px, 1.4vw, 18px); /* between cards */
  --sec-gap: clamp(56px, 7vw, 104px); /* between sections */

  /* Radii — moderate, premium */
  --r: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Edge fade */
  --fade: 56px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--f);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
::selection {
  background: var(--coral);
  color: #fff;
}

/* ============================================================
   Accessibility
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--surface);
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

.page {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
}
.bleed {
  padding-inline: var(--pad);
}

/* ============================================================
   Top bar — ultra minimal
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: clamp(14px, 1.6vw, 20px);
}
.brand-title {
  margin: 0;
  display: flex;
  flex-shrink: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  width: clamp(65px, 10vw, 120px);
  height: auto;
  aspect-ratio: 5 / 1;
  transition: opacity 0.2s ease;
}
.brand:hover .brand-logo {
  opacity: 0.75;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 16px);
}

/* Search bar */
.top-search {
  display: flex;
  flex: 1;
  max-width: 480px;
  margin-inline: clamp(12px, 2vw, 40px);
  align-items: center;
  background: color-mix(in oklab, var(--ink) 5%, transparent);
  border-radius: var(--r-pill);
  padding: 8px 12px 8px 16px;
  gap: 10px;
  position: relative;
  transition:
    background 0.25s,
    box-shadow 0.25s;
}
.top-search:focus-within {
  background: var(--surface);
  box-shadow:
    0 8px 24px rgba(21, 17, 14, 0.08),
    0 0 0 1px var(--line);
}
.top-search .search-icon {
  color: var(--ink-3);
  font-size: 14px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.top-search:focus-within .search-icon {
  color: var(--coral);
}
.search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}
.top-search input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--f);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 0;
  margin: 0;
  height: 24px;
  z-index: 2;
}
.top-search input:not(:placeholder-shown) + .search-placeholder,
.top-search input:focus + .search-placeholder {
  opacity: 0;
  visibility: hidden;
}
.search-placeholder {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  color: var(--ink-3);
  pointer-events: none;
  z-index: 1;
  transition:
    opacity 0.15s,
    visibility 0.15s;
  overflow: hidden;
  white-space: nowrap;
}
.ph-dynamic {
  display: inline-block;
  max-width: 100%;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s,
    transform 0.3s cubic-bezier(0.2, 0, 0, 1);
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 15px;
}
.ph-dynamic.slide-in {
  opacity: 1;
  transform: translateY(0);
}
.ph-dynamic.slide-out {
  opacity: 0;
  transform: translateY(-8px);
}

@media (max-width: 360px) {
  .top-search {
    padding: 8px 10px;
    margin-inline: 8px;
    gap: 6px;
  }
  .btn {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* ============================================================
   Burger Menu Popover
   ============================================================ */
.top-burger-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.top-burger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--ink-2);
  transition:
    background 0.15s,
    color 0.15s;
  padding: 0;
  position: relative;
}
.top-burger-btn svg {
  position: absolute;
  transition:
    opacity 0.2s,
    transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.top-burger-btn .icon-close {
  opacity: 0;
  transform: scale(0.5) rotate(-45deg);
}
.top-burger-wrap.is-open .top-burger-btn .icon-burger {
  opacity: 0;
  transform: scale(0.5) rotate(45deg);
}
.top-burger-wrap.is-open .top-burger-btn .icon-close {
  opacity: 1;
  transform: scale(1) rotate(0);
}
.top-burger-btn:hover,
.top-burger-wrap.is-open .top-burger-btn {
  background: var(--bg-dim);
  color: var(--coral-deep);
}
.top-burger-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: -4px;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  border-radius: var(--r);
  box-shadow:
    0 12px 32px rgba(21, 17, 14, 0.12),
    0 0 0 1px var(--line);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transform-origin: top right;
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
  z-index: 100;
}
.top-burger-wrap.is-open .top-burger-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.top-burger-popover a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.top-burger-popover a i {
  font-size: 16px;
  width: 18px;
  text-align: center;
  color: var(--ink-3);
  transition: color 0.15s;
}
.top-burger-popover a:hover {
  background: var(--bg-dim);
  color: var(--coral-deep);
}
.top-burger-popover a:hover i {
  color: var(--coral-deep);
}
.popover-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 10px;
}
.top-burger-popover .burger-section-link {
  font-weight: 700;
  color: var(--ink);
}

/* ============================================================
   Newsletter Header Link — "FOMO Dot" UX
   ============================================================ */
.top-nl-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition:
    color 0.15s,
    opacity 0.15s;
  padding: 4px;
}
.top-nl-link:hover {
  color: var(--coral-deep);
}
.top-nl-link:active {
  opacity: 0.7;
}
.nl-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink);
  transition: color 0.15s;
}
.top-nl-link:hover .nl-icon-wrap {
  color: var(--coral);
}
.nl-dot {
  position: absolute;
  top: -3px;
  right: -4px;
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
  /* Le contour de la pastille masque l'enveloppe en dessous */
  box-shadow: 0 0 0 2px var(--bg);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow:
      0 0 0 2px var(--bg),
      0 0 0 2px rgba(254, 108, 108, 0.5);
  }
  70% {
    box-shadow:
      0 0 0 2px var(--bg),
      0 0 0 6px rgba(254, 108, 108, 0);
  }
  100% {
    box-shadow:
      0 0 0 2px var(--bg),
      0 0 0 0 rgba(254, 108, 108, 0);
  }
}

@media (max-width: 640px) {
  .nl-text {
    display: none;
  }
  .nl-icon-wrap {
    font-size: 20px; /* L'icône compense la perte du texte */
  }
}
@media (max-width: 860px) {
  .nl-extra {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.15s;
}
.btn-coral {
  background: var(--coral);
  color: #fff;
}
.btn-coral:hover {
  background: var(--coral-deep);
}
.btn-coral:active {
  transform: translateY(1px);
}
.btn-ink {
  background: var(--ink);
  color: var(--bg);
}
.btn-ink:hover {
  background: #000;
}

/* ============================================================
   Section
   ============================================================ */
.sec {
  padding-top: var(--sec-gap);
}
.sec:first-of-type {
  padding-top: clamp(32px, 4vw, 64px);
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(14px, 1.8vw, 22px);
}
.sec-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(28px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-feature-settings: "ss01";
}
.sec-title .dot {
  color: var(--coral);
}

.sec-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(13px, 1vw, 14.5px);
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 2px;
  transition: color 0.15s;
}
.sec-link:hover {
  color: var(--coral-deep);
}
.sec-link .ar {
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s;
}
.sec-link:hover .ar {
  transform: translate3d(3px, 0, 0);
}

/* Sub-pills — horizontal scroll on narrow screens */
.subnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: clamp(16px, 2vw, 26px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0,
    #000 calc(100% - var(--fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    #000 0,
    #000 calc(100% - var(--fade)),
    transparent 100%
  );
}
.subnav::-webkit-scrollbar {
  display: none;
}
.subnav-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  white-space: nowrap;
  cursor: default;
}
.subnav-icon {
  color: var(--coral);
  font-size: 13px;
}
.subnav-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin-inline: 4px;
  flex-shrink: 0;
}
.subnav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  transition:
    color 0.15s,
    background 0.15s;
}
.subnav a:hover {
  color: var(--ink);
  background: var(--bg-dim);
}

/* ============================================================
   Horizontal rail
   ============================================================ */
.rail-wrap {
  position: relative;
}
.rail-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(40px, 8vw, 64px);
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}
/* Masquer le dégradé lorsqu'on arrive tout à la fin du carrousel */
.rail-wrap.is-at-end::after {
  opacity: 0;
}
.rail {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none; /* Firefox */

  /* Astuce native : on agrandit l'intérieur pour laisser s'exprimer les ombres
     et on rétrécit l'extérieur pour ne pas casser la mise en page */
  padding-top: 16px;
  padding-bottom: 48px;
  margin-top: -16px;
  margin-bottom: -48px;
}
.rail::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.rail::before,
.rail::after {
  content: "";
  flex: 0 0 calc(var(--pad) - var(--gap));
}

/* ============================================================
   1 — Editorial cards (Trouvez votre style)
   ============================================================ */
.ed {
  flex: 0 0 auto;
  min-width: 0;
  width: clamp(220px, 62vw, 360px);
  display: block;
  scroll-snap-align: start;
}
.ed-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-dim);
}
.ed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
  display: block;
}
@media (hover: hover) and (pointer: fine) {
  .ed:hover .ed-media img {
    transform: scale(1.03);
  }
}
.ed-title {
  margin: 14px 4px 0;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 720px) {
  .ed {
    width: clamp(280px, 32vw, 380px);
  }
}
@media (min-width: 1180px) {
  .ed {
    width: clamp(300px, 22vw, 380px);
  }
}

/* ============================================================
   2 — Collection cards (Shoppez les tendances)
   ============================================================ */
.col {
  flex: 0 0 auto;
  min-width: 0;
  width: clamp(244px, 70vw, 340px);
  background: var(--surface);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-snap-align: start;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
@media (hover: hover) and (pointer: fine) {
  .col:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 18px 40px rgba(21, 17, 14, 0.06);
  }
}
.col-title {
  margin: 0;
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.col-head-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.badge-promo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: color-mix(in oklab, var(--coral) 15%, transparent);
  color: var(--coral-deep);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 3px;
}
.badge-promo i {
  font-size: 10px;
}
.col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.col-grid .slot {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: var(--bg-dim);
  overflow: hidden;
}
.col-grid .slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.col-grid .slot img.loaded {
  opacity: 1;
}
.col-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-top: auto;
  padding-top: 2px;
}
.col-go .ar {
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .col:hover .col-go .ar {
    transform: translate3d(3px, 0, 0);
  }
}

@media (min-width: 720px) {
  .col {
    width: clamp(280px, 34vw, 360px);
  }
}
@media (min-width: 1180px) {
  .col {
    width: clamp(300px, 22vw, 360px);
  }
}

/* ============================================================
   3 — Advice cards (Conseils mode) — coral
   ============================================================ */
.adv {
  flex: 0 0 auto;
  min-width: 0;
  width: clamp(216px, 64vw, 280px);
  aspect-ratio: 5 / 6;
  background: var(--coral);
  color: #fff;
  border-radius: var(--r);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
@media (hover: hover) and (pointer: fine) {
  .adv:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 18px 40px rgba(254, 108, 108, 0.25);
  }
}
.adv-title {
  margin: 0;
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.adv-arrow {
  align-self: flex-end;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.14);
  display: grid;
  place-items: center;
  transform: translate3d(0, 0, 0);
  transition:
    background 0.2s,
    transform 0.25s;
}
@media (hover: hover) and (pointer: fine) {
  .adv:hover .adv-arrow {
    background: var(--ink);
    transform: translate3d(4px, 0, 0);
  }
}

@media (min-width: 720px) {
  .adv {
    width: clamp(244px, 28vw, 300px);
  }
}
@media (min-width: 1180px) {
  .adv {
    width: clamp(260px, 20vw, 320px);
  }
}

/* ============================================================
   4 — Articles grid (Tous les articles)
   ============================================================ */
.art-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 720px) {
  .art-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 1.6vw, 22px);
  }
}
@media (min-width: 1180px) {
  .art-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.art {
  background: var(--surface);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
@media (hover: hover) and (pointer: fine) {
  .art:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 18px 40px rgba(21, 17, 14, 0.06);
  }
}

.art-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: clamp(18px, 1.4vw, 20px);
  letter-spacing: -0.015em;
}
.art-head .ar {
  color: var(--ink-3);
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.2s,
    color 0.15s;
}
@media (hover: hover) and (pointer: fine) {
  .art-head:hover .ar,
  .art:hover .art-head .ar {
    transform: translate3d(3px, 0, 0);
    color: var(--coral-deep);
  }
}

.art-collage {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.art-collage .slot {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: var(--bg-dim);
  overflow: hidden;
}
.art-collage .slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.art-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.art-list li a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: pretty;
  transition: color 0.15s;
}
.art-list li a:hover {
  color: var(--coral-deep);
}

/* ============================================================
   5 — Shopping mode (comparator)
   ============================================================ */
.cmp {
  flex: 0 0 auto;
  min-width: 0;
  width: clamp(244px, 72vw, 320px);
  background: var(--surface);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-snap-align: start;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
@media (hover: hover) and (pointer: fine) {
  .cmp:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 18px 40px rgba(21, 17, 14, 0.06);
  }
}
.cmp-title {
  margin: 0;
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.cmp-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cmp-grid .slot {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: var(--bg-dim);
  overflow: hidden;
}
.cmp-grid .slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cmp-grid .slot img.loaded {
  opacity: 1;
}
.cmp-grid .ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.cmp-grid .ring span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px var(--surface);
  transition:
    transform 0.25s,
    background 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .cmp:hover .cmp-grid .ring span {
    transform: scale(1.06);
    background: var(--coral-deep);
  }
}

@media (min-width: 720px) {
  .cmp {
    width: clamp(260px, 30vw, 320px);
  }
}
@media (min-width: 1180px) {
  .cmp {
    width: clamp(280px, 20vw, 320px);
  }
}

/* ============================================================
   Newsletter — dark, minimal
   ============================================================ */
.nl {
  background: var(--night);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
}
.nl-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 18ch;
}
.nl-title .dot {
  color: var(--coral);
}
.nl-perks {
  list-style: none;
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nl-perks li {
  font-size: clamp(14px, 1.2vw, 15px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nl-perks i {
  color: var(--coral);
  font-size: 13px;
}
.nl-action {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.btn-nl {
  font-size: clamp(15px, 1.3vw, 16px);
  padding: 14px 28px;
  justify-content: center;
  width: 100%;
}
.btn-nl i {
  transition: transform 0.2s;
}
.btn-nl:hover i {
  transform: translate3d(4px, 0, 0);
}
.nl-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 760px) {
  .nl {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(28px, 4vw, 56px);
    padding: clamp(36px, 5vw, 72px);
  }
  .nl-title {
    font-size: clamp(36px, 4.6vw, 58px);
  }
  .nl-action {
    min-width: clamp(300px, 32vw, 380px);
  }
  .btn-nl {
    width: auto;
  }
}

/* ============================================================
   Social Community Hero
   ============================================================ */
.soc-head {
  max-width: 600px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.soc-blurb {
  margin: 10px 0 0;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-2);
  line-height: 1.4;
  text-wrap: pretty;
}
.soc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.5vw, 24px);
}
@media (min-width: 760px) {
  .soc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.soc-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: clamp(16px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 5vw, 56px);
  text-decoration: none;
  color: var(--ink);
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
@media (hover: hover) and (pointer: fine) {
  .soc-card:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 18px 40px rgba(21, 17, 14, 0.06);
  }
}
.soc-icon {
  width: clamp(44px, 6vw, 64px);
  height: clamp(44px, 6vw, 64px);
  border-radius: 50%;
  background: var(--bg-dim);
  display: grid;
  place-items: center;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--ink);
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}
@media (hover: hover) and (pointer: fine) {
  .soc-card:hover .soc-icon {
    background: var(--ink);
    color: var(--surface);
    transform: scale(1.08);
  }
}
.soc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.soc-name {
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: -0.015em;
}
@media (hover: hover) and (pointer: fine) {
  .soc-card:hover .soc-bottom .ar {
    color: var(--coral-deep);
    transform: translate3d(4px, 0, 0);
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(28px, 3vw, 40px);
}
.foot-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(28px, 3.5vw, 44px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .foot-top {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: clamp(28px, 3vw, 56px);
  }
}
.foot-brand-logo {
  display: block;
  width: 160px;
  height: auto;
  aspect-ratio: 5 / 1;
}
.foot-blurb {
  margin: clamp(16px, 2.5vw, 24px) 0 0;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 36ch;
  line-height: 1.5;
}
.foot-col h3 {
  margin: 6px 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-col li a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.15s;
}
.foot-col li a:hover {
  color: var(--coral-deep);
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  font-size: 13px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.foot-bottom .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-bottom .links a:hover {
  color: var(--coral-deep);
}

.foot-legal {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ============================================================
   Rail — boutons prev/next
   ============================================================ */
.rail-btn {
  position: absolute;
  top: calc(50% - 16px);
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink);
  transition:
    background 0.18s,
    color 0.18s,
    opacity 0.22s,
    transform 0.15s;
}
.rail-btn:hover {
  background: var(--coral);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}
.rail-btn:active {
  transform: translateY(-50%) scale(0.93);
}
.rail-btn:focus:not(:focus-visible) {
  outline: none;
}
.rail-btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.rail-btn.prev {
  left: 8px;
}
.rail-btn.next {
  right: 8px;
}
.rail-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

/* Masquer les boutons sur les appareils 100% tactiles (le swipe est naturel)
   mais les conserver pour les utilisateurs souris sur Desktop */
@media (hover: none) and (pointer: coarse) {
  .rail-btn {
    display: none;
  }
}

/* ============================================================
   Font Awesome — sizing des icônes dans l'UI
   ============================================================ */
.sec-link i.ar,
.col-go i.ar {
  font-size: 11px;
}
.art-head i.ar {
  font-size: 13px;
}
.adv-arrow i {
  font-size: 15px;
  color: #fff;
}
.cmp-grid .ring span i {
  font-size: 14px;
  color: #fff;
}

/* ============================================================
   Loading Skeletons (Shoppez Tendance)
   ============================================================ */
.slot.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-dim) 25%,
    var(--line) 50%,
    var(--bg-dim) 75%
  );
  background-size: 400% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes skeleton-pulse {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ============================================================
   Bouton retour — partagé entre shopping.php et search.php
   ============================================================ */
.listing-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  margin-left: -10px;
  margin-bottom: clamp(16px, 2vw, 22px);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.listing-back i {
  font-size: 11px;
  color: var(--ink-3);
  transition: transform 0.18s ease, color 0.15s ease;
}
.listing-back:hover { background: var(--bg-dim); color: var(--ink); }
.listing-back:hover i { color: var(--coral-deep); transform: translateX(-2px); }
.listing-back:active i { transform: translateX(-3px); }
.listing-back:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
@media (min-width: 700px) {
  .listing-back { font-size: 14px; }
  .listing-back i { font-size: 11.5px; }
}

/* ============================================================
   Search Intent Dropdown
   ============================================================ */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow:
    0 12px 32px rgba(21, 17, 14, 0.12),
    0 0 0 1px var(--line);
  overflow: hidden;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.98);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 0.18s cubic-bezier(0.2, 0, 0, 1),
    transform 0.18s cubic-bezier(0.2, 0, 0, 1),
    visibility 0.18s;
}
.search-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
@keyframes sd-shake {
  0%, 100% { transform: translateY(0) scale(1); }
  15%  { transform: translateY(0) scale(1) translateX(-6px); }
  35%  { transform: translateY(0) scale(1) translateX(5px); }
  55%  { transform: translateY(0) scale(1) translateX(-4px); }
  75%  { transform: translateY(0) scale(1) translateX(2px); }
}
.search-dropdown.is-shaking {
  animation: sd-shake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97);
  box-shadow:
    0 12px 32px rgba(21, 17, 14, 0.12),
    0 0 0 1.5px var(--coral);
}

.sd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition:
    background 0.13s,
    color 0.13s;
}
.sd-item:last-child {
  border-bottom: none;
}
.sd-item:hover,
.sd-item.is-focused {
  background: var(--bg-dim);
  outline: none;
}

.sd-body {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sd-body strong {
  font-weight: 700;
}
.sd-q {
  font-weight: 600;
  color: var(--coral-deep);
}

.sd-arr {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--ink-3);
  transition:
    transform 0.13s,
    color 0.13s;
}
.sd-item:hover .sd-arr,
.sd-item.is-focused .sd-arr {
  transform: translateX(3px);
  color: var(--coral-deep);
}

/* ============================================================
   Topbar — Search-mode mobile (≤ 639 px)
   Logo, newsletter et burger s'effacent au focus du champ
   pour lui laisser toute la largeur du contenu.
   ============================================================ */
@media (max-width: 639px) {
  /* 16 px minimum : supprime le zoom automatique iOS/Android au focus du champ */
  .top-search input {
    font-size: 16px;
  }
  .brand-title,
  .top-actions {
    max-width: 200px; /* > taille réelle de chaque bloc */
    transition:
      max-width 0.25s cubic-bezier(0.2, 0, 0, 1),
      opacity 0.2s ease;
  }
  .top-search {
    transition:
      background 0.25s,
      box-shadow 0.25s,
      margin 0.2s cubic-bezier(0.2, 0, 0, 1);
  }
  /* gap: 0 supprime les espaces flex résiduels des items effaces,
     margin-inline: 0 retire la marge propre du champ —
     sans jamais déborder du viewport (pas de marge négative) */
  .topbar-inner:has(.top-search:focus-within) {
    gap: 0;
  }
  .topbar-inner:has(.top-search:focus-within) .brand-title,
  .topbar-inner:has(.top-search:focus-within) .top-actions {
    max-width: 0;
    opacity: 0;
    pointer-events: none;
  }
  .topbar-inner:has(.top-search:focus-within) .top-search {
    margin-inline: 0;
  }
}

/* ============================================================
   Motion guard
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
