/* Bien Cité, feuille de style unique.
   Les couleurs sont des variables : changer une valeur ici la change partout. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin.woff2) format('woff2');
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/instrument-sans-latin.woff2) format('woff2');
}

:root {
  --bg: #F9FAFB;
  --ink: #111827;
  --slate: #1E293B;
  --white: #FFFFFF;
  --action: #10B981;
  --green-text: #047857;
  --green-hover: #065F46;
  --missing: #A8321F;
  --muted: #374151;
  --muted-2: #4B5563;
  --muted-dark: #CBD5E1;
  --line: #E5E7EB;
  --line-strong: #CBD5E1;
  --pill-line: #475569;
  --chip-bg: #F1F5F9;
  --dash: #94A3B8;
  --focus: #6366F1;
  --focus-dark: #A5B4FC;

  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --font-body: 'Instrument Sans', 'Segoe UI', sans-serif;
  --max: 1120px;
  --max-narrow: 760px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3, p { margin: 0; }

a { color: var(--green-text); }
a:hover { color: var(--green-hover); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.dark a:focus-visible { outline-color: var(--focus-dark); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 12px 16px; background: var(--ink); color: var(--white); border-radius: 8px;
}
.skip:focus { top: 12px; color: var(--white); }

/* ---------- Gabarits ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap--narrow { max-width: var(--max-narrow); }
.band { padding-top: 72px; padding-bottom: 72px; }
.stack { display: flex; flex-direction: column; gap: 36px; }
.stack--tight { gap: 32px; }
.steps { margin: 0; padding: 0; list-style: none; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.bg-white { background: var(--white); }
.dark { background: var(--slate); color: var(--white); }
.darker { background: var(--ink); color: var(--white); }

.display { font-family: var(--font-display); }

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h2--narrow { max-width: 18em; }

.h3-display { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; }
.h3-plain { font-size: 19px; font-weight: 600; line-height: 1.3; }
.text-muted { color: var(--muted); }
.text-muted-2 { color: var(--muted-2); }
.dark .text-muted, .darker .text-muted { color: var(--muted-dark); }
.strong { font-weight: 600; color: var(--ink); }
.dark .strong { color: var(--white); }
.small { font-size: 16px; }

/* ---------- En-tête et pied de page ---------- */

.site-header {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
a.logo { display: inline-flex; align-items: center; min-height: 44px; }
a.logo:hover { color: var(--ink); }

.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: 16px; text-decoration: none;
}
.lang-switch:hover { color: var(--ink); border-color: var(--ink); }

.site-footer {
  display: flex; flex-wrap: wrap; gap: 0 32px; align-items: center;
  padding-top: 20px; padding-bottom: 20px;
  font-size: 15px; color: var(--muted-2);
}
.site-footer > * { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a { color: var(--muted-2); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: 12px;
  background: var(--action); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  text-decoration: none;
}
.btn:hover { color: var(--ink); }
.btn--sm {
  min-height: 48px; padding: 0 20px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 17px;
}

/* ---------- Accueil : en-tête de page ---------- */

.hero {
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
  padding-top: 40px; padding-bottom: 72px;
}
.hero__text {
  flex: 1 1 500px; min-width: 0;
  display: flex; flex-direction: column; gap: 26px; align-items: flex-start;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 32em; }
.hero__aside { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.chat {
  margin: 0;
  background: var(--white); border-radius: 18px; padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 18px 40px -24px rgba(17, 24, 39, 0.35);
}
.chat__question {
  align-self: flex-end; max-width: 26em;
  background: var(--ink); color: var(--white);
  padding: 12px 16px; border-radius: 16px 16px 4px 16px; font-size: 16px;
}
.chat__answer { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chat__label { font-size: 15px; color: var(--muted-2); }
.chat__intro { font-size: 16px; }
.chat__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--chip-bg); border-radius: 10px;
}
.chat__item svg { flex-shrink: 0; }
.chat__name { flex-grow: 1; font-weight: 600; }
.chat__state { font-size: 15px; color: var(--green-text); }
.chat__item--missing { background: none; padding: 12px 14px; border: 2px dashed var(--missing); }
.chat__item--missing .chat__state { font-weight: 600; color: var(--missing); }

/* ---------- Étapes numérotées ---------- */

.step { flex: 1 1 280px; display: flex; gap: 16px; align-items: flex-start; }
.step__num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
}
.dark .step__num { background: var(--action); color: var(--ink); }
.step__body { display: flex; flex-direction: column; gap: 6px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-row p { flex: 1 1 420px; font-size: 20px; line-height: 1.45; max-width: 30em; }

/* ---------- Grilles de cartes ---------- */

.cols { display: flex; flex-wrap: wrap; gap: 32px; }
.col { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }

.audience { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.audience__text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.pills { flex: 1 1 420px; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pills li { padding: 10px 16px; border: 1.5px solid var(--pill-line); border-radius: 999px; font-weight: 500; }

.answer-intro { display: flex; flex-direction: column; gap: 14px; }
.answer-intro p { font-size: 19px; max-width: 40em; }
.factors { display: flex; flex-wrap: wrap; gap: 28px 40px; }
.factor { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Prix ---------- */

.prices { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.price {
  flex: 1 1 280px; border-radius: 18px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border: 1.5px solid var(--line-strong);
}
.price--featured { background: var(--slate); color: var(--white); border-color: var(--slate); }
.price__amount { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; }
.price__desc { flex-grow: 1; color: var(--muted); }
.price--featured .price__desc { color: var(--muted-dark); }
.price__note { font-size: 15px; color: var(--muted-2); }
.price--featured a:focus-visible { outline-color: var(--focus-dark); }

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

.faq { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.faq__item { flex: 1 1 400px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Bloc devis ---------- */

.quote { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.quote__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.quote__text > p:first-of-type { font-size: 19px; max-width: 28em; }
.sheet {
  flex: 1 1 340px; max-width: 460px;
  background: var(--white); color: var(--ink);
  border-radius: 6px; padding: 32px;
  transform: rotate(-1.5deg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  display: flex; flex-direction: column; gap: 18px;
}
.sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sheet__title { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; }
.sheet__brand { font-size: 15px; color: var(--muted-2); }
.sheet dl { margin: 0; display: flex; flex-direction: column; }
.sheet__line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.sheet dt { color: var(--muted-2); }
.sheet dd { margin: 0; font-weight: 600; text-align: right; }
.sheet__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 16px; border-top: 2px dashed var(--dash);
}
.sheet__total-label { font-weight: 600; }
.sheet__total-amount {
  font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1;
  color: var(--green-text);
}

/* ---------- Pages de texte (légales, 404) ---------- */

.doc { display: flex; flex-direction: column; gap: 32px; padding-top: 32px; padding-bottom: 72px; line-height: 1.6; }
.doc__head { display: flex; flex-direction: column; gap: 12px; }
.doc h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -0.02em;
}
.doc section { display: flex; flex-direction: column; gap: 10px; }
.doc h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; }
.doc p { color: var(--muted); }
.doc .doc__date { color: var(--muted-2); }
.doc-page { line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
