/* XRENT — composants partagés : sections, titres, boutons, cartes, listes, formulaire. */

/* ---------- Sections ---------- */

.section { padding: var(--s8) 0; }
.section--tight { padding: var(--s7) 0; }
.section--carbon { background: var(--carbon); }
.section + .section--line { border-top: 1px solid var(--line); }

/* ---------- Titre de section ---------- */

.sec-head { max-width: 60ch; margin-bottom: var(--s6); }

.sec-head h2 { max-width: 18ch; }
.sec-head p { margin-top: var(--s3); }

.sec-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
}
.sec-head--split > div { max-width: 56ch; }

/* Étiquette de section : un point vert puis le libellé. Un seul par section. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--s3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-micro);
  letter-spacing: .14em;
  color: var(--mute);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--amber);
  flex: none;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
}

.btn--sm { padding: 13px 22px; font-size: .75rem; }
.btn--block { width: 100%; }

.btn--amber { background: var(--amber); color: var(--black); }
.btn--amber:hover { background: var(--white); }

.btn--line { border-color: var(--line-2); color: var(--white); background: transparent; }
.btn--line:hover { border-color: var(--amber); color: var(--amber); }

.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--carbon-2); }

/* Lien fléché discret */
.link-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
}
.link-go::after {
  content: "";
  width: 22px; height: 1px;
  background: var(--amber);
  transition: width .24s var(--ease);
}
.link-go:hover { color: var(--amber); }
.link-go:hover::after { width: 38px; }

/* ---------- Cartes du parc ---------- */

.fleet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  padding: var(--s5) var(--s4) var(--s4);
  background: var(--black);
  text-decoration: none;
  color: var(--white);
  overflow: hidden;
  transition: background-color .3s var(--ease);
}
.card:hover { background: var(--carbon); }

.card__media {
  order: -1;
  margin: 0 0 var(--s4);
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__media img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform .5s var(--ease-out);
}
.card:hover .card__media img { transform: translateY(-6px) scale(1.03); }

/* Photo en cadre (engins) plutôt que produit détouré */
.card__media--frame { height: 210px; width: 100%; }
.card__media--frame img {
  width: 100%; height: 100%;
  max-height: none;
  object-fit: cover;
  filter: contrast(1.05);
}

.card__name { font-size: var(--fs-h3); margin-bottom: 12px; }
.card__desc { font-size: var(--fs-sm); color: var(--mute); margin-bottom: var(--s3); }

.card__list {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--mute);
}
.card__list li { display: flex; align-items: baseline; gap: 10px; }
.card__list li::before {
  content: "";
  flex: none;
  width: 5px; height: 5px;
  background: var(--amber);
  transform: translateY(-2px);
}

@media (max-width: 1000px) {
  .fleet { grid-template-columns: 1fr; }
  .card { min-height: 0; }
}

/* ---------- Listes à points verts ---------- */

.marks { display: grid; gap: 14px; }
.marks li {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--mute);
}
.marks li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 6px; height: 6px;
  background: var(--amber);
}

/* ---------- Appel à l'action ---------- */

.callout { background: var(--amber); color: var(--black); padding: var(--s7) 0; }
.callout__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
}
.callout h2 { max-width: 20ch; }
.callout p { margin-top: var(--s2); max-width: 44ch; font-size: var(--fs-sm); }
.callout__actions { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* ---------- En-tête de page intérieure ---------- */

.pagehead { padding: calc(92px + var(--s7)) 0 var(--s6); border-bottom: 1px solid var(--line); }
/* Pas de largeur sur le bloc : « ch » se calcule sur la police du conteneur (le texte),
   ce qui coupait les titres longs. On borne le paragraphe, pas le titre. */
.pagehead__in { max-width: none; }
/* Le format XXL est réservé au hero de l'accueil : ici le titre reste dimensionné. */
.pagehead h1 { font-size: clamp(2.25rem, 5.6vw, 4.25rem); max-width: 22ch; }
.pagehead p { margin-top: var(--s3); max-width: 62ch; }

.crumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: var(--s3);
  font-size: var(--fs-micro);
  color: var(--mute-2);
}
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }

/* ---------- Formulaire ---------- */

.field { display: grid; gap: 8px; }

.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  color: var(--mute);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-text);
  font-size: var(--fs-base);
  color: var(--white);
  background: var(--carbon);
  border: 1px solid var(--line-2);
  padding: 14px 16px;
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--amber); box-shadow: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--mute-2); }
