/* ============================================================
   MAQUETTE 3 « LIVRÉE JCB » — Genin Agricole
   Direction demandée par le client (retour Guillaume, 12.8.2026) :
   un site au nom de Genin dans l'habillage des concessionnaires
   JCB officiels (réf. lyomat.fr, philippetp.com, axyom-no.com).
   Jaune JCB #FCB026 + noir + blanc, titres MAJUSCULES sans
   ponctuation finale, Noto Sans (fallback officiel de la Bamford).
   Mêmes NOMS de tokens que les maquettes 1 et 2 → les pages
   partagées fonctionnent sans modification.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,600;0,700;0,800;0,900;1,900&family=Noto+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Noto+Sans+Mono:wght@400;500;600&display=swap');

:root {
  /* — Palette « réseau JCB » : jaune signal, noir machine, blanc atelier — */
  --gravel:  #F5F5F3;   /* fond général : blanc atelier */
  --panel:   #FFFFFF;   /* surfaces / cartes */
  --ink:     #121212;   /* noir JCB : encre */
  --ink-2:   #56544E;   /* texte secondaire */
  --steel:   #8B897F;   /* utilitaire : données, filets */
  --line:    #E5E4DF;   /* filets discrets */
  --signal:  #FCB026;   /* JCB Yellow (Pantone 137C) : accent action */
  --signal-d:#E8A014;   /* jaune enfoncé (hover) */
  --field:   #2F8132;   /* vert signalétique : pastille « disponible » */
  --straw:   #A87400;   /* jaune encré : accents TEXTE sur fond clair */
  --dark:    #121212;   /* sections sombres */
  --dark-2:  #1B1B19;
  --on-dark: #F5F5F3;

  /* — Marques (badge JCB = la couleur officielle, évidemment) — */
  --brand-jcb: #FCB026;
  --brand-jcb-ink: #121212;

  /* — Typo : grotesque industrielle + Noto Sans (fallback officiel JCB) — */
  --display: "Archivo", "Noto Sans", Arial, sans-serif;
  --body:    "Noto Sans", "Segoe UI", sans-serif;
  --mono:    "Noto Sans Mono", "Consolas", monospace;

  /* — Rythme : net, carré, signalétique — */
  --maxw: 1180px;
  --gap: clamp(18px, 2.5vw, 30px);
  --radius: 6px;
  --shadow: 0 1px 3px rgba(18,18,18,.07), 0 12px 28px -16px rgba(18,18,18,.22);
  --shadow-lift: 0 3px 8px rgba(18,18,18,.09), 0 22px 44px -18px rgba(18,18,18,.30);

  /* — Signature « balisage » : hachures jaune/noir des engins de chantier
       (jours loués, badge occasion) — */
  --chevrons: repeating-linear-gradient(
      -45deg,
      #FCB026 0 10px,
      #161616 10px 20px);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--gravel);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

/* Bande signal jaune au sommet — le liseré du réseau */
.chevron-strip { height: 6px; background: var(--signal); }

/* ---------- Topbar : barre noire de concession ---------- */
.topbar {
  background: var(--dark);
  border-bottom: 1px solid #2A2A27;
  position: sticky; top: 0; z-index: 50;
  color: var(--on-dark);
}
.topbar .wrap {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  min-height: 72px;
}
.logo { text-decoration: none; line-height: 1; flex-shrink: 0; display: grid; gap: 5px; justify-items: start; }
.logo b {
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: 23px; letter-spacing: .02em; text-transform: uppercase;
  background: var(--signal); color: var(--ink);
  padding: 4px 14px 3px 11px;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.logo span {
  font-family: var(--body); font-size: 10.5px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: #B9B7AF;
  padding-left: 2px;
}
.nav { display: flex; gap: clamp(8px, 1.6vw, 22px); margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 700; font-size: 14px;
  letter-spacing: .05em; text-transform: uppercase;
  color: #CFCDC6; padding: 8px 4px; border-bottom: 3px solid transparent;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: var(--signal); border-bottom-color: var(--signal); }
.topbar .tel {
  text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 15px;
  background: var(--signal); color: var(--ink);
  padding: 11px 18px; border-radius: 3px; white-space: nowrap;
}
.topbar .tel:hover { background: var(--signal-d); }
@media (max-width: 860px) {
  .topbar .wrap { flex-wrap: wrap; padding-block: 10px; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .topbar .tel { margin-left: auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(52px, 7vw, 84px); }
.section--panel { background: var(--panel); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 4vw, 40px); }
.eyebrow {
  font-family: var(--body); font-size: 12.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 10px;
}
.eyebrow::before { content: "/ "; color: var(--straw); font-weight: 800; }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; letter-spacing: .005em; text-transform: uppercase; }
h1 { font-weight: 900; }
h2 { font-size: clamp(27px, 3.8vw, 40px); font-weight: 800; }
h3 { font-weight: 700; }
.section-head .more {
  font-weight: 700; font-size: 14.5px; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  border-bottom: 3px solid var(--signal); padding-bottom: 2px; white-space: nowrap;
}
.section-head .more:hover { color: var(--straw); }
.lead { max-width: 640px; color: var(--ink-2); font-size: 17.5px; }

/* ---------- Boutons : rectangles francs, inversion noir/jaune ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 15px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 3px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--signal); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); }
.btn-ghost--dark { color: var(--on-dark); box-shadow: inset 0 0 0 2px var(--on-dark); }
.btn-ghost--dark:hover { background: var(--on-dark); color: var(--ink); }

/* ---------- Badges & pastilles ---------- */
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--body); font-size: 11px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px;
}
.badge-brand { background: var(--ink); color: var(--on-dark); }
.badge-jcb   { background: var(--brand-jcb); color: var(--brand-jcb-ink); }
.badge-etat  { background: var(--panel); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.badge-occ   { background: var(--chevrons); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.75); }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.dispo   { color: var(--field); font-weight: 700; }
.dispo .dot { background: var(--field); }
.loue    { color: #A45A18; font-weight: 700; }
.loue .dot { background: #A45A18; }

/* ---------- Cartes machine ---------- */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card {
  background: var(--panel); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border-top: 3px solid transparent;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-top-color: var(--signal); }
.card-img { aspect-ratio: 4 / 3; background: #E9E8E4; position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img .flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 18.5px; }
.card .ref { font-family: var(--mono); font-size: 12px; color: var(--steel); letter-spacing: .05em; }
.card .specline {
  font-family: var(--mono); font-size: 13px; color: var(--ink-2);
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto;
}
.card .price { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.card .price small { color: var(--ink-2); font-weight: 400; }

/* Placeholder photo */
.ph {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: repeating-linear-gradient(-45deg, #EDECE8 0 12px, #E3E2DD 12px 24px);
  color: var(--steel); font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; text-align: center; padding: 12px;
}
.ph svg { width: 44px; height: 44px; opacity: .55; }

/* ---------- Plaque signalétique ---------- */
.plaque {
  display: inline-flex; flex-wrap: wrap; align-items: stretch;
  font-family: var(--mono); font-size: 13px;
  background: var(--panel); border: 1px solid var(--line);
  border-top: 3px solid var(--signal);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.plaque > div { padding: 11px 18px; border-right: 1px solid var(--line); }
.plaque > div:last-child { border-right: none; }
.plaque dt { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.plaque dd { font-weight: 600; margin: 0; }

/* ---------- Tableau de specs ---------- */
.specs { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.specs th { font-weight: 500; color: var(--ink-2); width: 55%; }
.specs td { font-weight: 600; color: var(--ink); }
.specs tr:nth-child(odd) { background: rgba(18,18,18,.03); }

/* ---------- Hero : la coupe diagonale du réseau ---------- */
.hero {
  position: relative; color: var(--on-dark); overflow: hidden;
  background: var(--dark);
}
.hero .bg {
  /* Calée sur le centre du layout (wrap max 1180px centré), pas sur le viewport :
     la marge texte/diagonale reste constante sur grand écran. */
  position: absolute; top: 0; bottom: 0; left: calc(50% - 45px); right: -8%;
  transform: skewX(-10deg); transform-origin: bottom;
  overflow: hidden;
  border-left: 8px solid var(--signal);
}
.hero .bg > i {
  position: absolute; inset: -5% -14%;
  transform: skewX(10deg);
  background-size: cover; background-position: center 40%;
}
.hero .wrap { position: relative; padding-block: clamp(64px, 10vh, 110px); }
.hero h1 {
  font-size: clamp(34px, 4.8vw, 60px); line-height: 1.03;
  max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--signal); }
.hero p { margin-top: 18px; max-width: 430px; color: #CFCDC6; font-size: 18px; }
.hero .eyebrow, .hero .credit { max-width: none; }
.hero .cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero .eyebrow { color: #B9B7AF; }
.hero .credit {
  position: relative; margin-top: 30px;
  font-family: var(--mono); font-size: 12px; color: #8B897F;
}
@media (max-width: 820px) {
  .hero .bg { left: 0; right: 0; transform: none; border-left: none; opacity: .22; }
  .hero .bg > i { inset: 0; transform: none; }
  .hero p { max-width: 560px; }
}

/* ---------- Bande marques ---------- */
.marques { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.marque-tile {
  font-family: var(--display); font-weight: 800; font-size: 19px;
  letter-spacing: .02em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 4px;
  background: var(--panel); box-shadow: var(--shadow);
}
.marque-tile--jcb { background: var(--brand-jcb); color: var(--brand-jcb-ink); }
.marque-tile--soon { background: transparent; box-shadow: inset 0 0 0 2px var(--line); color: var(--steel); }

/* ---------- Calendrier de disponibilité ---------- */
.cal { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.cal h3 { font-size: 18px; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--steel); text-align: center; padding-bottom: 4px; }
.day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; border-radius: 4px;
  background: var(--gravel); border: 1px solid var(--line); cursor: pointer; user-select: none;
}
.day:hover { border-color: var(--ink); }
.day.off  { background: transparent; border-color: transparent; color: var(--line); cursor: default; }
.day.busy { background: var(--chevrons); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.85); cursor: not-allowed; border: none; }
.day.sel  { background: var(--ink); color: var(--signal); border-color: var(--ink); font-weight: 600; }
.cal-legend { display: flex; gap: 18px; margin-top: 14px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line); display: inline-block; }
.swatch--libre { background: var(--gravel); }
.swatch--busy  { background: var(--chevrons); border: none; }
.swatch--sel   { background: var(--ink); border: none; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 14.5px; display: grid; gap: 6px; }
input, select, textarea {
  font: inherit; padding: 12px 15px; border: 1.5px solid var(--line);
  border-radius: 4px; background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }

/* ---------- Bandeau contact + footer ---------- */
.contact { background: var(--dark); color: var(--on-dark); border-top: 6px solid var(--signal); }
.contact .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--gap); padding-block: clamp(48px, 6vw, 72px); align-items: center; }
.contact h2 { color: var(--on-dark); }
.contact .eyebrow { color: #B9B7AF; }
.contact .bigtel {
  font-family: var(--display); font-weight: 900; font-size: clamp(32px, 4.6vw, 52px);
  color: var(--signal); text-decoration: none;
}
.contact .bigtel:hover { color: var(--on-dark); }
.contact .meta { font-family: var(--mono); font-size: 13.5px; color: #B9B7AF; line-height: 2; }
@media (max-width: 760px) { .contact .wrap { grid-template-columns: 1fr; } }
.footer { background: var(--dark-2); color: #B9B7AF; font-size: 13.5px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; }
.footer a { color: inherit; }

/* ---------- Divers ---------- */
.note {
  font-size: 14.5px; color: var(--ink-2); background: var(--panel);
  border-left: 4px solid var(--signal); padding: 13px 17px; border-radius: 0 6px 6px 0;
}
.breadcrumb { font-family: var(--mono); font-size: 12.5px; color: var(--steel); padding-top: 22px; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

/* Révélation discrète au scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .card-img img { transition: none; }
}
