/* ==========================================================================
   Transports Lapeyrade · feuille de style
   Univers : technique et carré, grille visible, signalétique industrielle.
   Bleu acier (surfaces), jaune sécurité (action), orange sécurité (repères).
   Big Shoulders Display (titres), IBM Plex Sans Condensed (texte),
   IBM Plex Mono (données chiffrées uniquement : km, années, coordonnées).
   ========================================================================== */

@font-face { font-family: "Big Shoulders"; src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("/fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url("/fonts/ibm-plex-sans-condensed-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url("/fonts/ibm-plex-sans-condensed-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url("/fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* Repli métrique proche pour limiter le saut de mise en page */
@font-face { font-family: "Plex Cond Fallback"; src: local("Arial Narrow"), local("Liberation Sans Narrow"), local("Arial"); size-adjust: 92%; }

:root {
  --ink: #0F1A24;
  --acier-950: #101F2E;
  --acier-900: #16283A;
  --acier-800: #1D3550;
  --acier-700: #24425F;
  --acier-500: #44698C;
  --acier-300: #93AAC0;
  --acier-200: #C4D1DD;
  --acier-100: #E1E8EE;
  --papier: #EEF1F4;
  --blanc: #FFFFFF;
  --jaune: #FFC20E;
  --jaune-fonce: #E9AE00;
  --orange: #F25C05;
  --texte: #16222E;
  --texte-2: #3B4A58;
  --texte-clair: #E8EEF3;
  --texte-clair-2: #B4C4D3;
  --trait: #B7C5D2;
  --trait-fort: #16283A;
  --grille: rgba(36, 66, 95, .075);
  --grille-sombre: rgba(196, 209, 221, .07);

  --f-titre: "Big Shoulders", "Plex Cond Fallback", "Arial Narrow", sans-serif;
  --f-texte: "Plex Cond", "Plex Cond Fallback", "Arial Narrow", sans-serif;
  --f-data: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gout: clamp(18px, 4vw, 40px);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --head-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--papier); color: var(--texte);
  font: 400 1.0625rem/1.6 var(--f-texte);
  font-feature-settings: "kern"; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acier-700); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
::selection { background: var(--jaune); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
input, select, textarea, button { font: inherit; color: inherit; }
html { scrollbar-color: var(--acier-500) var(--acier-100); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--acier-100); }
::-webkit-scrollbar-thumb { background: var(--acier-500); border: 3px solid var(--acier-100); }

h1, h2, h3 { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.4rem); line-height: .98; letter-spacing: .004em; }
h2 { font-size: clamp(2.05rem, 3.8vw, 3.2rem); line-height: 1; letter-spacing: .006em; }
h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1; font-weight: 600; letter-spacing: .015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; }
.nw { white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gout); }
.wrap--etroit { max-width: 860px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--jaune); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- Données (mono) ---------- */
.data { font-family: var(--f-data); font-weight: 500; font-size: .82em; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* ---------- À compléter : visible, assumé ---------- */
.a-completer {
  display: inline-block; font-family: var(--f-data); font-size: .78rem; font-weight: 500; line-height: 1.35;
  color: #7A2E00; background: repeating-linear-gradient(-45deg, #FFF1D6 0 8px, #FFE7B8 8px 16px);
  border: 1px dashed var(--orange); padding: 2px 8px; letter-spacing: .01em; text-transform: none;
}
p.a-completer, div.a-completer { display: block; padding: 10px 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 20px; border: 2px solid transparent; border-radius: 0;
  font: 600 1rem/1.1 var(--f-texte); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .ico { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 54px; padding: 12px 24px; font-size: 1.05rem; }
.btn--jaune { background: var(--jaune); color: var(--ink); border-color: var(--jaune); }
.btn--jaune:hover { background: var(--jaune-fonce); border-color: var(--jaune-fonce); color: var(--ink); text-decoration: none; }
.btn--ligne { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ligne:hover { background: var(--ink); color: var(--blanc); text-decoration: none; }
.sombre .btn--ligne, .btn--ligne-clair { color: var(--blanc); border-color: rgba(255, 255, 255, .7); }
.sombre .btn--ligne:hover, .btn--ligne-clair:hover { background: var(--blanc); color: var(--ink); border-color: var(--blanc); }
.btn[disabled] { opacity: .55; cursor: progress; }

.lien-fleche { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--jaune); padding-bottom: 2px; }
.lien-fleche .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.lien-fleche:hover { text-decoration: none; border-color: var(--orange); }
.lien-fleche:hover .ico { transform: translateX(4px); }
.sombre .lien-fleche { color: var(--blanc); }

.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Note Google ---------- */
.note { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--texte); font-size: .9rem; line-height: 1.2; }
.note .ico-star { width: 18px; height: 18px; color: var(--orange); }
.note b { font-family: var(--f-data); font-weight: 500; font-size: .95rem; }
.note span { color: var(--texte-2); }
.note:hover span { text-decoration: underline; }
.note--clair { color: var(--blanc); }
.note--clair span { color: var(--texte-clair-2); }
.note--clair .ico-star { color: var(--jaune); }

/* ---------- Bande de rayures sécurité ---------- */
.rayures { height: 10px; background: repeating-linear-gradient(-45deg, var(--jaune) 0 14px, var(--ink) 14px 28px); }

/* ---------- En-tête ---------- */
.head { position: sticky; top: 0; z-index: 50; background: var(--acier-900); color: var(--blanc); border-bottom: 3px solid var(--jaune); }
.head__in { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blanc); flex: none; }
.logo:hover { color: var(--blanc); text-decoration: none; }
.logo__mark {
  display: grid; place-items: center; width: 44px; height: 44px; background: var(--jaune); color: var(--ink);
  font: 800 2rem/1 var(--f-titre); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--jaune);
}
.logo__txt { display: flex; flex-direction: column; font: 800 1.75rem/.9 var(--f-titre); text-transform: uppercase; letter-spacing: .03em; }
.logo__txt small { font: 500 .66rem/1.2 var(--f-data); letter-spacing: .12em; color: var(--texte-clair-2); margin-top: 5px; text-transform: uppercase; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a { display: block; white-space: nowrap; padding: 10px 11px; color: var(--texte-clair); text-decoration: none; font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--blanc); border-color: var(--acier-300); }
.nav a[aria-current="page"] { color: var(--blanc); border-color: var(--jaune); }
.nav__extra, .nav__contact { display: none; }
.head__actions { display: flex; align-items: center; gap: 10px; }
.head__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--blanc); text-decoration: none; font-family: var(--f-data); font-weight: 500; font-size: .95rem; padding: 8px 4px; }
.head__tel:hover { color: var(--jaune); text-decoration: none; }
.head__tel .ico { color: var(--jaune); }
.burger { display: none; width: 46px; height: 46px; background: transparent; border: 2px solid rgba(255,255,255,.5); cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--blanc); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1440px) {
  .head__tel span { display: none; }
  .head__tel { width: 46px; height: 46px; justify-content: center; border: 2px solid rgba(255,255,255,.5); }
  .nav a { padding: 10px 8px; font-size: .9rem; }
}
@media (max-width: 1040px) {
  :root { --head-h: 64px; }
  .burger { display: block; }
  .head__tel { width: 46px; height: 46px; justify-content: center; border: 2px solid rgba(255,255,255,.5); }
  .nav {
    position: fixed; inset: calc(var(--head-h) + 3px) 0 0 0; background: var(--acier-950); padding: 16px var(--gout) 120px;
    overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s;
    background-image: linear-gradient(var(--grille-sombre) 1px, transparent 1px), linear-gradient(90deg, var(--grille-sombre) 1px, transparent 1px); background-size: 32px 32px;
  }
  .nav.ouvert { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav__contact { display: block; }
  .nav a { font: 800 1.9rem/1 var(--f-titre); padding: 16px 0; border-bottom: 1px solid rgba(196,209,221,.18); }
  .nav a[aria-current="page"] { color: var(--jaune); border-bottom-color: rgba(196,209,221,.18); }
  .nav__extra { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
  .nav__extra .btn { width: 100%; }
  .nav__extra .note { margin-top: 6px; }
  body.menu-ouvert { overflow: hidden; }
}
@media (max-width: 420px) {
  .logo__txt { font-size: 1.45rem; }
  .logo__txt small { font-size: .58rem; letter-spacing: .08em; }
  .logo__mark { width: 38px; height: 38px; font-size: 1.7rem; }
  .head__in { gap: 10px; }
  .head__actions { gap: 6px; }
  .head__devis { padding: 10px 12px; }
}
@media (max-width: 520px) { .head__devis { display: none; } }

/* ---------- Fil d'Ariane ---------- */
.fil { padding-top: 18px; padding-bottom: 0; }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-2); }
.fil li + li::before { content: "/"; margin: 0 10px; color: var(--acier-300); }
.fil a { color: var(--texte-2); }
.sombre-fil .fil { position: relative; z-index: 2; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--serre { padding: clamp(40px, 5vw, 64px) 0; }
.section--blanc { background: var(--blanc); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.section--plan {
  background-color: var(--papier);
  background-image: linear-gradient(var(--grille) 1px, transparent 1px), linear-gradient(90deg, var(--grille) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
}
.sombre { background: var(--acier-900); color: var(--texte-clair); }
.sombre h1, .sombre h2, .sombre h3 { color: var(--blanc); }
.sombre a:not(.btn) { color: var(--blanc); }
.sombre--plan {
  background-image: linear-gradient(var(--grille-sombre) 1px, transparent 1px), linear-gradient(90deg, var(--grille-sombre) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
}
.tete { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }
.tete p { font-size: 1.15rem; color: var(--texte-2); }
.sombre .tete p { color: var(--texte-clair-2); }
.tete--ligne { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
.lead { font-size: clamp(1.12rem, 1.5vw, 1.28rem); line-height: 1.5; color: var(--texte-2); max-width: 62ch; }
.sombre .lead { color: var(--texte-clair-2); }
.prose { max-width: 68ch; }
.prose h2 { margin: 1.6em 0 .55em; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.prose h3 { margin: 1.5em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: .45em; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; background: var(--orange); }

.grille-2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.titre-col { position: sticky; top: calc(var(--head-h) + 32px); }
@media (max-width: 900px) { .grille-2 { grid-template-columns: 1fr; } .titre-col { position: static; } .tete--ligne { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--jaune); }
.hero .lead { margin-bottom: 30px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__media { position: relative; }
.cadre { position: relative; border: 1px solid rgba(196,209,221,.35); padding: 10px; }
.cadre::before, .cadre::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--jaune); }
.cadre::before { top: -6px; left: -6px; border-top-width: 3px; border-left-width: 3px; }
.cadre::after { bottom: -6px; right: -6px; border-bottom-width: 3px; border-right-width: 3px; }
.cadre img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cadre--clair { border-color: var(--trait); background: var(--blanc); }
.cadre--clair::before, .cadre--clair::after { border-color: var(--orange); }
.legende { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: .85rem; color: var(--texte-2); }
.sombre .legende { color: var(--texte-clair-2); }
.legende .data { white-space: nowrap; }
.balayage { position: absolute; z-index: 2; top: 10px; bottom: 10px; left: 10px; width: 3px; background: var(--jaune); box-shadow: 0 0 0 1px rgba(15,26,36,.35); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .balayage { animation: balaye 1.6s var(--ease) .2s both; }
  @keyframes balaye { 0% { opacity: 1; left: 10px; } 85% { opacity: 1; } 100% { opacity: 0; left: calc(100% - 13px); } }
}
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}

/* Hero des pages internes */
.phero { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); }
.phero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.phero__in--seul { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.phero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); margin-bottom: 20px; }
.phero .lead { margin-bottom: 28px; }
.phero__btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
@media (max-width: 900px) { .phero__in { grid-template-columns: 1fr; } }

/* ---------- Plaque technique (identité de l'entreprise) ---------- */
.plaque { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--trait-fort); background: var(--blanc); margin: 0; }
.plaque > div { padding: 18px 20px 20px; border-left: 1px solid var(--trait); }
.plaque > div:first-child { border-left: 0; }
.plaque dt { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--texte-2); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.plaque dt::before { content: ""; width: 8px; height: 8px; background: var(--orange); flex: none; }
.plaque dd { margin: 0; font: 800 1.6rem/1.02 var(--f-titre); text-transform: uppercase; color: var(--ink); }
.plaque dd sup { text-transform: lowercase; font-size: .55em; }
.plaque dd small { display: block; font: 400 .95rem/1.4 var(--f-texte); text-transform: none; color: var(--texte-2); margin-top: 6px; }
.plaque-wrap { margin-top: -38px; position: relative; z-index: 3; }
@media (max-width: 900px) {
  .plaque { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plaque > div:nth-child(3) { border-left: 0; }
  .plaque > div:nth-child(n+3) { border-top: 1px solid var(--trait); }
}
@media (max-width: 480px) {
  .plaque { grid-template-columns: 1fr; }
  .plaque > div { border-left: 0; }
  .plaque > div + div { border-top: 1px solid var(--trait); }
  .plaque-wrap { margin-top: -28px; }
}

/* ---------- Liste des métiers (lignes réglées) ---------- */
.metiers { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--trait-fort); }
.metiers li { border-bottom: 1px solid var(--trait); }
.metiers a {
  display: grid; grid-template-columns: 56px minmax(0, 5fr) minmax(0, 6fr) auto; gap: 8px 28px; align-items: center;
  padding: 26px 8px; text-decoration: none; color: var(--texte); position: relative;
  transition: background-color .25s var(--ease), padding .35s var(--ease);
}
.metiers a::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 0; background: var(--jaune); transition: width .35s var(--ease); z-index: -1; }
.metiers li { position: relative; z-index: 0; }
.metiers a:hover { padding-left: 20px; }
.metiers a:hover::before { width: 100%; }
.metiers__ico { width: 40px; height: 40px; color: var(--acier-700); }
.metiers__nom { font: 800 clamp(1.6rem, 2.6vw, 2.15rem)/.95 var(--f-titre); text-transform: uppercase; color: var(--ink); }
.metiers__txt { color: var(--texte-2); }
.metiers a:hover .metiers__txt { color: var(--texte); }
.metiers__lien { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.metiers__lien .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.metiers a:hover .metiers__lien .ico { transform: translateX(4px); }
@media (max-width: 760px) {
  .metiers a { grid-template-columns: 44px minmax(0, 1fr); padding: 22px 4px; }
  .metiers__ico { width: 32px; height: 32px; grid-row: span 3; align-self: start; }
  .metiers__lien { margin-top: 4px; }
}

/* ---------- Bloc partagé texte / image ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.duo--inverse .duo__media { order: 2; }
.duo h2 { margin-bottom: 20px; }
.duo .prose + .lien-fleche, .duo p + .lien-fleche { margin-top: 10px; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } .duo--inverse .duo__media { order: 0; } }

/* Liste cochée */
.coches { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.coches li { display: flex; gap: 12px; align-items: flex-start; }
.coches .ico { width: 20px; height: 20px; color: var(--ink); background: var(--jaune); padding: 2px; margin-top: 2px; }
.sombre .coches .ico { color: var(--ink); }

/* ---------- Fiche technique ---------- */
.fiche { width: 100%; border-collapse: collapse; background: var(--blanc); border: 2px solid var(--trait-fort); font-size: 1rem; }
.fiche caption { caption-side: top; text-align: left; font: 800 1.3rem/1 var(--f-titre); text-transform: uppercase; letter-spacing: .03em; padding: 0 0 12px; color: var(--ink); }
.fiche th, .fiche td { text-align: left; vertical-align: top; padding: 13px 16px; border-top: 1px solid var(--trait); }
.fiche tr:first-child th, .fiche tr:first-child td { border-top: 0; }
.fiche th { width: 38%; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--texte-2); border-right: 1px solid var(--trait); background: #F6F8FA; }
@media (max-width: 520px) {
  .fiche th, .fiche td { display: block; width: 100%; border-right: 0; }
  .fiche td { border-top: 0; padding-top: 2px; }
  .fiche th { background: transparent; padding-bottom: 0; }
}

/* ---------- Distances (barres) ---------- */
.distances { margin: 0; border: 2px solid var(--trait-fort); background: var(--blanc); padding: 22px 22px 18px; }
.sombre .distances { background: var(--acier-950); border-color: var(--acier-500); }
.distances figcaption { font: 800 1.3rem/1 var(--f-titre); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 16px; }
.distances ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.distances li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding-bottom: 8px; position: relative; }
.distances li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: var(--p); background: var(--acier-500); }
.distances li:first-child::after { background: var(--orange); }
.sombre .distances li::after { background: var(--acier-300); }
.sombre .distances li:first-child::after { background: var(--jaune); }
.distances li::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--acier-100); }
.sombre .distances li::before { background: rgba(196,209,221,.12); }
.distances__lieu { font-size: .98rem; }
.distances__km { font-family: var(--f-data); font-weight: 500; font-size: .9rem; font-variant-numeric: tabular-nums; }
.distances__src { margin-top: 14px; font-size: .8rem; color: var(--texte-2); }
.sombre .distances__src { color: var(--texte-clair-2); }

/* ---------- Frise chronologique ---------- */
.frise { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--trait-fort); }
.frise li { position: relative; padding: 0 0 34px 34px; }
.frise li:last-child { padding-bottom: 0; }
.frise li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; background: var(--jaune); border: 2px solid var(--ink); }
.frise__an { display: block; font-family: var(--f-data); font-weight: 500; font-size: .95rem; color: var(--acier-700); margin-bottom: 4px; letter-spacing: .04em; }
.frise h3 { margin-bottom: 8px; }
.frise p { color: var(--texte-2); max-width: 60ch; }

/* ---------- Bande recrutement ---------- */
.recrute { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.recrute h2 { margin-bottom: 18px; }
.recrute__btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .recrute { grid-template-columns: 1fr; } }

/* ---------- Offre d'emploi ---------- */
.offre { border: 2px solid var(--trait-fort); background: var(--blanc); }
.offre__tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; align-items: baseline; padding: 20px 22px; border-bottom: 1px solid var(--trait); }
.offre__tete h3 { font-size: 1.7rem; }
.offre__tag { font-family: var(--f-data); font-weight: 500; font-size: .8rem; background: var(--ink); color: var(--jaune); padding: 4px 10px; letter-spacing: .06em; }
.offre__corps { padding: 20px 22px 24px; }
.offre__corps .coches { margin-bottom: 18px; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--trait-fort); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 2px; font-weight: 600; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--acier-700); }
.faq__plus { position: relative; width: 26px; height: 26px; flex: none; border: 2px solid var(--ink); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 5px; right: 5px; top: 10px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.faq__plus::after { transform: rotate(90deg); }
.faq details[open] .faq__plus { background: var(--jaune); }
.faq details[open] .faq__plus::after { transform: rotate(0); }
.faq__rep { padding: 0 2px 22px; color: var(--texte-2); max-width: 68ch; }

/* ---------- CTA de fin ---------- */
.cta { background: var(--acier-800); color: var(--texte-clair); border-top: 3px solid var(--jaune); }
.cta__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.cta h2 { color: var(--blanc); margin-bottom: 16px; }
.cta p { color: var(--texte-clair-2); font-size: 1.12rem; max-width: 56ch; }
.cta__actions { display: grid; gap: 16px; justify-items: start; }
.cta__tel { display: inline-flex; align-items: center; gap: 12px; color: var(--blanc); text-decoration: none; font-size: 1.05rem; }
.cta__tel b { font-family: var(--f-data); font-weight: 500; }
.cta__tel .ico { width: 22px; height: 22px; color: var(--jaune); }
.cta__tel:hover { color: var(--jaune); text-decoration: none; }
@media (max-width: 900px) { .cta__in { grid-template-columns: 1fr; } }

/* ---------- Formulaire ---------- */
.form { background: var(--blanc); border: 2px solid var(--trait-fort); padding: clamp(20px, 3vw, 32px); position: relative; }
.form::before { content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 6px; background: var(--jaune); }
.form__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.champ { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texte); }
.champ .opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--texte-2); }
.champ--large { grid-column: 1 / -1; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1.5px solid var(--acier-300); border-radius: 0; background: var(--papier);
  font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--texte);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.champ textarea { resize: vertical; min-height: 130px; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: var(--acier-500); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--ink); background: var(--blanc); box-shadow: 0 0 0 3px var(--jaune); }
.champ [aria-invalid="true"] { border-color: #B42318; background: #FFF5F4; }
::placeholder { color: #5D6B78; }
input, textarea { caret-color: var(--orange); }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--texte-2); }
.case input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form__pied { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 24px; }
.form__aide { margin: 0; font-size: .95rem; color: var(--texte-2); }
.form__statut { margin: 16px 0 0; font-weight: 600; }
.form__statut:empty { display: none; }
.form__statut.ok { padding: 14px 16px; background: #E8F5EC; border: 1px solid #2E7D4F; color: #1D5C38; }
.form__statut.ko { padding: 14px 16px; background: #FFF1EF; border: 1px solid #B42318; color: #8A1C12; }
.form__pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form__grille { grid-template-columns: 1fr; } .form__pied .btn { width: 100%; } }

/* ---------- Contact ---------- */
.coord { display: grid; gap: 0; border: 2px solid var(--trait-fort); background: var(--blanc); }
.coord > * { padding: 18px 20px; border-top: 1px solid var(--trait); }
.coord > *:first-child { border-top: 0; }
.coord__lib { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--texte-2); margin-bottom: 6px; }
.coord__val { font: 800 1.6rem/1.05 var(--f-titre); text-transform: uppercase; color: var(--ink); text-decoration: none; }
a.coord__val:hover { color: var(--acier-700); }
.coord__val--txt { font: 400 1.05rem/1.5 var(--f-texte); text-transform: none; }
.carte { border: 2px solid var(--trait-fort); margin-top: 20px; aspect-ratio: 4 / 3; background: var(--acier-100); }
.carte iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }

/* ---------- Guides ---------- */
.sommaire { border: 2px solid var(--trait-fort); background: var(--blanc); padding: 18px 20px; position: sticky; top: calc(var(--head-h) + 24px); }
.sommaire h2 { font-size: 1.3rem; margin-bottom: 12px; }
.sommaire ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.sommaire a { color: var(--texte); }
.guide { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } .sommaire { position: static; order: -1; } }
.comparatif { width: 100%; border-collapse: collapse; background: var(--blanc); border: 2px solid var(--trait-fort); margin: 8px 0 24px; font-size: .98rem; }
.comparatif th, .comparatif td { padding: 12px 14px; border: 1px solid var(--trait); text-align: left; vertical-align: top; }
.comparatif thead th { background: var(--acier-900); color: var(--blanc); font: 800 1.15rem/1 var(--f-titre); text-transform: uppercase; letter-spacing: .03em; border-color: var(--acier-700); }
.comparatif tbody th { font-weight: 600; background: #F6F8FA; }
.tableau-defile { overflow-x: auto; }
.encart { border: 2px solid var(--trait-fort); background: var(--blanc); padding: 20px 22px; margin: 24px 0; position: relative; }
.encart::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--jaune) 0 10px, var(--ink) 10px 20px); }
.encart h3 { margin: 6px 0 10px; }

/* ---------- Liens internes en grille réglée ---------- */
.liens { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 2px solid var(--trait-fort); border-left: 1px solid var(--trait); }
.liens li { border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.liens a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 18px; text-decoration: none; color: var(--ink); font-weight: 600; background: var(--blanc); height: 100%; transition: background-color .2s; }
.liens a:hover { background: var(--jaune); }
.sombre .liens a { color: var(--ink); }
.sombre .liens { border-top-color: var(--jaune); }
.liens .ico { width: 18px; height: 18px; flex: none; }

/* ---------- Plan du site ---------- */
.plan { columns: 2 320px; column-gap: 48px; }
.plan section { break-inside: avoid; margin-bottom: 32px; }
.plan h2 { font-size: 1.6rem; margin-bottom: 12px; }
.plan ul { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--trait-fort); }
.plan li { border-bottom: 1px solid var(--trait); padding: 10px 0; }

/* ---------- Pied de page ---------- */
.foot { background: var(--acier-950); color: var(--texte-clair-2); margin-top: 0; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.foot__brand p { margin: 18px 0; max-width: 40ch; }
.logo--clair { color: var(--blanc); }
.foot__h { font: 800 1.2rem/1 var(--f-titre); color: var(--blanc); letter-spacing: .05em; margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--texte-clair); text-decoration: none; }
.foot a:hover { color: var(--jaune); text-decoration: underline; }
.foot address { font-style: normal; line-height: 1.7; }
.foot__mono { font-family: var(--f-data); font-size: .82rem; margin: 10px 0 8px; color: var(--acier-300); }
.foot__lien { display: inline-flex; align-items: center; gap: 8px; }
.foot__lien .ico { color: var(--jaune); }
.foot__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(196,209,221,.16); font-size: .9rem; }
.foot__bas p { margin: 0; }
.foot__liens { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.foot__liens .ico { width: 20px; height: 20px; display: block; }
.foot__liens a[aria-label] { display: inline-flex; padding: 6px; margin: -6px -2px; }
@media (max-width: 1000px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Barre d'action mobile ---------- */
.mbar { display: none; }
@media (max-width: 1040px) {
  .mbar {
    display: grid; grid-template-columns: 1fr 1.5fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--acier-950); border-top: 3px solid var(--jaune); padding-bottom: env(safe-area-inset-bottom);
  }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; font-size: .98rem; }
  .mbar__tel { color: var(--blanc); }
  .mbar__tel .ico { color: var(--jaune); }
  .mbar__devis { background: var(--jaune); color: var(--ink); }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

/* ---------- Divers ---------- */
.centre { text-align: center; }
.mt-0 { margin-top: 0; }
.erreur-404 { font: 800 clamp(6rem, 18vw, 12rem)/.8 var(--f-titre); color: var(--jaune); -webkit-text-stroke: 2px var(--ink); margin-bottom: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .head, .mbar, .cta, .foot, .rayures { display: none; }
  body { background: #fff; }
}
