/* =========================================================
   Nettoyage Sinistre PACA — feuille de style partagée
   ========================================================= */

:root {
  --color-primary: #0b3954;
  --color-primary-dark: #072a3f;
  --color-primary-light: #1c5478;
  --color-accent: #d9662f;
  --color-accent-dark: #b8501f;
  --color-success: #2e7d5b;
  --color-text: #1e2a32;
  --color-text-muted: #52626c;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7f9;
  --color-border: #e0e6ea;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1140px;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(11, 57, 84, 0.08);
  --shadow-lg: 0 10px 30px rgba(11, 57, 84, 0.14);
  --shadow-xl: 0 20px 50px rgba(11, 57, 84, 0.22);
  --gradient-accent: linear-gradient(120deg, var(--color-accent) 0%, #f0985c 100%);
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--color-primary-dark);
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  padding-left: 1.3em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-intro p {
  color: var(--color-text-muted);
}

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

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(217, 102, 47, 0.35);
}

.btn--accent:hover {
  box-shadow: 0 10px 26px rgba(217, 102, 47, 0.45);
}

.btn--pulse {
  animation: btn-pulse 2.4s ease-in-out infinite;
}

.btn--pulse:hover {
  animation-play-state: paused;
}

@keyframes btn-pulse {
  0%, 100% {
    box-shadow: 0 6px 18px rgba(217, 102, 47, 0.35), 0 0 0 0 rgba(217, 102, 47, 0.35);
  }
  50% {
    box-shadow: 0 6px 18px rgba(217, 102, 47, 0.35), 0 0 0 10px rgba(217, 102, 47, 0);
  }
}

.btn--outline {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--outline-dark {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--outline-dark:hover {
  background: var(--color-primary);
  color: #fff;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  line-height: 1.1;
  white-space: nowrap;
}

.logo span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle-label span {
  width: 26px;
  height: 3px;
  background: var(--color-primary-dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--gradient-primary);
  color: #fff;
  padding: 4.5rem 0 6rem;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  z-index: -1;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(217, 102, 47, 0.35) 0%, rgba(217, 102, 47, 0) 70%);
  top: -140px;
  right: -80px;
}

.hero::after {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: -160px;
  left: -100px;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.5em;
}

.text-gradient {
  background: linear-gradient(120deg, #ffb787 0%, #ffe3cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-bar .trust-item {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-card {
  background: #fff;
  color: var(--color-text);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.8rem;
  box-shadow: var(--shadow-xl);
  animation: float-card 5s ease-in-out infinite;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card,
  .btn--pulse,
  .reveal {
    animation: none !important;
    transition: none !important;
  }
}

.hero-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.3em;
}

.hero-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ---------- Icon ---------- */

.icon {
  width: 1.4em;
  height: 1.4em;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--lg {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--color-accent);
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(217, 102, 47, 0.14), rgba(217, 102, 47, 0.05));
  margin-bottom: 0.9rem;
}

.icon-circle .icon--lg {
  width: 1.8rem;
  height: 1.8rem;
}

.icon-circle--on-dark {
  background: rgba(255, 255, 255, 0.14);
}

.icon-circle--on-dark .icon {
  color: #fff;
}

/* ---------- Cards / Grids ---------- */

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

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

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  height: 100%;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(217, 102, 47, 0.35);
}

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

.card h3 {
  margin-top: 0.6rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.card-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.card:hover .card-link {
  transform: translateX(4px);
}

.city-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--color-primary-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.city-card:hover {
  background: #fff;
  border-color: var(--color-primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ---------- Process steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-border) 0 8px, transparent 8px 14px);
  z-index: 0;
}

.step {
  position: relative;
  padding-top: 2.2rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 4px 12px rgba(217, 102, 47, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  z-index: 1;
}

/* ---------- Forms ---------- */

.form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7em 0.85em;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 1px;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.field-check input {
  margin-top: 0.3em;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.8rem;
}

/* ---------- FAQ ---------- */

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.3rem 1.3rem;
  margin-bottom: 0.9rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding-bottom: 1rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Zone list ---------- */

.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.zone-list a {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 0.5em 1em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
}

.zone-list a:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 1rem 0 0;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

/* ---------- Page header (inner pages) ---------- */

.page-header {
  position: relative;
  background: linear-gradient(160deg, var(--color-bg-alt) 0%, #e7eef2 100%);
  padding: 2.8rem 0;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 102, 47, 0.12) 0%, rgba(217, 102, 47, 0) 70%);
}

.page-header .container {
  position: relative;
}

.page-header p.lead {
  color: var(--color-text-muted);
  max-width: 65ch;
}

/* ---------- Callout ---------- */

.callout {
  background: #fff4ec;
  border: 1px solid #f0c9a8;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 1.6rem 0;
}

.callout strong {
  color: var(--color-accent-dark);
}

.callout--info {
  background: #eef5f9;
  border-color: #c7dee8;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--color-primary-dark);
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.8em;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.5em;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid a:hover {
  color: #fff;
}

.footer-zones {
  columns: 2;
  column-gap: 1.2rem;
}

.footer-zones li {
  break-inside: avoid;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Utilities ---------- */

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

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.placeholder-flag {
  background: #fff3cd;
  border: 1px solid #ffe08a;
  color: #6b5200;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  font-size: 0.78em;
  font-weight: 700;
}

/* ---------- Scroll-reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--stagger.is-visible .card,
.reveal--stagger.is-visible .step,
.reveal--stagger.is-visible .city-card {
  animation: fade-up 0.6s ease both;
}

.reveal--stagger .card:nth-child(1), .reveal--stagger .step:nth-child(1), .reveal--stagger .city-card:nth-child(1) { animation-delay: 0.05s; }
.reveal--stagger .card:nth-child(2), .reveal--stagger .step:nth-child(2), .reveal--stagger .city-card:nth-child(2) { animation-delay: 0.12s; }
.reveal--stagger .card:nth-child(3), .reveal--stagger .step:nth-child(3), .reveal--stagger .city-card:nth-child(3) { animation-delay: 0.19s; }
.reveal--stagger .card:nth-child(4), .reveal--stagger .city-card:nth-child(4) { animation-delay: 0.26s; }
.reveal--stagger .city-card:nth-child(5) { animation-delay: 0.33s; }
.reveal--stagger .city-card:nth-child(6) { animation-delay: 0.4s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

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

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

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

  .steps::before {
    display: none;
  }

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

@media (max-width: 700px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }

  .main-nav li {
    border-top: 1px solid var(--color-border);
  }

  .main-nav a {
    display: block;
    padding: 0.9rem 0;
  }

  .nav-toggle:checked ~ .main-nav {
    max-height: 400px;
  }

  .nav-toggle-label {
    display: flex;
  }

  .header-cta .btn span.btn-text-long {
    display: none;
  }

  .grid--3,
  .grid--4,
  .grid--2,
  .steps {
    grid-template-columns: 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
  }
}
