:root {
  --color-primary: #FFCB33;
  --color-primary-dark: #E6B400;
  --color-dark: #14151a;
  --color-light: #FFF9E6;
  --color-section-yellow: #FEF9E0;
  --color-muted: #5b5b5b;
  --radius: 12px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-dark);
  background: #fff;
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

a { color: var(--color-dark); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-dark);
}
.btn-primary:hover { background: var(--color-primary-dark); color: var(--color-dark); }
.btn-secondary {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary); color: var(--color-dark); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.logo img { height: 32px; width: auto; }
.main-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.main-nav a { color: var(--color-dark); font-weight: 500; }
.main-nav a:hover { color: var(--color-primary-dark); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(20, 21, 26, 0.08);
  padding: 0.5rem;
  flex-direction: column;
  gap: 0;
  z-index: 20;
}
.nav-dropdown:hover .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a { padding: 0.6rem 0.75rem; border-radius: 6px; }
.nav-dropdown-menu a:hover { background: #f7f7f7; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.header-actions .phone-link,
.header-actions .btn { padding: 0.5rem 1rem; }
.nav-toggle-input { display: none; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--color-dark);
}
.nav-overlay { display: none; }
.main-nav .nav-mobile-only { display: none; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-dark);
  padding: 0.65rem 1.25rem;
  border: 2px solid var(--color-dark);
  border-radius: var(--radius);
}
.phone-link:hover { color: var(--color-dark); background: var(--color-light); }

/* Hero */
.hero { background: #fff; padding: 1.5rem 0 0; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "text  image"
    "cta   image";
  align-items: end;
  gap: 0.5rem 3rem;
}
.hero-text { grid-area: text; padding-bottom: 0; }
.hero-cta { grid-area: cta; padding-bottom: 4rem; }
.hero-flags { height: 140px; width: auto; margin-bottom: 0.5rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #fff;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
}
.eyebrow-break { display: none; }
.hero-text h1 { font-size: 2.75rem; margin: 1rem 0 1rem; }
.hero-text .lead { color: var(--color-muted); margin-bottom: 0; font-size: 1.1rem; }
.hero-image {
  grid-area: image;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.hero-image img { max-height: 680px; width: auto; display: block; }

/* Generic sections */
section { padding: 4rem 0; }
section h2 { font-size: 2rem; margin-bottom: 1rem; }
.about, .certifications, .services, .avis { text-align: left; }
.about p, .avis p { color: var(--color-muted); max-width: 760px; }
.certifications > .container > p, .services > .container > p { color: var(--color-muted); max-width: none; }
.about { margin-top: -65px; padding-top: 2.5rem; position: relative; z-index: 1; }
.services { background: #fff; }

.about-inner {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 4px 18px rgba(20, 21, 26, 0.06);
}
.about-text { flex: 1 1 380px; }
.about-map { flex: 1 1 380px; text-align: center; }
.about-map img { max-width: 480px; width: 100%; margin: 0 auto; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.cert-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.cert-card img { height: 96px; width: auto; flex-shrink: 0; margin-bottom: 0; }
.cert-card-body { min-width: 0; }
.cert-card-body h3 { margin: 0 0 0.5rem; }
.cert-card-body p { margin: 0; color: var(--color-muted); }

@media (max-width: 640px) {
  .cert-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
  }
  .cert-card img { height: 110px; }
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 18px rgba(20, 21, 26, 0.06);
}
.service-photo {
  position: relative;
  flex-shrink: 0;
}
.service-row img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.service-row img.service-icon {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(20, 21, 26, 0.25);
}
.service-row-body { flex: 1 1 320px; }
.service-row-body .features-label { font-weight: 600; margin-bottom: 0.25rem; }
.service-row-body ul { color: var(--color-muted); padding-left: 1.2rem; margin: 0; }
.service-row-action {
  flex: 0 0 220px;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  text-align: center;
  padding-left: 2rem;
  border-left: 1px solid #eee;
}
.service-row-action .price-prefix {
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-muted);
  display: block;
}
.service-row-action .price {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-dark);
  margin: 0 0 0.5rem;
  white-space: nowrap;
}
.service-row-action .btn { white-space: nowrap; box-shadow: 0 4px 12px rgba(255, 203, 51, 0.35); }

@media (max-width: 768px) {
  .service-row { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
  .service-row-body { flex: 0 1 auto; width: 100%; }
  .service-photo, .service-row img { width: 100%; }
  .service-row img { height: auto; aspect-ratio: 2 / 1; }
  .service-row-action {
    flex: 0 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-left: 0;
    width: 100%;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
    gap: 1rem;
  }
  .service-row-price { text-align: left; }
  .service-row-action .price { margin: 0; }
}

.avis { background: #fff; overflow: hidden; }
.avis-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: left;
  max-width: 760px;
  margin: 0 auto;
}
.avis-google-badge { width: 140px; height: auto; flex-shrink: 0; margin: 0; }
.avis-intro-text h2 { margin: 0 0 0.5rem; }
.avis-intro-text p { margin: 0; }
.avis-cta { text-align: center; }

@media (max-width: 640px) {
  .avis-intro { flex-direction: column; align-items: center; gap: 1rem; }
  .avis-google-badge { width: 120px; margin: 0 auto; }
  .avis-intro-text { text-align: left; }
}

.avis-marquee {
  width: 100%;
  overflow: hidden;
  margin: 1.5rem 0;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.avis-track {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  width: max-content;
  animation: avis-scroll 140s linear infinite;
}
.avis-marquee:hover .avis-track,
.avis-marquee:focus-within .avis-track { animation-play-state: paused; }
.avis-card {
  flex: 0 0 320px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
}
.avis-stars { color: var(--color-primary-dark); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.avis-text { color: var(--color-dark); margin: 0 0 1rem; }
.avis-author {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.6rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}
.avis-avatar {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-dark);
  font-weight: 800;
  text-transform: uppercase;
}
.avis-time { display: block; font-weight: 400; color: var(--color-muted); font-size: 0.85rem; }

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

/* Zone d'intervention */
.zone { text-align: center; }
.zone img { margin: 2rem auto 0; max-width: 480px; }

/* Devis / contact */
.devis { background: #fff; color: var(--color-dark); }
.devis h2 { color: var(--color-dark); }
.devis p { color: var(--color-dark); }
.devis a { color: var(--color-dark); }
.devis-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 4px 18px rgba(20, 21, 26, 0.06);
}
.devis-text { text-align: center; margin-bottom: 1.5rem; }
.devis-text h2 { margin-top: 0; }
.devis-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  color: var(--color-dark);
}
.devis-form label { display: flex; flex-direction: column; font-weight: 600; gap: 0.4rem; font-size: 1.05rem; }
.devis-form input, .devis-form textarea {
  padding: 0.9rem 1.1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.1rem;
}
.devis-form input:focus, .devis-form textarea:focus {
  outline: none;
  border-color: var(--color-primary-dark);
}
.devis-form button[type="submit"] {
  align-self: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}
.hidden { display: none; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 50;
}
.whatsapp-float:hover { background: #1ebe5a; color: #fff; }

/* Merci (thank you) page */
.merci { padding: 6rem 0; text-align: center; }
.merci-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.merci-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.merci h1 { font-size: 2rem; margin: 0 0 1rem; }
.merci p { color: var(--color-muted); margin: 0 0 2rem; }
.merci-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Page content (CGV, merci, articles) */
.page-content { padding-top: 3rem; }
.page-content h2 { margin-top: 2rem; }
.article-byline { display: flex; align-items: center; gap: 0.6rem; color: var(--color-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.article-byline p { margin: 0; }
.article-byline-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.article-hero-wrap { position: relative; }
.article-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(20, 21, 26, 0.12);
  margin: 1.5rem 0 2rem;
}
.article-hero-icon {
  position: absolute;
  top: calc(1.5rem - 10px);
  left: -10px;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(20, 21, 26, 0.25);
}
.page-content .service-row { margin-top: 2.5rem; }
.avis-inline { margin-top: 3.5rem; }
.avis-inline h2 { margin-top: 0; margin-bottom: 1rem; }
.avis-inline .avis-marquee { margin: 0; }

/* Footer */
.site-footer { background: var(--color-dark); color: #cfcfcf; padding: 4rem 0 2rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col .logo { display: inline-block; margin-bottom: 1rem; }
.footer-col .logo img { height: 48px; width: auto; }
.footer-col p { color: #9a9a9a; font-size: 0.92rem; max-width: 260px; }
.footer-col h3 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.footer-col a, .footer-col span { display: block; color: #cfcfcf; margin-bottom: 0.6rem; font-size: 0.95rem; }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
}
.copyright { margin: 0; color: #8a8a8a; font-size: 0.85rem; }
.credit { margin: 0; color: #8a8a8a; font-size: 0.85rem; }
.credit a { display: inline; color: var(--color-primary); margin: 0; text-decoration: underline; }
.credit a:hover { color: #fff; }

@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; }
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 0; }
  .footer-col { padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .footer-col:first-child { padding-top: 0; border-top: none; }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "image"
      "cta";
  }
  .hero-text { padding-bottom: 0; }
  .hero-cta { padding-bottom: 2.5rem; display: flex; justify-content: center; }
  .hero-flags { display: none; }
  .hero-image img { width: 100%; height: auto; max-height: none; margin-bottom: 0; }
  .about { margin-top: 0; }
}

@media (max-width: 640px) {
  .eyebrow {
    display: flex;
    margin: 0 auto;
    width: fit-content;
    font-size: 0.7rem;
    font-weight: 700;
    border-width: 1px;
    padding: 0.3rem 0.6rem;
    white-space: normal;
    align-items: center;
  }
  .eyebrow-text { text-align: center; }
  .eyebrow-break { display: block; }
  .hero-text h1 { font-size: 2rem; }

  section { padding: 2.5rem 0; }
  .about-text { text-align: center; }
  .about-text .btn-primary { margin: 0 auto; }
}

@media (max-width: 1140px) {
  .header-actions .phone-link,
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .main-nav .nav-mobile-only { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -4px 0 18px rgba(20, 21, 26, 0.15);
    transition: right 0.3s ease;
    z-index: 30;
    overflow-y: auto;
  }
  .nav-toggle-input:checked ~ .container .main-nav { right: 0; }

  .nav-dropdown { display: contents; }
  .nav-dropdown-menu {
    display: flex;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: 0;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 21, 26, 0.5);
    z-index: 25;
  }
  .nav-toggle-input:checked ~ .nav-overlay { display: block; }
}
