/* BL 72, première version. Couleurs prises sur la photo du dépôt. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }

:root {
  --anthracite: #26292c;   /* joints du bardage, cabine de la mini-pelle */
  --bardage: #5e6267;      /* acier des deux hangars */
  --panneau: #f2f1ec;      /* blanc du panneau des métiers */
  --enduit: #cfc6b4;       /* enduit du bureau */
  --gaine: #b23a2b;        /* grillage avertisseur et gaines de la cour */
  --gaine-fonce: #94301f;
  --gris-clair: #a3a8ad;   /* texte secondaire sur fond sombre */
  --ligne: rgba(38, 41, 44, .16);
  --ligne-claire: rgba(242, 241, 236, .18);

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --top-h: 64px;
  --bar-h: 64px;
  --gutter: 24px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }

body {
  margin: 0;
  background: var(--panneau);
  color: var(--anthracite);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 16px; }
h1, h2 { margin: 0; font-weight: 700; }

.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 8px; top: -64px; z-index: 50; background: var(--panneau); padding: 8px 16px; }
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--gaine); outline-offset: 3px; }

/* Boutons et liens */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: var(--radius);
  background: var(--gaine);
  color: #fff;
  font-family: var(--text);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .3s ease;
}
.btn--tel::before { content: "Appeler le\00a0"; font-weight: 500; }
.btn--small { min-height: 44px; padding: 10px 16px; font-size: 16px; }
.btn--small::before { content: "Appeler le\00a0"; font-weight: 500; }
.btn--large { min-height: 64px; padding: 18px 32px; font-size: 20px; }

.textlink {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gaine);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color .3s ease, color .3s ease;
}
.textlink--light { color: var(--panneau); text-decoration-color: #e0623f; }
.textlink--mail::before { content: "Écrire à\00a0"; font-weight: 500; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--gaine-fonce); }
  .textlink:hover { text-decoration-color: currentColor; }
}

/* En-tête */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--anthracite);
  color: var(--panneau);
}
.top__in { display: flex; align-items: center; gap: 24px; height: var(--top-h); }
.mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  margin-right: auto;
  transition: opacity .3s ease, visibility .3s;
}
.top.at-hero .mark { opacity: 0; visibility: hidden; }
.nav { display: none; }
.top__call { display: none; }

.menu {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--panneau);
  font: 600 16px/1 var(--text);
  min-height: 44px;
  padding: 0 0 0 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.menu::after {
  content: "";
  width: 18px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.top.is-open .menu::after { display: none; }

.top.is-open .nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--top-h);
  left: 0;
  right: 0;
  height: calc(100vh - var(--top-h));
  height: calc(100svh - var(--top-h));
  overflow-y: auto;
  background: var(--anthracite);
  padding: 16px var(--gutter) calc(var(--bar-h) + 24px);
  border-top: 1px solid var(--ligne-claire);
}
.top.is-open .nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  text-decoration: none;
  padding: 10px 0;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--top-h));
  min-height: calc(100svh - var(--top-h));
  background: var(--anthracite);
  color: var(--panneau);
}
.hero__text { padding: 40px var(--gutter) 40px; }
.hero__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(120px, 34vw, 224px);
  line-height: .82;
  letter-spacing: -.01em;
  margin: 0 0 24px -.04em;
}
.hero__what {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
  max-width: 17em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.hero__proof {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gris-clair);
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

.hero__photo { position: relative; margin: 0; flex: 1 1 auto; min-height: 280px; overflow: hidden; }
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.45);
  transform-origin: 52% 52%;
}
.hero__photo figcaption {
  position: absolute;
  left: var(--gutter);
  top: 16px;
  background: var(--anthracite);
  color: var(--panneau);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius);
}

/* Les métiers : le panneau du dépôt, redessiné */

.trades { background: var(--enduit); padding: 64px 0 72px; }
.trades__in { display: grid; gap: 48px; }

.sign {
  background: #f7f6f1;
  color: #1d1f21;
  width: fit-content;
  max-width: 100%;
  padding: 32px 32px 36px 28px;
  border-radius: var(--radius);
}
.sign__list { list-style: none; margin: 0; padding: 0; }
.sign__list li {
  position: relative;
  padding-left: .62em;
  font-family: var(--display);
  font-weight: 600;
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.sign__list li + li { margin-top: .32em; }
.sign__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .44em;
  width: .2em;
  height: .2em;
  background: currentColor;
}

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -.005em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.lead { font-size: 20px; line-height: 1.4; font-weight: 500; }
.trades__text { max-width: 36em; }

/* L'équipe */

.team { background: var(--bardage); color: var(--panneau); padding: 56px 0; }
.team__in { display: grid; gap: 24px 48px; align-items: end; }
.team .h2 { margin-bottom: 0; }
.team__number {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 168px;
  line-height: .8;
  letter-spacing: -.02em;
}
.team__number span {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.team__text { max-width: 34em; }
.team__text p { font-size: 19px; margin: 0; }
.h2--dark { color: var(--panneau); }

/* Horaires et adresse */

.visit { padding: 72px 0 80px; }
.visit__in { display: grid; gap: 40px; }
.visit__head .h2 { margin-bottom: 16px; }
.visit__note { font-size: 19px; color: var(--bardage); margin: 0; }

.hours { margin: 0; max-width: 520px; }
.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ligne);
  font-size: 19px;
}
.hours__row:first-child { border-top: 1px solid var(--ligne); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours dd span + span::before { content: ", "; }
.hours .off { color: var(--bardage); }
.hours__row.is-today dt, .hours__row.is-today dd { font-weight: 600; }
.hours__row.is-today dt::after { content: " · aujourd'hui"; font-weight: 500; color: var(--gaine); }

.where p { margin-bottom: 8px; }
.where__label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bardage);
  margin-top: 24px;
}
.where__label:first-child { margin-top: 0; }
.where__address { font-size: 22px; line-height: 1.3; font-weight: 500; white-space: pre-line; }
.where__phones { display: flex; flex-direction: column; gap: 4px; }
.where__phones a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.where__phones a + a { font-size: 26px; font-weight: 600; color: var(--bardage); }

/* Fin de page */

.close { background: var(--anthracite); color: var(--panneau); padding: 72px 0 80px; }
.close__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 52px;
  line-height: .98;
  max-width: 12em;
  margin-bottom: 40px;
  text-wrap: balance;
}
.br-wide { display: none; }
.close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }

.foot {
  background: var(--anthracite);
  color: var(--gris-clair);
  font-size: 15px;
  padding: 32px 0 calc(40px + var(--bar-h) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ligne-claire);
}
.foot__in { display: grid; gap: 4px 48px; }
.foot p { margin: 0 0 8px; }
.foot a { color: var(--panneau); text-underline-offset: 3px; }
.foot__name { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--panneau); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Barre d'appel, téléphone */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--bar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--gaine);
  color: #fff;
  font-weight: 600;
  font-size: 19px;
  text-decoration: none;
}
.callbar::before { content: "Appeler le\00a0"; font-weight: 500; }
.callbar, .top__call { transition: transform .3s ease, opacity .3s ease, visibility .3s; }
.hero-call-visible .callbar { transform: translateY(100%); visibility: hidden; }
.hero-call-visible .top__call { opacity: 0; visibility: hidden; }

/* Apparition des sections */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .sign__list li { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js .sign.is-in .sign__list li { opacity: 1; transform: none; }
.sign__list li:nth-child(2) { transition-delay: .08s; }
.sign__list li:nth-child(3) { transition-delay: .16s; }
.sign__list li:nth-child(4) { transition-delay: .24s; }
.sign__list li:nth-child(5) { transition-delay: .32s; }
.sign__list li:nth-child(6) { transition-delay: .40s; }
.sign__list li:nth-child(7) { transition-delay: .48s; }
.sign__list li:nth-child(8) { transition-delay: .56s; }
.sign__list li:nth-child(9) { transition-delay: .64s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .sign__list li { opacity: 1; transform: none; transition: none; }
  .btn, .textlink, .callbar, .top__call, .mark { transition: none; }
}

/* Tablette */

@media (min-width: 640px) {
  :root { --gutter: 40px; }
  .hero__what { font-size: 24px; }
  .h2 { font-size: 56px; }
  .sign { padding: 40px 44px 44px 36px; }
  .sign__list li { font-size: 42px; }
  .visit__in { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .visit__head { grid-column: 1 / -1; }
  .close__title { font-size: 72px; }
  .br-wide { display: inline; }
  .foot__in { grid-template-columns: auto 1fr; }
  .foot__legal, .foot__credit { grid-column: 2; }
}

/* Bureau */

@media (min-width: 960px) {
  :root { --top-h: 72px; --gutter: 48px; }
  body { font-size: 18px; }
  .foot { padding-bottom: 40px; }
  .callbar { display: none; }

  .menu { display: none; }
  .nav { display: flex; gap: 32px; }
  .nav a { font-weight: 500; font-size: 16px; text-decoration: none; color: var(--gris-clair); transition: color .3s ease; }
  .top__call { display: inline-flex; }

  .hero { display: grid; grid-template-rows: auto 1fr; min-height: calc(100vh - var(--top-h)); }
  .hero__text {
    display: grid;
    grid-template-columns: 7fr 5fr;
    column-gap: 48px;
    align-items: end;
    padding: 48px max(48px, calc((100vw - 1400px) / 2 + 48px)) 56px;
  }
  .hero__name { font-size: clamp(200px, 19vw, 300px); margin: 0 0 0 -.04em; }
  .hero__what { font-size: 26px; }
  .hero__photo { min-height: 320px; }
  .hero__photo img { object-position: 50% 40%; transform: none; }
  .hero__photo figcaption { top: auto; left: max(48px, calc((100vw - 1400px) / 2 + 48px)); bottom: 24px; }

  .trades { padding: 120px 0; }
  .trades__in { grid-template-columns: 5fr 7fr; gap: 96px; align-items: center; }
  .sign { justify-self: end; padding: 48px 56px 52px 44px; }
  .sign__list li { font-size: 42px; }
  .h2 { font-size: 72px; margin-bottom: 32px; }
  .lead { font-size: 24px; }

  .team { padding: 80px 0; }
  .team__in { grid-template-columns: auto 1fr; gap: 96px; }
  .team__number { font-size: 240px; margin-left: -.03em; }
  .team__number span { font-size: 40px; }
  .team__text p { font-size: 20px; }

  .visit { padding: 120px 0; }
  .visit__in { grid-template-columns: 5fr 4fr 3fr; column-gap: 64px; align-items: start; }
  .visit__head { grid-column: auto; }

  .close { padding: 112px 0 120px; }
  .close__title { font-size: 96px; }

  .foot__in { grid-template-columns: 5fr 7fr; }
}

@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--panneau); }
}
