/* =========================
   BPS Débarras – style.css
   Version premium complète
   ========================= */

/* -------------------------
   1) Variables
------------------------- */
:root {
  --color-primary: #324d3d;
  --color-primary-soft: #5f7b68;
  --color-primary-deep: #23362a;
  --color-primary-ink: #1c2a21;

  --color-accent: #d97822;
  --color-accent-dark: #bc6415;
  --color-accent-soft: #efaa63;

  --color-text: #1f2933;
  --color-text-muted: #60706a;

  --color-bg: #ffffff;
  --color-bg-soft: #f3f7f4;
  --color-bg-soft-2: #edf3ee;
  --color-bg-premium: #faf8f3; /* neutre premium ajouté */
  --color-border: #d7e0d8;
  --color-border-strong: #c7d2ca;

  --color-success: #2f8a58;
  --color-warning: #b7791f;
  --color-error: #c53030;

  --shadow-xs: 0 4px 10px rgba(35, 54, 42, 0.04);
  --shadow-sm: 0 8px 22px rgba(35, 54, 42, 0.08);
  --shadow-md: 0 18px 42px rgba(35, 54, 42, 0.12);
  --shadow-lg: 0 30px 68px rgba(35, 54, 42, 0.16);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --container: 1200px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
  --space-8: 96px;

  --font-stack: Inter, Arial, Helvetica, sans-serif;
  --transition: 0.2s ease;
}

/* -------------------------
   2) Reset / Base
------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-width: 320px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: none;
}

p {
  margin: 0 0 var(--space-2);
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-2);
  line-height: 1.16;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 32px;
  font-weight: 800;
}

h2 {
  font-size: 26px;
  font-weight: 750;
}

h3 {
  font-size: 22px;
  font-weight: 700;
}

h4 {
  font-size: 18px;
  font-weight: 700;
}

address {
  font-style: normal;
}

details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

/* -------------------------
   3) Utilitaires
------------------------- */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 2000;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

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

.section {
  padding: 56px 0;
}

.section--light {
  background:
    radial-gradient(circle at top right, rgba(217, 120, 34, 0.05) 0%, rgba(217, 120, 34, 0) 24%),
    linear-gradient(180deg, #f8fbf8 0%, var(--color-bg-soft) 100%);
}

.section--accent {
  background:
    radial-gradient(circle at top right, rgba(239, 170, 99, 0.18) 0%, rgba(239, 170, 99, 0) 28%),
    linear-gradient(135deg, var(--color-primary-deep) 0%, var(--color-primary) 100%);
  color: #fff;
}

.section--accent h2,
.section--accent p {
  color: #fff;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto var(--space-5);
  text-align: center;
}

.section-heading--left {
  margin-inline: 0;
  text-align: left;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.section-heading h2 {
  margin-bottom: 18px;
}

.section-heading p {
  line-height: 1.75;
}

.section-cta {
  margin-top: var(--space-4);
  text-align: center;
}

/* -------------------------
   4) Boutons
------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #ec8a37 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(217, 120, 34, 0.24);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-accent-dark) 0%, #d8731f 100%);
  color: #fff;
  box-shadow: 0 15px 34px rgba(188, 100, 21, 0.28);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  border-color: rgba(50, 77, 61, 0.18);
  box-shadow: var(--shadow-xs);
}

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

.btn--light {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--light:hover {
  background: #f9fcf9;
  color: var(--color-primary);
}

.btn--secondary-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.86);
}

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

/* -------------------------
   5) Header
------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(50, 77, 61, 0.08);
  backdrop-filter: blur(10px);
}

.topbar {
  background: linear-gradient(90deg, #26382b 0%, var(--color-primary) 100%);
  color: #fff;
}

.topbar__inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
}

.topbar__text {
  margin: 0;
  font-size: 14px;
  color: #fff;
}

.topbar__phone {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 16px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 40px;
  padding: 0 10px;
  background: linear-gradient(135deg, var(--color-primary-deep) 0%, var(--color-primary-soft) 100%);
  color: #fff;
  border-radius: 10px;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}

.logo__text {
  color: var(--color-primary);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(50, 77, 61, 0.16);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(35, 54, 42, 0.05);
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--color-primary);
  border-radius: 999px;
}

.site-nav {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  flex-direction: column;
  gap: var(--space-3);
  padding: 20px;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.site-nav.is-open {
  display: flex;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  color: var(--color-primary);
}

.site-nav__list a[aria-current="page"] {
  color: var(--color-accent);
}

.site-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* -------------------------
   6) Hero
------------------------- */
.hero {
  padding: 56px 0;
  background:
    radial-gradient(circle at top right, rgba(217, 120, 34, 0.11) 0%, rgba(217, 120, 34, 0) 26%),
    radial-gradient(circle at bottom left, rgba(95, 123, 104, 0.09) 0%, rgba(95, 123, 104, 0) 24%),
    linear-gradient(180deg, #fbfcfa 0%, #edf4ef 100%);
}

.hero__grid {
  display: grid;
  gap: var(--space-4);
}

.hero__content h1 {
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  line-height: 1.72;
}

.hero__highlights {
  display: grid;
  gap: 10px;
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.hero__highlights li {
  position: relative;
  padding-left: 26px;
  font-weight: 500;
}

.hero__highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success);
  font-weight: 800;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(50, 77, 61, 0.09);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.hero__card h2 {
  font-size: 24px;
  margin-bottom: var(--space-2);
}

/* -------------------------
   7) Listes visuelles
------------------------- */
.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success);
  font-weight: 800;
}

/* -------------------------
   8) Bande de réassurance
------------------------- */
.trust-strip {
  padding: 18px 0;
  background: #fff;
  border-top: 1px solid rgba(50, 77, 61, 0.08);
  border-bottom: 1px solid rgba(50, 77, 61, 0.08);
}

.trust-strip__grid {
  display: grid;
  gap: 16px;
}

.trust-item {
  padding: 16px 18px;
  background: linear-gradient(180deg, #fbfcfa 0%, var(--color-bg-soft) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(50, 77, 61, 0.06);
  box-shadow: 0 6px 14px rgba(35, 54, 42, 0.04);
}

.trust-item h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

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

/* -------------------------
   9) Cartes et grilles
------------------------- */
.cards-grid,
.areas-grid,
.proofs-grid,
.steps-grid {
  display: grid;
  gap: 20px;
}

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

.card,
.step-card,
.proof-item {
  background: #fff;
  border: 1px solid rgba(50, 77, 61, 0.07);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover,
.step-card:hover,
.proof-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(50, 77, 61, 0.1);
}

.card {
  padding: 24px;
}

.card h3 a {
  color: inherit;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-weight: 700;
  color: var(--color-primary);
}

.card-link::after {
  content: "→";
}

.service-card,
.info-card,
.testimonial-card,
.area-card {
  height: 100%;
}

/* -------------------------
   10) Split section
------------------------- */
.split-section {
  display: grid;
  gap: var(--space-4);
}

.split-section__panel {
  padding: 24px;
}

/* -------------------------
   11) Étapes
------------------------- */
.step-card {
  position: relative;
  padding: 24px;
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary-deep) 0%, var(--color-primary-soft) 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

/* -------------------------
   12) Preuves
------------------------- */
.proof-item {
  padding: 22px;
}

.proof-item p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

/* -------------------------
   13) FAQ
------------------------- */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin-inline: auto;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(50, 77, 61, 0.07);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  padding: 18px 54px 18px 18px;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  color: var(--color-accent);
}

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

.faq-item p {
  padding: 0 18px 18px;
  margin: 0;
  color: var(--color-text-muted);
}

/* -------------------------
   14) CTA Banner
------------------------- */
.cta-banner {
  display: grid;
  gap: var(--space-3);
  padding: 28px;
}

.cta-banner__content p:last-child {
  margin-bottom: 0;
}

.cta-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* -------------------------
   15) Footer
------------------------- */
.site-footer {
  background: linear-gradient(180deg, #273a2d 0%, var(--color-primary) 100%);
  color: #fff;
}

.site-footer h2,
.site-footer h3,
.site-footer p,
.site-footer a,
.site-footer li {
  color: #fff;
}

.footer-reassurance {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-reassurance__grid {
  display: grid;
  gap: 10px;
  padding: 20px 0;
}

.footer-reassurance__grid p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.footer__grid {
  display: grid;
  gap: 28px;
  padding: 36px 0;
}

.footer__col h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

.footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links li + li {
  margin-top: 10px;
}

.footer__links a:hover,
.footer__contact a:hover,
.footer-bottom__links a:hover {
  text-decoration: underline;
}

.footer__contact p {
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 0;
}

.footer-bottom__inner p {
  margin: 0;
  font-size: 14px;
}

.footer-bottom__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom__links a {
  font-size: 14px;
}

/* -------------------------
   16) Formulaires
------------------------- */
form {
  display: grid;
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-primary);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--color-text);
  background: #fff;
  border: 1px solid rgba(50, 77, 61, 0.12);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary-soft);
  box-shadow: 0 0 0 4px rgba(95, 123, 104, 0.14);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-card {
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(50, 77, 61, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* -------------------------
   17) Responsive
------------------------- */
@media (min-width: 640px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  .hero__actions,
  .cta-banner__actions,
  .site-nav__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .footer-bottom__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (min-width: 768px) {
  body {
    font-size: 17px;
  }

  .section {
    padding: 72px 0;
  }

  .topbar__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero {
    padding: 72px 0;
  }

  .hero__grid,
  .split-section {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

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

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

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

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

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

@media (min-width: 1024px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 28px;
  }

  .section {
    padding: 80px 0;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 0;
    box-shadow: none;
    border-top: 0;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .site-nav__list a {
    padding: 0;
  }

  .site-nav__actions {
    flex-direction: row;
    align-items: center;
  }

  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

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

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

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

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

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

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

  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }

  .footer-bottom__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

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

  .site-nav__actions .btn {
    width: auto;
  }
}

/* -------------------------
   18) Ajustements fins
------------------------- */
@media (max-width: 479px) {
  .btn {
    width: 100%;
  }

  .hero__card,
  .card,
  .step-card,
  .proof-item,
  .form-card,
  .cta-banner {
    padding: 20px;
  }
}

.section--accent .eyebrow {
  color: #ffffff;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(95, 123, 104, 0.35);
  outline-offset: 3px;
}

.site-nav__actions .btn {
  width: 100%;
}

.hero__media {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-bg-soft-2);
}

.hero__image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .hero__media,
  .hero__image {
    min-height: 420px;
  }
}

.sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-list li + li {
  margin-top: 12px;
}

.sitemap-list a {
  font-weight: 500;
  text-decoration: none;
}

.sitemap-list a:hover {
  text-decoration: underline;
}

/* ===============================
   INDEX DES VILLES
================================ */
.sitemap-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-list li {
  margin: 0;
}

.sitemap-list a {
  display: block;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--color-text-muted);
  text-decoration: none;
}

.sitemap-list a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Bloc SEO villes compact */
.sitemap-list--cities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-list--cities li {
  margin: 0;
}

.sitemap-list--cities li + li {
  margin-top: 0;
}

.sitemap-list--cities a {
  display: block;
  font-size: 0.85rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}

.sitemap-list--cities a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

@media (max-width: 639px) {
  .sitemap-list--cities {
    grid-template-columns: 1fr;
  }
}