/* Atelier Saône — feuille de page. Toutes les valeurs viennent de styles/brand.css. */

.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: var(--space-1) var(--space-2); z-index: 100; }
.skip:focus { left: var(--space-2); top: var(--space-2); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main > section { position: relative; scroll-margin-top: 80px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--space-3); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-family: var(--font-heading); font-weight: 700; font-size: var(--step-1); letter-spacing: -.01em; }
.brand svg { width: 38px; height: 38px; flex: none; }
.nav { display: flex; gap: var(--space-3); margin-left: auto; }
.nav a { text-decoration: none; font-size: var(--step--1); font-weight: 500; color: var(--muted); padding-block: .4rem; border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease; }
.nav a:hover, .nav a:focus-visible { color: var(--text); border-bottom-color: var(--accent); }
.header-cta { padding: .6rem 1rem; font-size: var(--step--1); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: .45rem .9rem; font: inherit; color: var(--text); cursor: pointer; }

.btn-sm { padding: .6rem 1rem; }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn-ghost:hover { border-color: var(--text); opacity: 1; }

/* ---------- Accueil ---------- */
.hero { padding-block: var(--space-5) var(--space-4); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-4); align-items: end; }
.eyebrow { font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--accent); display: inline-block; }
.hero h1 { font-size: clamp(3.2rem, 2.4rem + 4.2vw, 6.4rem); line-height: .98; letter-spacing: -.035em; font-weight: 600; margin: 0; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--muted); display: block; }
.hero-side { display: grid; gap: var(--space-3); padding-bottom: var(--space-1); }
.lede { font-size: var(--step-1); line-height: 1.4; margin: 0; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero-thumb { margin: var(--space-2) 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-1); }
.hero-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; border: 1px solid var(--border); }
.hero-thumb figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); padding: var(--space-1) .25rem .25rem; font-size: var(--step--1); color: var(--muted); flex-wrap: wrap; }
.thumb-name { font-family: var(--font-heading); font-weight: 600; font-size: var(--step-0); color: var(--text); }

/* ---------- Chiffres ---------- */
.figures { background: var(--text); color: var(--bg); padding-block: var(--space-4); }
.figures-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.figure-item { padding: var(--space-2) var(--space-3); border-left: 1px solid rgba(243, 238, 228, .28); }
.figure-item:first-child { border-left: 0; padding-left: 0; }
.figure-item strong { display: block; font-family: var(--font-heading); font-weight: 500; font-size: var(--step-4); line-height: 1; letter-spacing: -.03em; }
.figure-item span { display: block; margin-top: var(--space-2); font-size: var(--step--1); line-height: 1.4; color: rgba(243, 238, 228, .78); max-width: 22ch; }
.figures-source { margin: var(--space-3) 0 0; font-size: var(--step--1); color: rgba(243, 238, 228, .62); }
.figures-source::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: var(--space-1); }

/* ---------- Prestations ---------- */
.section { padding-block: var(--space-5); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); align-items: end; margin-bottom: var(--space-4); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 52ch; justify-self: end; }
.kicker { font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 var(--space-2); }

.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: var(--space-3); border-top: 1px solid var(--border); }
.compare thead th { border-top: 0; font-family: var(--font-heading); font-size: var(--step-2); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.compare thead th:first-child { width: 17%; font-family: var(--font-body); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); vertical-align: bottom; }
.compare tbody th { font-weight: 600; font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; width: 17%; }
.compare tbody td { font-size: var(--step-0); line-height: 1.5; }
.compare tbody tr:hover td, .compare tbody tr:hover th { background: rgba(207, 197, 174, .18); }
.compare .price-note td { font-style: italic; color: var(--muted); }
.compare .delay { font-family: var(--font-heading); font-size: var(--step-1); font-weight: 600; }
.compare .delay::after { content: ""; display: block; width: 36px; height: 2px; background: var(--accent); margin-top: .4rem; }
.compare .who { display: flex; flex-direction: column; gap: .15rem; }
.compare .who small { color: var(--muted); font-size: var(--step--1); }
.compare-note { margin: var(--space-2) 0 0; font-size: var(--step--1); color: var(--muted); }

/* ---------- Méthode ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { position: relative; padding: var(--space-3) var(--space-3) 0 0; }
.step + .step { padding-left: var(--space-3); border-left: 1px solid var(--border); }
.step-num { display: block; font-family: var(--font-heading); font-size: var(--step-4); font-weight: 400; line-height: .9; letter-spacing: -.04em; color: var(--text); }
.step h3 { font-size: var(--step-1); margin: var(--space-3) 0 var(--space-1); font-weight: 600; }
.step p { color: var(--muted); font-size: var(--step--1); line-height: 1.55; margin: 0 0 var(--space-2); }
.step-duration { display: inline-block; font-size: var(--step--1); font-weight: 600; color: var(--text); padding-top: var(--space-1); border-top: 2px solid var(--accent); }
.method-graphic { margin-top: var(--space-4); display: block; width: 100%; height: 14px; }
.method-note { margin: var(--space-3) 0 0; font-size: var(--step--1); color: var(--muted); }

/* ---------- Réalisations : grille asymétrique ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cases { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: var(--space-4) var(--space-4); }
.case { border-top: 1px solid var(--text); padding-top: var(--space-3); }
.case-lead { grid-row: span 2; display: grid; grid-template-columns: 1fr; gap: var(--space-3); border-top: 0; padding-top: 0; }
.case-shot { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-1); box-shadow: var(--shadow); height: 100%; }
.case-shot img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; object-position: top; border: 1px solid var(--border); }
.case-body { display: block; }
.case-meta { font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 var(--space-1); }
.case h3 { font-size: var(--step-2); margin: 0 0 var(--space-2); font-weight: 500; }
.case-lead h3 { font-size: var(--step-3); }
.case dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem var(--space-2); font-size: var(--step--1); line-height: 1.5; }
.case dt { font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; padding-top: .2rem; }
.case dd { margin: 0; }
.case .result { color: var(--text); }
.case .result strong { font-family: var(--font-heading); font-size: var(--step-2); font-weight: 600; display: inline-block; padding-bottom: .1rem; border-bottom: 2px solid var(--accent); margin-right: .25rem; }
.section-cases .method-note { margin-top: var(--space-4); }

/* ---------- Équipe ---------- */
.section-team { background: var(--surface); border-block: 1px solid var(--border); }
.team-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-5); align-items: start; }
.team-photo { margin: 0; position: sticky; top: 110px; }
.team-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 60%; border: 1px solid var(--border); filter: saturate(.85) sepia(.08) contrast(.98); }
.team-text h2 { font-size: var(--step-3); margin-bottom: var(--space-3); }
.team-intro { color: var(--muted); font-size: var(--step-1); line-height: 1.4; margin-bottom: var(--space-4); max-width: 36ch; }
.person { padding-block: var(--space-3); border-top: 1px solid var(--border); }
.person:first-of-type { border-top: 1px solid var(--text); }
.person h3 { font-size: var(--step-2); font-weight: 500; margin: 0 0 var(--space-1); display: flex; flex-direction: column; gap: .2rem; }
.person h3 span { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.person p { margin: 0 0 var(--space-1); max-width: 56ch; }
.person .channel { font-size: var(--step--1); color: var(--text); }
.person .channel::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: .5rem; }

/* ---------- Contact ---------- */
.contact { background: var(--text); color: var(--bg); padding-block: var(--space-5); }
.contact a { color: var(--bg); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-5); align-items: start; }
.contact .kicker { color: rgba(243, 238, 228, .7); }
.contact-intro h2 { font-size: var(--step-3); color: var(--bg); }
.contact-intro p { color: rgba(243, 238, 228, .8); max-width: 40ch; }
.btn-ghost-light { background: transparent; color: var(--bg); border-color: rgba(243, 238, 228, .5); }
.btn-ghost-light:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.contact-form { background: #203B32; border: 1px solid rgba(243, 238, 228, .16); padding: var(--space-4); border-radius: var(--radius); box-shadow: 4px 4px 0 0 var(--accent); display: grid; gap: var(--space-3); }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--step--1); font-weight: 600; color: rgba(243, 238, 228, .85); }
.field input { font: inherit; color: var(--bg); background: transparent; border: 0; border-bottom: 1px solid rgba(243, 238, 228, .45); padding: .55rem 0; border-radius: 0; transition: border-color .15s ease; }
.field input:focus { outline: none; border-bottom-color: var(--accent); }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-bottom-color: #E8A27A; }
.field .error { font-size: var(--step--1); color: #F1C3A6; min-height: 1em; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-1); }
.form-actions .btn { color: var(--text); }
.form-status { margin: 0; font-size: var(--step--1); color: var(--bg); }
.contact-address { grid-column: 1 / -1; font-style: normal; border-top: 1px solid rgba(243, 238, 228, .22); padding-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.contact-address p { margin: 0; }
.muted-light { color: rgba(243, 238, 228, .65); font-size: var(--step--1); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding-block: var(--space-4); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); justify-content: space-between; }
.footer-inner p { margin: 0; font-size: var(--step--1); color: var(--muted); }
.footer-legal { width: 100%; font-size: var(--step--1); color: var(--muted); padding-top: var(--space-2); border-top: 1px solid var(--border); }
.brand-light { color: var(--text); }

/* ---------- Adaptation ---------- */
@media (max-width: 1024px) {
  .hero-grid, .section-head, .team-grid, .contact-grid, .cases { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
  .cases { grid-template-rows: auto; }
  .case-lead { grid-row: auto; }
  .case-shot img { min-height: 0; aspect-ratio: 4 / 3; }
  .team-photo { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-4); }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .figures-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-4); }
  .figure-item:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .header-cta { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: var(--space-2) var(--space-3); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .header-inner { position: relative; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-top: 1px solid var(--border); padding: var(--space-2) 0; }
  .compare th, .compare td { border: 0; padding: .3rem var(--space-3); }
  .compare tbody th { padding-top: var(--space-2); font-family: var(--font-heading); font-size: var(--step-1); text-transform: none; letter-spacing: -.01em; color: var(--text); }
  .compare tbody td { padding-top: .2rem; }
}
@media (max-width: 640px) {
  :root { --space-5: 3.5rem; --space-4: 2.25rem; }
  .hero h1 { font-size: 3.1rem; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: var(--space-3); }
  .figures-grid { grid-template-columns: 1fr; }
  .figure-item, .figure-item:first-child { border-left: 0; padding: var(--space-3) 0; border-top: 1px solid rgba(243, 238, 228, .2); }
  .figure-item:first-child { border-top: 0; }
  .contact-form { padding: var(--space-3); }
  .case dl { grid-template-columns: 1fr; gap: .15rem; }
  .case dt { margin-top: .6rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
