/* ===== VARIABLES CSS ===== */
:root {
  --primary-blue: #0056A1;
  --secondary-blue: #003366;
  --accent-yellow: #FFD700;
  --light-yellow: #FFF9E6;
  --light-gray: #F5F7FA;
  --white: #FFFFFF;
  --text-dark: #333333;
  --text-light: #666666;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ===== GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background-color: var(--light-gray);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.8rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slideshow .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

.hero-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 8s ease;
}

.hero-slideshow .slide.active img {
  transform: scale(1);
}

.slide-content {
  position: absolute;
  bottom: 100px;
  left: 100px;
  color: var(--white);
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,86,161,0.8) 0%, rgba(0,51,102,0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.5s forwards;
}

.highlight {
  color: var(--accent-yellow);
  position: relative;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-yellow);
  transform: scaleX(0);
  animation: highlight 1s ease 1.5s forwards;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 1s forwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 1.5s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-yellow);
  color: var(--primary-blue);
}

.btn-primary:hover {
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--primary-blue);
}

.btn-light:hover {
  background: var(--accent-yellow);
  transform: translateY(-3px);
}

.slide-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: var(--accent-yellow);
  transform: scale(1.2);
}

/* ===== SERVICES ===== */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-blue);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: var(--light-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: var(--transition);
}

.card-icon i {
  font-size: 2rem;
  color: var(--primary-blue);
}

.service-card:hover .card-icon {
  background: var(--primary-blue);
  transform: rotateY(180deg);
}

.service-card:hover .card-icon i {
  color: var(--white);
}

.service-card h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.card-link:hover {
  gap: 10px;
  color: var(--secondary-blue);
}

/* ===== RÉALISATIONS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.project-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 86, 161, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 25px;
  border: 2px solid var(--white);
  border-radius: 50px;
  transition: var(--transition);
}

.project-link:hover {
  background: var(--white);
  color: var(--primary-blue);
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  color: var(--primary-blue);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.project-info p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.5;
}

.project-category {
  display: inline-block;
  padding: 5px 15px;
  background: var(--light-yellow);
  color: var(--primary-blue);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.section-cta {
  text-align: center;
}

/* ===== WHY US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.why-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.why-card:hover {
  transform: translateY(-5px);
}

.why-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--light-yellow);
  position: absolute;
  top: 20px;
  right: 30px;
  line-height: 1;
}

.why-card h3 {
  color: var(--primary-blue);
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.why-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta-content h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes highlight {
  to {
    transform: scaleX(1);
  }
}

/* AOS animations for scroll */
[data-aos] {
  opacity: 0;
  transition: all 0.8s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 80vh;
    min-height: 600px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 250px;
    justify-content: center;
  }
  
  .section-padding {
    padding: 70px 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .service-cards,
  .projects-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .slide-content {
    left: 30px;
    bottom: 80px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-card,
  .project-card,
  .why-card {
    padding: 30px 20px;
  }
}

/* Realisations Section - Page d'accueil */
.realisations {
  background: var(--light-bg);
  position: relative;
}

.realisations .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.project-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 86, 161, 0.15);
}

.project-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  opacity: 0;
  transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-content {
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.project-card:hover .project-content {
  transform: translateY(0);
}

.project-badge {
  background: var(--primary-blue);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 15px;
}

.project-overlay h3 {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.project-link {
  align-self: flex-end;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.project-card:hover .project-link {
  transform: translateY(0);
  opacity: 1;
}

.project-link:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: scale(1.1);
}

.project-info {
  padding: 25px;
}

.project-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.project-city, .project-number {
  background: var(--light-bg);
  color: var(--primary-blue);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.project-stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.project-stats .stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

.project-stats .stat i {
  color: var(--primary-blue);
}

/* Section Stats */
.section-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.section-stats .stat-item {
  text-align: center;
}

.section-stats .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.section-stats .stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Section CTA */
.section-cta {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 5px 20px rgba(0, 86, 161, 0.3);
}

.btn-primary:hover {
  background: #004494;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 86, 161, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-stats {
    gap: 30px;
  }
  
  .section-stats .stat-number {
    font-size: 2rem;
  }
  
  .project-info {
    padding: 20px;
  }
  
  .project-overlay {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}