/* Home Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  color: #fff;
  padding: clamp(7rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 6rem);
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.65) 45%, rgba(0, 0, 0, 0.1) 90%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  margin-bottom: 1.5rem; 
  letter-spacing: 0.5px; 
  line-height: 1.15;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  word-break: normal;
  overflow-wrap: break-word;
}

.hero h1 span {
  color: var(--accent-primary);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #f8fafc;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 620px;
  font-weight: 400;
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.8;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.88rem;
}

.link-arrow:hover {
  color: var(--text-primary);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.8rem, 4vw, 3rem);
}

.stat-item h3 {
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  font-weight: 600;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  counter-reset: serviceCounter;
}

.service-card {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "0" counter(serviceCounter);
  counter-increment: serviceCounter;
  position: absolute;
  top: -20px;
  right: -10px;
  font-size: clamp(6rem, 10vw, 10rem);
  font-weight: 800;
  color: rgba(15, 23, 42, 0.03);
  font-family: var(--font-heading);
  z-index: 0;
  line-height: 1;
  pointer-events: none;
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
  position: relative;
  z-index: 1;
}

.service-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Portfolio */
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(2rem, 4vw, 4rem);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/5;
  cursor: pointer;
  display: block;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.2rem, 2.5vw, 2rem);
  background: linear-gradient(to top, rgba(0,0,0, 0.85) 0%, rgba(0,0,0, 0.4) 60%, transparent 100%);
  transform: translateY(10px);
  opacity: 0.95;
  transition: all 0.3s ease;
  color: #fff;
}

.portfolio-item:hover .portfolio-item-overlay {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-item-overlay h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 0.3rem;
  color: #fff;
}

.portfolio-item-overlay p {
  color: var(--accent-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* CTA */
.cta-section {
  background-color: var(--accent-primary);
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
  color: #111827;
}

.cta-container h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.2rem;
  color: #111827;
}

.cta-container p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 600px;
  margin: 0 auto;
  color: rgba(17, 24, 39, 0.85);
  line-height: 1.7;
}

/* Page Headers */
.page-header {
  padding: clamp(8rem, 14vw, 11rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--bg-secondary);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.page-header h1 span {
  color: var(--accent-primary);
}

.page-header p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.7;
}

/* Services Detailed Page */
.services-detailed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.service-detail-card {
  padding: clamp(2rem, 4vw, 3.5rem);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.service-icon {
  color: var(--accent-primary);
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.service-detail-card h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

.service-features {
  margin-top: 1.5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.service-features li i {
  color: var(--accent-primary);
  width: 18px;
  flex-shrink: 0;
}

/* Process Section */
.process-section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  text-align: center;
  margin-top: 3rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.process-step {
  position: relative;
}

.step-number {
  width: 54px;
  height: 54px;
  background: var(--bg-primary);
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Realisations Page */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.project-card {
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
}

.project-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  aspect-ratio: 4/3;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-info h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 0.8rem;
}

.project-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Projet Detail Page */
.projet-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.projet-sidebar {
  padding: clamp(1.8rem, 3vw, 2.5rem);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.projet-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}

.projet-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
}

/* Contact Page */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1.2rem;
}

.contact-info h2 span {
  color: var(--accent-primary);
}

.contact-intro {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.info-item {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.info-icon {
  width: 46px;
  height: 46px;
  background: var(--accent-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.info-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.info-item p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-form-container {
  padding: clamp(2rem, 4vw, 3.5rem);
}

.contact-form-container h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  border-radius: 2px;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Contact Form */
.contact-form {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.contact-form.sending {
  opacity: 0.6;
  pointer-events: none;
}

.spin-icon {
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

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

.success-message-box {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
}

.success-message-box.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  background: var(--accent-glow);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.8rem;
  animation: popSuccess 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, pulseGlow 2s infinite;
}

.success-icon-wrap i, .success-icon-wrap svg {
  color: var(--accent-primary);
  width: 42px;
  height: 42px;
}

.success-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  animation: fadeInUp 0.5s 0.2s ease backwards;
}

.success-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  animation: fadeInUp 0.5s 0.3s ease backwards;
}

@keyframes popSuccess {
  0% { transform: scale(0.2); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(193, 155, 56, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(193, 155, 56, 0); }
  100% { box-shadow: 0 0 0 0 rgba(193, 155, 56, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 992px) {
  .about-grid, 
  .services-detailed-grid, 
  .projects-grid, 
  .contact-wrapper, 
  .projet-details-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .projet-sidebar {
    position: static;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .services-grid, 
  .portfolio-grid, 
  .process-steps, 
  .projet-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.8rem 1.2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .portfolio-header .btn {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .about-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

