:root {
  --primary: #1f9ad6;
  --primary-dark: #0a5c8a;
  --accent: #f6963d;
  --accent-dark: #e07b1c;
  --light: #f5f9fc;
  --light-warm: #fdf5ec;
  --dark: #1c2b3a;
  --text: #3a4655;
}

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

body {
  font-family: 'Poppins', ui-sans-serif, system-ui, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  color: var(--dark);
  font-weight: 700;
}

h1 {
  font-weight: 800;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(246, 150, 61, 0.35);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(246, 150, 61, 0.45);
}

.btn.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(246, 150, 61, 0.3);
}

.btn.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: none;
}

.btn.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  box-shadow: none;
}

/* Section headers */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  background: rgba(246, 150, 61, 0.12);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.section-head p {
  font-size: 1.05rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-text {
  font-family: 'Baloo 2', 'Poppins', ui-sans-serif, sans-serif;
  font-weight: 700;
}

.logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.logo-text .accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
}

/* Hero */
.hero {
  position: relative;
  background-image: linear-gradient(135deg, rgba(10, 27, 40, 0.82), rgba(10, 27, 40, 0.6)), url('img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 170px 20px 110px;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  opacity: 0.95;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

/* Google reviews */
.reviews {
  padding: 56px 0 64px;
  background: #fff;
  border-bottom: 1px solid #eef2f5;
}

.reviews-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.reviews-stars {
  color: #fbbc05;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.reviews-link {
  font-weight: 700;
  color: var(--primary-dark);
  transition: color 0.2s ease;
}

.reviews-link:hover {
  color: var(--accent-dark);
}

.reviews-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.reviews-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: reviews-scroll 30s linear infinite;
}

.reviews-viewport:hover .reviews-track {
  animation-play-state: paused;
}

@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.review-card {
  flex: 0 0 320px;
  background: var(--light);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.review-stars {
  color: #fbbc05;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-quote {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.review-author {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track {
    animation: none;
  }
}

/* Services */
.services {
  padding: 80px 0;
  background: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.services-grid--pair {
  grid-template-columns: repeat(auto-fit, minmax(300px, 460px));
  justify-content: center;
}

.service-card {
  background: #fff;
  padding: 0 24px 36px;
  border-radius: 14px;
  text-align: center;
  overflow: hidden;
  border-top: 4px solid var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.1);
}

.service-media {
  position: relative;
  width: calc(100% + 48px);
  margin: 0 -24px 24px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--light);
}

.service-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.service-photo.is-active {
  opacity: 1;
}

.service-media--carousel .service-photo {
  animation: crossfade 12s infinite;
}

.service-media--carousel .service-photo[src*="service-vitre-3"] {
  object-position: center 15%;
}

.service-media--carousel .service-photo:nth-child(2) {
  animation-delay: -4s;
}

.service-media--carousel .service-photo:nth-child(3) {
  animation-delay: -8s;
}

@keyframes crossfade {
  0%, 29% { opacity: 1; }
  33%, 96% { opacity: 0; }
  100% { opacity: 1; }
}

.service-media--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9aa7b2;
  background: linear-gradient(135deg, var(--light), #e8ecf1);
}

.service-media--placeholder span {
  font-size: 2.5rem;
  opacity: 0.6;
}

.service-media--placeholder p {
  font-size: 0.85rem;
  font-style: italic;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  font-size: 2rem;
  margin-top: -52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--primary-dark);
  font-weight: 600;
  transition: color 0.2s ease;
}

.service-link:hover {
  color: var(--accent-dark);
}

/* Gallery */
.gallery {
  padding: 80px 0;
  background: var(--light-warm);
}

.gallery-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.gallery-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: gallery-scroll 26s linear infinite;
}

.gallery-viewport:hover .gallery-track {
  animation-play-state: paused;
}

@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.gallery-item {
  flex: 0 0 300px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item img[src*="service-vitre-3"] {
  object-position: center 15%;
}

.gallery-item figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
}

.gallery-item--placeholder span {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  font-size: 2.5rem;
  opacity: 0.5;
  background: linear-gradient(135deg, var(--light), #e8ecf1);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    animation: none;
  }
}

/* Steps / méthode */
.steps {
  padding: 80px 0;
  background: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 30px;
}

.step-card {
  text-align: center;
  padding: 10px 12px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.step-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.step-card p {
  font-size: 0.95rem;
}

/* Zone d'intervention */
.area {
  padding: 80px 0;
  background: var(--light);
}

.area-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.area-text .eyebrow {
  margin-bottom: 14px;
}

.area-text h2 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.area-text p {
  margin-bottom: 24px;
}

.area-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.area-list li {
  background: #fff;
  border: 1px solid #e0e8ee;
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.area-media {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #9aa7b2;
  background: linear-gradient(135deg, #e8ecf1, var(--light));
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.area-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.area-media span {
  font-size: 2.5rem;
  opacity: 0.6;
}

.area-media p {
  font-size: 0.85rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .area-content {
    grid-template-columns: 1fr;
  }

  .area-media {
    order: -1;
  }
}

/* Devis */
.devis {
  padding: 80px 0;
  background: var(--light-warm);
}

.devis-content {
  max-width: 600px;
  margin: 0 auto;
}

.devis-form-wrap {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(28,43,58,0.06);
}

.devis-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.devis-form-note {
  font-size: 0.85rem;
  color: var(--text);
  text-align: center;
  opacity: 0.85;
  margin-top: -4px;
}

.devis-form input,
.devis-form textarea {
  padding: 14px 16px;
  border: 1px solid #d8e1e8;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.devis-form input:focus,
.devis-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 154, 214, 0.15);
}

.devis-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}

.devis-form-consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.devis-form-consent a {
  color: var(--primary-dark);
  text-decoration: underline;
}

.devis-form-consent a:hover {
  color: var(--accent-dark);
}

.devis-form button {
  align-self: center;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.devis-form-alt {
  text-align: center;
  font-size: 0.9rem;
  margin-top: -4px;
}

.devis-form-alt a {
  color: var(--primary-dark);
  font-weight: 600;
}

.devis-form-alt a:hover {
  color: var(--accent-dark);
}

/* Footer */
.footer {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 32px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.footer-link {
  color: #fff;
  text-decoration: underline;
  opacity: 0.85;
}

.footer-link:hover {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 18px;
  list-style: none;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  color: var(--dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.social-links a svg {
  width: 26px;
  height: 26px;
}

.social-links a[aria-label*="TikTok"]:hover {
  background: #000;
  color: #25f4ee;
}

.social-links a[aria-label*="Facebook"]:hover {
  background: #1877f2;
  color: #fff;
}

.social-links a[aria-label*="Instagram"]:hover {
  background: radial-gradient(circle at 30% 110%, #fdf497, #fd5949, #d6249f, #285AEB);
  color: #fff;
}

.social-links a:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 16px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .logo-img {
    width: 38px;
    height: 38px;
  }

  .logo-text {
    display: none;
  }

  .btn.btn-sm {
    padding: 8px 16px;
    font-size: 0.78rem;
  }

  .devis-form-wrap {
    padding: 24px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Ralentir le défilement auto des avis et de la galerie sur mobile */
@media (max-width: 600px) {
  .reviews-track { animation-duration: 60s; }
  .gallery-track { animation-duration: 52s; }
}
