/* All existing CSS remains, plus styles for the new sections */

@import url('style.css');

.pf-hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 80px;
  overflow: hidden;
  color: white;
}
.pf-hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 120%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  filter: brightness(0.4);
}
.pf-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 200px;
  background: linear-gradient(to top, var(--bg-dark), transparent);
  z-index: -1;
}

.pf-hero-content {
  max-width: 900px;
  z-index: 1;
}
.pf-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 30px;
  color: var(--blue);
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.pf-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 20px;
}
.pf-highlight {
  color: var(--blue);
  font-style: italic;
  text-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}
.pf-hero p {
  font-size: 1.2rem;
  color: #a0a0b0;
  max-width: 700px;
  margin: 0 auto 50px;
}

/* Stats */
.pf-hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.pf-stat {
  text-align: center;
}
.pf-stat-val {
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue);
  font-family: 'Outfit', sans-serif;
  text-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
  margin-bottom: 5px;
}
.pf-stat-lbl {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: #808090;
}

.pf-scroll-down {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 3px;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.3s;
  z-index: 2;
  animation: bounceDown 2s ease-in-out infinite;
}
.pf-scroll-down:hover {
  opacity: 1;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Sections */
.pf-section {
  padding: 80px 20px;
  position: relative;
}
.dark-bg { background: #0b0b10; }
.pf-container {
  max-width: 1200px;
  margin: 0 auto;
}
.pf-section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.pf-section-desc {
  text-align: center;
  color: #a0a0b0;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}

/* ═══════════════════════════════════════
   AVANT / APRÈS SLIDER
   ═══════════════════════════════════════ */
.pf-slider-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.pf-ba-slider {
  --split: 50%;
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.pf-ba-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.pf-ba-dirty {
  /* filter: sepia(0.3) contrast(0.8); */
}
.pf-ba-clean {
  clip-path: polygon(var(--split) 0, 100% 0, 100% 100%, var(--split) 100%);
  
}
.pf-ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split);
  width: 4px;
  background: var(--blue);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 15px var(--blue);
  z-index: 10;
  
}

/* NEW CLASSES */
.pf-ba-text {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 5px;
  z-index: 15;
  text-shadow: 0 5px 20px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.5);
  pointer-events: none;
  
  font-family: 'Outfit', sans-serif;
}
.pf-ba-text-before {
  left: calc(var(--split) / 2);
}
.pf-ba-text-after {
  left: calc(var(--split) + (100% - var(--split)) / 2);
}
.pf-ba-zone {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 20;
  cursor: pointer;
}
.pf-ba-zone-left { left: 0; width: 50%; }
.pf-ba-zone-right { right: 0; width: 50%; }

/* ═══════════════════════════════════════
   MAP INTERACTIVE
   ═══════════════════════════════════════ */
.pf-map-container {
  position: relative;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  background: #111;
}
#portfolioMap, .pf-dark-map {
  width: 100%;
  height: 100%;
  filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(85%); /* Fake dark mode for Google map iframe */
}
.pf-map-overlay {
  position: absolute;
  top: 20px; left: 20px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 2;
}
.pf-map-card {
  background: rgba(15, 15, 25, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: 0.3s;
}
.pf-map-card:hover {
  border-color: var(--blue);
  transform: translateX(10px);
}
.pf-map-card h4 {
  margin: 0 0 5px; color: #fff;
}
.pf-map-card p {
  margin: 0; color: var(--blue); font-size: 0.9rem; font-weight: bold;
}


/* ═══════════════════════════════════════
   PROJETS & FILTRES
   ═══════════════════════════════════════ */
.pf-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 40px 0;
}
.pf-filter-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  font-family: inherit;
}
.pf-filter-btn.active, .pf-filter-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.pf-projects-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}
.pf-project {
  transition: opacity 0.4s, transform 0.4s;
}
.pf-project.hidden {
  display: none;
}
.pf-project-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  padding: 80px 20px;
  align-items: center;
}
.pf-project-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 210, 255, 0.3), transparent);
  margin: 0 20px;
}

/* Left side: Info + Image */
.pf-project-header {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.pf-project-badge {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: #a0a0b0;
  margin-bottom: 15px;
}
.pf-project h2 {
  font-size: 3rem;
  margin: 0 0 10px;
  line-height: 1.1;
}
.pf-location {
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 20px;
}
.pf-desc {
  color: #a0a0b0;
  line-height: 1.6;
  margin-bottom: 30px;
}

.pf-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.pf-spec {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.02);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}
.pf-spec-val {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 5px;
}
.pf-spec-lbl {
  font-size: 0.7rem;
  color: #808090;
  letter-spacing: 1px;
}

.pf-project-visual {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.pf-main-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.pf-project-visual:hover .pf-main-img {
  transform: scale(1.05);
}

/* Right side: Comparison */
.pf-comparison-section {
  background: rgba(15, 15, 25, 0.6);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.pf-comparison-section h3 {
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #808090;
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 15px;
}

.pf-comparison-mini {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.pf-compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.pf-compare-method {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  z-index: 1;
}
.pf-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.pf-dot.red { background: #ff4757; box-shadow: 0 0 10px #ff4757; }
.pf-dot.orange { background: #ffa502; box-shadow: 0 0 10px #ffa502; }
.pf-dot.blue { background: var(--blue); box-shadow: 0 0 10px var(--blue); animation: pulse 2s infinite; }

.pf-compare-data {
  text-align: right;
  z-index: 1;
}
.pf-compare-price {
  display: block;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: #fff;
}
.pf-compare-time {
  display: block;
  font-size: 0.75rem;
  color: #808090;
  margin-top: 2px;
}

.pf-compare-drone {
  background: transparent;
  border: 1px solid rgba(0, 210, 255, 0.3);
}
.pf-bar-bg {
  position: absolute;
  top: 0; left: 0; height: 100%;
  width: 0%;
  background: rgba(0, 210, 255, 0.1);
  z-index: 0;
  transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pf-compare-drone.bar-animated .pf-bar-bg {
  width: 100%;
}


.pf-savings-card {
  background: rgba(10, 30, 20, 0.8);
  border: 1px solid rgba(46, 213, 115, 0.3);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pf-savings-val {
  font-size: 3rem;
  font-weight: 700;
  color: #2ed573;
  font-family: 'Outfit', sans-serif;
  text-shadow: 0 0 20px rgba(46, 213, 115, 0.4);
}
.pf-savings-lbl {
  color: #2ed573;
  font-weight: 600;
  margin: 5px 0 15px;
}
.pf-savings-sub {
  font-size: 0.8rem;
  color: #a0a0b0;
  margin: 0;
}
.pf-savings-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3s infinite;
}

/* ═══════════════════════════════════════
   VIDEOS & GALERIE
   ═══════════════════════════════════════ */
.pf-video-large-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.pf-video-large-item {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #000;
  transition: transform 0.3s;
}
.pf-video-large-item:hover {
  transform: translateY(-5px);
  border-color: var(--blue);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.pf-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.pf-gallery-item {
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s;
}
.pf-gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border-color: var(--blue);
  z-index: 2;
}


/* ═══════════════════════════════════════
   SUMMARY CTA
   ═══════════════════════════════════════ */
.pf-summary-cta {
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}
.pf-summary-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.pf-summary-inner h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.pf-summary-inner p {
  color: #a0a0b0;
  font-size: 1.2rem;
  margin-bottom: 50px;
}
.pf-cta-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 40px;
}
.pf-cta-stat .val {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Outfit', sans-serif;
}
.pf-cta-stat .lbl {
  color: var(--blue);
  font-weight: 500;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════
   ANIMATIONS & UTILS
   ═══════════════════════════════════════ */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 210, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}
@keyframes shimmer {
  100% { left: 200%; }
}

.rv {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rv.vis {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .pf-project-container { grid-template-columns: 1fr; gap: 40px; }
  .pf-project-header { order: 1; }
  .pf-comparison-section { order: 2; }
  .pf-hero h1 { font-size: 2.5rem; }
  .pf-cta-stats { flex-direction: column; gap: 30px; }
  .pf-map-overlay { position: relative; top: 0; left: 0; flex-direction: row; flex-wrap: wrap; padding: 10px; }
  .pf-map-container { flex-direction: column; height: auto; }
  #portfolioMap { height: 300px; }
}

.smooth-transition .pf-ba-clean {
  transition: clip-path 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.smooth-transition .pf-ba-handle {
  transition: left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.smooth-transition .pf-ba-text {
  transition: left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.text-blue {
  color: var(--blue-glow) !important;
}
