/* A/C Diesel | feuille de style commune
   Concept : plaque signalétique d'atelier. Photo pleine largeur en tête, bandes de contenu
   sur fond acier, étiquettes techniques en mono, rouge du logo réservé aux appels à l'action. */
:root {
  --bg: #ffffff;          /* fond blanc */
  --surface: #ffffff;
  --surface-2: #e2e6ea;
  color-scheme: light;
  --fg: #16191d;          /* charbon */
  --muted: #56606b;
  --line: #cfd5db;
  --red: #c41e2a;         /* rouge du logo */
  --red-ink: #ffffff;
  --red-hover: #a3151f;
  --frost: #2f6f9a;       /* bleu froid, réservé à la climatisation */
  --band: #1b1f24;        /* bandes sombres */
  --band-fg: #eef0f2;
  --band-muted: #a9b2bc;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.1rem);

  --wrap: 72rem;
  --radius: 4px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--surface);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: 0.005em; }
h1 { font-size: var(--step-4); font-weight: 700; text-transform: uppercase; }
h2 { font-size: var(--step-3); font-weight: 700; text-transform: uppercase; }
h3 { font-size: var(--step-2); font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.label {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.lede { font-size: var(--step-1); color: var(--muted); max-width: 40rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--gutter-l); top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 100; background: var(--surface); padding: 0.5rem 1rem; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0.7rem 1.3rem;
  font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-red { background: var(--red); color: var(--red-ink); }
.btn-red:hover { background: var(--red-hover); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* En-tête */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--surface); color: var(--fg); border-bottom: 3px solid var(--red);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; padding-block: 0.4rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex: none; }
.brand img { width: 3.4rem; height: auto; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.brand small { display: block; font-family: var(--mono); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.08em; color: var(--muted); margin-top: 0.25rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; padding: 0.5rem 0.7rem; border-radius: var(--radius); color: var(--fg);
}
.nav a:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.header-call { white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--muted); color: var(--fg); border-radius: var(--radius); min-height: 44px; padding: 0 0.8rem; font-family: var(--display); font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-call { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 3px solid var(--red);
    padding: 0.5rem var(--gutter-r) 1rem var(--gutter-l);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--red); padding-left: 0.9rem; }
}

@media (max-width: 480px) {
  .site-header .wrap { gap: 0.75rem; }
  .brand img { width: 2.8rem; }
  .brand small { display: none; }
  .brand { min-width: 0; }
}

/* Tête de page (photo) */
.hero { position: relative; background: var(--band); color: #f4f5f6; overflow: hidden; }
.hero img.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,14,16,.88) 0%, rgba(12,14,16,.62) 45%, rgba(12,14,16,.08) 100%);
}
@media (max-width: 720px) { .hero::after { background: rgba(12,14,16,.74); } }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(3rem, 8vw, 6.5rem); display: grid; gap: 1.4rem; }
.hero .label { color: #c6cdd4; }
.hero h1 { max-width: 20ch; }
.hero h1 em { font-style: normal; color: #ff5a63; }
.hero p.sub { font-size: var(--step-1); max-width: 34rem; color: #dfe3e7; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }
.hero .phone-plain { font-family: var(--mono); font-size: 0.95rem; color: #c6cdd4; }
.hero-short .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-short h1 { max-width: 22ch; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { display: grid; gap: 0.75rem; margin-bottom: 2.25rem; max-width: 46rem; }
.band { background: var(--band); color: var(--band-fg); }
.band .label, .band .lede, .band .muted { color: var(--band-muted); }

/* Deux portes */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.door {
  display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
}
.door img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-width: 100%; }
.door-body { display: grid; gap: 0.75rem; padding: 1.5rem; align-content: start; }
.door-body ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.door-body .more { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--red); margin-top: 0.25rem; }
.door:hover { border-color: var(--red); }
.door:hover .more { text-decoration: underline; }
@media (max-width: 720px) { .doors { grid-template-columns: minmax(0, 1fr); } }

/* Grille de services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc { background: var(--surface); padding: 1.5rem; display: grid; gap: 0.6rem; align-content: start; text-decoration: none; color: inherit; }
.svc:hover h3 { color: var(--red); }
.svc .code { font-family: var(--mono); font-size: 0.75rem; letter-spacing: .06em; color: var(--muted); }
.svc p { color: var(--muted); }
.svc.frost .code { color: var(--frost); }
.svc.wide { grid-column: span 2; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: minmax(0, 1fr); } .svc.wide { grid-column: auto; } }

/* Plaque de faits */
.plate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--band-muted); }
.plate > div { padding: 1.25rem 1.25rem 0 0; display: grid; gap: 0.35rem; align-content: start; }
.plate strong { font-family: var(--display); font-size: var(--step-3); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.plate span { color: var(--band-muted); font-size: var(--step--1); }
@media (max-width: 800px) { .plate { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; } }

/* Équipements */
.equip { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.equip li { border: 1px solid var(--line); background: var(--surface); padding: 0.5rem 0.9rem; border-radius: 999px; font-weight: 500; }

/* Deux colonnes texte + image */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split > div { display: grid; gap: 1rem; min-width: 0; }
.split img { border-radius: var(--radius); width: 100%; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 820px) { .split, .split.reverse { grid-template-columns: minmax(0, 1fr); } .split.reverse > :first-child { order: 0; } }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.checks li { padding-left: 1.6rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.8rem; height: 0.45rem; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.gallery figure { margin: 0; display: grid; gap: 0.45rem; align-content: start; min-width: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); max-width: 100%; }
.gallery figcaption { font-size: var(--step--1); color: var(--muted); line-height: 1.4; }
.svc-photo { margin: 0; max-width: 40rem; }
.svc-photo img { width: 100%; max-width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Services détaillés */
.svc-detail { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.5rem 2.5rem; padding-block: 2.25rem; border-top: 1px solid var(--line); }
.svc-detail:first-of-type { border-top: 0; }
.svc-detail header { display: grid; gap: 0.5rem; align-content: start; }
.svc-detail .body { display: grid; gap: 1rem; min-width: 0; }
.svc-detail .body > p { max-width: 42rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.tags li { font-family: var(--mono); font-size: 0.78rem; padding: 0.2rem 0.55rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.svc-detail.frost .label { color: var(--frost); }
@media (max-width: 760px) { .svc-detail { grid-template-columns: minmax(0, 1fr); } }

/* Zone desservie */
.zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.zone ul { columns: 2; column-gap: 2rem; margin: 0; padding-left: 1.1rem; }
@media (max-width: 760px) { .zone { grid-template-columns: minmax(0, 1fr); } }

/* Bandeau d'appel */
.cta { background: var(--red); color: #fff; }
.cta .wrap { padding-block: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; }
.cta h2 { font-size: var(--step-3); }
.cta p { color: #ffe3e5; }
.cta .btn-light { background: #fff; color: #9b111b; }
.cta .btn-light:hover { background: #ffe9ea; }
.cta .big-phone { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); letter-spacing: 0.02em; text-decoration: none; color: #fff; font-variant-numeric: tabular-nums; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.coords { display: grid; gap: 1.5rem; }
.coords dl { margin: 0; display: grid; gap: 1.1rem; }
.coords dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.coords dd { margin: 0.15rem 0 0; font-size: var(--step-1); font-weight: 500; }
.coords dd a { text-decoration-color: var(--red); text-underline-offset: 3px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.7rem 0.8rem; min-height: 48px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); outline-offset: 0; border-color: var(--red); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice label { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--line); background: var(--bg); padding: 0.55rem 0.9rem; border-radius: var(--radius); font-weight: 500; cursor: pointer; }
.choice input { width: auto; min-height: 0; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: var(--step--1); color: var(--muted); }
.form-status { font-weight: 600; }
.form-status[data-kind="ok"] { color: #1f7a3a; }
.form-status[data-kind="info"] { color: var(--frost); }

/* Pied de page */
.site-footer { background: var(--band); color: var(--band-fg); }
.site-footer .wrap { padding-block: 3rem 2rem; display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-footer h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 0.6rem; }
.site-footer p, .site-footer li { color: var(--band-muted); font-size: var(--step--1); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--band-fg); text-decoration-color: color-mix(in srgb, var(--band-fg) 35%, transparent); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--band-fg) 15%, transparent); padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }
.foot-brand { display: grid; gap: 0.8rem; align-content: start; }
.foot-brand img { width: 5.5rem; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Barre d'appel mobile */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; gap: 0.5rem;
    padding: 0.55rem var(--gutter-r) calc(0.55rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: var(--band); border-top: 1px solid color-mix(in srgb, var(--band-fg) 15%, transparent);
  }
  .callbar .btn { flex: 1; justify-content: center; font-size: 1.1rem; }
  .callbar .btn-line { color: var(--band-fg); flex: 0 0 auto; }
  body { padding-bottom: 4.5rem; }
}

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