/* ===== Portfolio vidéo réseaux sociaux (section sous la VSL) ===== */
.rs-wrap { width: 100%; max-width: 72rem; margin: 4.5rem auto 0; color: #fff; }
.rs-head { text-align: center; padding: 0 0.5rem; }
.rs-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 500 .72rem/1 'Space Grotesk', 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase;
  color: #8FAABB; border: 1px solid rgba(143,170,187,.35); border-radius: 999px; padding: .55rem .95rem; }
.rs-eyebrow svg { width: 1rem; height: 1rem; }
.rs-title { font-weight: 300; font-size: clamp(1.7rem, 4.6vw, 2.9rem); line-height: 1.1; margin: 1.1rem 0 .8rem; color: #fff; }
.rs-sub { color: rgba(255,255,255,.55); max-width: 38rem; margin: 0 auto; font-size: clamp(.92rem, 1.6vw, 1.05rem); line-height: 1.6; font-weight: 300; }

.rs-tabs { display: flex; justify-content: center; gap: .6rem; margin: 2.2rem 0 1.4rem; flex-wrap: wrap; padding: 0 .5rem; }
.rs-tab { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem 1rem .4rem .4rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.7); font: 500 .88rem/1 'Inter', sans-serif; cursor: pointer; transition: all .25s; }
.rs-tab:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.rs-tab.is-active { background: #fff; color: #1a2f4a; border-color: #fff; }
.rs-tab-logo { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex: none; }
.rs-tab-logo img { width: 100%; height: 100%; object-fit: contain; }

.rs-logo--light { background: #fff; }
.rs-logo--dark { background: #2b2b2b; }
.rs-logo--navy { background: #0f1f33; }
.rs-logo--navy img, .rs-tab-logo.rs-logo--navy img { padding: 12%; }

.rs-carousel { position: relative; padding: 0 3.4rem; }
.rs-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rs-track::-webkit-scrollbar { display: none; }
.rs-slide { flex: 0 0 100%; scroll-snap-align: center; padding: 0 .5rem; box-sizing: border-box; }
.rs-slide-head { display: flex; align-items: center; gap: 1rem; max-width: 56rem; margin: 0 auto 1.4rem; padding: 1rem 1.2rem; border-radius: 1.2rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.rs-logo { width: 4.4rem; height: 4.4rem; border-radius: 1rem; display: grid; place-items: center; overflow: hidden; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.rs-logo img { width: 100%; height: 100%; object-fit: contain; }
.rs-name { font: 400 clamp(1.15rem, 2.6vw, 1.5rem)/1.15 'Raleway', sans-serif; margin: 0 0 .25rem; color: #fff; }
.rs-tag { margin: 0; color: #8FAABB; font-size: .88rem; }
.rs-total { margin-left: auto; white-space: nowrap; font: 500 .85rem/1 'Inter', sans-serif; color: rgba(255,255,255,.75); background: rgba(90,122,148,.35);
  border: 1px solid rgba(143,170,187,.4); border-radius: 999px; padding: .6rem .9rem; }
.rs-total b { color: #fff; font: 700 1.05rem/1 'Space Grotesk', sans-serif; margin-right: .15rem; }

.rs-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.rs-card { position: relative; margin: 0; width: clamp(8.8rem, 14.5vw, 11.8rem); aspect-ratio: 9 / 16; border-radius: 1rem; overflow: hidden; background: #0f1f33;
  box-shadow: 0 14px 34px rgba(0,0,0,.35); cursor: pointer; transform: translateZ(0); transition: transform .3s ease, box-shadow .3s ease; }
.rs-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0,0,0,.45); }
.rs-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rs-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 30%, transparent 75%, rgba(0,0,0,.35)); pointer-events: none; }
.rs-views { position: absolute; left: .55rem; top: .55rem; z-index: 2; width: 4.1rem; height: 4.1rem; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .05rem; background: #fff; color: #1a2f4a; box-shadow: 0 6px 16px rgba(0,0,0,.35); border: 3px solid #FFD27A;
  transform: rotate(-8deg); }
.rs-views svg { width: .9rem; height: .9rem; fill: #5A7A94; }
.rs-views b { font: 700 1.05rem/1 'Space Grotesk', sans-serif; }
.rs-views small { font: 600 .58rem/1 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .06em; color: #5A7A94; }
.rs-views--new { width: auto; height: auto; border-radius: 999px; border: 0; transform: none; padding: .35rem .65rem; background: rgba(90,122,148,.92); color: #fff; font: 500 .72rem/1 'Inter', sans-serif; }
.rs-sound { position: absolute; right: .55rem; bottom: .55rem; z-index: 2; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(10,20,35,.72) no-repeat center / 1.05rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5L6 9H2v6h4l5 4z'/%3E%3Cpath d='M22 9l-6 6M16 9l6 6'/%3E%3C/svg%3E"); }
.rs-card.is-sound .rs-sound { background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2f4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5L6 9H2v6h4l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 010 7M19 5a10 10 0 010 14'/%3E%3C/svg%3E"); }
.rs-card.is-sound { outline: 2px solid #fff; outline-offset: 3px; }

.rs-arrow { position: absolute; top: 50%; z-index: 5; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(26,47,74,.85);
  color: #fff; display: grid; place-items: center; cursor: pointer; transform: translateY(-50%); transition: background .2s, opacity .2s; }
.rs-arrow svg { width: 1.2rem; height: 1.2rem; }
.rs-arrow:hover { background: #5A7A94; }
.rs-arrow[disabled] { opacity: .25; cursor: default; }
.rs-arrow--prev { left: 0; }
.rs-arrow--next { right: 0; }

.rs-dots { display: flex; justify-content: center; gap: .45rem; margin-top: 1.4rem; }
.rs-dots span { width: .45rem; height: .45rem; border-radius: 999px; background: rgba(255,255,255,.25); transition: all .3s; }
.rs-dots span.is-active { width: 1.6rem; background: #fff; }
.rs-hint { text-align: center; color: rgba(255,255,255,.4); font-size: .78rem; margin: .8rem 0 0; }
.rs-cta { text-align: center; margin-top: 1.8rem; }
.rs-btn { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.7rem; border-radius: 999px; background: #5A7A94; color: #fff; font: 500 .95rem/1 'Inter', sans-serif;
  text-decoration: none; transition: background .25s, padding .25s; }
.rs-btn:hover { background: #3D5A73; padding-right: 2.1rem; }

@media (max-width: 767px) {
  .rs-wrap { margin-top: 1rem; }
  .rs-tab { font-size: .8rem; padding-right: .8rem; }
  .rs-tab-logo { width: 1.8rem; height: 1.8rem; }
  .rs-slide-head { flex-wrap: wrap; gap: .8rem; padding: .85rem; }
  .rs-logo { width: 3.4rem; height: 3.4rem; border-radius: .8rem; }
  .rs-total { margin-left: 0; }
  .rs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
  .rs-grid:has(> .rs-card:only-child) { grid-template-columns: minmax(0, 15rem); justify-content: center; }
  .rs-card { width: auto; }
  .rs-arrow { display: none; }
  .rs-carousel { padding: 0; }
}

/* --- ajouts : formats horizontaux + nouvelles tuiles --- */
.rs-logo--laurette { background: #1E1E24; }
.rs-logo--accent { background: #5A7A94; }
.rs-card--wide { width: clamp(17rem, 34vw, 26rem); aspect-ratio: var(--ar, 16/9); }
@media (max-width: 767px) {
  .rs-card--wide { grid-column: 1 / -1; width: auto; }
  .rs-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding-bottom: .2rem; }
  .rs-tabs::-webkit-scrollbar { display: none; }
  .rs-tab { flex: none; }
}

.rs-track { align-items: flex-start; transition: height .35s ease; }
.rs-tabs { position: relative; }

/* --- lecteur plein écran (double-clic) --- */
.rs-card { touch-action: manipulation; }
.rs-lightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(8,14,24,.92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 3.5rem 1rem 1.5rem; box-sizing: border-box; }
.rs-lightbox.is-open { display: flex; animation: rsLbIn .25s ease; }
.rs-lb-video { max-width: min(96vw, 1400px); max-height: 100%; width: auto; height: auto; border-radius: 14px; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.rs-lb-close { position: absolute; top: .8rem; right: 1rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.rs-lb-close:hover { background: rgba(255,255,255,.25); }
html.rs-lb-lock, html.rs-lb-lock body { overflow: hidden; }
@keyframes rsLbIn { from { opacity: 0; } to { opacity: 1; } }

.rs-lightbox { position: fixed !important; inset: 0 !important; z-index: 99999 !important; margin: 0 !important; }

.rs-track { overflow-y: hidden !important; overscroll-behavior-x: contain; }
.rs-slide { padding-top: .6rem; padding-bottom: 1.8rem; }

@media (max-width: 767px) {
  .rs-tabs { flex-wrap: nowrap; justify-content: center; overflow: visible; gap: .45rem; }
  .rs-tab { padding: .25rem; gap: 0; }
  .rs-tab-name { display: none; }
  .rs-tab-logo { width: 2.7rem; height: 2.7rem; }
  .rs-tab.is-active { box-shadow: 0 0 0 2px #fff; }
}

/* --- mobile : pas de carrousel horizontal, les logos affichent un restaurant à la fois, toutes ses vidéos visibles --- */
@media (max-width: 767px) {
  .rs-track { display: block; overflow: visible !important; height: auto !important; transition: none; }
  .rs-slide { display: none; padding: .3rem 0 .4rem; }
  .rs-slide.is-current { display: block; animation: rsFade .25s ease; }
  .rs-slide-head { flex-wrap: nowrap; margin: 0 0 1rem; }
  .rs-slide-head > div { min-width: 0; }
  .rs-name, .rs-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #reseaux .rs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
  #reseaux .rs-grid:has(> .rs-card:only-child) { grid-template-columns: minmax(0, 16rem); justify-content: center; }
  #reseaux .rs-card { width: auto; height: auto; aspect-ratio: 9 / 16; }
  #reseaux .rs-card--wide { grid-column: 1 / -1; aspect-ratio: var(--ar, 16/9); }
  #reseaux .rs-grid:has(> .rs-card--wide:only-child) { grid-template-columns: 1fr; }
  #reseaux .rs-card:hover { transform: none; }
  .rs-dots { display: none; }
}
@keyframes rsFade { from { opacity: 0; } to { opacity: 1; } }
