/* ArboFino CNC — site, direction crème éditorial (maquette B, choisie le 4 déc. 2026)
   Fond #f4efe6, encre #241f1c, accent cuivre #c45c32.
   Olive #5e6244 et terracotta #b85a42, utilisés avec parcimonie.
   Titres : Fraunces 500. Texte : Source Sans 3.
*/

:root {
  --bg: #f4efe6;
  --bg-2: #ebe4d8;
  --paper: #faf7f2;
  --ink: #241f1c;
  --ink-dim: #6a645c;
  --line: #d8d0c4;
  --copper: #c45c32;
  --copper-2: #a84b28;
  --terracotta: #b85a42;
  --olive: #5e6244;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", system-ui, sans-serif;
  --header-h: 5.25rem;
  --wrap: 70rem;
  --pad: 1.5rem;
  --radius: 0;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: light;
}

img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--copper-2); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

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

.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;
}

.skip {
  position: absolute;
  left: 0.75rem; top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.85rem;
}
.skip:focus { top: 0.75rem; color: var(--bg); }

.wrap {
  width: min(100% - (var(--pad) * 2), var(--wrap));
  margin-inline: auto;
}

/* Header
   -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  line-height: 0;
  flex: 0 0 auto;
}
.brand img {
  width: auto;
  height: 3.6rem;
}
.brand:hover { color: inherit; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.4rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-bars::before { top: -5px; }
.menu-bars::after { top: 5px; }
.menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars::after { top: 0; transform: rotate(-45deg); }

#nav-principale {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0 1.25rem;
}
#nav-principale.open { display: block; }
#nav-principale ul {
  list-style: none;
  margin: 0;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
}
#nav-principale a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 500;
}
#nav-principale a:hover,
#nav-principale a:focus-visible { color: var(--copper-2); }
#nav-principale .nav-cta { color: var(--copper-2); }

/* Hero — typo d’abord, grande photo en dessous
   -------------------------------------------------- */
.hero {
  padding: 3rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
}

.hero-copy { max-width: 22em; }

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.15rem, 8.4vw, 4.15rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.lead {
  margin: 1.35rem 0 0;
  color: var(--ink-dim);
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 28em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary {
  /* #b5552e plutôt que --copper #c45c32 : contraste 4.57:1 avec #faf7f2 (AA) */
  background: #b5552e;
  color: #faf7f2;
  border-color: #b5552e;
}
.btn-primary:hover {
  background: var(--copper-2);
  border-color: var(--copper-2);
  color: #faf7f2;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--copper);
  color: var(--copper-2);
}

/* Photos
   -------------------------------------------------- */
.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.shot-frame {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #e7dfd1;
  border: 1px solid var(--line);
}
.shot-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.shot figcaption {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-dim);
  line-height: 1.4;
}

.hero-shot { gap: 0.8rem; }
.hero-ph {
  aspect-ratio: 3 / 2;
}
.hero-shot figcaption {
  font-size: 1rem;
}

.pos-mca img { object-position: center 40%; }
.pos-garage img { object-position: center 45%; }
.pos-numeros img { object-position: center 60%; }
.pos-orignal img { object-position: center 68%; }
.pos-planche img { object-position: center 55%; }
.pos-medailles img { object-position: center 32%; }
.pos-logo img { object-position: center 38%; }

.accent-shot {
  margin-top: 2.25rem;
  max-width: 22rem;
}
.accent-shot .shot-frame { aspect-ratio: 3 / 4; }

/* Services
   -------------------------------------------------- */
.services {
  padding: 4.25rem 0 3.5rem;
}

.services h2,
.gallery h2,
.process h2,
.quote h2 {
  margin: 0 0 2.25rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.25rem 1.5rem;
}
.svc-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--olive);
  margin-bottom: 0.55rem;
}
.service-grid h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.service-grid p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 26em;
}

/* Gallery
   -------------------------------------------------- */
.gallery {
  padding: 4rem 0 4.5rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.section-head h2 { margin: 0; }
.section-note {
  margin: 0;
  color: var(--ink-dim);
  font-size: 1.05rem;
  font-style: italic;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.chip {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.45rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.2;
}
.chip:hover { border-color: var(--ink); }
.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.gallery-item[hidden] { display: none; }
.gallery-grid .shot-frame {
  aspect-ratio: 1 / 1;
}

/* Process
   -------------------------------------------------- */
.process {
  padding: 4.25rem 0 4.5rem;
  background: var(--bg-2);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.25rem;
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.85rem;
  color: var(--olive);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.steps h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.steps p {
  margin: 0;
  color: var(--ink-dim);
  max-width: 26em;
}

/* Form
   -------------------------------------------------- */
.quote {
  padding: 4.25rem 0 5rem;
}

.quote-intro p {
  margin: -1.25rem 0 2.25rem;
  color: var(--ink-dim);
  max-width: 28em;
  font-size: 1.15rem;
}

.quote-form {
  display: grid;
  gap: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.field-row {
  display: grid;
  gap: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.field > span:first-child {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  color: var(--ink);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236a645c' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--copper);
  outline-offset: 0;
  border-color: var(--copper);
  background: #fff;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #746d66;
}

.field-file input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}
.field-file { position: relative; }
.file-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 5rem;
  padding: 1.1rem;
  border: 1px dashed #b5ad9f;
  color: var(--ink-dim);
  font-size: 0.98rem;
  background: var(--bg);
  cursor: pointer;
}
.field-file:hover .file-ui,
.field-file:focus-within .file-ui {
  border-color: var(--copper);
  color: var(--ink);
}
.file-ui.is-chosen { color: var(--ink); border-style: solid; }

.btn-submit {
  justify-self: start;
  margin-top: 0.5rem;
  min-width: 13rem;
}


.form-note {
  margin: 0.35rem 0 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
  max-width: 36em;
  line-height: 1.45;
}
.form-status {
  margin: 0.25rem 0 0;
  min-height: 1.4em;
  color: var(--olive);
  font-size: 0.95rem;
  line-height: 1.45;
}
.form-status.is-error { color: var(--terracotta); }

/* Footer
   -------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 3.25rem;
  color: var(--ink-dim);
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.footer-name {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--copper-2); }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Desktop
   -------------------------------------------------- */
@media (min-width: 800px) {
  :root { --pad: 2.5rem; --header-h: 5.75rem; }

  .brand img { height: 4.1rem; }

  .menu-btn { display: none; }

  .header-inner { position: relative; }

  #nav-principale {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }
  #nav-principale ul {
    flex-direction: row;
    align-items: center;
    gap: 0 2rem;
    padding: 0;
  }
  #nav-principale a {
    padding: 0.25rem 0;
    border: 0;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  #nav-principale .nav-cta {
    color: var(--copper-2);
    box-shadow: inset 0 -1px 0 var(--copper);
  }
  #nav-principale .nav-cta:hover { color: var(--ink); }

  .hero { padding: 5.5rem 0 2rem; }
  .hero-grid { gap: 3.25rem; }
  .hero-copy { max-width: 24em; }
  .hero h1 { font-size: 4.15rem; }
  .hero-ph { aspect-ratio: 3 / 2; }
  .accent-shot { max-width: 24rem; }

  .services { padding: 5.5rem 0 4.5rem; }
  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.25rem 3.5rem;
  }
  .service-grid h3 { font-size: 1.7rem; }

  .gallery { padding: 5rem 0 5.5rem; }
  .section-head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
  }

  .process { padding: 5.5rem 0; }
  .steps {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3.5rem;
  }
  .step-num { font-size: 2.15rem; }

  .quote { padding: 5.5rem 0 6.5rem; }
  .quote-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4.5rem;
    align-items: start;
  }
  .quote-intro h2 {
    margin-bottom: 1.15rem;
    max-width: 10ch;
  }
  .quote-intro p { margin: 0; }
  .quote-form { padding: 2.25rem; }
  .field-row { grid-template-columns: 1fr 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }
  .footer-social { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-bars, .menu-bars::before, .menu-bars::after { transition: none; }
}
