/* ============================================================ */
/* HD CONSULTING CUSTOM - Styles sur mesure                     */
/* ============================================================ */


/* =============================================
   VARIABLES GLOBALES
   ============================================= */
/* Variables scopees sur les elements HD uniquement */
.hd-cards-grid,
.hd-page-card,
.hd-menu,
.stacking-cards-section,
.hd-logo-container {
  --hd-orange: #f18a3c;
  --hd-orange-light: #f9a85c;
  --hd-orange-dark: #e07528;
  --hd-dark: #1a1a1a;
  --hd-card-radius: 20px;
  --hd-card-transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* =============================================
   SECTION 1 : PHOTO COVER CONTAINER
   ============================================= */
.photo-cover {
  position: relative;
}

.photo-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    transparent 35%,
    rgba(0, 0, 0, 0.25) 55%,
    rgba(0, 0, 0, 0.55) 75%,
    rgba(0, 0, 0, 0.7) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.photo-cover > .e-con-inner {
  position: relative;
  z-index: 1;
}


/* =============================================
   SECTION 2 : GLASSMORPHISM BUTTON
   ============================================= */
#button {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}


/* =============================================
   SECTION 3 : HD CARDS GRID (PAGE ACCUEIL)
   ============================================= */

/* Container parent - Grille */
.hd-cards-grid > .e-con-inner {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Chaque Card */
.hd-page-card {
  position: relative;
  min-height: 420px;
  border-radius: var(--hd-card-radius) !important;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px !important;
}

/* Image de fond - zoom au hover */
.hd-page-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform var(--hd-card-transition);
  z-index: 0;
}

/* Overlay gradient sombre */
.hd-page-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0.2) 70%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
  transition: opacity var(--hd-card-transition);
}

/* Hover - zoom image de fond */
.hd-page-card:hover::before {
  transform: scale(1.08);
}

/* Tous les elements au-dessus de l'overlay */
.hd-page-card > * {
  position: relative;
  z-index: 2;
}

/* ============ TAG ============ */
.hd-card-tag {
  position: absolute !important;
  top: 32px;
  left: 32px;
  margin: 0 !important;
}

.hd-card-tag .elementor-heading-title {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff !important;
  transition: all var(--hd-card-transition);
}

.hd-page-card:hover .hd-card-tag .elementor-heading-title {
  background: var(--hd-orange);
  border-color: var(--hd-orange);
}

/* ============ TITRE ============ */
.hd-card-title {
  margin-bottom: 16px !important;
}

.hd-card-title .elementor-heading-title {
  font-size: 28px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #fff !important;
  margin: 0;
}

/* ============ DESCRIPTION ============ */
.hd-card-desc {
  margin-bottom: 0 !important;
  max-width: 85%;
}

.hd-card-desc p {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin: 0;
}

/* ============ FLECHE ============ */
.hd-card-arrow {
  position: absolute !important;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--hd-card-transition);
  z-index: 2;
}

.hd-card-arrow svg {
  width: 14px;
  height: 14px;
  color: #1a1a1a;
  transition: all var(--hd-card-transition);
}

/* Hover fleche */
.hd-page-card:hover .hd-card-arrow {
  background: var(--hd-orange);
  transform: scale(1.1);
}

.hd-page-card:hover .hd-card-arrow svg {
  color: #fff;
  transform: translate(2px, -2px);
}

/* ============ RESPONSIVE CARDS GRID ============ */
@media (max-width: 1024px) {
  .hd-cards-grid > .e-con-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hd-page-card {
    min-height: 360px;
    padding: 28px !important;
  }

  .hd-card-tag {
    top: 28px;
    left: 28px;
  }

  .hd-card-title .elementor-heading-title {
    font-size: 24px !important;
  }

  .hd-card-arrow {
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 768px) {
  .hd-cards-grid > .e-con-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hd-page-card {
    min-height: 320px;
    padding: 24px !important;
  }

  .hd-card-tag {
    top: 24px;
    left: 24px;
  }

  .hd-card-tag .elementor-heading-title {
    font-size: 10px !important;
    padding: 8px 16px;
  }

  .hd-card-title .elementor-heading-title {
    font-size: 22px !important;
  }

  .hd-card-desc p {
    font-size: 14px !important;
  }

  .hd-card-arrow {
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
  }
}


/* =============================================
   SECTION 4 : LOGO SVG CONTAINER
   ============================================= */
.hd-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hd-logo-svg {
  width: 100%;
  max-width: 484px;
  height: auto;
}


/* =============================================
   SECTION 5 : MENU FULLSCREEN
   ============================================= */

/* Lock body quand le menu est ouvert */
body.hd-menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  touch-action: none !important;
}

/* Burger-1 : cache quand le menu est ouvert */
body.hd-menu-open .burger-1,
body.hd-menu-open [class*="burger-1"] {
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  transition: opacity 0.3s ease !important;
}

.hd-menu {
  position: fixed;
  inset: 0;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
}

.hd-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.hd-menu-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(241,138,60,0.94) 0%, rgba(224,117,40,0.97) 100%);
  overflow: hidden;
}

.hd-menu-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(30deg, transparent 40%, rgba(255,255,255,0.15) 40%, rgba(255,255,255,0.15) 60%, transparent 60%),
    linear-gradient(-30deg, transparent 40%, rgba(255,255,255,0.15) 40%, rgba(255,255,255,0.15) 60%, transparent 60%);
  background-size: 60px 100px;
  animation: hdPatternMove 25s linear infinite;
}

@keyframes hdPatternMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(60px); }
}

.hd-menu-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}

.hd-menu-circle:nth-child(1) {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation: hdFloatCircle 8s ease-in-out infinite;
}

.hd-menu-circle:nth-child(2) {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -80px;
  animation: hdFloatCircle 10s ease-in-out infinite reverse;
}

.hd-menu-circle:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 40%;
  left: 10%;
  animation: hdFloatCircle 6s ease-in-out infinite 1s;
}

@keyframes hdFloatCircle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

.hd-menu-watermark {
  position: absolute;
  right: -5%;
  bottom: -10%;
  width: 50vw;
  max-width: 450px;
  height: 50vw;
  max-height: 450px;
  opacity: 0;
  transform: scale(0.8) rotate(-10deg);
  transition: all 1s cubic-bezier(0.16, 0.9, 0.2, 1) 0.3s;
  pointer-events: none;
}

.hd-menu.is-open .hd-menu-watermark {
  opacity: 0.1;
  transform: scale(1) rotate(-5deg);
}

.hd-menu-watermark-inner {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9);
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: min(120px, 20vw);
  color: var(--hd-orange);
  filter: blur(2px);
  font-family: "Poppins", sans-serif;
}

.hd-menu-outside {
  position: absolute;
  inset: 0;
}

.hd-menu-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 32px;
  z-index: 10;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s cubic-bezier(0.16, 0.9, 0.2, 1) 0.1s;
}

.hd-menu.is-open .hd-menu-header {
  opacity: 1;
  transform: translateY(0);
}

/* Logo : swap image quand le menu est ouvert */
body.hd-menu-open .logo-1 img,
body.hd-menu-open [class*="logo-1"] img {
  filter: none !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

body.hd-menu-open .logo-1,
body.hd-menu-open [class*="logo-1"] {
  position: relative;
  z-index: 9999999 !important;
}

body.hd-menu-open .logo-1::after,
body.hd-menu-open [class*="logo-1"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('http://hdconsulting.eu/wp-content/uploads/2026/02/hd-blanc-site@300x.png') no-repeat center / contain;
  z-index: 9999999;
  transition: opacity 0.3s ease;
}

.hd-menu-close {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: white;
  font-size: 22px;
  font-weight: 300;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 0;
  line-height: 1;
}

.hd-menu-close:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.08) rotate(90deg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.hd-menu-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 32px 60px;
  z-index: 5;
  overflow-y: auto;
}

.hd-menu-inner {
  width: 100%;
  max-width: 550px;
}

.hd-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hd-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  text-decoration: none !important;
  color: white !important;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.3s ease;
}

.hd-menu-item:nth-child(1) { --delay: 0.15s; }
.hd-menu-item:nth-child(2) { --delay: 0.22s; }
.hd-menu-item:nth-child(3) { --delay: 0.29s; }
.hd-menu-item:nth-child(4) { --delay: 0.36s; }
.hd-menu-item:nth-child(5) { --delay: 0.43s; }

.hd-menu.is-open .hd-menu-item {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.6s cubic-bezier(0.16, 0.9, 0.2, 1) var(--delay),
    transform 0.6s cubic-bezier(0.16, 0.9, 0.2, 1) var(--delay),
    background 0.3s ease,
    border-color 0.3s ease;
}

.hd-menu-item:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
  transform: translateX(8px) !important;
}

.hd-menu-item-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hd-menu-item-label {
  font-weight: 700;
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: white;
}

.hd-menu-item-sub {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  color: white;
}

.hd-menu-item-arrow {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.hd-menu-item-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: white;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.3s ease;
}

.hd-menu-item:hover .hd-menu-item-arrow {
  background: white;
}

.hd-menu-item:hover .hd-menu-item-arrow svg {
  stroke: var(--hd-orange);
  transform: translateX(3px);
}

.hd-menu-footer {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 0.9, 0.2, 1) 0.5s;
}

.hd-menu.is-open .hd-menu-footer {
  opacity: 1;
  transform: translateY(0);
}

.hd-menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  background: white;
  color: var(--hd-orange) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.hd-menu-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.2);
  background: var(--hd-dark);
  color: white !important;
}

.hd-menu-cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.hd-menu-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.hd-menu-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
}

.hd-menu-contact-item svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.7;
}

/* Responsive menu */
@media (max-width: 600px) {
  .hd-menu-header {
    padding: 0 20px;
    height: 70px;
  }

  .hd-menu-content {
    padding: 80px 20px 40px;
  }

  .hd-menu-item {
    padding: 14px 18px;
    border-radius: 12px;
  }

  .hd-menu-item-arrow {
    width: 34px;
    height: 34px;
  }

  .hd-menu-footer {
    margin-top: 28px;
    padding-top: 22px;
  }

  .hd-menu-cta {
    width: 100%;
    padding: 14px 24px;
  }

  .hd-menu-contact {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hd-menu-close {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
}


/* =============================================
   SECTION 6 : STACKING CARDS (PAGE SERVICES)
   ============================================= */

.stacking-cards-section .header_hd {
  position: relative;
  z-index: 99999 !important;
}

.stacking-cards-section {
  padding: 0 30px;
  background: transparent;
  position: relative;
  z-index: 1;
}

.stacking-cards {
  max-width: 1400px;
  margin: 0 auto;
}

.stacking-card {
  position: sticky;
  top: var(--card-top-offset, 130px);
  margin-bottom: var(--card-gap, 20px);
}

.stacking-card:last-child {
  position: relative;
  top: auto;
}

.stacking-card:nth-child(1) { z-index: 1; }
.stacking-card:nth-child(2) { z-index: 2; }
.stacking-card:nth-child(3) { z-index: 3; }
.stacking-card:nth-child(4) { z-index: 4; }

.stacking-cards-section .card-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 50px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  min-height: 380px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.02),
    0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  transform-origin: center top;
}

/* Texte */
.stacking-cards-section .card-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.stacking-cards-section .card-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--hd-orange);
  opacity: 0.15;
  line-height: 1;
}

.stacking-cards-section .card-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--hd-dark);
  line-height: 1.3;
}

.stacking-cards-section .card-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
}

/* Accordeon */
.stacking-cards-section .service-list {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.stacking-cards-section .service-item {
  border-bottom: 1px solid #e5e5e5;
  transition: border-color 0.3s ease;
}

.stacking-cards-section .service-item:first-child {
  border-top: 1px solid #e5e5e5;
}

.stacking-cards-section .service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  cursor: pointer;
  transition: padding 0.3s ease;
}

.stacking-cards-section .service-header:hover {
  padding-left: 10px;
}

.stacking-cards-section .service-header span {
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.stacking-cards-section .service-header:hover span {
  color: var(--hd-orange);
}

.stacking-cards-section .service-toggle {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  margin-left: 12px;
}

.stacking-cards-section .service-toggle::before,
.stacking-cards-section .service-toggle::after {
  content: '';
  position: absolute;
  background: var(--hd-dark);
  border-radius: 1px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.stacking-cards-section .service-toggle::before {
  width: 12px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.stacking-cards-section .service-toggle::after {
  width: 1.5px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.stacking-cards-section .service-header:hover .service-toggle::before,
.stacking-cards-section .service-header:hover .service-toggle::after {
  background: var(--hd-orange);
}

.stacking-cards-section .service-item.active .service-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.stacking-cards-section .service-item.active .service-toggle::before,
.stacking-cards-section .service-item.active .service-toggle::after {
  background: var(--hd-orange);
}

.stacking-cards-section .service-item.active {
  border-bottom-color: var(--hd-orange);
}

.stacking-cards-section .service-item:first-child.active {
  border-top-color: var(--hd-orange);
}

.stacking-cards-section .service-item.active .service-header span {
  color: var(--hd-orange);
}

.stacking-cards-section .service-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease,
    padding 0.35s ease;
  padding: 0;
}

.stacking-cards-section .service-item.active .service-detail {
  max-height: 200px;
  opacity: 1;
  padding: 0 0 16px 0;
}

.stacking-cards-section .service-detail-inner {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.75;
  color: #555;
  border-left: 2px solid var(--hd-orange);
  padding-left: 16px;
}

.stacking-cards-section .service-detail-inner strong {
  color: var(--hd-orange);
  font-weight: 600;
}

/* CTA */
.stacking-cards-section .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--hd-dark);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  margin-top: 10px;
  width: fit-content;
}

.stacking-cards-section .card-cta:hover {
  background: var(--hd-orange);
  transform: translateX(6px);
}

/* Photo */
.stacking-cards-section .card-visual {
  position: relative;
  height: 100%;
  min-height: 300px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.stacking-cards-section .card-visual--photo {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.stacking-cards-section .card-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stacking-cards-section .card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stacking-cards-section .card-visual--photo:hover .card-photo img {
  transform: scale(1.05);
}

.stacking-cards-section .card-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(241, 138, 60, 0.08) 50%,
    rgba(26, 26, 26, 0.05) 100%
  );
  transition: opacity 0.4s ease;
}

.stacking-cards-section .card-visual--photo:hover .card-photo-overlay {
  opacity: 0.7;
}

.stacking-cards-section .card-photo-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  z-index: 2;
  overflow: hidden;
}

.stacking-cards-section .card-photo-accent::before {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 80px;
  height: 80px;
  background: var(--hd-orange);
  opacity: 0.15;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.stacking-cards-section .card-visual--photo:hover .card-photo-accent::before {
  opacity: 0.25;
  transform: scale(1.3);
}

/* Responsive stacking cards */
/* Responsive stacking cards - tablette */
@media (max-width: 1024px) {
  .stacking-cards-section .card-content {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px;
    min-height: auto;
  }

  .stacking-cards-section .card-visual {
    min-height: 200px;
    order: -1;
  }

  .stacking-cards-section {
    padding: 0 20px;
  }
}

/* Responsive stacking cards - mobile : PAS de sticky, cartes fixes */
@media (max-width: 768px) {
  .stacking-card {
    position: relative !important;
    top: auto !important;
    margin-bottom: 16px;
  }

  .stacking-cards-section .card-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
    min-height: auto;
    transform: none !important;
    opacity: 1 !important;
  }

  .stacking-cards-section .card-visual {
    position: relative;
    min-height: 220px;
    height: 220px;
    order: -1;
    border-radius: 10px;
  }

  .stacking-cards-section .card-photo {
    position: absolute;
    inset: 0;
  }

  .stacking-cards-section .card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }

  .stacking-cards-section .card-title {
    font-size: 1.35rem;
  }

  .stacking-cards-section .card-number {
    font-size: 1.8rem;
  }

  .stacking-cards-section .card-description {
    font-size: 0.9rem;
  }

  .stacking-cards-section .service-header span {
    font-size: 0.75rem;
  }

  .stacking-cards-section .service-detail-inner {
    font-size: 0.82rem;
  }

  .stacking-cards-section {
    padding: 0 16px;
  }
}


/* =============================================
   SECTION 7 : BACKGROUND ANIME (PAGE A PROPOS)
   ============================================= */

/* Note: Ces styles ciblent body et s'appliqueront
   uniquement si la page "a-propos" utilise une classe
   body specifique. Sinon, utiliser un shortcode conditionnel. */

body.page-a-propos::before,
body.page-a-propos::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

/* Blob 1 - Haut gauche */
body.page-a-propos::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(241, 138, 60, 0.45) 0%, rgba(241, 138, 60, 0.15) 40%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: hdBlobMove1 25s ease-in-out infinite;
}

/* Blob 2 - Bas droite */
body.page-a-propos::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(241, 160, 90, 0.4) 0%, rgba(255, 180, 120, 0.1) 40%, transparent 70%);
  bottom: -50px;
  right: -50px;
  animation: hdBlobMove2 30s ease-in-out infinite;
}

@keyframes hdBlobMove1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, 80px) scale(1.05); }
  50% { transform: translate(100px, 30px) scale(0.95); }
  75% { transform: translate(30px, 100px) scale(1.02); }
}

@keyframes hdBlobMove2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-80px, -50px) scale(0.98); }
  50% { transform: translate(-30px, -120px) scale(1.04); }
  75% { transform: translate(-100px, -60px) scale(1); }
}
