/* Racer - Galerie Instagram clients */
.rugc { margin: 3rem 0; }
.rugc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.rugc-head > div { min-width: 0; }
/* Titre unique, typo des titres de l'accueil (DIN Next Condensed) sur l'accueil comme sur la fiche produit */
.rugc .rugc-title, #index .rugc .rugc-title { margin: 0; font-family: DINNextLTPro-BoldCondensed, "Arial Narrow", sans-serif !important; font-size: 40px !important; font-weight: 700; line-height: 1.1; letter-spacing: .5px; text-transform: uppercase; color: #333; }
.rugc-title-sep { margin: 0 .35em; color: #bbb; font-weight: 400; }
.rugc-title-sub { color: #777; }
@media (max-width: 1199px) {
  .rugc .rugc-title, #index .rugc .rugc-title { font-size: 32px !important; }
}
@media (max-width: 767px) {
  .rugc .rugc-title, #index .rugc .rugc-title { font-size: 30px !important; }
  .rugc-title-sep { display: none; }
  /* 18 px, réduit sur les très petits écrans (< 375 px) pour tenir sur une ligne */
  .rugc-title-sub { display: block; margin-top: .25em; font-size: min(18px, 4.8vw); line-height: 1.15; white-space: nowrap; }
}
.rugc-nav { display: flex; gap: .5rem; flex: none; }
.rugc-nav[hidden] { display: none; }
.rugc-arrow { width: 2.5rem; height: 2.5rem; border: 1px solid currentColor; border-radius: 50%; background: none; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }

.rugc-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * .75rem) / 4); gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rugc-track::-webkit-scrollbar { display: none; }
.rugc-tile { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 0; background: #eee; overflow: hidden; scroll-snap-align: start; cursor: pointer; }
.rugc-tile img, .rugc-tile video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rugc-tile:hover img, .rugc-tile:focus-visible img { transform: scale(1.04); }
.rugc-tile::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); pointer-events: none; }
.rugc-user { position: absolute; z-index: 1; left: .6rem; bottom: .5rem; color: #fff; font-size: .8rem; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }

.rugc-modal { width: 100%; max-width: min(980px, calc(100vw - 9rem)); padding: 0; border: 0; background: transparent; overflow: visible; }
.rugc-modal::backdrop { background: rgba(0, 0, 0, .75); }
.rugc-modal-inner { position: relative; background: #fff; color: #111; }
.rugc-modal-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); max-height: 88vh; }
.rugc-media { position: relative; aspect-ratio: 4 / 5; max-height: 88vh; min-height: 0; overflow: hidden; background: #f2f2f2; }
.rugc-media img, .rugc-media video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.rugc-side { padding: 2rem 1.5rem 1.5rem; overflow-y: auto; }
.rugc-author { display: block; font-weight: 700; color: inherit; }
.rugc-link { font-size: .85rem; color: inherit; text-decoration: underline; }
.rugc-products-title { margin: 1.5rem 0 .5rem; font-size: .85rem; font-weight: 700; text-transform: uppercase; }
.rugc-products { margin: 0; padding: 0; list-style: none; }
.rugc-product { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-top: 1px solid #e5e5e5; color: inherit; text-decoration: none; }
.rugc-product:hover .rugc-pname { text-decoration: underline; }
.rugc-product img { flex: none; width: 64px; height: 64px; object-fit: contain; }
.rugc-pname { display: block; font-weight: 600; }
.rugc-price { display: block; font-size: .9rem; }
.rugc-close { position: absolute; top: .5rem; right: .5rem; z-index: 2; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: #fff; color: #111; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.rugc-step { position: absolute; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: #fff; color: #111; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.rugc-step-prev { left: -3.4rem; }
.rugc-step-next { right: -3.4rem; }

@media (max-width: 991px) {
  .rugc-track { grid-auto-columns: calc((100% - 2 * .75rem) / 3); }
}
@media (max-width: 767px) {
  .rugc-track { grid-auto-columns: 70%; }
  .rugc-nav { display: none; }
  .rugc-modal { max-width: 94vw; }
  .rugc-modal-inner { max-height: 92vh; overflow-y: auto; }
  .rugc-modal-body { grid-template-columns: 1fr; max-height: none; }
  .rugc-media { max-height: 62vh; }
  .rugc-head { padding-right: 1rem; }
  .rugc-step { top: 31vh; background: rgba(255, 255, 255, .85); }
  .rugc-step-prev { left: .5rem; }
  .rugc-step-next { right: .5rem; }
  /* 05/11 : accueil mobile, marges latérales */
  #index .rugc { padding: 0 13.5px; }
}

/* Fiche produit : pastille sur la photo produit */
.rugc-badge-host { position: relative; }
/* 03/11 : plus d'aspect bouton, visages 60px avec contour en dégradé qui tourne, libellé à la ligne */
.rugc-badge { position: absolute; left: 12px; bottom: 12px; z-index: 5; display: inline-flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 0; border: 0; border-radius: 0; background: transparent; color: #111; font: inherit; font-size: .8rem; font-weight: 600; line-height: 1.2; text-align: left; cursor: pointer; }
.rugc-badge[hidden] { display: none; }
.rugc-badge:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.rugc-badge-faces { position: relative; display: flex; padding: 3px; border-radius: 999px; overflow: hidden; isolation: isolate; box-shadow: 0 4px 14px rgba(17, 17, 17, .14); transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s; }
.rugc-badge-faces::before, .rugc-badge-face::before { content: ""; position: absolute; top: 50%; left: 50%; z-index: -1; width: 150%; aspect-ratio: 1; background: linear-gradient(90deg, #2a7b9b 0%, #57c785 50%, #eddd53 100%); transform: translate(-50%, -50%) rotate(0deg); animation: rugc-spin 4s linear infinite; }
@keyframes rugc-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.rugc-badge:hover .rugc-badge-faces { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(17, 17, 17, .18); }
/* 04/11 : chaque visage a son contour en dégradé animé et une ombre portée */
.rugc-badge-face { position: relative; flex: none; display: block; margin-left: -48px; padding: 2px; border-radius: 50%; overflow: hidden; isolation: isolate; box-shadow: 0 2px 6px rgba(17, 17, 17, .79); transition: margin-left .3s cubic-bezier(.16, 1, .3, 1); }
.rugc-badge-face:first-child { margin-left: 0; }
/* 05/11 : la story la plus récente (1re) au-dessus de la pile */
.rugc-badge-face:nth-child(1) { z-index: 3; }
.rugc-badge-face:nth-child(2) { z-index: 2; }
.rugc-badge-face:nth-child(3) { z-index: 1; }
.rugc-badge .rugc-badge-faces img { display: block; width: 60px; max-width: none; height: 60px; margin: 0; border: 0; border-radius: 50%; object-fit: cover; background: #eee; }
.rugc-badge-label { padding-left: 2px; }
@media (min-width: 768px) {
  .rugc-badge { left: 28px; gap: .5rem; font-size: 1rem; }
  /* 04/11 : pastille agrandie sur desktop (visages 70px) */
  .rugc-badge-faces { padding: 1px; }
  .rugc-badge-face { margin-left: -56px; padding: 3px; }
  .rugc-badge .rugc-badge-faces img { width: 70px; height: 70px; }
  /* Survol : les visages s'écartent */
  .rugc-badge-faces:hover .rugc-badge-face:not(:first-child) { margin-left: -35px; }
}

/* Lecteur « story » : rectangle aux proportions du média */
.rugc-story { max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.rugc-story::backdrop { background: rgba(10, 10, 10, .82); }
.rugc-story[open] .rugc-story-card { animation: rugc-in .35s cubic-bezier(.16, 1, .3, 1); }
@keyframes rugc-in { from { opacity: 0; transform: scale(.96); } }
.rugc-story-card { position: relative; width: 438px; height: 701px; border-radius: 14px; overflow: hidden; background: #111; color: #fff; touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: width .25s, height .25s; }
.rugc-story-card::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; z-index: 1; }
.rugc-story-slot, .rugc-story-media { position: absolute; inset: 0; }
.rugc-story-media img, .rugc-story-media video { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
/* 04/11 : pas de menu « Enregistrer / Partager » à l'appui long (le tap reste géré par la carte) */
.rugc-story-card { -webkit-touch-callout: none; }
.rugc-story-media img, .rugc-story-media video { pointer-events: none; -webkit-touch-callout: none; }
.rugc-story-bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 4; display: flex; gap: 4px; }
.rugc-story-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.rugc-story-bars i { display: block; width: 0; height: 100%; background: #fff; }
.rugc-story-head { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: baseline; gap: .75rem; padding: 26px 96px 40px 14px; background: linear-gradient(rgba(0, 0, 0, .5), transparent); font-size: .85rem; pointer-events: none; }
.rugc-story-user { font-weight: 700; }
.rugc-story-slot { font-weight: 800; }
/* 04/11 : précédent / suivant gérés au tap sur la carte en JS (les 2 boutons-zones laissaient un trait blanc sur iOS) */
.rugc-story-slot { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rugc-story-btn { position: absolute; top: 20px; z-index: 4; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .4); color: #fff; cursor: pointer; }
.rugc-story-btn[hidden] { display: none; }
.rugc-story-close { right: 10px; }
.rugc-story-sound { right: 50px; }
.rugc-story-sound .rugc-ico-on, .rugc-story-sound[aria-pressed="true"] .rugc-ico-off { display: none; }
.rugc-story-sound[aria-pressed="true"] .rugc-ico-on { display: block; }
.rugc-story-products { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; display: flex; flex-direction: column; gap: 5px; }
.rugc-story-product { display: flex; min-width: 0; align-items: center; gap: .5rem; padding: 4px 6px 4px 4px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .96); color: #111; font: inherit; font-size: .74rem; line-height: 1.15; text-align: left; text-decoration: none; cursor: pointer; }
.rugc-story-product > span:not(.rugc-story-cta) { min-width: 0; }
.rugc-story-product .rugc-pname, .rugc-story-product .rugc-price { margin: 0; line-height: 1.15; }
.rugc-story-product .rugc-price { font-size: .8rem; }
.rugc-story-product .rugc-pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rugc-story .rugc-story-product img { flex: none; width: 58px; max-width: none; margin: 0; height: 58px; border-radius: 6px; object-fit: contain; background: #f2f2f2; }
.rugc-story-cta { flex: none; display: inline-flex; align-items: center; min-height: 46px; margin-left: auto; padding: .75rem 1.1rem; border-radius: 8px; font-size: .85rem; background: #111; color: #fff; font-weight: 600; white-space: nowrap; }
.rugc-story-arrow { position: absolute; top: 50%; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #111; cursor: pointer; }
.rugc-story-arrow--prev { left: -64px; }
.rugc-story-arrow--next { right: -64px; }
@media (max-width: 767px) {
  .rugc-story-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rugc-story[open] .rugc-story-card { animation: none; }
  .rugc-badge-faces, .rugc-badge-face, .rugc-story-card { transition: none; }
  .rugc-badge-faces::before, .rugc-badge-face::before { animation: none; }
}
