@font-face { font-family: "Overpass"; src: url("fonts/overpass-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("fonts/overpass-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("fonts/overpass-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Overpass Mono"; src: url("fonts/overpass-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Overpass Mono"; src: url("fonts/overpass-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --facade: #ECECE8;
  --blanc: #FAFAF7;
  --encre: #1E2022;
  --encre-2: #4C5054;
  --bitume: #3A3D40;
  --bitume-fonce: #2A2C2F;
  --tole: #8D9399;
  --tole-clair: #BEC3C7;
  --plinthe: #B93F36;
  --plinthe-fonce: #9E3229;
  --marquage: #F4F4F0;

  --sans: "Overpass", "Arial Narrow", sans-serif;
  --mono: "Overpass Mono", ui-monospace, monospace;
  --marge: clamp(16px, 4vw, 56px);
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
* { border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--bitume) var(--facade); accent-color: var(--plinthe); }
body {
  margin: 0;
  background: var(--facade);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--sans);
  font-kerning: normal;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--plinthe); outline-offset: 3px; }
::selection { background: var(--encre); color: var(--facade); }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h2 {
  font-weight: 900;
  font-size: clamp(2rem, 5.2vw, 4.25rem);
  line-height: .98;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: balance;
}
h3 { font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1.15; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 8px; top: -60px; background: var(--encre); color: var(--blanc); padding: 10px 14px; z-index: 20; }
.evitement:focus { top: 8px; }

/* Boutons : angles droits, aplats */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 22px 11px;
  font: 800 1rem/1 var(--sans); text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.bouton-rouge { background: var(--plinthe); color: var(--blanc); }
.bouton-rouge:hover { background: var(--plinthe-fonce); }
.bouton-trait { border-color: var(--encre); color: var(--encre); }
.bouton-trait:hover { background: var(--encre); color: var(--facade); }

/* En-tête */
.entete {
  display: flex; align-items: center; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 16px var(--marge);
}
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.marque-plaque {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--blanc); border: 2px solid var(--encre); box-shadow: inset 0 -6px 0 var(--plinthe);
  font: 900 1rem/1 var(--sans); padding-bottom: 4px;
}
.marque-nom { font-weight: 900; letter-spacing: .02em; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 800; font-size: .9375rem; text-transform: uppercase; letter-spacing: .04em; padding: 8px 0; }
.nav a:hover { text-decoration: underline; }
.entete-devis { min-height: 44px; padding: 12px 16px 9px; font-size: .875rem; }

/* Accueil : le mur du hangar */
.accueil {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "accroche plaque"
    "actions  plaque"
    "infos    plaque"
    "nom      nom";
  column-gap: clamp(24px, 5vw, 80px);
  row-gap: 28px;
  align-content: end;
  max-width: var(--max); margin: 0 auto;
  min-height: calc(100svh - 72px - 156px);
  padding: clamp(24px, 5vw, 64px) var(--marge) 0;
}
.accroche { grid-area: accroche; max-width: 34em; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; align-self: end; }
.accroche strong { font-weight: 800; }
.actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 12px; }
.repere-infos { grid-area: infos; display: flex; flex-wrap: wrap; gap: 8px 32px; font-family: var(--mono); font-size: .9375rem; }
.repere-infos div { display: flex; gap: 10px; }
.repere-infos dt { color: var(--encre-2); }
.repere-infos dd { font-weight: 700; }

.nom {
  grid-area: nom;
  font-weight: 900;
  font-size: clamp(3rem, 11.6vw, 10.5rem);
  line-height: .8;
  letter-spacing: -.03em;
  display: flex; justify-content: space-between; gap: .18em;
  margin: 12px 0 -.035em;
  padding-top: .08em;
}
.nom-l { display: block; }

.plaque-bloc { grid-area: plaque; align-self: end; justify-self: end; display: grid; gap: 10px; justify-items: center; }
.plaque {
  display: grid; justify-items: center;
  width: clamp(150px, 17vw, 236px);
  background: var(--blanc);
  border: 3px solid var(--encre);
  outline: 6px solid var(--blanc);
  box-shadow: 0 1px 0 6px rgba(30, 32, 34, .12), 0 18px 30px -18px rgba(30, 32, 34, .45);
  font-weight: 800; line-height: 1;
}
.plaque-route { font-size: clamp(2.6rem, 4.4vw, 3.9rem); padding: .28em .2em .14em; letter-spacing: -.01em; }
.plaque-pr { font-size: clamp(2.6rem, 4.4vw, 3.9rem); padding: .2em 0 .14em; width: 100%; text-align: center; border-top: 3px solid var(--encre); }
.plaque-bloc figcaption { font-family: var(--mono); font-size: .8125rem; color: var(--encre-2); }

/* La plinthe rouge et la chaussée */
.plinthe { height: clamp(14px, 1.6vw, 22px); background: var(--plinthe); }
.chaussee {
  position: relative; overflow: hidden;
  height: 128px; background: var(--bitume);
  border-top: 4px solid var(--marquage);
  border-bottom: 4px solid var(--marquage);
  box-shadow: inset 0 4px 0 var(--bitume), inset 0 -4px 0 var(--bitume);
}
.chaussee-ligne {
  position: absolute; left: 0; top: 50%; height: 6px; width: calc(100% + 520px); margin-top: -3px;
  background: repeating-linear-gradient(90deg, var(--marquage) 0 130px, transparent 130px 260px);
  will-change: transform;
}
.chaussee-texte {
  position: absolute; left: var(--marge); bottom: 16px;
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tole-clair);
}
.chaussee-carte { height: 72px; }

/* Bloc de section commun */
.prestations, .route, .cites, .avis, .acces { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--marge) 0; }
.tete { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.tete p { max-width: 36em; color: var(--encre-2); }

/* Prestations : rangées filetées */
.rangees { border-top: 3px solid var(--encre); }
.rangees li {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px 64px;
  padding: 26px 0 24px; border-bottom: 1px solid var(--tole);
  transition: background-color .2s;
}
.rangees h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 900; letter-spacing: -.01em; }
.rangees p { max-width: 36em; padding-top: .3em; }

/* Situations vécues */
.route h2 { max-width: 12em; margin-bottom: clamp(32px, 5vw, 56px); }
.arrets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--encre); }
.arret { padding: 28px 28px 32px 0; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--tole); }
.arret + .arret { padding-left: 28px; border-left: 1px solid var(--tole); }
.arret-grand {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 56px; align-items: start;
  padding-right: 0;
}
.arret-grand + .arret { border-left: 0; padding-left: 0; }
.arret-grand .arret-temps { text-transform: none; white-space: nowrap; grid-row: span 2; font-size: clamp(2.75rem, 7vw, 6rem); line-height: .95; letter-spacing: -.04em; }
.arret-grand blockquote { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.35; max-width: 26em; }
.arret-temps { font-family: var(--mono); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; }
.arret-temps span[aria-hidden] { color: var(--plinthe); }
.arret blockquote { font-size: 1.125rem; line-height: 1.5; }
.arret blockquote p::before { content: "« "; }
.arret blockquote p::after { content: " »"; }
.arret-trad { font-size: .9375rem; color: var(--encre-2); }
.arret-qui { font-weight: 800; margin-top: auto; }
.arret-grand .arret-qui { margin-top: 12px; }
.arret-reponse { font-size: .9375rem; color: var(--encre-2); border-top: 1px solid var(--tole); padding-top: 12px; }
.arret-reponse span { display: block; font-family: var(--mono); font-size: .8125rem; text-transform: uppercase; color: var(--encre); }

/* Panneaux directionnels */
.cites h2 { margin-bottom: 36px; max-width: 14em; }
.panneaux { display: flex; flex-wrap: wrap; gap: 18px 24px; }
.panneau {
  display: flex; align-items: center; gap: 28px;
  background: var(--blanc); color: var(--encre);
  border: 3px solid var(--encre);
  padding: 18px 76px 14px 26px;
  clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 50%, calc(100% - 46px) 100%, 0 100%);
  position: relative;
}
.panneau::after {
  content: ""; position: absolute; inset: 0;
  background: var(--encre);
  clip-path: polygon(calc(100% - 49px) -3px, 100% 50%, calc(100% - 49px) calc(100% + 3px), calc(100% - 46px) calc(100% + 3px), calc(100% - 3px) 50%, calc(100% - 46px) -3px);
}
.panneau-mot { font-weight: 900; font-size: clamp(2rem, 5vw, 3.75rem); text-transform: uppercase; line-height: 1; letter-spacing: -.02em; }
.panneau-nb { font-family: var(--mono); font-weight: 700; font-size: 1rem; white-space: nowrap; }
.cites-note { margin-top: 28px; max-width: 46em; color: var(--encre-2); }

/* Avis */
.avis-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; border-top: 3px solid var(--encre); }
.avis-liste li { padding: 24px 0 26px; border-bottom: 1px solid var(--tole); display: flex; flex-direction: column; gap: 14px; }
.avis-liste blockquote { font-size: 1.0625rem; }
.avis-qui { font-weight: 800; margin-top: auto; display: flex; justify-content: space-between; gap: 12px; }
.avis-qui span { font-family: var(--mono); font-weight: 400; color: var(--encre-2); }
.lien { display: inline-block; margin-top: 28px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .9375rem; padding: 6px 0; }

/* Horaires et accès */
.acces h2 { margin-bottom: clamp(32px, 5vw, 56px); }
.acces-grille {
  display: grid; gap: 40px;
  grid-template-columns: minmax(330px, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}
.acces h3 { font-size: 1rem; letter-spacing: .06em; margin-bottom: 14px; }
.horaires-panneau { background: var(--bitume); color: var(--marquage); padding: 22px 22px 18px; border-bottom: 10px solid var(--plinthe); }
.horaires-panneau h3 { color: var(--marquage); }
.horaires { width: 100%; white-space: nowrap; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.horaires th, .horaires td { text-align: left; padding: 8px 0; border-top: 1px solid #575B5F; font-weight: 400; }
.horaires th { font-family: var(--sans); font-weight: 800; padding-right: 8px; }
.horaires td + td { padding-left: 12px; }
.horaires .ferme td { color: var(--tole-clair); }
.horaires tr.aujourdhui th, .horaires tr.aujourdhui td { color: var(--blanc); font-weight: 700; }
.horaires tr.aujourdhui th::after { content: "aujourd'hui"; display: block; font-family: var(--mono); font-weight: 400; font-size: .8125rem; color: var(--tole-clair); }

.facade img { width: 100%; aspect-ratio: 1024 / 678; object-fit: cover; }
.facade figcaption { margin-top: 12px; font-size: .9375rem; }
.facade figcaption span { display: block; font-family: var(--mono); font-size: .75rem; color: var(--encre-2); margin-top: 4px; }

.adresse address { font-style: normal; font-family: var(--mono); font-size: 1.0625rem; line-height: 1.55; margin-bottom: 18px; }
.pratique { margin-top: 28px; border-top: 3px solid var(--encre); }
.pratique div { padding: 12px 0; border-bottom: 1px solid var(--tole); }
.pratique dt { font-family: var(--mono); font-size: .8125rem; text-transform: uppercase; color: var(--encre-2); }
.pratique dd { font-size: 1rem; overflow-wrap: anywhere; }
.zone { margin-top: clamp(40px, 6vw, 72px); max-width: 52em; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; padding-bottom: clamp(56px, 8vw, 96px); }

.carte iframe { display: block; width: 100%; height: clamp(320px, 42vw, 480px); border: 0; filter: grayscale(.35); }

/* Devis : aplat rouge, bandeaux noirs */
.devis { background: var(--plinthe); color: var(--blanc); padding: clamp(64px, 9vw, 128px) var(--marge); }
.devis-titre { max-width: var(--max); margin: 0 auto 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: clamp(2.25rem, 6.4vw, 5.5rem); line-height: 1; }
.devis-titre span { background: var(--encre); padding: .1em .22em 0; }
.devis-mail, .devis p { display: block; max-width: var(--max); margin-left: auto; margin-right: auto; }
.devis-mail { font-weight: 900; font-size: clamp(1.4rem, 4vw, 3rem); letter-spacing: -.01em; text-decoration-thickness: 3px; text-underline-offset: .16em; overflow-wrap: anywhere; }
.devis-mail:hover { text-decoration-thickness: 5px; }
.devis p { margin-top: 20px; font-size: 1.0625rem; }
.devis p { max-width: min(var(--max), 100%); }

/* Pied de page */
.pied { background: var(--bitume-fonce); color: var(--marquage); padding: 48px var(--marge) 32px; }
.pied-grille { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px 32px; }
.pied-nom { font-weight: 900; font-size: 1.5rem; line-height: 1.1; }
.pied p { font-size: .9375rem; }
.pied-bas { max-width: var(--max); margin: 40px auto 0; color: var(--tole-clair); font-family: var(--mono); font-size: .75rem; }

.barre-mobile { display: none; }

/* Ordinateur moyen */
@media (max-width: 1100px) {
  .acces-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .facade { grid-column: 1 / -1; grid-row: 1; }
  .avis-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablette et téléphone */
@media (max-width: 820px) {
  .nav { display: none; }
  .accueil {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "nom      nom"
      "accroche accroche"
      "infos    infos"
      "actions  actions";
    align-content: start;
    min-height: 0;
    padding-bottom: 32px;
    row-gap: 22px;
  }
  .nom { flex-direction: column; font-size: clamp(3.4rem, 27vw, 7rem); line-height: .82; margin: 0; gap: 0; }
  .repere-infos { flex-direction: column; gap: 6px; font-size: .875rem; }
  .repere-infos dt { min-width: 7.5em; }
  .plaque-bloc { grid-area: nom; align-self: end; justify-self: end; margin-bottom: 0; }
  .entete-devis { display: none; }
  .marque-nom { display: none; }
  .plaque { width: 96px; outline-width: 4px; border-width: 2px; }
  .plaque-route, .plaque-pr { font-size: 1.6rem; }
  .plaque-pr { border-top-width: 2px; }
  .plaque-bloc figcaption { display: none; }
  .actions .bouton { flex: 1 1 100%; }
  .chaussee { height: 104px; }
  .chaussee-ligne { top: 40%; }
  .chaussee-texte { bottom: 12px; font-size: .75rem; }
  .chaussee-texte span { display: none; }
  .arret-grand .arret-temps { font-size: clamp(2rem, 10.5vw, 3rem); }
  .tete, .rangees li { grid-template-columns: 1fr; }
  .arrets { grid-template-columns: 1fr; }
  .arret, .arret + .arret { padding: 26px 0 28px; border-left: 0; }
  .arret-grand { display: flex; }
  .avis-liste { grid-template-columns: 1fr; }
  .acces-grille { grid-template-columns: 1fr; }
  .facade { grid-row: auto; }
  .horaires-panneau { padding: 18px 16px 14px; }
  .horaires { font-size: .875rem; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-nom { grid-column: 1 / -1; }
  body { padding-bottom: 64px; }
  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    border-top: 3px solid var(--encre);
  }
  .barre-mobile a {
    display: flex; align-items: center; justify-content: center; min-height: 58px;
    font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .9375rem; text-decoration: none;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .barre-mobile a:first-child { background: var(--plinthe); color: var(--blanc); }
  .barre-mobile a:last-child { background: var(--blanc); color: var(--encre); }
}

@media (max-width: 420px) {
  .entete { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .panneau { padding-right: 64px; gap: 18px; max-width: 100%; }
  .panneau-mot { font-size: 2.25rem; }
  .pied-grille { grid-template-columns: 1fr; }
}

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