/* ─────────────────────────────────────────────────────────────
   Jean Couverture — feuille de style des pages intérieures
   (pages services, zones d'intervention, mentions légales)
   Reprend la charte de la page d'accueil : palette « orange ».
   ───────────────────────────────────────────────────────────── */

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

:root {
  --primary:    #0a0a0a;
  --bg:         #ffffff;
  --text:       #0a0a0a;
  --muted:      rgba(10,10,10,0.60);
  --border:     rgba(10,10,10,0.08);
  --surface:    rgba(10,10,10,0.04);
  --footer-bg:  #0a0a0a;
  --r-btn:      9999px;
  /* voile assombri du hero des pages : recalculé depuis --primary par pages.js */
  --hero-overlay: rgba(10,10,10,0.62);
  --stars:      #FBBC05;
}

/* scroll-padding : au clic sur une ancre, le titre ne se cache pas sous la barre fixe */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }

/* ─── NAV ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  /* Fond opaque : le contenu qui défile dessous ne transparaît pas */
  background: #fff;
  border-bottom: 1px solid rgba(10,10,10,0.08);
  box-shadow: 0 1px 12px rgba(10,10,10,0.05);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 11%; height: 64px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  text-decoration: none; letter-spacing: -0.01em;
}
.nav-logo img { width: 26px; height: 26px; border-radius: 6px; display: block; }
.brand-accent { color: var(--primary); }
.nav-links { display: flex; align-items: center; list-style: none; gap: 0.2rem; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  padding: 0.4rem 0.75rem; border-radius: var(--r-btn);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(10,10,10,0.05); }
/* Sous-menu « Services » */
.has-sub { position: relative; }
.has-sub > a { display: inline-flex; align-items: center; gap: 0.3rem; }
.caret { transition: transform 0.2s; }
.sub-links {
  display: none; list-style: none;
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(10,10,10,0.12); padding: 0.45rem; z-index: 110;
}
.has-sub:hover .sub-links, .has-sub:focus-within .sub-links { display: block; }
.has-sub:hover .caret { transform: rotate(180deg); }
.sub-links a { display: block; padding: 0.5rem 0.8rem; border-radius: 8px; white-space: nowrap; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--primary) !important; color: #fff !important;
  padding: 0.5rem 1.1rem !important; border-radius: var(--r-btn) !important;
  font-weight: 700 !important; font-size: 0.85rem !important;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; }
.nav-phone-mobile {
  display: none; align-items: center; gap: 0.35rem;
  background: var(--primary); color: #fff; text-decoration: none;
  padding: 0.42rem 0.85rem; border-radius: var(--r-btn);
  font-size: 0.82rem; font-weight: 700; white-space: nowrap;
}
.nav-right { display: flex; align-items: center; gap: 0.5rem; }
.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--text); border-radius: 2px; }

/* ─── BOUTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.8rem 1.5rem; border-radius: var(--r-btn);
  font-size: 0.92rem; font-weight: 700;
  text-decoration: none; cursor: pointer; border: none;
  transition: opacity 0.15s, transform 0.15s;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--border); }

/* ─── EN-TÊTE DE PAGE ─────────────────────────────── */
.page-hero {
  margin-top: 64px; position: relative;
  background: var(--primary) center / cover no-repeat;
  padding: 72px 11% 64px; color: #fff;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: var(--hero-overlay); }
.page-hero-inner { position: relative; z-index: 1; max-width: 780px; }
.page-hero h1 {
  color: #fff; font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 0.9rem;
}
.page-hero p { color: rgba(255,255,255,0.82); font-size: 1rem; line-height: 1.7; max-width: 620px; }
.page-hero-btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28);
  color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.3rem 0.85rem; border-radius: var(--r-btn); margin-bottom: 1.1rem;
}

/* ─── FIL D'ARIANE ────────────────────────────────── */
/* C'est aussi un <nav> : on annule explicitement les règles de la barre fixe */
.breadcrumb {
  position: static; display: block; height: auto; z-index: auto;
  backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: none;
  padding: 0.9rem 11%; font-size: 0.78rem; color: var(--muted); background: var(--surface);
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb li + li::before { content: '›'; margin-right: 0.4rem; opacity: 0.5; }

/* ─── SECTIONS ────────────────────────────────────── */
section { padding: 72px 11%; }
section.alt { background: var(--surface); }
.label {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.9rem;
}
h2.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 0.65rem;
}
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.title-underline { display: block; width: 32px; height: 2px; background: var(--primary); margin: 0.6rem 0 1.4rem; }
.prose p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1rem; max-width: 74ch; }
.prose ul { color: var(--muted); font-size: 0.95rem; line-height: 1.8; margin: 0 0 1rem 1.1rem; max-width: 74ch; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--primary); }

/* ─── GRILLE 2 COLONNES ───────────────────────────── */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center; }
.split img { width: 100%; border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; display: block; }

/* ─── CARTES ──────────────────────────────────────── */
/* Flex plutôt que grille : une dernière ligne incomplète reste centrée
   (3 cartes « Voir aussi », 16 communes sur la page zones, etc.) */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; }
.cards > * { flex: 0 0 calc(33.333% - 0.734rem); }
.card {
  border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem 1.4rem;
  background: #fff; transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(10,10,10,0.09); }
.card p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }
.card-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 0.9rem;
}
.card-link { display: block; text-decoration: none; color: inherit; overflow: hidden; padding: 0; }
.card-link img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.card-link .card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card-link .more { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--primary); font-weight: 700; font-size: 0.84rem; margin-top: 0.7rem; }

/* ─── ÉTAPES ──────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.1rem; counter-reset: step; }
.step { border-left: 2px solid var(--border); padding-left: 1.1rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 0.78rem; font-weight: 800; margin-bottom: 0.6rem;
}
.step p { color: var(--muted); font-size: 0.86rem; line-height: 1.7; }

/* ─── RÉASSURANCE ─────────────────────────────────── */
.trust-band { padding: 2.4rem 11%; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1rem; max-width: 1150px; margin: 0 auto; }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.55rem; }
.trust-ico {
  width: 46px; height: 46px; border-radius: 50%; background: #fff;
  border: 1.5px solid var(--border); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trust-item strong { font-size: 0.86rem; font-weight: 700; line-height: 1.3; }
.trust-item span { font-size: 0.76rem; color: var(--muted); line-height: 1.45; }

/* ─── VILLES ──────────────────────────────────────── */
.villes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.ville-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: #fff; border: 1px solid var(--border); color: var(--text);
  font-size: 0.82rem; font-weight: 600; padding: 0.4rem 0.9rem;
  border-radius: var(--r-btn); text-decoration: none;
}
.ville-chip:hover { border-color: var(--primary); color: var(--primary); }

/* ─── FAQ ─────────────────────────────────────────── */
.faq-list { list-style: none; max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1.15rem 0; font-size: 0.95rem; font-weight: 700; color: var(--primary);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: inherit;
}
.faq-btn svg { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--primary); transition: transform 0.3s; }
.faq-item.open .faq-btn svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p { color: var(--muted); font-size: 0.9rem; line-height: 1.8; padding-bottom: 1.2rem; }

/* ─── CTA FINAL ───────────────────────────────────── */
.cta-band { background: var(--primary); color: #fff; text-align: center; padding: 64px 11%; }
.cta-band h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin-bottom: 0.7rem; letter-spacing: -0.02em; }
.cta-band p { color: rgba(255,255,255,0.82); font-size: 0.95rem; max-width: 520px; margin: 0 auto 1.8rem; }
.cta-band .btns { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ──────────────────────────────────────── */
footer { background: var(--footer-bg); padding: 3.5rem 11% 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-desc { font-size: 0.82rem; line-height: 1.65; color: rgba(255,255,255,0.45); }
.footer-col-label {
  display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.85rem; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem;
  color: rgba(255,255,255,0.65); margin-bottom: 0.55rem; text-decoration: none;
}
.footer-contact-item:hover { color: #fff; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; }
.footer-horaires { font-size: 0.8rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-top: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem;
  font-size: 0.78rem; text-align: center; color: rgba(255,255,255,0.3);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: center; align-items: center;
}
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-villes { font-size: 0.75rem; color: rgba(255,255,255,0.28); line-height: 1.7; margin-top: 1rem; text-align: center; }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 960px) {
  nav { padding: 0 6%; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; box-shadow: 0 8px 20px rgba(10,10,10,0.10);
    padding: 1.2rem 6% 1.6rem; gap: 0.25rem; border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav-phone-mobile { display: inline-flex; }
  .hamburger { display: flex; }
  /* Menu mobile : le sous-menu Services est déplié en permanence */
  .sub-links {
    display: block; position: static; min-width: 0; border: none;
    box-shadow: none; padding: 0 0 0 0.9rem; background: transparent;
  }
  .sub-links a { font-size: 0.84rem; color: var(--muted); padding: 0.35rem 0.75rem; }
  .caret { display: none; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .cards > * { flex: 0 0 calc(50% - 0.55rem); }
  .steps { grid-template-columns: 1fr 1fr; }
  /* Flex plutôt que grille : la dernière ligne incomplète reste centrée */
  .trust-grid {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 1.4rem; grid-template-columns: none;
  }
  .trust-item { flex: 0 0 calc(33.333% - 1rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  /* Place limitée : logo et bouton téléphone resserrés pour ne pas se chevaucher */
  nav { padding: 0 5%; gap: 0.4rem; }
  .nav-logo { font-size: 0.88rem; gap: 0.35rem; white-space: nowrap; }
  .nav-logo img { width: 22px; height: 22px; }
  .nav-phone-mobile { font-size: 0.74rem; padding: 0.4rem 0.65rem; }
  .nav-right { gap: 0.25rem; }
  section { padding: 56px 6%; }
  .page-hero { padding: 56px 6% 48px; }
  .breadcrumb { padding: 0.8rem 6%; }
  .trust-band, .cta-band, footer { padding-left: 6%; padding-right: 6%; }
  .cards > * { flex: 0 0 100%; }
  .steps { grid-template-columns: 1fr; }
  .trust-item { flex: 0 0 calc(50% - 0.7rem); }
  .footer-grid { grid-template-columns: 1fr; }
}
