/* site_web/assets/css/campaign.css */

/* ============ Hero ============ */
.campaign-hero {
  position: relative;
  height: 60vh;
  min-height: 26rem;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding-inline: 1rem;
  isolation: isolate;
}
@media (min-width: 768px) {
  .campaign-hero { height: 70vh; gap: 5rem; }
}

.campaign-hero__images {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
@media (min-width: 768px) { .campaign-hero__images { gap: 5rem; } }

.campaign-hero__img-wrap {
  position: relative;
}
.campaign-hero__img-wrap img {
  width: 10rem;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212, 160, 23, 0.2));
  transition: filter 0.7s ease;
}
@media (min-width: 768px) { .campaign-hero__img-wrap img { width: 16rem; } }
@media (min-width: 1024px) { .campaign-hero__img-wrap img { width: 18rem; } }
.campaign-hero__img-wrap:hover img {
  filter: drop-shadow(0 0 24px rgba(212, 160, 23, 0.8));
}
.campaign-hero__img-wrap.is-visible img {
  animation: caauri-float 7s ease-in-out infinite;
}

/* ---- Réseaux Sociaux variant: full-bleed still image + mascot video ---- */
.campaign-hero--social {
  justify-content: flex-start;
}
.campaign-hero__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.campaign-hero__video-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}
.campaign-hero__video-wrap video {
  width: 10rem;
  height: auto;
  object-fit: contain;
}
@media (min-width: 768px) { .campaign-hero__video-wrap video { width: 14rem; } }
@media (min-width: 1024px) { .campaign-hero__video-wrap video { width: 16rem; } }

.campaign-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

.campaign-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}
@media (min-width: 768px) { .campaign-hero__content { padding: 3.5rem; } }
@media (min-width: 1024px) { .campaign-hero__content { padding: 5rem; } }

.campaign-hero__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .campaign-hero__category { font-size: 0.875rem; } }

.campaign-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  font-size: 1.875rem;
  line-height: 1.15;
  max-width: 48rem;
}
@media (min-width: 768px) { .campaign-hero__title { font-size: 3.75rem; } }

/* ============ Intro + services grid ============ */
.campaign-intro {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 4rem;
  max-width: 48rem;
}
@media (min-width: 768px) { .campaign-intro { font-size: 1.125rem; } }

.service-card {
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}
@media (min-width: 768px) { .service-card { padding: 2rem; } }
.service-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .service-card__title { font-size: 1.25rem; } }
.service-card__desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ============ Réalisations split ============ */
.split {
  position: relative;
  background: #000;
}
.split__row {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) { .split__row { flex-direction: row; } }

.split__left {
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom right, #0a0a0a, #0d0d0d, #000);
  padding: 5rem 2rem;
}
@media (min-width: 768px) { .split__left { padding: 5rem 3.5rem; } }
@media (min-width: 1024px) {
  .split__left {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 50%;
    padding: 0 5rem;
  }
}

.split__left-inner { max-width: 28rem; }

.split__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.split__heading {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  font-size: 1.875rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .split__heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .split__heading { font-size: 3rem; } }

.split__paragraph {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .split__paragraph { font-size: 1.125rem; } }

.split__cta-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.split__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.split__link:hover { color: var(--amber); }

.split__right {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) { .split__right { width: 50%; } }

/* ============ Project card ============ */
.project-card {
  position: relative;
  height: 70vh;
  overflow: hidden;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .project-card {
    position: sticky;
    top: 0;
    height: 100vh;
  }
}
.project-card:not(:first-child) { margin-top: -2px; }

.project-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 0.6s ease-out;
}
.project-card:hover .project-card__img { transform: scale(1.16); }

.project-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.4));
  transition: background 0.5s ease;
}

.project-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: 1.5rem;
  text-align: center;
}

.project-card__brand {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
}

.project-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
  font-size: 1.875rem;
  line-height: 1.15;
}
@media (min-width: 768px) { .project-card__title { font-size: 3rem; } }
@media (min-width: 1024px) { .project-card__title { font-size: 3.75rem; } }

.project-card__subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 1rem;
}
@media (min-width: 768px) { .project-card__subtitle { font-size: 1rem; } }

.project-card__location {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 500;
}

.project-card__cta {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.project-card__cta span {
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 0.125rem;
}
.project-card:hover .project-card__cta,
.project-card:hover .project-card__cta span {
  color: var(--gold);
  border-color: var(--gold);
}

.split__spacer { height: 5rem; }
@media (min-width: 768px) { .split__spacer { height: 7rem; } }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.95);
  display: flex;
  flex-direction: column;
}
.lightbox[hidden] { display: none; }

.lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 768px) { .lightbox__header { padding: 1.25rem 2.5rem; } }

.lightbox__close {
  background: transparent;
  border: none;
  padding: 0.5rem;
  color: rgba(255,255,255,0.6);
  border-radius: 999px;
  display: inline-flex;
}
.lightbox__close:hover { color: #fff; background: rgba(255,255,255,0.1); }

.lightbox__body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow: hidden;
}
@media (min-width: 768px) { .lightbox__body { padding: 1.5rem 2.5rem; } }

.lightbox__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: transparent;
  border: none;
  padding: 0.75rem;
  color: rgba(255,255,255,0.6);
  border-radius: 999px;
}
.lightbox__arrow:hover { color: #fff; background: rgba(255,255,255,0.1); }
.lightbox__arrow--prev { left: 0.5rem; }
.lightbox__arrow--next { right: 0.5rem; }
@media (min-width: 768px) {
  .lightbox__arrow--prev { left: 1.5rem; }
  .lightbox__arrow--next { right: 1.5rem; }
}

.lightbox__thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  overflow-x: auto;
}
.lightbox__thumbs button {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.5;
  background: transparent;
  padding: 0;
  transition: opacity 0.2s, border-color 0.2s;
}
@media (min-width: 768px) {
  .lightbox__thumbs button { width: 5rem; height: 5rem; }
}
.lightbox__thumbs button:hover { opacity: 0.8; }
.lightbox__thumbs button.is-active { opacity: 1; border-color: var(--gold); }
.lightbox__thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox__counter {
  position: absolute;
  top: 1.25rem;
  right: 5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  font-weight: 500;
}
@media (min-width: 768px) { .lightbox__counter { right: 6rem; } }

/* ============ Services timeline (réseaux sociaux) ============ */
.timeline-header {
  text-align: center;
  padding-block: 5rem;
}
@media (min-width: 768px) { .timeline-header { padding-block: 8rem; } }

.timeline-block--full img,
.timeline-block--full video {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.7s ease-out;
}
.timeline-block--full:hover img,
.timeline-block--full:hover video {
  transform: scale(1.05);
}
.timeline-block--full,
.timeline-block--video {
  position: relative;
  overflow: hidden;
}

.timeline-block--split {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 768px) { .timeline-block--split { flex-direction: row; } }

.timeline-block--split__half {
  position: relative;
  width: 100%;
  overflow: hidden;
}
@media (min-width: 768px) { .timeline-block--split__half { width: 50%; } }
.timeline-block--split__half img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-out;
}
.timeline-block--split__half:hover img { transform: scale(1.05); }

/* ============ CTA + back link (shared with Réalisations Step 4 pattern) ============ */
.campaign-cta {
  padding-block: 5rem;
  text-align: center;
}
@media (min-width: 768px) { .campaign-cta { padding-block: 8rem; } }
.campaign-cta__inner { max-width: 48rem; margin-inline: auto; }
.campaign-cta__text {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.campaign-cta__back { margin-top: 2rem; }
