/* Cantal Moteurs & Usinage — feuille de style (thème « Atelier clair »)
   Fond blanc cassé, bleu marine pour le texte et les bandeaux,
   jaune atelier pour les actions. Une seule police : Manrope. */

:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --ink: #16263f;          /* bleu marine */
  --ink-2: #5b6678;
  --line: #e2e5ea;
  --line-2: #d3d8e0;
  --yellow: #f2b705;       /* jaune atelier */
  --yellow-ink: #16263f;
  --yellow-soft: #fff4cc;
  --yellow-soft-ink: #6b5200;
  --band: #16263f;
  --band-ink: #ffffff;
  --band-ink-2: #b7c1d1;
  --band-line: #2a3b57;
  --placeholder: #dfe3e9;

  --f-body: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.75rem, 3.6vw, 2.25rem);
  --step-4: clamp(2.3rem, 5.6vw, 3.75rem);

  --radius: 12px;
  --radius-s: 8px;
  --wrap: 72rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1726;
    --surface: #152036;
    --ink: #eef1f6;
    --ink-2: #a3aec0;
    --line: #233150;
    --line-2: #2e3f62;
    --yellow: #f5c22e;
    --yellow-ink: #16263f;
    --yellow-soft: #3a3110;
    --yellow-soft-ink: #f5d670;
    --band: #0a1120;
    --band-ink: #ffffff;
    --band-ink-2: #a3aec0;
    --band-line: #1f2c45;
    --placeholder: #1d2a44;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1726;
  --surface: #152036;
  --ink: #eef1f6;
  --ink-2: #a3aec0;
  --line: #233150;
  --line-2: #2e3f62;
  --yellow: #f5c22e;
  --yellow-ink: #16263f;
  --yellow-soft: #3a3110;
  --yellow-soft-ink: #f5d670;
  --band: #0a1120;
  --band-ink: #ffffff;
  --band-ink-2: #a3aec0;
  --band-line: #1f2c45;
  --placeholder: #1d2a44;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
  margin: 0;
}
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- En-tête ---------- */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.brand-mark { flex: none; display: block; line-height: 0; }
.brand-mark img { width: 3.9rem; height: auto; display: block; }
.brand-text { display: grid; line-height: 1.02; }
.brand-name { font-weight: 800; font-size: 1.12rem; text-transform: uppercase; letter-spacing: -0.01em; }
.brand-name .amp { color: #c79300; }
.foot-brand { display: flex; align-items: center; gap: 0.75rem; color: var(--band-ink); margin-bottom: 0.4rem; }
.foot-brand img { width: 3.6rem; height: auto; }
.foot-brand .amp { color: var(--yellow); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.6rem; font-weight: 600; font-size: 0.95rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding-block: 0.4rem; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--yellow); }
.nav .nav-tel {
  background: var(--band);
  color: var(--band-ink);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-s);
  font-variant-numeric: tabular-nums;
}
.nav .nav-tel:hover { color: var(--band-ink); filter: brightness(1.15); }

/* ---------- Boutons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.8rem 1.3rem;
  border-radius: var(--radius-s);
  background: var(--yellow);
  color: var(--yellow-ink);
  border: 1px solid var(--yellow);
  font-weight: 800;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); font-weight: 600; }
.btn.ghost:hover { border-color: var(--ink); filter: none; }

/* ---------- Hero ---------- */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.3rem; min-width: 0; }
.hero .eyebrow {
  justify-self: start;
  background: var(--yellow-soft);
  color: var(--yellow-soft-ink);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.hero h1 { font-size: var(--step-4); line-height: 1.05; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; }
.lead { font-size: var(--step-1); color: var(--ink-2); max-width: 34em; }
.checks { list-style: none; margin: 0; padding: 0.3rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }
.checks li { display: flex; align-items: center; gap: 0.45rem; }
.checks li::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.5L12 5.4' fill='none' stroke='%2316263f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  flex: none;
}

.hero-card {
  min-width: 0;
  background: var(--band);
  color: var(--band-ink);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: grid;
  gap: 0.9rem;
}
.hero-card-title { font-weight: 800; font-size: var(--step-2); }
.hero-card > p:not(.hero-card-title) { color: var(--band-ink-2); }
.hero-card-tel {
  color: var(--yellow);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.1;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.hero-card-tel:hover { text-decoration: underline; }
.hero-card-facts { margin: 0.4rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--band-line); }
.hero-card-facts div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--band-line); }
.hero-card-facts dt { color: var(--band-ink-2); font-size: 0.9rem; }
.hero-card-facts dd { margin: 0; font-weight: 600; font-size: 0.95rem; overflow-wrap: anywhere; }

/* ---------- En-tête de page interne ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding-block: clamp(2.2rem, 5vw, 3.5rem);
}
.page-head h1 { font-size: var(--step-4); letter-spacing: -0.025em; }
.page-head .lead { max-width: 40em; }

/* ---------- Sections ---------- */
.section .wrap { padding-block: clamp(2.8rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.section:nth-of-type(even) { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 0.6rem; max-width: 46em; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--ink-2); }

/* Métiers (accueil) */
.trades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.trade {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.6rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.trade::before { content: ""; width: 2.25rem; height: 6px; border-radius: 3px; background: var(--yellow); margin-bottom: 0.3rem; }
.trade:hover { border-color: var(--ink); }
.trade .eyebrow { display: none; }
.trade h3 { font-size: 1.2rem; }
.trade p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }
.trade .more { font-size: 0.9rem; font-weight: 700; color: var(--ink); }

/* Clientèles */
.clients {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
}
.clients li { display: grid; gap: 0.35rem; align-content: start; padding: 1.3rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.clients strong { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.clients span { color: var(--ink-2); font-size: 0.93rem; line-height: 1.5; }

/* Bandeau d'appel */
.callout { background: var(--band); color: var(--band-ink); }
.callout .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.callout h2 { font-size: var(--step-3); }
.callout p { color: var(--band-ink-2); margin-top: 0.6rem; max-width: 34em; }
.callout .eyebrow { color: var(--yellow); display: block; margin-bottom: 0.5rem; }
.callout-contact { display: grid; gap: 0.4rem; justify-items: end; text-align: right; }
.big-tel { font-weight: 800; font-size: clamp(2rem, 4.5vw, 2.6rem); line-height: 1.1; color: var(--yellow); text-decoration: none; font-variant-numeric: tabular-nums; }
.big-tel:hover { text-decoration: underline; }
.callout-contact a.mail { color: var(--band-ink-2); overflow-wrap: anywhere; }

/* Aperçu parcours */
.quote-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2.5rem; align-items: start; }
.quote-block blockquote { margin: 0; font-weight: 800; font-size: var(--step-3); line-height: 1.15; letter-spacing: -0.015em; }
.quote-block blockquote span { box-shadow: inset 0 -0.35em 0 var(--yellow-soft); }
.quote-block .body { display: grid; gap: 1rem; color: var(--ink-2); max-width: 36em; }
.quote-block .body a { font-weight: 700; }

/* ---------- Prestations ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.toc a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
}
.toc a:hover { border-color: var(--ink); }

.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 3rem; scroll-margin-top: 1rem; }
.service-intro { display: grid; gap: 0.8rem; align-content: start; }
.service-intro .eyebrow { justify-self: start; background: var(--yellow-soft); color: var(--yellow-soft-ink); padding: 0.25rem 0.6rem; border-radius: 6px; }
.service-intro h2 { font-size: var(--step-3); }
.service-intro p { color: var(--ink-2); }
.spec {
  list-style: none;
  margin: 0;
  padding: 0.4rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section:nth-of-type(even) .spec { background: var(--bg); }
.spec li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.spec li:last-child { border-bottom: 0; }
.spec li::before { content: ""; width: 0.7rem; height: 0.7rem; margin-top: 0.5rem; border-radius: 2px; background: var(--yellow); }
.spec small { display: block; color: var(--ink-2); font-size: 0.92rem; font-weight: 400; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem; }
.tags span { font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink-2); }

.note { background: var(--band); color: var(--band-ink); border-radius: 16px; padding: 1.6rem 1.8rem; display: grid; gap: 0.5rem; }
.note strong { font-size: var(--step-2); font-weight: 800; }
.note p { color: var(--band-ink-2); }
.note a { color: var(--yellow); font-weight: 700; }

/* ---------- Atelier ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.story .prose { display: grid; gap: 1.1rem; max-width: 38em; }
.story .prose p:first-child { font-size: var(--step-1); font-weight: 600; color: var(--ink); }
.story .prose p { color: var(--ink-2); }
.timeline { list-style: none; margin: 0; padding: 1.5rem; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.timeline li { position: relative; padding: 0 0 1.3rem 1.6rem; display: grid; gap: 0.15rem; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 1rem; bottom: 0; width: 2px; background: var(--line-2); }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0.4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink-2); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { background: var(--yellow); border-color: var(--yellow); }
.timeline strong { font-weight: 800; font-size: 1.02rem; }
.timeline span { color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }

.equip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.equip div { padding: 1.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.equip div::before { content: ""; width: 2.25rem; height: 6px; border-radius: 3px; background: var(--yellow); margin-bottom: 0.2rem; }
.equip h3 { font-size: 1.2rem; }
.equip p { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.contact-card { display: grid; gap: 0.5rem; align-content: start; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.contact-card .value { font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.15; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
a.value:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.contact-card p { color: var(--ink-2); }
.contact-card p a { font-weight: 700; }
.hours { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 500; color: var(--ink-2); width: 45%; }
.hours td { font-weight: 700; }
.hours td.closed { color: var(--ink-2); font-weight: 500; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.2rem; counter-reset: st; }
.steps li { display: grid; gap: 0.6rem; align-content: start; padding: 1.4rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2); }
.steps li strong { color: var(--ink); }
.steps li::before {
  counter-increment: st;
  content: counter(st);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--yellow-ink);
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* ---------- Mentions légales ---------- */
.legal { display: grid; gap: 2rem; max-width: 46em; }
.legal section { display: grid; gap: 0.5rem; }
.legal h2 { font-size: 1.35rem; }
.legal p { color: var(--ink-2); }
.todo { background: var(--yellow-soft); color: var(--yellow-soft-ink); padding: 0 0.3em; border-radius: 4px; outline: 1px dashed var(--yellow); }

/* ---------- Pied de page ---------- */
.site-foot { background: var(--band); color: var(--band-ink-2); font-size: 0.95rem; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2rem; padding-block: 2.8rem 1.5rem; }
.site-foot h2 { font-size: 1.15rem; color: var(--band-ink); letter-spacing: 0; }
.site-foot h2 span { color: var(--yellow); }
.site-foot .col { display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.site-foot .mono { color: var(--band-ink); font-weight: 700; margin-bottom: 0.2rem; }
.site-foot a { color: var(--band-ink-2); text-decoration: none; overflow-wrap: anywhere; }
.site-foot a:hover { color: var(--band-ink); text-decoration: underline; }
.foot-base { grid-column: 1 / -1; border-top: 1px solid var(--band-line); padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.82rem; }

/* ---------- Adaptations ---------- */
@media (max-width: 960px) {
  .trades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero .wrap, .callout .wrap, .quote-block, .service, .story { grid-template-columns: minmax(0, 1fr); }
  .callout-contact { justify-items: start; text-align: left; }
  .equip { grid-template-columns: minmax(0, 1fr); }
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-foot .col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .trades, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 0.2rem 1.1rem; }
  .brand-mark img { width: 3.2rem; }
  .brand-name { font-size: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .trade, .toc a, .nav a { transition: border-color .15s, filter .15s, color .15s; }
}

/* Sélecteur de langue */
.nav .lang {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
}
.nav .lang:hover { border-color: var(--ink); }

/* Zone d'intervention */
.zone { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; }
.areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.areas li {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.section:nth-of-type(even) .areas li { background: var(--bg); }
@media (max-width: 860px) { .zone { grid-template-columns: minmax(0, 1fr); } }
