/* ==========================================================================
   Ventilateur Plafond Marseille — Styles principaux
   Mobile-first, léger, orienté conversion
   ========================================================================== */

:root {
  --bg: #f3f4f6;
  --white: #ffffff;
  --dark: #1f2937;
  --muted: #5b6678;
  --blue-1: #0f5f87;
  --blue-2: #1495d4;
  --blue-3: #0ea5e9;
  --footer: #203548;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  --radius: 22px;
  --container: 1080px;
  --header-h: 72px;
  --sticky-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  padding-bottom: var(--sticky-h);
}

@media (min-width: 769px) {
  body { padding-bottom: 0; }
}

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

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

:focus-visible {
  outline: 3px solid var(--blue-3);
  outline-offset: 2px;
}

/* Skip link accessibilité */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--blue-1);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 9999;
  font-weight: 700;
}

.skip-link:focus { top: 16px; }

/* Container */
.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.site-header__inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.site-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--blue-1);
  white-space: nowrap;
}

.site-brand a.custom-logo-link {
  display: block;
}

.site-brand a.custom-logo-link img {
  max-height: 48px;
  width: auto;
}

/* Navigation desktop */
.nav-primary { display: none; }

@media (min-width: 769px) {
  .nav-primary { display: block; }

  .nav-primary ul {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
  }

  .nav-primary a {
    display: block;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
    transition: background 0.2s;
  }

  .nav-primary a:hover,
  .nav-primary .current-menu-item a {
    background: rgba(20, 149, 212, 0.1);
    color: var(--blue-1);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .btn-header {
  display: none;
}

@media (min-width: 769px) {
  .header-actions .btn-header { display: inline-block; }
}

/* Burger mobile */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  cursor: pointer;
}

@media (min-width: 769px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile */
.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--white);
  padding: 24px;
  overflow-y: auto;
  z-index: 99;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.nav-mobile.is-open { display: block; }

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.nav-mobile a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 17px;
}

.nav-mobile a:hover,
.nav-mobile .current-menu-item a {
  background: rgba(20, 149, 212, 0.1);
  color: var(--blue-1);
}

.nav-mobile .btn {
  margin-top: 16px;
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  line-height: 1.3;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--white);
  color: var(--blue-1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-solid {
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--blue-1);
  border: 2px solid var(--blue-1);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}

.actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  color: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 70px 24px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08));
  opacity: 0.5;
}

.hero-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.1;
  font-weight: 800;
}

.hero p {
  margin: 20px auto 0;
  max-width: 650px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 56px 0; }

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 800;
}

.line {
  width: 90px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: var(--blue-3);
}

.section-title p {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--muted);
}

.breadcrumb a:hover { color: var(--blue-1); }

/* Cards & services */
.cards { display: grid; gap: 24px; }

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.service.reverse .service-media { order: 2; }
.service.reverse .service-text { order: 1; }

.service-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 18px;
}

.service-text h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.15;
}

.service-text p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* Problèmes */
.problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.problem-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.problem-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--blue-1);
}

.problem-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Engagements */
.engagements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.engagement {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.engagement h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--blue-1);
}

.engagement p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Comparatif */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-col {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.compare-col--highlight {
  border: 2px solid var(--blue-2);
}

.compare-col h3 {
  margin: 0 0 16px;
  font-size: 24px;
}

.compare-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.compare-col li {
  padding-left: 24px;
  position: relative;
  color: var(--muted);
}

.compare-col li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue-2);
  font-weight: 700;
}

/* Étapes */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  text-align: center;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Tarifs */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.pricing-card--featured {
  border: 2px solid var(--blue-2);
  transform: scale(1.02);
}

.pricing-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.pricing-card .price {
  font-size: 36px;
  font-weight: 800;
  color: var(--blue-1);
  margin: 16px 0;
}

.pricing-card .price small {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

.pricing-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}

/* Zones */
.zones {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  padding: 34px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: start;
}

.zones h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.zones p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.zone-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.zone-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  color: #334155;
  font-size: 14px;
}

/* CTA band */
.cta-band {
  margin: 8px 0;
  background: linear-gradient(90deg, var(--blue-2), var(--blue-3));
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-band h3 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
}

.cta-band p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.92);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  color: var(--dark);
}

.faq-question::after {
  content: "+";
  font-size: 22px;
  color: var(--blue-2);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.is-open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 15px;
}

.faq-item.is-open .faq-answer { display: block; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact-info {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.contact-info h2 {
  margin: 0 0 20px;
  font-size: 28px;
}

.contact-methods {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  border-radius: 12px;
  font-weight: 600;
}

.contact-method:hover {
  background: rgba(20, 149, 212, 0.1);
  color: var(--blue-1);
}

/* Formulaire */
.vpm-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.vpm-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.vpm-form__field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.vpm-form__field input,
.vpm-form__field select,
.vpm-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.vpm-form__field input:focus,
.vpm-form__field select:focus,
.vpm-form__field textarea:focus {
  border-color: var(--blue-2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 149, 212, 0.15);
}

.vpm-form__field--full { grid-column: 1 / -1; }

.vpm-form__note {
  margin: 12px 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.vpm-form__feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
}

.vpm-form__feedback.is-success {
  background: #ecfdf5;
  color: #065f46;
}

.vpm-form__feedback.is-error {
  background: #fef2f2;
  color: #991b1b;
}

/* Page contenu */
.page-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.page-content h2 {
  margin: 32px 0 16px;
  font-size: 28px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p,
.page-content li {
  color: var(--muted);
  font-size: 16px;
}

/* Trust badges */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}

.trust-item::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(20, 149, 212, 0.15);
  color: var(--blue-1);
  font-size: 12px;
  font-weight: 800;
}

/* Hub multi-villes */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.city-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.city-card h3 {
  margin: 0;
  font-size: 26px;
  color: var(--blue-1);
}

.city-card__region {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.city-card__intro {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  flex: 1;
}

.city-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.city-card__actions .btn {
  width: 100%;
}

.footer-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.footer-zones a {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.footer-zones a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: 40px;
  background: var(--footer);
  color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding: 34px;
}

.footer-brand {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.site-footer h4 {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: #d7e0ea;
  font-size: 15px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer a:hover { color: var(--white); }

.footer-bottom {
  padding: 16px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

/* ==========================================================================
   Sticky mobile CTA
   ========================================================================== */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: var(--white);
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.1);
}

@media (min-width: 769px) {
  .sticky-cta { display: none; }
}

.sticky-cta .btn {
  flex: 1;
  padding: 12px 10px;
  font-size: 14px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .service,
  .zones,
  .footer-grid,
  .engagements,
  .problems,
  .steps,
  .pricing-grid,
  .compare,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service.reverse .service-media,
  .service.reverse .service-text { order: initial; }

  .service-media img { height: 240px; }

  .pricing-card--featured { transform: none; }

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

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
    padding-top: 10px;
  }

  .hero { padding: 50px 18px; }

  .section { padding: 40px 0; }

  .service { padding: 16px; }

  .zone-list { grid-template-columns: 1fr; }

  .cta-band,
  .zones,
  .footer-grid,
  .vpm-form,
  .contact-info,
  .page-content {
    padding: 22px;
  }

  .vpm-form__grid { grid-template-columns: 1fr; }

  .engagements,
  .steps {
    grid-template-columns: 1fr;
  }
}
