ï»¿:root {
  color-scheme: light;
  --primary: #0f766e;
  --primary-dark: #0b4f4b;
  --accent: #f59e0b;
  --background: #ffffff;
  --text: #111827;
  --muted: #475569;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("Logo/NOUVEAU%20LOGO%20EBFF%20RENOV.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60vh auto;
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(6px);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  flex-wrap: nowrap;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
  flex: 0 0 auto;
  margin-right: 1rem;
  gap: 0.45rem;
}

.nav-brand-text {
  margin-left: 0;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Algerian', 'Segoe UI', fantasy, serif;
  letter-spacing: 0.08em;
  color: #0f766e;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 rgba(15, 118, 110, 0.15);
}

.nav-logo:hover .nav-brand-text {
  color: #115e59;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 50%;
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.4rem;
  margin-left: 1rem;
}

.nav-toggle svg {
  display: block;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  align-items: center;
  flex: 1 1 auto;
  margin-left: auto;
  justify-content: flex-end;
}

.nav-links.open {
  display: flex;
}

.nav-links a,
.nav-links a:visited,
.nav-links a:hover,
.nav-links a:focus,
.nav-links a:focus-visible {
  color: var(--text);
  text-decoration: none;
  outline: none;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  background: transparent;
}

.nav-links a[href="#quote"],
  .nav-links button#quote-button,
  .nav-links a.button {
    background: #ffffff !important;
    color: var(--primary);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.08);
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .nav-links a[href="#quote"]:hover,
  .nav-links a[href="#quote"].active,
  .nav-links button#quote-button:hover,
  .nav-links a.button:hover {
  color: var(--primary-dark);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  font-weight: 700;
}

/* Ensure call button appears at the far right of the nav */
#call-button {
  margin-left: 0.5rem;
  order: 999;
  align-self: center;
}

img {
  max-width: 100%;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  padding: 5rem 1rem 2rem;
  min-height: 85vh; /* Agrandit lÃ©gÃ¨rement l'en-tÃªte pour mieux voir les photos */
  overflow: visible;
  background: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.18) 0%, rgba(2, 6, 23, 0.05) 45%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.02) 0%, rgba(2, 6, 23, 0.18) 100%);
  z-index: 1;
  pointer-events: none;
}
/* ===================== DIAPORAMA HERO ===================== */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  filter: brightness(0.85) saturate(1.1) contrast(1.05);
  will-change: opacity;
}

.hero-slide-bg.active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.22));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-brand {
  flex: 0 0 auto;
}

.hero-text {
  flex: 1;
}

/* ======== STATS BAR ======== */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.25rem;
  padding: 1rem 0.5rem;
  backdrop-filter: blur(8px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 2rem;
  text-align: center;
}

.stat-icon {
  font-size: 1.4rem;
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.25);
}

/* ======== QUOTE FORM ======== */
#quote {
  scroll-margin-top: 6rem;
}

.quote-form-wrap {
  margin-top: 2rem;
}

body.quote-open {
  background: #f8fafc;
  color: #111827;
}

body.quote-open::before {
  opacity: 0.02;
}

body.quote-open .hero {
  background: rgba(255, 255, 255, 0.12);
}

body.quote-open .hero::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.95));
}

body.quote-open .hero-slideshow {
  opacity: 0.35;
  filter: blur(1px) brightness(0.5);
}

.quote-form {
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

body.quote-open .quote-form label {
  color: #0f172a;
}

body.quote-open .quote-form input,
body.quote-open .quote-form select,
body.quote-open .quote-form textarea {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

body.quote-open .quote-form input::placeholder,
body.quote-open .quote-form textarea::placeholder {
  color: #94a3b8;
}

.quote-form h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.quote-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--muted);
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.7rem;
  font: inherit;
}

.quote-form textarea {
  resize: vertical;
}

.logo {
  width: min(280px, 70vw);
  max-width: 280px;
  height: auto;
  margin-bottom: 1.25rem;
  display: block;
  border-radius: 1rem;
  background: white;
  padding: 0.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0 0 1rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.92);
}

.button {
  display: inline-block;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.button.secondary {
  background: var(--primary);
  color: var(--white);
}

.service-toggle-btn {
  white-space: normal;
  text-align: center;
}

.section.gallery .container {
  text-align: center;
}

/* ======== SERVICE CARDS ======== */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.card,
.contact-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.card {
  display: flex;
  flex-direction: column;
}

.service-box-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

/* Center header and description for ElectricitÃ©, Plomberie and Serrurerie cards */
.card-electricite .service-box-header,
.card-serrurerie .service-box-header,
.card-plomberie .service-box-header {
  align-items: center;
  text-align: center;
}

.service-box-header h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--primary);
}

.service-box-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.service-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 1rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Center electricity, plomberie and serrurerie toggles specifically */
#electricity-toggle,
#plomberie-toggle,
#serrurerie-toggle {
  display: block;
  margin: 1rem auto 0 auto;
}

.card img {
  height: 180px;
  object-fit: cover;
  border-radius: 0.85rem;
  margin-bottom: 1rem;
  border: 3px solid var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.15);
  border-color: var(--primary);
}

/* ======== SERVICE GALLERY ======== */
.service-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.mini-photo-card {
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mini-photo-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.image-logo-overlay {
  position: relative;
}

.image-logo-overlay .logo-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  padding: 0.35rem;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.image-logo-overlay .logo-badge img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.mini-photo-card {
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mini-photo-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

/* 3rd card spans full width only when there are exactly 3 cards */
.service-gallery:has(.mini-photo-card:last-child:nth-child(3)) .mini-photo-card:nth-child(3) {
  grid-column: 1 / -1;
  max-width: 50%;
  margin: 0 auto;
}

/* Rich cards with testimonial */
.mini-photo-card--rich {
  display: flex;
  flex-direction: column;
}

.mini-card-content {
  padding: 0.7rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mini-card-content > p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: left;
}

.mini-testimonial {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.mini-stars {
  font-size: 0.72rem;
}

.mini-quote {
  font-size: 0.78rem;
  font-style: italic;
  color: #475569;
  line-height: 1.4;
}

.mini-author {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.mini-photo-card p {
  margin: 0.65rem 0.75rem 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: left;
  line-height: 1.4;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 50px;
}

.mini-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  margin: 0;
  border-radius: 0;
  opacity: 0;
  transform: translateY(12px);
  animation: serviceImageFadeIn 0.8s ease forwards;
  flex-shrink: 0;
}

@keyframes serviceImageFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Full-width card keeps same aspect ratio */
.service-gallery:has(.mini-photo-card:last-child:nth-child(3)) .mini-photo-card:nth-child(3) img {
  aspect-ratio: 16 / 9;
}

  color: var(--muted);
  text-align: left;
  line-height: 1.4;
}

/* ======== SERVICE REVIEWS ======== */
.service-reviews {
  margin-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.reviews-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.reviews-rating {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.reviews-count {
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
}

.toggle-reviews-btn {
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.toggle-reviews-btn:hover {
  background: var(--primary);
  color: white;
}

.reviews-list {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--av-color, #0f766e);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.review-body {
  flex: 1;
}

.review-meta {
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.review-stars {
  font-size: 0.75rem;
}

.review-body p {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.review-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ======== TESTIMONIALS ======== */
.testimonials {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #134e4a 50%, #1e3a5f 100%);
  color: var(--white);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.eyebrow-dark {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.testimonials-header h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0.25rem 0 0.5rem;
}

.testimonials-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  margin: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.25rem;
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.13);
}

.testimonial-quote {
  font-size: 4rem;
  line-height: 0.8;
  color: var(--accent);
  font-family: Georgia, serif;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.testimonial-card > p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.25rem;
  flex: 1;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--av-color, #0f766e);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.3);
}

.testimonial-footer > div:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.testimonial-footer strong {
  font-size: 0.92rem;
  color: white;
}

.testimonial-footer span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
}

.testimonial-stars {
  font-size: 0.85rem;
  margin-left: auto;
}

/* ======== INFO SECTION ======== */
.info-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.5fr 1fr;
}

.info-list {
  padding-left: 1.2rem;
  color: var(--muted);
}

.info-list li + li {
  margin-top: 0.5rem;
}

.contact-card {
  text-align: center;
}

/* ======== PAYMENT ======== */
.payment-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--primary);
  background: #ecfeff;
  border-radius: 0.7rem;
}

.payment-note p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.payment-form-container {
  margin-top: 1rem;
}

.payment-panels {
  margin-top: 1rem;
}

.payment-panel {
  display: none;
}

.payment-panel.active-panel {
  display: block;
}

.payment-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--muted);
}

.payment-form input {
  padding: 0.8rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.7rem;
  font: inherit;
}

.payment-methods {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.payment-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.payment-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.payment-fields {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 0.9rem;
  padding: 1rem;
}

.hidden {
  display: none !important;
}

.quote-success-message {
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 0.75rem;
  color: #047857;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}

.payment-status {
  color: var(--primary);
  font-weight: 600;
  margin: 0;
}

/* ======== WHATSAPP FLOAT ======== */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  z-index: 50;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* ======== FOOTER ======== */
.footer {
  background: #111827;
  color: #cbd5e1;
  padding: 1.25rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: center;
}

.footer-logo {
  width: 44px;
  height: auto;
  border-radius: 0.5rem;
  background: white;
  padding: 0.2rem;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 1100px) {
  .hero-layout {
    gap: 1.5rem;
  }

  .stats-bar {
    padding: 1rem;
  }

  .service-gallery {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
  }
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .service-gallery {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.85rem;
  }

  .mini-photo-card img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 800px) {
  .cards,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .service-gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .service-gallery:has(.mini-photo-card:last-child:nth-child(3)) .mini-photo-card:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
  }

  .hero-layout {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .stats-bar {
    gap: 0.5rem;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    padding: 0.5rem 1rem;
  }

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

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

  .payment-methods {
    flex-direction: column;
    align-items: stretch;
  }

  .payment-btn {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .hero-layout {
    gap: 1.5rem;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-gallery {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 65vh;
    padding: 3.5rem 0.75rem 1.5rem;
  }

  .hero__content,
  .container {
    width: min(100%, calc(100% - 1rem));
  }

  .hero-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-links a {
    flex: 1 1 calc(50% - 0.75rem);
    text-align: center;
  }

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

  .service-gallery {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.85rem;
  }

  .mini-photo-card img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 800px) {
  .service-gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .service-gallery:has(.mini-photo-card:last-child:nth-child(3)) .mini-photo-card:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
  }

  .hero-layout {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .stats-bar {
    gap: 0.5rem;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    padding: 0.5rem 1rem;
  }

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

  .payment-methods {
    flex-direction: column;
    align-items: stretch;
  }

  .payment-btn {
    width: 100%;
  }
}

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

  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1rem;
    gap: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    z-index: 100;
  }

  .nav-links:not(.open) a:not(#call-button) {
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    white-space: normal;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(15, 118, 110, 0.08);
    color: var(--primary);
  }

  .nav-wrap {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  #call-button,
  .call-button {
    flex: 0 0 auto;
    margin-left: 0.5rem;
    padding: 6px 10px;
    font-size: 0.9rem;
    gap: 0.4rem;
    background-color: #10b981;
    color: white;
    border-radius: 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.12);
  }

  .call-button svg {
    width: 16px;
    height: 16px;
  }
}

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

  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1rem;
    gap: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    z-index: 100;
  }

  .nav-links:not(.open) a:not(#call-button) {
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    white-space: normal;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(15, 118, 110, 0.08);
    color: var(--primary);
  }

  .nav-wrap {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  #call-button,
  .call-button {
    flex: 0 0 auto;
    order: 0;
    margin-left: 0.5rem;
    padding: 6px 12px;
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  #call-button svg,
  .call-button svg {
    width: 16px;
    height: 16px;
  }
}



@media (max-width: 640px) {
  .service-gallery {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.65rem;
  }

  .mini-photo-card {
    border-radius: 0.65rem;
  }

  .mini-photo-card p {
    margin: 0.5rem 0.5rem 0;
    font-size: 0.75rem;
    min-height: 40px;
  }

  .mini-card-content {
    padding: 0.5rem 0.5rem;
  }

  .nav-links {
    padding: 0.9rem;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .hero-header-animated .marquee-wrapper {
    animation-duration: 12s;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 55vh;
    padding: 3rem 0.75rem 1rem;
  }

  .hero__content {
    width: min(100%, calc(100% - 1rem));
  }

  .hero-layout {
    gap: 0.75rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .service-gallery {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
  }

  .mini-photo-card p {
    margin: 0.4rem 0.4rem 0;
    font-size: 0.72rem;
    line-height: 1.3;
    min-height: 40px;
  }

  .mini-card-content {
    padding: 0.4rem 0.4rem;
  }

  .hero-header-animated .marquee-wrapper {
    animation-duration: 10s;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .quote-form {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 50vh;
    padding: 2.2rem 0.75rem 1rem;
  }

  .hero-header-animated .marquee-wrapper {
    animation-duration: 12s;
  }

  .service-toggle-btn,
  .button,
  .payment-btn,
  .nav-links a {
    width: 100%;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    align-items: stretch;
    padding: 0.75rem;
  }
}

/* Duplicate quote form hidden styles were removed to avoid conflicts with the global .hidden rule. */

.vehicle-gallery {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.vehicle-frame {
  position: relative;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 2px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  max-width: 420px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vehicle-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 35%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.vehicle-frame .vehicle-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: #fff;
}

.van {
  max-width: 45%;
  width: 100%;
  height: auto;
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
  /* animation: float 4s ease-in-out infinite alternate; */
}

.van:hover {
  transform: rotate(5deg);
}

@keyframes float {
  0% { transform: translateY(0) rotate(-5deg); }
  100% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes heroTextReveal {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes marqueeText {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.hero-header-animated {
  overflow: hidden;
  position: relative;
  display: block;
}

.hero-header-animated .marquee-wrapper {
  display: inline-block;
  white-space: nowrap;
  animation: marqueeText 14s linear infinite;
}

.hero-header-animated p {
  display: inline-block;
  margin: 0 2rem 0 0;
  white-space: nowrap;
  font-weight: 700;
}

.hero-header-animated:hover {
  animation-play-state: paused;
}


/* ======== NOUVEAUX STYLES AVIS ======== */
.testimonials-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  backdrop-filter: blur(10px);
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.rating-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.rating-score {
  font-size: 1.25rem;
  font-weight: 700;
}

.rating-stars-small {
  font-size: 1rem;
}

.rating-count {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-left: 0.25rem;
}

.rating-link {
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.rating-link:hover {
  text-decoration: underline;
}

.testimonial-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.testimonial-profile {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.testimonial-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--av-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.testimonial-profile-info {
  display: flex;
  flex-direction: column;
}

.testimonial-profile-info strong {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.testimonial-location,
.testimonial-date {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.testimonial-service-badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.testimonial-service-badge.electricite { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.testimonial-service-badge.plomberie { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.testimonial-service-badge.serrurerie { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; }

.testimonial-stars-row {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.testimonial-verified {
  font-size: 0.8rem;
  color: #86efac;
  font-weight: 500;
  margin-top: 1rem;
}

.testimonials-google-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}@media (max-width: 900px) { .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } 
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } .hero__content h1 { font-size: 1.8rem !important; } .hero__content p { font-size: 1rem !important; } } 
.testimonial-card p, .testimonial-card .testimonial-profile-info strong, .testimonial-card .testimonial-location, .testimonial-card .testimonial-date, .testimonial-card .testimonial-verified { color: #000000 !important; }
.payment-btn.active { background: #000000 !important; color: #ffffff !important; border-color: #000000 !important; }
.payment-btn.active { background: #f8fafc !important; color: #000000 !important; border-color: #000000 !important; }
