/* ─────────────────────────────────────────────────────────
   Prototype — Rénovation intérieure Lausanne
   Source : output/renovation-interieur-lausanne/design/homepage-mockup.html (approuvé)
   Corrections Gate 5 :
   - Boutons gold : texte navy (#152244) — ratio 6.37:1 (PASS AA)
   - Liens : teal-dark (#2172A4) — ratio 5.24:1 (PASS AA)
   - Header sans rangée de contact (données absentes)
   - Footer 4 colonnes conforme Gate 3 §A.3
   - Breadcrumbs, formulaires désactivés prototype, hero inner sans split
   ───────────────────────────────────────────────────────── */

/* ─── Design tokens ─── */
:root {
  --brand: #C0392B;
  --brand-dark: #A93226;
  --navy: #152244;
  --navy-dark: #0E1830;
  --teal: #2980B9;
  --teal-dark: #2172A4;
  --gold: #C8A040;
  --gold-dark: #A8863A;
  --ink: #1A1A2E;
  --ink-soft: #4A5A6A;
  --line: #E3E8EE;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --max: 1160px;
  --radius: 6px;
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ─── Reset & base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--teal-dark);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--navy); }
a:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 2px;
  border-radius: 2px;
}
button { font-family: inherit; cursor: pointer; }

/* ─── Typography ─── */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy);
  text-wrap: pretty;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.8rem); margin-top: 0; margin-bottom: .6em; }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); margin-bottom: .4em; }
p { margin-bottom: 1em; max-width: 65ch; }
ul, ol { margin-bottom: 1em; padding-left: 1.4em; max-width: 65ch; }
li { margin-bottom: .35em; }

/* ─── Layout helpers ─── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .wrap { padding: 0 2rem; } }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ─── Buttons (gold texte navy — correction Gate 5 §Correction Prime) ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 2px;
}
.btn--gold {
  background: var(--gold);
  color: var(--navy); /* navy text — ratio 6.37:1 (PASS AA) */
}
.btn--gold:hover { background: var(--gold-dark); color: var(--navy); }
.btn--navy {
  background: var(--navy);
  color: #fff;
}
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--red {
  background: var(--brand);
  color: #fff;
}
.btn--red:hover { background: var(--brand-dark); color: #fff; }
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--lg { padding: .85rem 1.8rem; font-size: 1rem; }
.btn--disabled, .btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .55;
}

/* ─── Header (deux rangées Gate 3 §A.2 — sans rangée contact, données absentes) ─── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
}
.nav__logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -.02em;
}
.nav__logo:hover { color: var(--navy); }
.nav__logo:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 3px;
  border-radius: 2px;
}
.nav__links { display: none; list-style: none; gap: 1.6rem; align-items: center; padding: 0; }
.nav__links li { margin: 0; }
.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
}
.nav__links a:hover { color: var(--brand); }
.nav__links a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: var(--navy);
}
.nav__toggle svg { width: 26px; height: 26px; }
.nav__cta { display: none; }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .nav__cta { display: block; }
}
.nav__mobile {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--line);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: .55rem 0;
  display: block;
}
.nav__mobile a:hover { color: var(--brand); }
.nav__mobile a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.nav__mobile .btn--gold {
  width: 100%;
  margin-top: .75rem;
  text-align: center;
}

/* ─── Breadcrumbs (composant créé au Gate 5, Gate 3 §A.5) ─── */
.breadcrumbs {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: .75rem 0;
  font-size: .85rem;
}
.breadcrumbs__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  padding: 0;
  margin: 0;
  max-width: none;
}
.breadcrumbs__item { margin: 0; display: flex; align-items: center; gap: .35rem; }
.breadcrumbs__item + .breadcrumbs__item::before {
  content: "›";
  color: var(--ink-soft);
}
.breadcrumbs__list a {
  color: var(--teal-dark);
  text-decoration: none;
}
.breadcrumbs__list a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumbs__item[aria-current="page"] {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ─── Hero — homepage (split 60/40 + illustration CSS architecturale) ─── */
.hero {
  padding: 3rem 0 2.5rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .hero { padding: 4.5rem 0 3.5rem; } }
.hero__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) { .hero__split { grid-template-columns: 60fr 40fr; gap: 3rem; } }
.hero__eyebrow {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .7rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.hero h1 { margin-bottom: .8rem; }
.hero__lead {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin-bottom: 1.4em;
  max-width: 55ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Architectural CSS illustration */
.hero__art {
  position: relative;
  aspect-ratio: 4/3;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
@media (min-width: 900px) { .hero__art { max-width: none; } }
.art__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 3px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.art__cell { background: var(--bg-alt); border-radius: 2px; }
.art__cell--mat1 { background: #D4C5A9; }
.art__cell--mat2 { background: #B8C4CE; }
.art__cell--mat3 { background: #C0392B; opacity: .18; }
.art__cell--mat4 { background: #152244; opacity: .12; }
.art__cell--wide { grid-column: span 2; }
.art__cell--tall { grid-row: span 2; }
.art__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.art__lines::before,
.art__lines::after {
  content: "";
  position: absolute;
  background: var(--line);
}
.art__lines::before { top: 50%; left: 0; right: 0; height: 1px; }
.art__lines::after { left: 33%; top: 0; bottom: 0; width: 1px; }
.art__num {
  position: absolute;
  font-family: var(--font-body);
  font-size: .65rem;
  color: var(--ink-soft);
  background: var(--bg);
  padding: 0 3px;
  border-radius: 2px;
}
.art__num--1 { top: 4px; left: 4px; }
.art__num--2 { bottom: 4px; right: 4px; }

/* ─── Hero — inner pages (sans split, fond bg-alt) ─── */
.hero--inner {
  padding: 3rem 0 2.5rem;
}
@media (min-width: 900px) { .hero--inner { padding: 4rem 0 3rem; } }
.hero--inner .hero__inner { max-width: 65ch; }

/* ─── Sections ─── */
.section { padding: 2.8rem 0; }
@media (min-width: 768px) { .section { padding: 3.6rem 0; } }
.section--alt { background: var(--bg-alt); }
.section__header { max-width: 55ch; margin-bottom: 1.8rem; }
.section__header h2 { margin-bottom: .4em; }
.section__header p { color: var(--ink-soft); }
.section__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 1em;
}
.section__prototype-note {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  padding: .9rem 1rem;
  margin-bottom: 1.4em;
  max-width: 65ch;
  font-size: .92rem;
  color: var(--ink-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ─── Cards ─── */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 600px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}
.card h3 { margin-bottom: .35em; color: var(--navy); }
.card p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.card__meta {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: .5rem;
}

/* ─── Process (étapes numérotées) ─── */
.process__list {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 600px) { .process__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .process__list { grid-template-columns: repeat(4, 1fr); } }
.process__item {
  position: relative;
  padding: 1.3rem 1.2rem 1.3rem 3.2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.process__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.1rem;
  left: 1rem;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}
.process__item h3 { margin-bottom: .25rem; font-size: 1.05rem; }
.process__item p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ─── FAQ (native <details>, Gate 3 §A.6 + mockup approuvé) ─── */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  max-width: 780px;
}
.faq__item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  color: var(--navy);
  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.3rem;
  color: var(--teal-dark);
  font-weight: 400;
  flex-shrink: 0;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item summary:hover { background: var(--bg-alt); }
.faq__item > div {
  padding: 0 1.3rem 1.2rem;
  color: var(--ink-soft);
  font-size: .95rem;
}
.faq__item > div p { color: var(--ink-soft); }

/* Variant FAQ page : H2 par question */
.faq-page__question {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  color: var(--navy);
  margin-bottom: .6em;
}
.faq-page__answer { color: var(--ink-soft); max-width: 65ch; }
.faq-page__empty {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-soft);
  padding: .9rem 1rem;
  font-size: .92rem;
  color: var(--ink-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: .6em;
}

/* ─── CTA final / bande phone-strip (Gate 3 §A.4) ─── */
.cta-final {
  background: var(--navy);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.cta-final h2 { color: #fff; margin-bottom: .5em; }
.cta-final p {
  color: rgba(255, 255, 255, .8);
  max-width: 52ch;
  margin: 0 auto 1.6em;
  font-size: 1.05rem;
}

.phone-strip {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0;
  text-align: center;
}
.phone-strip h2 { margin-bottom: .4em; }
.phone-strip .sub {
  color: var(--ink-soft);
  margin-bottom: 1.4em;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}
.phone-strip .btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
}

/* ─── Form card (teal) — désactivé prototype ─── */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) { .split { grid-template-columns: 60fr 40fr; gap: 2.5rem; } }

.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.form-card h3 {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: .3em;
}
.form-card .italic { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1em; }
.form-card .form-note {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: .75rem .9rem;
  margin-top: 1em;
  font-size: .85rem;
  color: var(--ink-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .3rem;
}
.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: 1rem;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--ink-soft);
}
.field input:disabled,
.field textarea:disabled,
.field select:disabled {
  cursor: not-allowed;
  opacity: .7;
}
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.form-card .btn--submit {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg-alt);
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  padding: .7rem 1.2rem;
  border-radius: var(--radius);
  font-size: .92rem;
  cursor: not-allowed;
}

/* ─── Linklist (zones / links internes) ─── */
.linklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .6rem;
}
@media (min-width: 600px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .linklist { grid-template-columns: repeat(3, 1fr); } }
.linklist li { margin: 0; }
.linklist a {
  display: block;
  padding: .75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
}
.linklist a:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.linklist__inline {
  list-style: disc;
  padding-left: 1.4em;
  display: block;
}
.linklist__inline li { margin-bottom: .3em; }
.linklist__inline a {
  display: inline;
  padding: 0;
  background: transparent;
  border: 0;
  text-decoration: underline;
  color: var(--teal-dark);
  font-weight: 400;
}

/* ─── Sous-intentions (sections ancrées page service) ─── */
.subintention {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.subintention:first-of-type { border-top: 0; padding-top: 0; }
.subintention h3 {
  margin-bottom: .4em;
  scroll-margin-top: 6rem; /* compense le header sticky */
}

/* ─── Footer (Gate 3 §A.3 — 4 colonnes) ─── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .7);
  font-size: .88rem;
  padding: 2.4rem 0 1.4rem;
}
.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}
@media (min-width: 600px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: .8em;
  font-weight: 600;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: .35em; }
.site-footer a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__brand {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: .35rem;
}
.footer__note {
  display: block;
  font-size: .82rem;
  color: rgba(255, 255, 255, .65);
  margin-top: .6rem;
  max-width: 28ch;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 1rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, .65);
}
.footer__bottom p { margin: 0; max-width: none; }

/* ─── Utilities ─── */
.muted { color: var(--ink-soft); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
