html {
  scroll-behavior: smooth;
}
:root {
  --primary: #e60000;
  --primary-dark: #cc0000;
  --secondary: #222;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-gray: #555;
  --border-light: #e0e0e0;
  --shadow: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white);
}

/* ============= HEADER MODERNISÉ ============= */
header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 0, 0, 0.1);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 12px 0;
  box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
}

header .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 55px;
  transition: all 0.3s ease;
}

header.scrolled .logo {
  height: 45px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
  align-items: center;
}

nav ul li a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.2px;
  position: relative;
  transition: color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary);
}

nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* ============= HERO SECTION ULTRA-MODERNE ============= */
.hero-modern {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 48%, rgba(230,0,0,0.03) 50%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(230,0,0,0.03) 50%, transparent 52%);
  background-size: 60px 60px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(230, 0, 0, 0.15);
  border: 1px solid rgba(230, 0, 0, 0.3);
  padding: 10px 24px;
  border-radius: 50px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-modern h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 25px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-modern h1 .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-modern .subtitle {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 45px;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.4s both;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 16px 40px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 16px;
  border: 2px solid var(--primary);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(230, 0, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 16px 40px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.3px;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-2px);
}

/* ============= STATS MODERNE ============= */
.stats-modern {
  background: var(--white);
  padding: 80px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 35px 20px;
  background: var(--light-bg);
  border-radius: 16px;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -2px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

/* ============= SECTION TITLES ============= */
.section-title {
  text-align: center;
  margin-bottom: 70px;
}

.section-title h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.section-title .subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 650px;
  margin: 0 auto;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ============= QUI SOMMES-NOUS AMÉLIORÉ ============= */
#presentation {
  padding: 100px 0;
  background: var(--white);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 60px;
}

.about-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 45px 35px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
  opacity: 0;
  transform: translateY(30px);
}

.about-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.about-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, #ff3333 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
  box-shadow: 0 8px 20px rgba(230, 0, 0, 0.3);
}

.about-icon i {
  font-size: 2rem;
  color: white;
}

.about-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
  text-align: center;
}

.about-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-gray);
  text-align: justify;
}

/* ============= PROCESSUS EN 4 ÉTAPES ============= */
#processus {
  padding: 100px 0;
  background: var(--light-bg);
}

.process-timeline {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.process-line {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border-light);
  z-index: 0;
}

.process-line-fill {
  height: 100%;
  background: var(--primary);
  width: 0;
  transition: width 2s ease;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.process-step {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.process-number {
  width: 100px;
  height: 100px;
  background: white;
  border: 4px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 10px 30px rgba(230, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.process-step:hover .process-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(230, 0, 0, 0.3);
}

.process-step h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

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

/* ============= TÉMOIGNAGES CLIENTS ============= */
#testimonials {
  padding: 100px 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 60px;
}

.testimonial-card {
  background: white;
  padding: 40px 35px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  border: 2px solid var(--border-light);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 25px;
  font-size: 5rem;
  color: rgba(230, 0, 0, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.stars {
  color: #FFB800;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 25px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 2px solid var(--light-bg);
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), #ff3333);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: 'Montserrat', sans-serif;
}

.author-info h4 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 3px;
  color: var(--text-dark);
}

.author-info p {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* ============= GALERIE AVANT/APRÈS ============= */
#galerie {
  padding: 100px 0;
  background: var(--secondary);
}

#galerie .section-title h2,
#galerie .section-title .subtitle {
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: all 0.4s ease;
  opacity: 0;
  transform: scale(0.9);
}

.gallery-item.visible {
  opacity: 1;
  transform: scale(1);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

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

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 25px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-label {
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Montserrat', sans-serif;
}

/* ============= FORMULAIRE DEVIS RAPIDE ============= */
#devis-rapide {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #cc0000 100%);
  position: relative;
  overflow: hidden;
}

#devis-rapide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.devis-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

#devis-rapide h2 {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

#devis-rapide .subtitle {
  color: rgba(255,255,255,0.95);
  font-size: 1.3rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.devis-form {
  background: white;
  padding: 50px 45px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 25px;
}

.form-group {
  text-align: left;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  background: var(--light-bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(230, 0, 0, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  background: var(--secondary);
  color: white;
  padding: 18px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.submit-btn:hover {
  background: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ============= FOOTER MODERNISÉ ============= */
footer {
  background: var(--secondary);
  color: #999;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-section h3 {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
  color: #999;
  line-height: 2;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-logo {
  height: 50px;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #666;
}

/* ============= ANIMATIONS ============= */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 0;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .hero-modern h1 {
    font-size: 2.5rem;
  }

  .hero-modern .subtitle {
    font-size: 1.1rem;
  }

  .stats-grid,
  .process-steps,
  .testimonials-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  #devis-rapide h2 {
    font-size: 2.2rem;
  }
}

/* ========== SÉPARATEURS VISUELS SPECTACULAIRES ========== */
.visual-separator {
  height: 100px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f8f9fa 50%, #fff 100%);
}

/* Séparateur avec vagues animées */
.separator-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23e60000' fill-opacity='0.1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  animation: wave-animation 15s ease-in-out infinite;
}

@keyframes wave-animation {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-50px); }
}

/* Séparateur avec points animés */
.separator-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(230,0,0,0.2) 2px, transparent 2px);
  background-size: 50px 50px;
  animation: dots-move 20s linear infinite;
}

@keyframes dots-move {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

/* Séparateur avec lignes diagonales */
.separator-diagonal {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, transparent 40%, rgba(230,0,0,0.05) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, rgba(230,0,0,0.05) 50%, transparent 60%);
  background-size: 100px 100px;
  animation: diagonal-move 25s linear infinite;
}

@keyframes diagonal-move {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

/* Séparateur avec forme géométrique */
.separator-geometric {
  position: absolute;
  width: 100%;
  height: 100%;
}

.separator-geometric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #e60000, transparent);
  box-shadow: 0 0 20px rgba(230,0,0,0.3);
}

.separator-geometric::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 3px solid rgba(230,0,0,0.2);
  border-radius: 50%;
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.3; }
}
