/* ===============================
   REALISATIONS
   =============================== */

.projects-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: #fff;
  border: 1px solid #dce8f5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(1, 73, 142, 0.08);
  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(1, 73, 142, 0.12);
}

.project-image-placeholder {
  min-height: 240px;
  background: linear-gradient(135deg, rgba(1,73,142,0.10), rgba(198,124,88,0.16));
  border-bottom: 1px dashed rgba(1,73,142,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  padding: 20px;
}

.project-card-content {
  padding: 24px;
}

.project-card-content h3 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.25;
}

.project-card-content p {
  color: #667085;
  line-height: 1.8;
}

.video-testimonial-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: #fff;
  border: 1px solid #dce8f5;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 18px 40px rgba(1, 73, 142, 0.08);
}

.video-placeholder {
  min-height: 320px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(1,73,142,0.10), rgba(198,124,88,0.16));
  border: 1px dashed rgba(1,73,142,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  padding: 20px;
}

.video-testimonial-content h3 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.video-testimonial-content p {
  color: #667085;
  line-height: 1.9;
  margin-bottom: 20px;
}

.video-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 10px;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 700;
  transition: 0.3s ease;
}

.btn-secondary-dark:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
  .projects-gallery-grid,
  .video-testimonial-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .project-card-content,
  .video-testimonial-box {
    padding: 24px;
  }

  .project-image-placeholder,
  .video-placeholder {
    min-height: 240px;
  }

  .video-actions {
    flex-direction: column;
  }

  .video-actions a {
    width: 100%;
  }
}
/* ===============================
   GALERIE HORIZONTALE
   =============================== */

.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.gallery-viewport {
  overflow: hidden;
  width: 100%;
}

.gallery-row {
  display: flex;
  gap: 18px;
  transition: transform 0.4s ease;
}

.gallery-slide {
  flex: 0 0 calc((100% - 36px) / 3);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(1, 73, 142, 0.10);
}

.gallery-slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.gallery-arrow {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  font-size: 28px;
  box-shadow: 0 14px 28px rgba(1, 73, 142, 0.10);
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.25s ease;
}

.gallery-arrow:hover {
  background: var(--primary);
  color: #fff;
}

/* ===============================
   VIDEO REALISATIONS
   =============================== */

.video-realisation-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.video-realisation-main,
.video-realisation-side {
  background: #fff;
  border: 1px solid #dce8f5;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(1, 73, 142, 0.08);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 20px;
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-realisation-side h3 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--primary-dark);
  line-height: 1.15;
  margin-bottom: 14px;
}

.video-realisation-side p {
  color: #667085;
  line-height: 1.85;
  margin-bottom: 20px;
}

.video-side-links {
  display: grid;
  gap: 14px;
}

.video-side-link {
  display: block;
  text-decoration: none;
  border: 1px solid #dce8f5;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  transition: 0.25s ease;
}

.video-side-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(1, 73, 142, 0.10);
}

.video-side-link strong {
  display: block;
  color: var(--primary-dark);
  font-size: 20px;
  margin-bottom: 6px;
}

.video-side-link span {
  color: #667085;
  line-height: 1.7;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 1024px) {
  .gallery-slide {
    flex: 0 0 calc((100% - 18px) / 2);
  }

  .video-realisation-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .gallery-slide {
    flex: 0 0 100%;
  }

  .gallery-slide img {
    height: 220px;
  }

  .gallery-arrow {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .video-realisation-main,
  .video-realisation-side {
    padding: 20px;
    border-radius: 22px;
  }
}

/* ===============================
   LIGHTBOX PROPRE
   =============================== */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 38, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 30px;
}

.gallery-lightbox.active {
  display: flex;
}

.lightbox-inner {
  max-width: 1000px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.30);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: 0.25s ease;
}

.lightbox-control {
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  transition: 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-control:hover {
  background: rgba(255,255,255,0.28);
}

.gallery-slide {
  cursor: pointer;
}

@media (max-width: 768px) {
  .gallery-lightbox {
    padding: 18px;
  }

  .lightbox-close {
    width: 42px;
    height: 42px;
    font-size: 24px;
    top: 14px;
    right: 14px;
  }

  .lightbox-control {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }
}
/* ===============================
   TEMOIGNAGES
   =============================== */

.testimonial-card {
  position: relative;
  background: #fff;
  border: 1px solid #dce8f5;
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 18px 40px rgba(1, 73, 142, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-quote-mark {
  font-size: 72px;
  line-height: 1;
  color: rgba(198, 124, 88, 0.25);
  margin-bottom: 10px;
  font-weight: 800;
}

.testimonial-card h2 {
  font-size: clamp(26px, 3vw, 38px);
  color: var(--primary-dark);
  margin-bottom: 14px;
  line-height: 1.14;
}

.testimonial-text {
  font-size: 17px;
  line-height: 1.95;
  color: #667085;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-author strong {
  color: var(--primary);
  font-size: 16px;
}

.testimonial-author span {
  color: #7b8797;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 26px;
    border-radius: 22px;
  }

  .testimonial-quote-mark {
    font-size: 54px;
  }

  .testimonial-text {
    font-size: 15px;
  }
}

/* ===============================
   NOS SUCCES
   =============================== */

.success-case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: #fff;
  border: 1px solid #dce8f5;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 18px 40px rgba(1, 73, 142, 0.08);
}

.success-case-card.reverse {
  direction: rtl;
}

.success-case-card.reverse > * {
  direction: ltr;
}

.success-case-media .media-placeholder {
  min-height: 300px;
  border-radius: 22px;
}

.success-case-content h2 {
  font-size: clamp(26px, 3vw, 38px);
  color: var(--primary-dark);
  margin-bottom: 14px;
  line-height: 1.14;
}

.success-case-content p {
  color: #667085;
  line-height: 1.9;
  margin-bottom: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .success-case-card {
    grid-template-columns: 1fr;
  }

  .success-case-card.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .success-case-card {
    padding: 24px;
    border-radius: 22px;
  }

  .success-case-media .media-placeholder {
    min-height: 240px;
  }
}