/* ============================================
   LUMINA ELECTRIC - PAGES STYLES
   Hero, Sections spécifiques, Process, CTA
   ============================================ */

/* === PAGE HEADER === */
.page-header {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: var(--space-4xl) 0 var(--space-3xl) 0;
  overflow: hidden;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 0;
}

.page-header h1 {
  position: relative;
  z-index: 1;
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  color: var(--white);
}

.page-header .lead {
  position: relative;
  z-index: 1;
  font-size: var(--text-xl);
  color: #ffffff !important; /* Blanc éclatant */
  opacity: 1.0 !important; /* 100% opacité pour mobile */
  max-width: 700px;
  margin: 0 auto;
}

.page-header nav {
  position: relative;
  z-index: 1;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

/* Force le bouton blanc dans hero à garder sa couleur bleu */
.hero .btn-white,
.hero .btn-white i {
  color: var(--primary) !important;
}

.hero .btn-white:hover,
.hero .btn-white:hover i {
  color: var(--primary-dark) !important;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: var(--text-5xl);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: var(--white);
}

.hero-title .highlight {
  color: var(--secondary-light);
  position: relative;
}

.hero-subtitle {
  font-size: var(--text-xl);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.hero-features {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: rgba(255, 255, 255, 0.95);
}

.hero-feature i {
  font-size: var(--text-lg);
  color: var(--secondary-light);
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-slow);
}

.hero-image img:hover {
  transform: scale(1.02);
}

.hero-image-placeholder {
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  backdrop-filter: blur(10px);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-image-placeholder i {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  color: var(--secondary-light);
}

.hero-image-placeholder p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  margin: 0;
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .hero-image {
    order: -1;
  }
  
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: var(--space-2xl) 0;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .hero-features {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* === TRUST SECTION === */
.trust-section {
  background: var(--neutral-100);
  padding: var(--space-2xl) 0;
}

/* === SERVICES SECTION === */
.services-section {
  background: var(--white);
}

/* === PROCESS SECTION === */
.process-section {
  background: var(--neutral-100);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 33%, var(--primary) 66%, var(--primary) 100%);
  z-index: 0;
}

.process-step {
  position: relative;
  text-align: center;
  z-index: 1;
}

.process-step-number {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
  box-shadow: 0 0 0 6px var(--neutral-100);
  z-index: 2;
}

.process-step-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: var(--radius-full);
  font-size: 2.5rem;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.process-step h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--neutral-900);
}

.process-step p {
  font-size: var(--text-base);
  color: var(--neutral-600);
  margin: 0;
}

@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-steps::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* === ZONES SECTION === */
.zones-section {
  background: var(--white);
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.zone-card {
  background: var(--white);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.zone-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.zone-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-pale);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 1.75rem;
}

.zone-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
  color: var(--neutral-900);
}

.zone-list {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-lg);
}

.zone-list li {
  padding: var(--space-xs) 0;
  color: var(--neutral-700);
  font-size: var(--text-sm);
  padding-left: var(--space-md);
  position: relative;
}

.zone-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: var(--font-bold);
}

@media (max-width: 1024px) {
  .zones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* === FAQ SECTION === */
.faq-section {
  background: var(--white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: transparent;
  border: none;
  text-align: left;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--neutral-900);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question i {
  font-size: var(--text-base);
  color: var(--primary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-answer > div {
  padding: 0 var(--space-lg) var(--space-lg);
}

.faq-answer p {
  margin-bottom: var(--space-md);
  color: var(--neutral-700);
  line-height: 1.7;
}

.faq-answer ul {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

.faq-answer li {
  margin-bottom: var(--space-sm);
  color: var(--neutral-700);
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3xl);
}

.cta-text h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  color: var(--white);
}

.cta-text p {
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.9);
}

.cta-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cta-benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-lg);
  color: var(--white);
}

.cta-benefits i {
  color: var(--secondary-light);
  font-size: 1.25em;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .cta-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-benefits {
    align-items: center;
  }
  
  .cta-buttons {
    width: 100%;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
}

/* === PORTFOLIO / REALISATIONS === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.portfolio-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.portfolio-item:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.portfolio-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-500);
  font-size: 3rem;
}

.portfolio-content {
  padding: var(--space-xl);
}

.portfolio-category {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.portfolio-item h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--neutral-900);
}

.portfolio-item p {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  margin-bottom: var(--space-lg);
}

.portfolio-meta {
  display: flex;
  gap: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--neutral-600);
  padding-top: var(--space-md);
  border-top: 1px solid var(--neutral-200);
}

.portfolio-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.portfolio-meta-item i {
  color: var(--primary);
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* === CONTACT PAGE === */
.contact-page {
  padding: var(--space-3xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info {
  background: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.contact-form-container {
  background: var(--white);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* === LOADING & STATES === */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.success-message {
  padding: var(--space-lg);
  background: rgba(40, 167, 69, 0.1);
  border: 2px solid var(--success);
  border-radius: var(--radius-md);
  color: var(--success);
  text-align: center;
  margin: var(--space-lg) 0;
}

.error-message {
  padding: var(--space-lg);
  background: rgba(220, 53, 69, 0.1);
  border: 2px solid var(--error);
  border-radius: var(--radius-md);
  color: var(--error);
  text-align: center;
  margin: var(--space-lg) 0;
}
