/* MAUVAIS CABOTS — feuille de style partagée par toutes les pages du site.
   À uploader une seule fois (mauvaiscabots-style.css) à la racine, à côté des pages HTML. */

@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

:root {
  --ink: #2a2119;        /* marron très foncé / noir chaud, comme le flyer */
  --paper: #d8d8d6;      /* gris clair neutre, comme le flyer */
  --paper-card: #d8d8d6;
  --line: #b3b3b1;
  --muted: #55504a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px, 11px 11px;
  background-position: 0 0, 2px 2px, 5px 3px;
  color: var(--ink);
  line-height: 1.5;
}
a { color: inherit; }
h1, h2, h3, h4, .logo, .tabs a, .btn {
  font-family: "Anton", "Arial Black", "Arial Narrow", Impact, Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  text-shadow: 0.4px 0.4px 0 rgba(42,33,25,0.35);
}
p, li, .note { font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-weight: 400; }

/* Titre géant fixe en inversion des couleurs (page d'accueil uniquement).
   mix-blend-mode: difference + texte blanc = les lettres inversent les images derrière. */
.wordmark-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: difference;
  color: #fff;
  text-align: center;
}
.wordmark-overlay h1 {
  font-size: 11.5vw;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark-overlay .tagline {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 1.8vw, 1.3rem);
  letter-spacing: 0.14em;
  margin: 1.2vw 0 0;
}
/* Copie contour : pas d'inversion, juste un trait renforcé qui assure la lisibilité
   même sur les zones où le mix-blend-mode: difference produit un contraste faible. */
.wordmark-stroke {
  mix-blend-mode: normal;
  color: transparent;
  z-index: 6;
}
.wordmark-stroke h1 { -webkit-text-stroke: 3px rgba(15, 13, 9, 0.95); paint-order: stroke fill; }
.wordmark-stroke .tagline { -webkit-text-stroke: 1.5px rgba(15, 13, 9, 0.95); paint-order: stroke fill; }

/* Bandeau simple en haut des sous-pages (retour à l'accueil) */
.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 4vw 14px;
  text-align: center;
}
.page-header .mini-mark { width: 38px; height: 38px; flex-shrink: 0; }
.page-header .mini-logo {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 6.5vw, 3rem);
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Bandeau de refs en haut des sous-pages (rempli en JS) */
.refs-strip {
  display: flex;
  height: 110px;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}
.refs-strip:empty { display: none; }
.refs-strip img {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}

/* Onglets de navigation, fixés en bas de l'écran sur toutes les pages secondaires.
   Cachée tant qu'on est en haut de page (classe .is-visible ajoutée au scroll,
   voir script en bas de chaque page), pour ne pas distraire de la lecture. */
.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 6vw;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.tabs.is-visible { transform: translateY(0); }
.tabs a {
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper-card);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.tabs a:hover, .tabs a.active { background: var(--ink); color: var(--paper); }
.tabs ~ footer { padding-bottom: 95px; }
@media (max-width: 640px) {
  .tabs { gap: 8px; padding: 10px 4vw; }
  .tabs a { font-size: 0.82rem; padding: 10px 14px; }
}

/* Mur de refs — collage maçonnerie façon Tumblr */
.gallery {
  columns: 4 280px;
  column-gap: 6px;
  padding: 6px;
}
.gallery figure {
  margin: 0 0 5px;
  break-inside: avoid;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.gallery figure:hover img {
  filter: none;
  transform: scale(1.02);
}
@media (max-width: 640px) {
  .gallery { columns: 2; }
}

/* Nav fixée en bas de l'écran, en inversion comme le titre (page d'accueil) */
.nav-blend {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 60px);
  z-index: 6;
  mix-blend-mode: difference;
}
.nav-blend a {
  color: #fff;
  text-decoration: none;
  font-family: "Anton", "Arial Black", "Arial Narrow", Impact, Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  letter-spacing: 0.12em;
  white-space: nowrap;
  padding: 12px 4px; /* agrandit la zone tactile sans changer le visuel */
}
.nav-blend a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 640px) {
  .nav-blend { gap: 13px; bottom: 8px; }
  .nav-blend a { font-size: 0.8rem; letter-spacing: 0.04em; padding: 14px 2px; }
  /* Titre sur 2 lignes pleine largeur (MAUVAIS / CABOTS) */
  .wordmark-overlay h1 { white-space: normal; font-size: 19vw; line-height: 0.92; }
  .wordmark-overlay .tagline { letter-spacing: 0.1em; margin-top: 12px; }
}

/* CTA final page d'accueil (padding bas généreux pour ne pas passer sous la nav fixe) */
.cta-final {
  text-align: center;
  border-top: 1px solid var(--ink);
  padding: 40px 6vw 30px;
}
.nav-blend ~ footer { padding-bottom: 85px; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 16px 30px;
  border: 1px solid var(--ink);
  font-weight: 900;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover {
  background: transparent;
  color: var(--ink);
}
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.contact-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; justify-content: center; }

/* Sections de contenu (sous-pages) */
section {
  padding: 50px 6vw 60px;
  max-width: 1000px;
  margin: 0 auto;
}
section h2 {
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  line-height: 1.02;
  margin: 0 0 6px;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
  padding-bottom: 6px;
}
section .lead {
  color: var(--muted);
  margin: 18px 0 32px;
  max-width: 620px;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.person {
  background: var(--paper-card);
  border: 1px solid var(--ink);
  padding: 0 0 20px;
  overflow: hidden;
}
.person .person-photos .main {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--ink);
  filter: grayscale(0.2) contrast(1.05);
}
.person .more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 5px;
  border-bottom: 1px solid var(--ink);
}
.person .more img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border: 1px solid var(--ink);
  filter: grayscale(0.2) contrast(1.05);
}
.person h3 { margin: 16px 20px 6px; font-size: 1.4rem; }
.person p { color: var(--muted); margin: 0 20px 10px; }

.ensemble { max-width: 680px; }
.ensemble p { color: var(--muted); margin: 0 0 22px; line-height: 1.6; }
.ensemble p:last-child { margin-bottom: 0; }

/* Principes "Comment on bosse" */
.principles-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  display: block;
  margin: 56px 0 22px;
}
.principles-title:first-child { margin-top: 8px; }
.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 680px;
}
.principles li {
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  padding: 12px 0;
  border-bottom: 1px dotted var(--ink);
}
.principles li:last-child { border-bottom: none; }
.principles li strong {
  font-family: "Anton", "Arial Black", Impact, Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.98rem;
  display: block;
}
/* Tarifs façon flyer : NOM ..... PRIX, description en dessous */
table.pricing { width: 100%; border-collapse: collapse; background: none; border: none; }
table.pricing thead { display: none; }
table.pricing tbody { display: block; }
table.pricing tr {
  display: block;
  padding: 16px 0 14px;
  border: none;
}
table.pricing td { display: block; padding: 0; border: none; text-align: left; }

/* Ligne NOM ..... PRIX : les 2 premiers td sont mis côte à côte en flex,
   le 3e td (description) est un bloc 100% de largeur complètement hors de ce flex,
   donc toujours sur sa propre ligne quelle que soit la longueur du nom. */
table.pricing td:first-child {
  display: inline-flex;
  align-items: baseline;
  width: calc(100% - 150px);
  font-family: "Anton", "Arial Black", Impact, Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  line-height: 1.15;
  white-space: nowrap;
  vertical-align: baseline;
}
table.pricing td:first-child::after {
  content: "";
  flex: 1 1 30px;
  min-width: 30px;
  border-bottom: 1px dotted var(--ink);
  margin: 0 10px 5px;
}
table.pricing td.price {
  display: inline-block;
  width: 145px;
  text-align: right;
  vertical-align: baseline;
  font-family: "Anton", "Arial Black", Impact, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  white-space: nowrap;
}
table.pricing td:last-child {
  display: block;
  width: 100%;
  clear: both;
  color: var(--muted);
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
  max-width: 640px;
  margin-top: 4px;
}
/* Suppléments façon flyer : NOM ..... +X€ */
.addons {
  margin-top: 34px;
  display: block;
}
.addons::before {
  content: "Suppléments";
  display: inline-block;
  font-family: "Anton", "Arial Black", Impact, Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  margin-bottom: 12px;
}
.addon {
  background: none;
  border: none;
  padding: 7px 0;
  display: flex;
  align-items: baseline;
  font-family: "Anton", "Arial Black", Impact, Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}
.addon span {
  display: flex;
  flex: 1;
  align-items: baseline;
}
.addon span::after {
  content: "";
  flex: 1;
  min-width: 30px;
  border-bottom: 1px dotted var(--ink);
  margin: 0 10px 4px;
}
.zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.zone-card {
  background: var(--paper-card);
  border: 1px solid var(--ink);
  padding: 20px;
}
.zone-card h4 { margin: 0 0 10px; font-size: 1rem; }
.zone-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-family: -apple-system, Helvetica, Arial, sans-serif; }
/* Carte de Paris (zones.html) — vraie carte OSM en n&b photocopie, contraste renforcé
   pour mieux coller à l'identité graphique du site (contrastes forts, style flyer). */
.map-wrap {
  background: var(--paper-card);
  border: 3px solid var(--ink);
  padding: 4px;
  margin: 10px 0 30px;
}
#map { height: 480px; width: 100%; background: var(--paper-card); }
#map .mapboxgl-canvas { filter: grayscale(1) contrast(1.05); }
#map .mapboxgl-ctrl-attrib, #map .mapboxgl-ctrl-logo { filter: grayscale(1); }
#map .mapboxgl-ctrl-group {
  border-radius: 0;
  border: 1px solid var(--ink);
  box-shadow: none;
}
#map .mapboxgl-ctrl-group button + button { border-top: 1px solid var(--ink); }

/* Labels d'arrondissements et repère central sur la carte zones.html (Mapbox) */
.zone-label {
  font-family: "Anton", "Arial Black", Impact, Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: var(--ink);
  background: rgba(216, 216, 214, 0.94);
  border: 1.5px solid var(--ink);
  padding: 3px 7px;
  white-space: nowrap;
  pointer-events: none;
}
.zone-pin-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.zone-pin {
  width: 14px;
  height: 14px;
  background: var(--ink);
  border: 3px solid var(--paper-card);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ink);
}
.zone-tooltip {
  font-family: "Anton", "Arial Black", Impact, Helvetica, Arial, sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  background: var(--paper-card);
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 3px 8px;
  white-space: nowrap;
}

@media (max-width: 640px) { #map { height: 340px; } }
.note {
  font-size: 0.88rem;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  margin-top: 24px;
}
.note ul { margin: 0; padding-left: 1.1em; }
.note li { margin: 6px 0; }
.lede {
  color: var(--muted);
  max-width: 640px;
  margin: 4px 0 28px;
  font-size: 1rem;
}
/* ===== Questionnaire de premier contact, en étapes ===== */
.qform {
  border: 1px solid var(--ink);
  padding: 0;
  max-width: 640px;
}
.qform-progress {
  display: flex;
  border-bottom: 1px solid var(--ink);
}
.qform-progress span {
  flex: 1;
  height: 4px;
  background: var(--line);
}
.qform-progress span.done { background: var(--ink); }

.qform-step { display: none; padding: 34px 30px 30px; }
.qform-step.active { display: block; }

.qform-step .step-count {
  display: block;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.qform-step label.q-label {
  display: block;
  font-family: "Anton", "Arial Black", Impact, Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.qform-step .q-hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 14px;
}
.qform-step input[type="text"],
.qform-step input[type="email"],
.qform-step input[type="tel"],
.qform-step textarea {
  width: 100%;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
.qform-step textarea { resize: vertical; min-height: 90px; }
.qform-step input:focus, .qform-step textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }

.q-options { display: flex; flex-direction: column; gap: 8px; }
.q-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ink);
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.q-options input { accent-color: var(--ink); width: 16px; height: 16px; flex-shrink: 0; }
.q-options label:hover { background: var(--paper-card); }
.q-options label.checked { background: var(--ink); color: var(--paper); }

.qform-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}
.qform-nav button {
  font-family: "Anton", "Arial Black", Impact, Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.9rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 14px 26px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.qform-nav button:hover { background: transparent; color: var(--ink); }
.qform-nav button.q-back {
  background: transparent;
  color: var(--ink);
}
.qform-nav button.q-back:hover { background: var(--ink); color: var(--paper); }
.qform-nav button:disabled { opacity: 0; pointer-events: none; }

.qform-done {
  display: none;
  padding: 40px 30px;
  text-align: center;
}
.qform-done.active { display: block; }
.qform-done h3 {
  font-family: "Anton", "Arial Black", Impact, Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.8rem;
  margin: 0 0 10px;
}
.qform-done p { color: var(--muted); margin: 0; }

.qform-error {
  display: none;
  padding: 20px 30px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.qform-error.active { display: block; }
.qform-error p { color: var(--muted); margin: 0; }

@media (max-width: 640px) {
  .qform-step { padding: 26px 18px 22px; }
  .qform-step label.q-label { font-size: 1rem; }
}

footer {
  padding: 40px 6vw;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--ink);
  font-family: -apple-system, Helvetica, Arial, sans-serif;
}
footer a { text-decoration: none; color: var(--ink); font-weight: 700; }

/* ===== Mobile : sous-pages bien cadrées ===== */
@media (max-width: 640px) {
  .page-header { padding: 20px 3vw 10px; }
  .refs-strip { height: 76px; }
  .refs-strip img:nth-child(n+6) { display: none; }
  section { padding: 34px 5vw 44px; }
  section .lead { margin: 14px 0 24px; }

  /* Tarifs flyer : tailles réduites, la structure reste la même */
  table.pricing tr { padding: 12px 0 10px; }
  table.pricing td:first-child { width: calc(100% - 110px); }
  table.pricing td.price { width: 105px; }
  table.pricing td:last-child { font-size: 0.86rem; }
  .contact-links .btn { width: 100%; text-align: center; box-sizing: border-box; }
}
