/* Feuille du site Pierre Vive. Elle consomme les variables de styles/brand.css
   et n'introduit aucune couleur ni police nouvelle. */

:root {
  --radius-ui: 16px;
  --radius-visual: 28px;
  --line: 1px solid var(--border);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--space-2); top: -4rem; z-index: 10;
  background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: var(--radius-ui);
}
.skip-link:focus { top: var(--space-1); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg);
  border-bottom: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: 4.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; font-family: var(--font-heading); font-weight: 600; font-size: var(--step-1);
}
.brand svg { width: 2rem; height: 2rem; color: var(--text); }
.site-nav { display: flex; gap: var(--space-3); font-size: var(--step--1); }
.site-nav a {
  text-decoration: none; color: var(--muted); padding-block: .35rem;
  border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); border-bottom-color: var(--accent); }
.header-cta { padding: .6rem 1rem; font-size: var(--step--1); }

/* Accroche */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: var(--space-4); align-items: stretch;
  max-width: 100%; min-height: min(88vh, 52rem);
  padding: var(--space-5) clamp(1.25rem, 4vw, 4rem) var(--space-5) max(1.25rem, calc((100% - var(--maxw)) / 2 + var(--space-3)));
}
.hero-text { align-self: center; }
.hero-place {
  font-size: var(--step--1); color: var(--muted); margin-bottom: var(--space-3);
  padding-bottom: var(--space-2); border-bottom: var(--line); max-width: 26rem;
}
.hero h1 { font-size: var(--step-4); max-width: 13ch; margin-bottom: var(--space-3); }
.hero-lead { font-size: var(--step-1); color: var(--muted); max-width: 36ch; margin-bottom: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2);
  margin: 0; padding-top: var(--space-2); border-top: var(--line); max-width: 36rem;
}
.hero-facts dt { font-size: var(--step--1); color: var(--muted); }
.hero-facts dd { margin: .2rem 0 0; font-weight: 600; }
.hero-figure { margin: 0; overflow: hidden; border-radius: var(--radius-visual); min-height: 26rem; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

.text-link {
  color: var(--accent); font-weight: 600; text-decoration: underline;
  text-underline-offset: .25em; text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* Réalisation pleine largeur */
.feature { padding-block: var(--space-5) var(--space-4); }
.feature-figure { margin: 0; }
.feature-figure img { width: 100%; height: clamp(18rem, 48vw, 36rem); object-fit: cover; }
.feature-caption {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2) var(--space-4);
  align-items: baseline; padding-top: var(--space-2); font-size: var(--step--1);
}
.caption-title { color: var(--muted); grid-column: 1; margin: 0; }
.feature-caption p:nth-of-type(2) { margin: 0; font-size: var(--step-1); font-family: var(--font-heading); }
.feature-caption .text-link { grid-column: 2; justify-self: start; }

/* Sections génériques */
.section-head { max-width: 46rem; margin-bottom: var(--space-4); }
.section-head p { color: var(--muted); font-size: var(--step-1); margin: 0; }
.section h2 { font-size: var(--step-3); }

/* Méthode */
.method { border-top: var(--line); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative;
}
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: .7rem;
  height: 1px; background: var(--muted); opacity: .55;
}
.step { position: relative; padding-right: var(--space-2); }
.step-mark {
  display: block; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--text); margin-bottom: var(--space-3);
  position: relative; z-index: 1;
}
.step:first-child .step-mark { background: var(--accent); border-color: var(--accent); }
.step h3 { font-size: var(--step-2); }
.step p { color: var(--muted); max-width: 26ch; }
.method-note { margin-top: var(--space-4); font-size: var(--step--1); color: var(--muted); border-top: var(--line); padding-top: var(--space-2); }

/* Réalisations : grille asymétrique */
.works { background: var(--surface); border-block: var(--line); }
.works-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-rows: auto auto; gap: var(--space-3);
}
.work-lead { grid-row: 1 / span 2; }
.work-lead figure { margin: 0; border-radius: var(--radius-visual); overflow: hidden; }
.work-lead img { width: 100%; height: 100%; min-height: 24rem; object-fit: cover; }
.work-body { padding-top: var(--space-2); }
.work-small { border-top: 2px solid var(--text); padding-top: var(--space-2); }
.work-sector { font-size: var(--step--1); color: var(--muted); margin-bottom: .5rem; }
.work h3 { font-size: var(--step-2); }
.work-facts { margin: var(--space-2) 0 0; }
.work-facts > div { border-top: var(--line); padding-block: .6rem; }
.work-facts dt { font-size: var(--step--1); color: var(--muted); }
.work-facts dd { margin: .15rem 0 0; }
.works-note { margin-top: var(--space-3); font-size: var(--step--1); color: var(--muted); max-width: 60ch; }

/* Délais : tableau dense */
.table-wrap { overflow-x: auto; }
.timings-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.timings-table th, .timings-table td {
  text-align: left; vertical-align: top; padding: .9rem .75rem;
  border-bottom: 1px solid var(--border);
}
.timings-table thead th { color: var(--muted); font-weight: 600; border-bottom-color: var(--text); }
.timings-table tbody th { font-family: var(--font-heading); font-size: var(--step-1); font-weight: 600; }
.timings-table td { color: var(--text); }
.table-note { margin-top: var(--space-2); font-size: var(--step--1); color: var(--muted); }

/* Accompagnement : bandeau sombre */
.aftercare {
  background: #1F2B28; color: var(--bg);
  padding-block: var(--space-5);
}
.aftercare h2 { color: var(--bg); font-size: var(--step-3); max-width: 22ch; }
.aftercare h3 { font-size: var(--step-1); color: var(--bg); margin: 0 0 .25rem; }
.aftercare p { margin: 0; color: #cfc6b3; }
.aftercare-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; max-width: 40rem; }
.aftercare-list li { padding-block: var(--space-2); border-top: 1px solid rgba(245,240,230,.18); }
.aftercare-quote {
  margin-top: var(--space-4); font-family: var(--font-heading); font-size: var(--step-2);
  color: var(--bg); max-width: 30ch; line-height: 1.2;
}
.aftercare-note { margin-top: var(--space-2); font-size: var(--step--1); color: #a9b3ad; }

/* Témoignage */
.testimony-inner { text-align: center; }
.testimony blockquote { margin: 0 auto; max-width: 40rem; }
.testimony blockquote p {
  font-family: var(--font-heading); font-size: var(--step-3); line-height: 1.15;
  font-style: italic; color: var(--text); margin: 0;
}
.testimony-rule {
  display: block; width: 4rem; height: 2px; background: var(--accent);
  margin: var(--space-3) auto 0;
}

/* Contact */
.contact { background: #EDE5D4; border-top: var(--line); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: var(--space-5); align-items: start;
}
.contact h2 { font-size: var(--step-3); max-width: 18ch; }
.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-3); margin-top: var(--space-3); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--text); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-ui);
  padding: .8rem .9rem; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(154,91,46,.18);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--accent); }
.field-error { margin: 0; font-size: var(--step--1); color: var(--text); min-height: 0; }
.field-error:empty { display: none; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.form-status { margin: 0; color: var(--text); font-size: var(--step--1); }

.contact-info { border-left: 1px solid var(--border); padding-left: var(--space-3); }
.contact-info h3 { font-size: var(--step-1); }
.contact-info p { margin-bottom: var(--space-2); }
.contact-info a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); }
.todo-note { display: block; font-size: var(--step--2, .78rem); color: var(--muted); margin-top: .15rem; }
.contact-info address { font-style: normal; color: var(--muted); margin: var(--space-3) 0 var(--space-2); }
.contact-hours { font-size: var(--step--1); color: var(--muted); }

/* Pied de page */
.site-footer { border-top: var(--line); padding-block: var(--space-2); font-size: var(--step--1); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2); }
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
.footer-brand svg { width: 1.2rem; height: 1.2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.footer-links a { color: var(--muted); text-underline-offset: .2em; }
.footer-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-inline: var(--space-3); }
  .hero-figure { min-height: 20rem; order: -1; }
  .site-nav { display: none; }
  .works-grid { grid-template-columns: 1fr; }
  .work-lead { grid-row: auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: var(--space-4); }
  .steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .contact-info { border-left: 0; padding-left: 0; border-top: var(--line); padding-top: var(--space-3); }
  .feature-caption { grid-template-columns: 1fr; }
  .feature-caption .text-link { grid-column: 1; }
}
@media (max-width: 640px) {
  .quote-form { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .header-cta { font-size: var(--step--2, .78rem); padding: .55rem .8rem; min-height: 44px; }
  .timings-table th, .timings-table td { padding: .7rem .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
