/* ═══════════════════════════════════════════
PACKSHOT 3D — CSS personnalisé
À coller dans WPCode / CSS personnalisé WP
═══════════════════════════════════════════ */
/* ── 1. HERO ── */
.dv-pack-hero {
  background: var(--dv-violet-bg);
  overflow: hidden;
  position: relative;
}

.dv-pack-hero__inner {
  max-width: var(--dv-max-width);
  margin: 0 auto;
  padding: 0 var(--dv-section-px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 680px;
}

.dv-pack-hero__glow {
  position: absolute;
  top: -100px;
  right: -60px;
  width: 560px;
  height: 560px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.2) 0%, transparent 65%);
  pointer-events: none;
}

.dv-pack-hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0;
  position: relative;
  z-index: 1;
}

.dv-pack-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: var(--dv-radius-full);
  padding: 6px 14px;
  width: fit-content;
  margin-bottom: 28px;
}

.dv-pack-hero__pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dv-violet-light);
  flex-shrink: 0;
}

.dv-pack-hero__pill span {
  font-size: 11px;
  font-weight: 700;
  color: var(--dv-violet-light) !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dv-pack-hero__h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.0;
  color: white;
  margin-bottom: 24px;
}

.dv-pack-hero__h1 em {
  font-style: normal;
  color: var(--dv-violet-light);
}

.dv-pack-hero__body {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55) !important;
  max-width: 440px;
  margin-bottom: 40px;
}

.dv-pack-hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.dv-pack-hero__micro {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3) !important;
}

.dv-pack-hero__right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 48px 0;
}

.dv-pack-hero__img-wrap {
  border-radius: 24px;
  overflow: hidden;
  /* Indispensable pour que l'image suive l'arrondi du parent */
  position: relative;
  width: 100%;
  max-width: 480px;
}

.dv-pack-hero__img-halo {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.25) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.dv-pack-hero__img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 32px 64px rgba(124, 58, 237, 0.3));
  transform: scaleX(-1);
}

.dv-pack-hero__badge {
  position: absolute;
  bottom: 24px;
  left: -16px;
  background: var(--dv-violet-surface);
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: var(--dv-radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.dv-pack-hero__badge-icon {
  width: 32px;
  height: 32px;
  background: rgba(196, 181, 253, 0.1);
  border-radius: var(--dv-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dv-violet-light);
  flex-shrink: 0;
}

.dv-pack-hero__badge-label {
  font-size: 12px;
  font-weight: 700;
  color: white !important;
}

.dv-pack-hero__badge-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35) !important;
  margin-top: 2px;
}

/* ── 2. BÉNÉFICES ── */
.dv-pack-benefits {
  background: white;
  padding: var(--dv-section-py) var(--dv-section-px);
}

.dv-pack-benefits__inner {
  max-width: var(--dv-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.dv-pack-benefits__left {
  position: sticky;
  top: 88px;
  align-self: start;
}

.dv-pack-benefits__img-wrap {
  border-radius: var(--dv-radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--dv-bg-soft);
}

.dv-pack-benefits__img-wrap {
  border-radius: var(--dv-radius-xl);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  /* Changez 3/4 par 1/1 si vos rendus sont carrés */
  background: var(--dv-bg-soft);
}

.dv-pack-benefits__caption {
  font-size: 12px;
  color: var(--dv-grey-light);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

.dv-pack-benefits__right {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}

.dv-pack-benefit {
  padding: 28px 0;
  border-bottom: 1px solid var(--dv-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dv-pack-benefit:first-of-type {
  border-top: 1px solid var(--dv-border);
}

.dv-pack-benefit__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.dv-pack-benefit__icon {
  width: 36px;
  height: 36px;
  background: #EDE9FE;
  border-radius: var(--dv-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dv-violet);
  flex-shrink: 0;
  margin-top: 2px;
}

.dv-pack-benefit__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  color: var(--dv-black);
}

.dv-pack-benefit__body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--dv-grey);
  padding-left: 52px;
}

/* ── 3. UN VISUEL PLUSIEURS USAGES ── */
.dv-pack-usages {
  background: var(--dv-violet-bg);
  padding: var(--dv-section-py) var(--dv-section-px);
}

.dv-pack-usages__inner {
  max-width: var(--dv-max-width);
  margin: 0 auto;
}

.dv-pack-usages__header {
  text-align: center;
  margin-bottom: 56px;
}

.dv-pack-usages__header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: white;
}

.dv-pack-usages__header h2 em {
  font-style: normal;
  color: var(--dv-violet-light);
}

.dv-pack-usages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dv-pack-usage-card {
  background: var(--dv-violet-surface);
  border: 1px solid var(--dv-border-dark);
  border-radius: var(--dv-radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform var(--dv-duration) var(--dv-ease),
    border-color var(--dv-duration),
    box-shadow var(--dv-duration) var(--dv-ease);
}

.dv-pack-usage-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 181, 253, 0.25);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.dv-pack-usage-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(196, 181, 253, 0.1);
  border-radius: var(--dv-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dv-violet-light);
  margin-bottom: 20px;
}

.dv-pack-usage-card__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
  color: white !important;
  margin-bottom: 12px;
}

.dv-pack-usage-card__body {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.45) !important;
}

/* ── 4. IA MISE EN SITUATION ── */
.dv-pack-ia {
  background: white;
  padding: var(--dv-section-py) var(--dv-section-px);
}

.dv-pack-ia__inner {
  max-width: var(--dv-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.dv-pack-ia__left {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 88px;
  align-self: start;
}

.dv-pack-ia__left h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--dv-black);
  margin-bottom: 16px;
}

.dv-pack-ia__left h2 em {
  font-style: normal;
  color: var(--dv-violet);
}

.dv-pack-ia__body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--dv-grey);
  margin-bottom: 28px;
}

.dv-pack-ia__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.dv-pack-ia__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.dv-pack-ia__step-icon {
  width: 32px;
  height: 32px;
  background: #EDE9FE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dv-violet);
  flex-shrink: 0;
  margin-top: 1px;
}

.dv-pack-ia__step-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--dv-grey);
}

.dv-pack-ia__step-text strong {
  color: var(--dv-black);
  font-weight: 600;
}

.dv-pack-ia__disclaimer {
  font-size: 12px;
  color: var(--dv-grey-light);
  border-left: 2px solid var(--dv-border);
  padding-left: 12px;
  line-height: 1.6;
}

.dv-pack-ia__right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dv-pack-ia__img {
  border-radius: var(--dv-radius-lg);
  overflow: hidden;
  background: var(--dv-bg-soft);
}

.dv-pack-ia__img img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s var(--dv-ease);
}

.dv-pack-ia__img:hover img {
  transform: scale(1.03);
}

.dv-pack-ia__img--tall {
  aspect-ratio: 4/3;
}

.dv-pack-ia__img--wide {
  aspect-ratio: 16/9;
}

/* ── 5. SHOOTING VS PACKSHOT ── */
.dv-pack-vs {
  background: var(--dv-bg-soft);
  padding: var(--dv-section-py) var(--dv-section-px);
}

.dv-pack-vs__inner {
  max-width: var(--dv-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.dv-pack-vs__header {
  text-align: center;
}

.dv-pack-vs__header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--dv-black);
}

.dv-pack-vs__header h2 em {
  font-style: normal;
  color: var(--dv-violet);
}

.dv-pack-vs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* Inversion via order — pas de direction:rtl */
.dv-pack-vs-row--reverse .dv-pack-vs-row__visual { order: 2; }
.dv-pack-vs-row--reverse .dv-pack-vs-row__text   { order: 1; }

.dv-pack-vs-row__visual {
  border-radius: var(--dv-radius-xl);
  overflow: hidden;
  background: white;
  border: 1px solid var(--dv-border);
}

.dv-pack-vs-row__visual img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s var(--dv-ease);
}

.dv-pack-vs-row__visual:hover img {
  transform: scale(1.03);
}

/* Grille ancres pour argument 1 */
.dv-pack-anchors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 24px;
  background: white;
  border: 1px solid var(--dv-border);
  border-radius: var(--dv-radius-xl);
}

.dv-pack-anchors img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  display: block;
  border-radius: var(--dv-radius-md);
  background: var(--dv-bg-soft);
  padding: 8px;
  transition: transform 0.3s var(--dv-ease);
}

.dv-pack-anchors img:hover {
  transform: scale(1.05);
}

.dv-pack-vs-row__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dv-pack-vs-row__text h3 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--dv-violet);
}

.dv-pack-vs-row__text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--dv-grey);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {

  .dv-pack-hero__inner,
  .dv-pack-benefits__inner,
  .dv-pack-ia__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }

  .dv-pack-hero__inner {
    padding-top: 64px;
  }

  .dv-pack-ia__left {
    position: static;
  }

  .dv-pack-hero__left {
    padding: 0 0 40px;
  }

  .dv-pack-hero__right {
    padding: 0 0 64px;
  }

  .dv-pack-benefits__left {
    position: static;
  }

  .dv-pack-usages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dv-pack-vs-row,
  .dv-pack-vs-row--reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Reset order mobile */
  .dv-pack-vs-row--reverse .dv-pack-vs-row__visual { order: 0; }
  .dv-pack-vs-row--reverse .dv-pack-vs-row__text   { order: 0; }
}

@media (max-width: 640px) {
  .dv-pack-usages__grid {
    grid-template-columns: 1fr;
  }

  .dv-pack-hero__badge {
    left: 0;
  }
}

.dv-pack-canvas {
  width: 320px;
  /* Ajustez la taille selon vos besoins */
  height: 320px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  /* Petit ombre pour détacher du fond */
}

.dv-pack-canvas__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* L'image n'est jamais coupée */
  padding: 30px;
  /* Marge pour que les produits respirent */
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.dv-pack-canvas__img.is-active {
  opacity: 1;
}

.dv-pack-anchors {
  position: relative;
  height: 400px;
  /* À ajuster selon tes besoins */
}

.dv-pack-anchors img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.dv-pack-anchors img.is-active {
  opacity: 1;
}

/* On fixe la hauteur et on centre */
.dv-pack-anchors {
  position: relative;
  width: 100%;
  height: 450px;
  /* Ajuste cette hauteur si besoin */
  display: flex;
  justify-content: center;
  align-items: center;
}

.dv-pack-anchors img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  /* Centrage forcé */
  max-width: 100%;
  max-height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  /* Vitesse du fondu */
}

/* Image visible */
.dv-pack-anchors img.is-active {
  opacity: 1;
}

/* --- SECTION GALERIE (SÉLECTION DE RÉALISATIONS) --- */
.dv-pack-gallery {
  background: var(--dv-violet-bg);
  padding: 80px 0;
  overflow: hidden;
}

/* Le ruban qui défile horizontalement */
.dv-pack-gallery__strip {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: dv-gallery-scroll 50s linear infinite;
  /* Vitesse doublée : 40s → 20s */
  min-width: 100vw;
}

/* Arrête l'animation au survol */
.dv-pack-gallery__strip:hover {
  animation-play-state: paused;
}

/* L'animation de défilement */
@keyframes dv-gallery-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }

  /* Se déplace de la moitié */
}

/* Le Canvas carré : taille limitée à 300x300 */
.dv-pack-canvas {
  width: 300px !important;
  /* Limite de taille */
  height: 300px !important;
  /* Limite de taille */
  position: relative;
  border-radius: var(--dv-radius-lg);
  overflow: hidden;
  background: white;
  /* Fond blanc si l'image ne couvre pas */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

/* Les images dans les canvas */
.dv-pack-canvas img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  /* Correction ici : cover pour remplir tout le carré sans laisser de blanc */
  object-fit: cover !important;
  padding: 0 !important;
  /* Retirer le padding */
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.dv-pack-canvas img.is-active {
  opacity: 1;
  position: relative;
  /* Une seule image garde le flux pour la taille du conteneur */
}

/* L'image active */
.dv-pack-canvas img.is-active {
  opacity: 1;
}