.video-page .section-spacing {
  padding: 5rem 0;
}

.video-page .section-spacing-2 {
  padding: 1rem 0 5rem 0;
}

.video-page h2 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.2;
  margin: 0;
  font-weight: 600;
  color: #fff;
}

.hero-banner--video {
  position: relative;
  min-height: 55vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 0;
}

.hero-banner--video .hero-content {
  min-height: 55vh;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.hero-banner--video .hero-content h1 {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 10vw, 6.8rem);
  line-height: 0.95;
  margin: 0;
  color: #fff;
  font-weight: 400;
  text-align: center;
  text-wrap: balance;
}

.video-intro {
  background: #000;
  color: #fff;
}

.video-intro__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.video-intro__inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
  max-width: 820px;
}

.drone-intro {
  background: #000;
  color: #fff;
}

.drone-intro__grid {
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
}

.drone-intro__copy {
  align-items: flex-start;
  text-align: left;
  justify-content: center;
}

.drone-intro__visual {
  overflow: visible;
}

.drone-intro__image {
  margin: 0;
  width: min(560px, 100%);
  height: clamp(320px, 38vw, 520px);
  margin-right: -2%;
  border-radius: 28px;
  overflow: hidden;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.44);
}

.drone-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-process {
  list-style: decimal;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.video-process li {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  padding: 20px;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  list-style-position: inside;
  transition: all 0.25s ease;
}

.video-process li:hover, .video-strength-card:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.video-projects {
  background: #fff;
  color: var(--color-text);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.video-projects .container {
  width: min(1580px, calc(100% - 2.5rem));
}

.video-projects h2, .social-realisation__header h2 {
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
  white-space: nowrap;
}

.video-projects__header {
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 3;
  margin: -4rem auto 0.8rem;
  padding: 0 0.9rem;
  background: #fff;
  width: fit-content;
}

.video-projects__header h2 {
  justify-content: center;
}

.video-projects__header h2::before,
.video-projects__header h2::after {
  display: none;
}

.video-projects__animation {
  --video-projects-frame-gap: clamp(180px, 26vw, 320px);
  --video-projects-frame-side-width: max(0px, calc((100% - var(--video-projects-frame-gap)) / 2));
  --video-projects-frame-color: rgba(30, 30, 30, 0.35);
  position: relative;
  padding: 2.5rem 1.4rem 1.4rem;
  background-image: linear-gradient(var(--video-projects-frame-color), var(--video-projects-frame-color)), linear-gradient(var(--video-projects-frame-color), var(--video-projects-frame-color));
  background-repeat: no-repeat;
  background-position: left bottom, right bottom;
  background-size: 0 2px, 0 2px;
}

.video-projects__animation::before,
.video-projects__animation::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.video-projects__animation::before {
  top: 0;
  right: calc(50% + (var(--video-projects-frame-gap) / 2));
  width: 0;
  height: 0;
  border-top: 2px solid var(--video-projects-frame-color);
  border-left: 2px solid var(--video-projects-frame-color);
}

.video-projects__animation::after {
  top: 0;
  left: calc(50% + (var(--video-projects-frame-gap) / 2));
  width: 0;
  height: 0;
  border-top: 2px solid var(--video-projects-frame-color);
  border-right: 2px solid var(--video-projects-frame-color);
}

.video-projects__animation.is-drawn::before,
.video-projects__animation.is-drawn::after {
  animation: video-projects-frame-side-draw 0.9s ease forwards;
}

.video-projects__animation.is-drawn {
  animation: video-projects-frame-bottom-draw 0.45s ease 0.9s forwards;
}

.video-projects__animation > * {
  position: relative;
  z-index: 1;
}

@keyframes video-projects-frame-side-draw {
  0% {
    width: 0;
    height: 0;
  }

  45% {
    width: var(--video-projects-frame-side-width);
    height: 0;
  }

  100% {
    width: var(--video-projects-frame-side-width);
    height: 99.6%;
  }
}

@keyframes video-projects-frame-bottom-draw {
  from {
    background-size: 0 2px, 0 2px;
  }

  to {
    background-size: 50% 2px, 50% 2px;
  }
}

.video-projects__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.video-projects__grid .video-project-card[data-reveal="up"] {
  transition: opacity 1.05s ease, transform 1.05s ease;
}

.video-project-card {
  min-width: 0;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.video-project-card--featured {
  grid-column: span 2;
}

.video-project-card--wide {
  grid-column: span 2;
}

.video-project-card__trigger {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
      height: 100%;
}

.video-project-card__media {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.video-project-card--featured .video-project-card__media {
  aspect-ratio: 2 / 1;
}

.video-project-card--wide .video-project-card__media {
  aspect-ratio: 2 / 1;
}

.video-project-card__media img,
.video-project-card__teaser {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-project-card__teaser {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.video-project-card:hover .video-project-card__teaser,
.video-project-card:focus-within .video-project-card__teaser {
  opacity: 1;
}

.video-project-card:hover .video-project-card__shade,
.video-project-card:focus-within .video-project-card__shade {
  background: rgba(0, 0, 0, 0.08);
}

.video-project-card .latest-work-card__pill {
  position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.94);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.45rem 0.85rem 1.45rem;
    border-radius: 999px;
    background: #000;
    color: #fff;
    letter-spacing: 0.09em;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0;
    transition: all 0.28s ease;
    text-align: center;
}

.video-project-card .latest-work-card__pill:hover {
  background: #fff;
  color: #000;
  transform: translate(-50%, -50%) scale(1);
}

.video-project-card:hover .latest-work-card__pill,
.video-project-card:focus-within .latest-work-card__pill {
  opacity: 1;
}

.video-project-card__title {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 0.75rem;
  z-index: 3;
  margin: 0;
  text-align: left;
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  line-height: 1.2;
  color: #fff;
  font-weight: 500;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.308);
}

.video-project-card--cta {
  grid-column: span 1;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-text);
  color: white;
  gap: 1rem;
    border-radius: 8px;
}

.video-project-card__cta-label {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.video-project-card__cta-icon {
  display: inline-flex;
  align-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 0.5rem;
}

.video-project-card__cta-icon svg {
  width: 11px;
  height: 11px;
}

.video-projects__empty {
  margin: 0;
  color: rgba(0, 0, 0, 0.64);
}

.social-realisation {
  background: #fff;
  color: var(--color-text);
}

.social-realisation__header {
  margin-bottom: 1.2rem;
}

.social-realisation__header h2 {
  color: var(--color-text);
}

.social-realisation__gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.social-realisation__image-card {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: #f4f4f4;
}

.social-realisation__image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* opacity: 0.42; */
}

/* .social-realisation__image-card img:hover,
.social-realisation__image-card img:focus-within {
  opacity: 1;
  transform: translateY(-2px);
} */

.social-realisation__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.social-realisation-card {
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  box-shadow: 0 16px 36px rgba(16, 16, 16, 0.06);
}

.social-realisation-card__icon {
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-realisation-card__icon svg {
  width: 26px;
  height: auto;
  fill: currentColor;
}

.social-realisation-card__icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.social-realisation-card__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.2;
  color: var(--color-text);
}

.social-realisation-card__counter {
  font-family: var(--font-title);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  font-weight: 600;
  color: var(--color-text);
}

.social-realisation__cards .social-realisation-card[data-reveal="up"] {
  transition: opacity 1.05s ease, transform 1.05s ease;
}

.video-strengths {
  background: #000;
  color: #fff;
}

.drone-extra {
  background: #f2f2f2;
  color: var(--color-text);
  overflow: hidden;
}

.drone-extra__layout {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  align-items: center;
  gap: 100px;
}

.drone-extra__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 560px;
}

.drone-extra__content h2 {
  color: #101010;
  margin: 0;
}

.drone-extra__content p {
  margin: 0;
  color: rgba(16, 16, 16, 0.78);
  line-height: 1.7;
}

.drone-extra__visual {
  position: relative;
  min-height: clamp(340px, 40vw, 560px);
  overflow: visible;
}

.drone-extra__bg,
.drone-extra__overlay {
  margin: 0;
}

.drone-extra__bg {
  position: absolute;
  inset: 0;
}

.drone-extra__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drone-extra-media {
  overflow: hidden;
}

.drone-extra-media__trigger {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  display: block;
  cursor: pointer;
}

.drone-extra-media__trigger[disabled] {
  cursor: default;
}

.drone-extra-media__teaser {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drone-extra-media:hover .drone-extra-media__teaser,
.drone-extra-media:focus-within .drone-extra-media__teaser {
  opacity: 1;
}

.drone-extra__overlay {
  position: absolute;
  top: 50%;
  left: -75px;
  transform: translate3d(0, -50%, 0);
  width: min(50%, 280px);
  aspect-ratio: 3 / 4;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.drone-extra__overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-strengths__header {
  margin-bottom: 1.2rem;
}

.video-strengths__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.video-strength-card {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  padding: 1rem;
  min-height: 220px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.25s ease;
}

.video-strength-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgb(255, 255, 255);
  display: inline-flex;
  position: relative;
}

.video-strength-card__icon svg {
  width: 22px;
  height: auto;
  color: black;
  margin: auto;

}

/* .video-strength-card__icon::before,
.video-strength-card__icon::after {
  content: "";
  position: absolute;
  background: #fff;
  opacity: 0.9;
}

.video-strength-card__icon::before {
  width: 18px;
  height: 2px;
  top: 21px;
  left: 12px;
}

.video-strength-card__icon::after {
  width: 2px;
  height: 18px;
  top: 12px;
  left: 21px;
} */

.video-strength-card h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.25rem;
  line-height: 1.25;
  color: #fff;
}

.video-strength-card p {
  margin: 0;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.video-modal__panel {
  text-align: right;
  position: relative;
  width: min(980px, calc(100% - 2rem));
  margin: 5vh auto 0;
  z-index: 2;
}

.video-modal__close {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: #fff;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  border: 0;
  background-color: transparent;
  transition: all 0.25s ease;
}

.video-modal__close:hover{
  background-color: #ffffff27;
}

.video-modal__frame-wrap {
  margin-top: 0.7rem;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.video-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1080px) {
  .drone-intro__grid {
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    gap: clamp(2rem, 5vw, 4rem);
  }

  .drone-intro__image {
    height: clamp(280px, 34vw, 430px);
    margin-right: -2%;
  }

  .video-process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .video-strengths__grid {
    grid-template-columns: 1fr 1fr;
  }

  .social-realisation__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-realisation__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-project-card--featured,
  .video-project-card--wide {
    grid-column: span 2;
  }

  .video-project-card--cta {
    grid-column: span 1;
  }

  .drone-extra__layout {
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  }

  .drone-extra__overlay {
    width: min(42%, 210px);
  }
}

@media (max-width: 860px) {
  .video-page .section-spacing {
    padding: 3.5rem 0;
  }

  .video-page .section-spacing-2 {
    padding: 0.8rem 0 3.5rem 0;
  }

  .hero-banner--video .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .drone-intro__grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .drone-intro__copy {
    align-items: center;
    text-align: center;
  }

  .drone-intro__image {
    width: min(460px, 100%);
    max-width: 100%;
    height: clamp(260px, 70vw, 420px);
    margin-right: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .video-projects__grid {
    grid-template-columns: 1fr;
  }

  .video-projects__animation {
    padding: 2.6rem 0.9rem 0.9rem;
    --video-projects-frame-gap: clamp(120px, 44vw, 190px);
  }

  .video-projects__header {
    margin: -3.35rem auto 0.8rem;
    padding: 0 0.65rem;
  }

  .video-projects__animation::before,
  .video-projects__animation::after {
    border-width: 1px;
  }

  .video-project-card--featured,
  .video-project-card--wide,
  .video-project-card--cta {
    grid-column: span 1;
  }

  .video-project-card--featured .video-project-card__media {
    aspect-ratio: 1 / 1;
  }

  .video-project-card--wide .video-project-card__media {
    aspect-ratio: 1 / 1;
  }

  .video-project-card--cta {
    min-height: 180px;
    align-items: center;
  }

  .video-process{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .video-strengths__grid {
    grid-template-columns: 1fr;
  }

  /* .social-realisation__gallery,
  .social-realisation__cards {
    grid-template-columns: 1fr;
  } */

  .social-realisation__image-card {
    aspect-ratio: 4 / 3;
  }

    .social-realisation-card__icon img{
      width: 36px;
      height: 36px;
    }

  .drone-extra__layout {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .drone-extra__content {
    align-items: center;
    text-align: center;
    max-width: none;
  }

  .drone-extra__visual {
    min-height: clamp(300px, 72vw, 420px);
  }

  .drone-extra__overlay {
    right: 0.7rem;
    width: min(44%, 180px);
  }

  .video-strength-card {
    min-height: 0;
  }

  .video-modal__panel {
    width: calc(100% - 1rem);
    margin-top: 8vh;
  }
}

/* ═══════════════════════════════════════════════════════════
   RS PAGE — Gestion Réseaux Sociaux
   ═══════════════════════════════════════════════════════════ */

/* ── Hero image (remplace la vidéo) ───────────────────────── */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Cartes réseaux sociaux : sans curseur pointer ─────────── */
.rs-project-card {
  cursor: default;
}

/* ── Grille 5 cartes : 3 en haut + 2 centrées en bas ─────── */
.video-strengths__grid--5 {
  grid-template-columns: repeat(6, 1fr);
}

.video-strengths__grid--5 .video-strength-card {
  grid-column: span 2;
}

.video-strengths__grid--5 .video-strength-card:nth-child(4) {
  grid-column: 2 / 4;
}

.video-strengths__grid--5 .video-strength-card:nth-child(5) {
  grid-column: 4 / 6;
}

/* ── RS Extra (image gauche, texte droite) ─────────────────── */
.rs-extra {
  background: #f2f2f2;
  color: var(--color-text);
  overflow: hidden;
}

.rs-extra__layout {
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  align-items: center;
  gap: 100px;
}

.rs-extra__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 560px;
}

.rs-extra__content h2 {
  color: #101010;
  margin: 0;
}

.rs-extra__content p {
  margin: 0;
  color: rgba(16, 16, 16, 0.78);
  line-height: 1.7;
}

.rs-extra__visual {
  position: relative;
  min-height: clamp(340px, 40vw, 560px);
  overflow: visible;
}

.rs-extra__bg,
.rs-extra__overlay {
  margin: 0;
}

.rs-extra__bg {
  position: absolute;
  inset: 0;
}

.rs-extra__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rs-extra__overlay {
  --drone-overlay-parallax: 0px;
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translate3d(0, calc(-50% + var(--drone-overlay-parallax)), 0);
  width: min(50%, 280px);
  aspect-ratio: 3 / 4;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  will-change: transform;
}

.rs-extra__overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Responsive RS page ────────────────────────────────────── */
@media (max-width: 1080px) {
  .video-strengths__grid--5 {
    grid-template-columns: repeat(6, 1fr);
  }

  .rs-extra__layout {
    grid-template-columns: minmax(0, 55%) minmax(0, 45%);
  }

  .rs-extra__overlay {
    right: -40px;
    width: min(44%, 230px);
  }
}

@media (max-width: 860px) {
  .video-strengths__grid--5 {
    grid-template-columns: 1fr;
  }

  .video-strengths__grid--5 .video-strength-card,
  .video-strengths__grid--5 .video-strength-card:nth-child(4),
  .video-strengths__grid--5 .video-strength-card:nth-child(5) {
    grid-column: auto;
  }

  .rs-extra__layout {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .rs-extra__visual {
    min-height: clamp(300px, 72vw, 420px);
  }

  .rs-extra__overlay {
    right: 0.7rem;
    width: min(44%, 180px);
  }

  .rs-extra__content {
    align-items: center;
    text-align: center;
    max-width: none;
  }
}
